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.0009644/0.0009644, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001277/0.001277, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 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.039/1.039, allocations: 177 MB / 205.2 MB, free: 5.051 MB / 186.7 MB " [Timeout remaining time 179] 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.2784/0.2784, allocations: 34.86 MB / 296.6 MB, free: 452 kB / 266.7 MB " [Timeout remaining time 180] 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.683e-06/1.683e-06, allocations: 0 / 326 MB, free: 7.113 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.619e-05, allocations: 2.312 kB / 326 MB, free: 7.109 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001124/0.00114, allocations: 0.5624 MB / 326.5 MB, free: 6.551 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.003773, allocations: 2.308 MB / 328.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.623e-05/0.003789, allocations: 0 / 328.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.215e-05/0.003801, allocations: 0 / 328.8 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.073e-06/0.003808, allocations: 0 / 328.8 MB, free: 4.219 MB / 298.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.001136/0.004945, allocations: 0.537 MB / 329.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.343e-05/0.004988, allocations: 8.609 kB / 329.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.637e-05/0.005025, allocations: 0 / 329.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.634e-05/0.005051, allocations: 0 / 329.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.802e-05/0.005069, allocations: 0 / 329.4 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.812e-06/0.005076, allocations: 4 kB / 329.4 MB, free: 3.668 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009056/0.005981, allocations: 0.7367 MB / 330.1 MB, free: 2.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-06/0.005989, allocations: 4 kB / 330.1 MB, free: 2.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.239e-05/0.006002, allocations: 0 / 330.1 MB, free: 2.926 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005671/0.006569, allocations: 0.5227 MB / 330.6 MB, free: 2.402 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.00657, allocations: 0 / 330.6 MB, free: 2.402 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.006571, allocations: 4 kB / 330.6 MB, free: 2.398 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.006575, allocations: 0 / 330.6 MB, free: 2.398 MB / 298.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.0002863/0.006861, allocations: 341.3 kB / 331 MB, free: 2.035 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.006892, allocations: 12.02 kB / 331 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.088e-05/0.006913, allocations: 4.938 kB / 331 MB, free: 2.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.41e-05/0.006967, allocations: 101.8 kB / 331.1 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.006976, allocations: 4.375 kB / 331.1 MB, free: 1.891 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.4e-06/0.006981, allocations: 384 / 331.1 MB, free: 1.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.028e-05/0.007041, allocations: 55.97 kB / 331.2 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.007047, allocations: 192 / 331.2 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-06/0.007053, allocations: 384 / 331.2 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.007059, allocations: 11.88 kB / 331.2 MB, free: 1.812 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.741e-05/0.007076, allocations: 33.69 kB / 331.2 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.644e-05/0.007132, allocations: 53.05 kB / 331.2 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.553e-05/0.007178, allocations: 52.3 kB / 331.3 MB, free: 1.641 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.525e-05/0.007193, allocations: 30.56 kB / 331.3 MB, free: 1.602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-06/0.007197, allocations: 4.062 kB / 331.3 MB, free: 1.598 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.007225, allocations: 56.27 kB / 331.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.007226, allocations: 0 / 331.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.357e-05/0.00732, allocations: 118.7 kB / 331.5 MB, free: 1.387 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.00735, allocations: 81.23 kB / 331.6 MB, free: 1.289 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.915e-05/0.007379, allocations: 89.86 kB / 331.7 MB, free: 1.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.484e-06/0.007386, allocations: 25.7 kB / 331.7 MB, free: 1.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.838e-05/0.007405, allocations: 80.14 kB / 331.8 MB, free: 1.078 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.00742, allocations: 1.375 kB / 331.8 MB, free: 1.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.007438, allocations: 13.72 kB / 331.8 MB, free: 1.059 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.21e-05/0.007521, allocations: 326.7 kB / 332.1 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.4e-05/0.007535, allocations: 29.7 kB / 332.1 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.088e-05/0.007545, allocations: 25.7 kB / 332.2 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.638e-05/0.007582, allocations: 64.27 kB / 332.2 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.007583, allocations: 4 kB / 332.2 MB, free: 0.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.388e-05/0.007627, allocations: 85.09 kB / 332.3 MB, free: 492 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.007652, allocations: 33.7 kB / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.007655, allocations: 0 / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.007665, allocations: 0 / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-06/0.007666, allocations: 0 / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-06/0.007668, allocations: 0 / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.616e-06/0.007677, allocations: 0 / 332.3 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.007683, allocations: 3.938 kB / 332.3 MB, free: 448 kB / 298.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 5.747e-05/0.00774, allocations: 143.6 kB / 332.5 MB, free: 288 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-06/0.007745, allocations: 4 kB / 332.5 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.532e-06/0.007752, allocations: 3 kB / 332.5 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.007754, allocations: 0 / 332.5 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.007755, allocations: 0 / 332.5 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.007757, allocations: 0 / 332.5 MB, free: 284 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.105e-05/0.007798, allocations: 65.83 kB / 332.6 MB, free: 200 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.007799, allocations: 4 kB / 332.6 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.0078, allocations: 0 / 332.6 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-07/0.0078, allocations: 3.938 kB / 332.6 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-06/0.007804, allocations: 0 / 332.6 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.007804, allocations: 4 kB / 332.6 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.007806, allocations: 3.984 kB / 332.6 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.729e-05/0.007873, allocations: 120.5 kB / 332.7 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-06/0.007878, allocations: 352 / 332.7 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.007889, allocations: 7.984 kB / 332.7 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.127e-06/0.007893, allocations: 0 / 332.7 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.546e-06/0.007902, allocations: 4 kB / 332.7 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.007904, allocations: 0 / 332.7 MB, free: 20 kB / 298.7 MB Notification: Performance of sorting global known variables: time 5.611e-06/0.007909, allocations: 4.859 kB / 332.7 MB, free: 12 kB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007909, allocations: 0 / 332.7 MB, free: 12 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.008179, allocations: 163.8 kB / 332.9 MB, free: 15.85 MB / 314.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.000522/0.008701, allocations: 363 kB / 333.2 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.791e-05/0.008779, allocations: 119.6 kB / 333.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.008782, allocations: 4 kB / 333.3 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.008817, allocations: 94.02 kB / 333.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.555e-05/0.008863, allocations: 7.938 kB / 333.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001296/0.008993, allocations: 106.2 kB / 333.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.69e-05/0.009019, allocations: 55.36 kB / 333.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.709e-06/0.009024, allocations: 0 / 333.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.804e-05/0.009052, allocations: 55.36 kB / 333.7 MB, free: 14.96 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.009053, allocations: 0 / 333.7 MB, free: 14.96 MB / 314.7 MB Notification: Performance of Templates: time 0.005217/0.01427, allocations: 4.301 MB / 338 MB, free: 10.67 MB / 314.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 -s gbode -gbm=radauIIA3 -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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.973282617982477]