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.001269/0.001269, allocations: 84.73 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.001389/0.001389, allocations: 160.2 kB / 24.91 MB, free: 8.758 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 0.9277/0.9277, allocations: 177 MB / 205.2 MB, free: 5.441 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.2909/0.2909, allocations: 34.87 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 9.22e-07/9.22e-07, allocations: 0 / 325.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.01e-05/1.102e-05, allocations: 4.281 kB / 325.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0009123/0.0009233, allocations: 0.5482 MB / 326.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007871/0.00171, allocations: 0.6089 MB / 327.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.019e-05/0.001731, allocations: 0 / 327.1 MB, free: 6.012 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.947e-05/0.0018, allocations: 15.86 kB / 327.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.685e-06/0.001803, allocations: 0 / 327.1 MB, free: 5.996 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.0005082/0.002311, allocations: 199.3 kB / 327.3 MB, free: 5.801 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.695e-05/0.002358, allocations: 31.95 kB / 327.3 MB, free: 5.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.756e-05/0.002385, allocations: 3.938 kB / 327.3 MB, free: 5.766 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.954e-05/0.002415, allocations: 23.91 kB / 327.3 MB, free: 5.742 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.94e-05/0.002444, allocations: 12.27 kB / 327.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-06/0.002453, allocations: 0 / 327.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.002718, allocations: 203.6 kB / 327.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.592e-05/0.002774, allocations: 68.08 kB / 327.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.002804, allocations: 27.92 kB / 327.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.002991, allocations: 223.2 kB / 327.9 MB, free: 5.215 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.002993, allocations: 0 / 327.9 MB, free: 5.215 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.002993, allocations: 0 / 327.9 MB, free: 5.215 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.435e-06/0.002996, allocations: 0 / 327.9 MB, free: 5.215 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.0002971/0.003293, allocations: 403.4 kB / 328.3 MB, free: 4.797 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.56e-05/0.003319, allocations: 16.02 kB / 328.3 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.586e-05/0.003344, allocations: 16.92 kB / 328.3 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.204e-05/0.003397, allocations: 117.6 kB / 328.4 MB, free: 4.625 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.003415, allocations: 16.38 kB / 328.4 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.003437, allocations: 20.38 kB / 328.4 MB, free: 4.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.561e-05/0.003513, allocations: 73.02 kB / 328.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.059e-06/0.003518, allocations: 192 / 328.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.53e-06/0.003524, allocations: 384 / 328.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.003527, allocations: 384 / 328.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.955e-05/0.003547, allocations: 29.44 kB / 328.5 MB, free: 4.488 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.623e-05/0.003623, allocations: 104.6 kB / 328.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.978e-05/0.003663, allocations: 55.06 kB / 328.7 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.926e-05/0.003682, allocations: 29.89 kB / 328.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-06/0.003685, allocations: 7.938 kB / 328.7 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.455e-05/0.00376, allocations: 98.19 kB / 328.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 6.31e-07/0.00376, allocations: 0 / 328.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.0002517/0.004012, allocations: 347.7 kB / 329.2 MB, free: 3.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.004065, allocations: 103.8 kB / 329.3 MB, free: 3.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.785e-05/0.004102, allocations: 117.7 kB / 329.4 MB, free: 3.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.004143, allocations: 73.67 kB / 329.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.934e-05/0.004172, allocations: 93.47 kB / 329.5 MB, free: 3.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.356e-05/0.004246, allocations: 143 kB / 329.7 MB, free: 3.254 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-05/0.004342, allocations: 150.6 kB / 329.8 MB, free: 3.098 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.004427, allocations: 354.6 kB / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.669e-05/0.004483, allocations: 65.95 kB / 330.2 MB, free: 2.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002009/0.004684, allocations: 430.2 kB / 330.7 MB, free: 2.098 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.005032, allocations: 0.5862 MB / 331.2 MB, free: 1.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.005037, allocations: 4 kB / 331.3 MB, free: 1.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0003687/0.005405, allocations: 465.8 kB / 331.7 MB, free: 0.875 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.005417, allocations: 8 kB / 331.7 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.005427, allocations: 12 kB / 331.7 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.005443, allocations: 16 kB / 331.7 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.005746, allocations: 191.7 kB / 331.9 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.00576, allocations: 23.92 kB / 332 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.005872, allocations: 71.52 kB / 332 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.005897, allocations: 35.94 kB / 332.1 MB, free: 0.5234 MB / 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.0001297/0.006027, allocations: 232.4 kB / 332.3 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.27e-06/0.006032, allocations: 4 kB / 332.3 MB, free: 288 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.496e-05/0.006047, allocations: 5.812 kB / 332.3 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.006048, allocations: 0 / 332.3 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.00605, allocations: 4 kB / 332.3 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.006053, allocations: 3.938 kB / 332.3 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.386e-05/0.006117, allocations: 82.19 kB / 332.4 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-07/0.006117, allocations: 0 / 332.4 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-06/0.006119, allocations: 0 / 332.4 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.006122, allocations: 7.984 kB / 332.4 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-06/0.006125, allocations: 0 / 332.4 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.006126, allocations: 0 / 332.4 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.006127, allocations: 4 kB / 332.4 MB, free: 160 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.006314, allocations: 262.7 kB / 332.7 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.423e-05/0.006328, allocations: 27.67 kB / 332.7 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.834e-06/0.006336, allocations: 8.031 kB / 332.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-06/0.006344, allocations: 4 kB / 332.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.27e-05/0.006356, allocations: 0 / 332.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.00636, allocations: 0 / 332.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.821e-06/0.006365, allocations: 4.859 kB / 332.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006366, allocations: 0 / 332.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002594/0.006625, allocations: 99.8 kB / 332.8 MB, free: 15.73 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.0003995/0.007024, allocations: 296 kB / 333.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000221/0.007245, allocations: 291.8 kB / 333.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.007247, allocations: 0.75 kB / 333.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.007279, allocations: 56 kB / 333.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.045e-05/0.007329, allocations: 9.031 kB / 333.4 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.007621, allocations: 377.2 kB / 333.8 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.694e-05/0.007658, allocations: 81.38 kB / 333.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.366e-05/0.007701, allocations: 35.58 kB / 333.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.567e-05/0.007747, allocations: 79.38 kB / 334 MB, free: 14.57 MB / 314.7 MB Notification: Performance of SimCode: time 4.3e-07/0.007747, allocations: 0 / 334 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Templates: time 0.004195/0.01194, allocations: 3.439 MB / 337.4 MB, free: 11.15 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 -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: 2.9265821338631213]