Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002431/0.002431, allocations: 91.61 kB / 20.96 MB, free: 3.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002802/0.002802, allocations: 156.9 kB / 24.27 MB, free: 140 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 177 MB / 204.5 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3566/0.3566, allocations: 34.25 MB / 295.2 MB, free: 0.6328 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 377.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.188e-05/3.315e-05, allocations: 8.641 kB / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00179/0.001823, allocations: 0.5049 MB / 377.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004431/0.006254, allocations: 2.284 MB / 380 MB, free: 100 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.764e-05/0.006271, allocations: 0 / 380 MB, free: 100 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.454e-05/0.006286, allocations: 0 / 380 MB, free: 100 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.76e-06/0.006292, allocations: 0 / 380 MB, free: 100 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.008134, allocations: 0.5878 MB / 380.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.573e-05/0.00818, allocations: 0 / 380.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.743e-05/0.008218, allocations: 11.92 kB / 380.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.176e-05/0.008249, allocations: 0 / 380.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.116e-05/0.008271, allocations: 3.938 kB / 380.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.008277, allocations: 0 / 380.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.00962, allocations: 0.6821 MB / 381.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.009628, allocations: 0 / 381.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.846e-05/0.009647, allocations: 0 / 381.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.01077, allocations: 0.522 MB / 381.8 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.01078, allocations: 4 kB / 381.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01078, allocations: 0 / 381.8 MB, free: 14.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.84e-06/0.01078, allocations: 0 / 381.8 MB, free: 14.28 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005709/0.01135, allocations: 477 kB / 382.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.01139, allocations: 8.031 kB / 382.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.01144, allocations: 8.938 kB / 382.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.791e-05/0.01154, allocations: 108.6 kB / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.01155, allocations: 384 / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.01156, allocations: 384 / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.01167, allocations: 59.95 kB / 382.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.01168, allocations: 192 / 382.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.01169, allocations: 384 / 382.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.0117, allocations: 3.938 kB / 382.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.284e-05/0.01174, allocations: 37.64 kB / 382.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.01187, allocations: 104.6 kB / 382.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.986e-05/0.01196, allocations: 56.8 kB / 382.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.818e-05/0.012, allocations: 33.39 kB / 382.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.01201, allocations: 4.062 kB / 382.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.883e-05/0.01207, allocations: 63.08 kB / 382.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.01207, allocations: 0 / 382.8 MB, free: 13.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002503/0.01232, allocations: 118.8 kB / 382.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.01239, allocations: 85.05 kB / 383 MB, free: 12.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.272e-05/0.01248, allocations: 146.2 kB / 383.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.0125, allocations: 29.83 kB / 383.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.842e-05/0.01257, allocations: 130.8 kB / 383.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.01259, allocations: 0 / 383.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.01262, allocations: 19.38 kB / 383.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002587/0.01288, allocations: 492.1 kB / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.079e-05/0.01291, allocations: 29.7 kB / 383.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.456e-05/0.01294, allocations: 29.7 kB / 383.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.25e-05/0.01301, allocations: 63.09 kB / 383.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01301, allocations: 0 / 383.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001125/0.01313, allocations: 101.1 kB / 384 MB, free: 11.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.01317, allocations: 29.7 kB / 384 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.01317, allocations: 0 / 384 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.01319, allocations: 4 kB / 384 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.01319, allocations: 0 / 384 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.0132, allocations: 3.938 kB / 384 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.584e-05/0.01322, allocations: 0 / 384 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.01323, allocations: 3.984 kB / 384 MB, free: 11.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.01336, allocations: 182.3 kB / 384.2 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.01338, allocations: 3.953 kB / 384.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.366e-06/0.01339, allocations: 7.031 kB / 384.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.01339, allocations: 3.984 kB / 384.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.01339, allocations: 4 kB / 384.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.0134, allocations: 3.938 kB / 384.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.0135, allocations: 108.6 kB / 384.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.0135, allocations: 0 / 384.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.0135, allocations: 0 / 384.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.0135, allocations: 0 / 384.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.01351, allocations: 4 kB / 384.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.01351, allocations: 0 / 384.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.01352, allocations: 4 kB / 384.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.01368, allocations: 139.7 kB / 384.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-06/0.01369, allocations: 4 kB / 384.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.0137, allocations: 0 / 384.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-06/0.01371, allocations: 0 / 384.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.01372, allocations: 0 / 384.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.01373, allocations: 4 kB / 384.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.721e-05/0.0138, allocations: 127.1 kB / 384.6 MB, free: 11.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0138, allocations: 3.938 kB / 384.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005158/0.01431, allocations: 159.3 kB / 384.8 MB, free: 10.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009475/0.01526, allocations: 375.8 kB / 385.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.01543, allocations: 126.4 kB / 385.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01543, allocations: 0 / 385.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.638e-05/0.01552, allocations: 88.8 kB / 385.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.01564, allocations: 4 kB / 385.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002389/0.01588, allocations: 118.6 kB / 385.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.6e-05/0.01594, allocations: 55.36 kB / 385.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.511e-06/0.01594, allocations: 0 / 385.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.722e-05/0.01596, allocations: 12.5 kB / 385.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01596, allocations: 0 / 385.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of Templates: time 0.008919/0.02488, allocations: 3.637 MB / 389.2 MB, free: 6.438 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.165066950954497]