Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.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.0009913/0.0009913, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001168/0.001168, allocations: 160.6 kB / 24.91 MB, free: 8.727 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.009/1.009, allocations: 177 MB / 205.2 MB, free: 5.469 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.2642/0.2642, allocations: 34.86 MB / 296.6 MB, free: 0.5078 MB / 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.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 326 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.192e-05, allocations: 3.672 kB / 326 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.001751/0.001773, allocations: 0.5896 MB / 326.5 MB, free: 6.535 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.002919, allocations: 0.612 MB / 327.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.856e-05/0.002947, allocations: 4 kB / 327.2 MB, free: 5.918 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.56e-05/0.003023, allocations: 7.938 kB / 327.2 MB, free: 5.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.237e-06/0.003027, allocations: 0 / 327.2 MB, free: 5.91 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:842:5-926:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.randomNumbers' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007165/0.003743, allocations: 195.3 kB / 327.4 MB, free: 5.719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.538e-05/0.003809, allocations: 31.89 kB / 327.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.00385, allocations: 8.688 kB / 327.4 MB, free: 5.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.178e-05/0.003892, allocations: 15.98 kB / 327.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.438e-05/0.003936, allocations: 12.25 kB / 327.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.00395, allocations: 4 kB / 327.4 MB, free: 5.645 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004148/0.004365, allocations: 215.5 kB / 327.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.381e-05/0.004438, allocations: 64.14 kB / 327.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.217e-05/0.004481, allocations: 35.84 kB / 327.7 MB, free: 5.336 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.004758, allocations: 223.2 kB / 328 MB, free: 5.117 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.00476, allocations: 0 / 328 MB, free: 5.117 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.004761, allocations: 0 / 328 MB, free: 5.117 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.004765, allocations: 0 / 328 MB, free: 5.117 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0004143/0.005179, allocations: 394.8 kB / 328.3 MB, free: 4.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.005211, allocations: 8.031 kB / 328.4 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.005247, allocations: 12.92 kB / 328.4 MB, free: 4.688 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.005389, allocations: 125.6 kB / 328.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.005406, allocations: 12.38 kB / 328.5 MB, free: 4.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.00543, allocations: 28.38 kB / 328.5 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.005532, allocations: 65.03 kB / 328.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.005538, allocations: 192 / 328.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.005545, allocations: 384 / 328.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.005551, allocations: 384 / 328.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.127e-05/0.005582, allocations: 33.42 kB / 328.6 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001095/0.005691, allocations: 108.6 kB / 328.7 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.632e-05/0.005748, allocations: 43.08 kB / 328.8 MB, free: 4.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.477e-05/0.005782, allocations: 37.88 kB / 328.8 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.005786, allocations: 0 / 328.8 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/0.005902, allocations: 106.1 kB / 328.9 MB, free: 4.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.032e-06/0.005903, allocations: 0 / 328.9 MB, free: 4.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.0003654/0.006268, allocations: 343.7 kB / 329.3 MB, free: 3.73 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.006341, allocations: 107.7 kB / 329.4 MB, free: 3.609 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.829e-05/0.006389, allocations: 117.7 kB / 329.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.006448, allocations: 69.67 kB / 329.5 MB, free: 3.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.006484, allocations: 97.44 kB / 329.6 MB, free: 3.309 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.006588, allocations: 135 kB / 329.8 MB, free: 3.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.006733, allocations: 150.6 kB / 329.9 MB, free: 3.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002323/0.006965, allocations: 350.7 kB / 330.3 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.007075, allocations: 66 kB / 330.3 MB, free: 2.605 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.007378, allocations: 434.2 kB / 330.7 MB, free: 2.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005693/0.007947, allocations: 0.5862 MB / 331.3 MB, free: 1.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.007956, allocations: 4 kB / 331.3 MB, free: 1.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006292/0.008585, allocations: 465.9 kB / 331.8 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.008604, allocations: 8 kB / 331.8 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.008618, allocations: 12 kB / 331.8 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.008645, allocations: 20.06 kB / 331.8 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005342/0.009179, allocations: 203.7 kB / 332 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.383e-05/0.009203, allocations: 23.92 kB / 332 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.009434, allocations: 71.52 kB / 332.1 MB, free: 476 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.586e-05/0.00948, allocations: 36 kB / 332.2 MB, free: 440 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 (state33[33],$PRE.state33[33],state33[32],$PRE.state33[32],state33[31],$PRE.state33[31],state33[30],$PRE.state33[30],state33[29],$PRE.state33[29],state33[28],$PRE.state33[28],state33[27],$PRE.state33[27],state33[26],$PRE.state33[26],state33[25],$PRE.state33[25],state33[24],$PRE.state33[24],state33[23],$PRE.state33[23],state33[22],$PRE.state33[22],state33[21],$PRE.state33[21],state33[20],$PRE.state33[20],state33[19],$PRE.state33[19],state33[18],$PRE.state33[18],state33[17],$PRE.state33[17],state33[16],$PRE.state33[16],state33[15],$PRE.state33[15],state33[14],$PRE.state33[14],state33[13],$PRE.state33[13],state33[12],$PRE.state33[12],state33[11],$PRE.state33[11],state33[10],$PRE.state33[10],state33[9],$PRE.state33[9],state33[8],$PRE.state33[8],state33[7],$PRE.state33[7],state33[6],$PRE.state33[6],state33[5],$PRE.state33[5],state33[4],$PRE.state33[4],state33[3],$PRE.state33[3],state33[2],$PRE.state33[2],state33[1],$PRE.state33[1],state4c[4],$PRE.state4c[4],state4c[3],$PRE.state4c[3],state4c[2],$PRE.state4c[2],state4c[1],$PRE.state4c[1],state4b[4],$PRE.state4b[4],state4b[3],$PRE.state4b[3],state4b[2],$PRE.state4b[2],state4b[1],$PRE.state4b[1],state4a[4],$PRE.state4a[4],state4a[3],$PRE.state4a[3],state4a[2],$PRE.state4a[2],state4a[1],$PRE.state4a[1],state2[2],$PRE.state2[2],state2[1],$PRE.state2[1],r33,$PRE.r33,r4c,$PRE.r4c,r4b,$PRE.r4b,r4a,$PRE.r4a,r2,$PRE.r2,result,$PRE.result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.0001981/0.009678, allocations: 232.2 kB / 332.4 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.009693, allocations: 4 kB / 332.4 MB, free: 192 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.009719, allocations: 5.812 kB / 332.4 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.009722, allocations: 4 kB / 332.4 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.009724, allocations: 0 / 332.4 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.009728, allocations: 3.984 kB / 332.4 MB, free: 176 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.009829, allocations: 86.12 kB / 332.5 MB, free: 72 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.009832, allocations: 7.938 kB / 332.5 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-06/0.009838, allocations: 4 kB / 332.5 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.00984, allocations: 0 / 332.5 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-06/0.009845, allocations: 0 / 332.5 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.009847, allocations: 0 / 332.5 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.00985, allocations: 4 kB / 332.5 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003047/0.01015, allocations: 262.7 kB / 332.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.01018, allocations: 27.73 kB / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-06/0.01019, allocations: 0 / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.357e-05/0.0102, allocations: 0 / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.812e-05/0.01022, allocations: 4 kB / 332.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.01022, allocations: 32 / 332.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.546e-06/0.01023, allocations: 12.84 kB / 332.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01023, allocations: 0 / 332.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004733/0.01071, allocations: 95.81 kB / 332.9 MB, free: 15.63 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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006329/0.01134, allocations: 297.8 kB / 333.2 MB, free: 15.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.01171, allocations: 285.5 kB / 333.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.01171, allocations: 0 / 333.5 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.843e-05/0.01177, allocations: 54.33 kB / 333.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.584e-05/0.01184, allocations: 7.938 kB / 333.5 MB, free: 15.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006215/0.01247, allocations: 373.2 kB / 333.9 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.93e-05/0.0125, allocations: 85.92 kB / 334 MB, free: 14.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.944e-05/0.01255, allocations: 31.59 kB / 334 MB, free: 14.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.66e-05/0.0126, allocations: 83.31 kB / 334.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0126, allocations: 0 / 334.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of Templates: time 0.004465/0.01707, allocations: 3.451 MB / 337.5 MB, free: 11.05 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.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: 3.043857312761247]