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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 102.5 kB / 17.21 MB, free: 6.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3096/0.3096, allocations: 46.11 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 77.44 kB / 416.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1646, allocations: 62.45 MB / 479.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002476/0.1671, allocations: 0.5899 MB / 479.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1686, allocations: 0.6147 MB / 480.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.198e-05/0.1687, allocations: 0 / 480.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1688, allocations: 7.938 kB / 480.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.1688, allocations: 0 / 480.5 MB, free: 4.504 MB / 350.1 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.0009619/0.1698, allocations: 171.7 kB / 480.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.809e-05/0.1699, allocations: 23.92 kB / 480.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.535e-05/0.17, allocations: 7.984 kB / 480.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.508e-05/0.17, allocations: 12 kB / 480.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.318e-05/0.1701, allocations: 20.47 kB / 480.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.1702, allocations: 4 kB / 480.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000461/0.1706, allocations: 163.7 kB / 480.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1708, allocations: 64.38 kB / 481 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.269e-05/0.1709, allocations: 55.61 kB / 481 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.1713, allocations: 203.4 kB / 481.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.1714, allocations: 0 / 481.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.1714, allocations: 0 / 481.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.1714, allocations: 7.938 kB / 481.2 MB, free: 3.781 MB / 350.1 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.0008701/0.1723, allocations: 492.8 kB / 481.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.194e-05/0.1723, allocations: 12.88 kB / 481.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.536e-05/0.1724, allocations: 16.75 kB / 481.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1726, allocations: 176.2 kB / 481.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1727, allocations: 16.38 kB / 481.9 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.1727, allocations: 24.36 kB / 481.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.1729, allocations: 132.4 kB / 482.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.173, allocations: 0 / 482.1 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.173, allocations: 3.984 kB / 482.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.173, allocations: 4 kB / 482.1 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.1731, allocations: 96.34 kB / 482.2 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003081/0.1734, allocations: 234.2 kB / 482.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.1737, allocations: 167 kB / 482.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.1738, allocations: 153.6 kB / 482.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.1738, allocations: 0 / 482.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.1742, allocations: 169.9 kB / 482.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 3.086e-06/0.1742, allocations: 0 / 482.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001148/0.1753, allocations: 0.7733 MB / 483.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.1754, allocations: 107.8 kB / 483.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.48e-05/0.1755, allocations: 121.6 kB / 483.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.525e-05/0.1756, allocations: 73.67 kB / 484 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.1757, allocations: 89.45 kB / 484 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.1758, allocations: 130.5 kB / 484.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.176, allocations: 162.7 kB / 484.3 MB, free: 476 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1761, allocations: 346.8 kB / 484.7 MB, free: 120 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/0.1765, allocations: 185.9 kB / 484.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005236/0.177, allocations: 0.533 MB / 485.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009581/0.178, allocations: 0.7788 MB / 486.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.178, allocations: 0 / 486.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001188/0.1792, allocations: 0.7474 MB / 486.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.1792, allocations: 8 kB / 486.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.1792, allocations: 16 kB / 486.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.674e-05/0.1793, allocations: 16 kB / 486.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004033/0.1797, allocations: 111.7 kB / 487.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-05/0.1797, allocations: 31.86 kB / 487.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.18, allocations: 71.31 kB / 487.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.18, allocations: 36 kB / 487.2 MB, free: 13.25 MB / 366.1 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.0002492/0.1803, allocations: 241.6 kB / 487.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/0.1803, allocations: 15.75 kB / 487.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.462e-05/0.1803, allocations: 9.875 kB / 487.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1804, allocations: 4 kB / 487.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.1804, allocations: 7.922 kB / 487.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1804, allocations: 0 / 487.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001991/0.1806, allocations: 193.8 kB / 487.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1806, allocations: 0 / 487.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.462e-06/0.1806, allocations: 3.938 kB / 487.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1806, allocations: 0 / 487.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.1806, allocations: 0 / 487.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1806, allocations: 0 / 487.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/0.1806, allocations: 7.938 kB / 487.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008239/0.1815, allocations: 0.6147 MB / 488.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.181e-05/0.1815, allocations: 104.7 kB / 488.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.192e-05/0.1816, allocations: 0 / 488.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.351e-05/0.1816, allocations: 0 / 488.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.1816, allocations: 3.984 kB / 488.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.1816, allocations: 11.98 kB / 488.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.732e-05/0.1817, allocations: 75.28 kB / 488.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1817, allocations: 0 / 488.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005345/0.1822, allocations: 96.03 kB / 488.6 MB, free: 11.79 MB / 366.1 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.0006103/0.1828, allocations: 259.5 kB / 488.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006555/0.1835, allocations: 465.2 kB / 489.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1835, allocations: 0.5 kB / 489.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.1836, allocations: 164.4 kB / 489.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.1838, allocations: 7.938 kB / 489.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006272/0.1844, allocations: 470.8 kB / 489.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.1848, allocations: 0.7298 MB / 490.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.166e-05/0.1849, allocations: 43.58 kB / 490.7 MB, free: 9.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.1849, allocations: 23.44 kB / 490.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1849, allocations: 0 / 490.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of Templates: time 0.006804/0.1917, allocations: 2.887 MB / 493.6 MB, free: 6.734 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches