Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 101.2 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 183.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 241.8 MB, free: 364 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.225/0.225, allocations: 44.22 MB / 337.1 MB, free: 2.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003875/0.0003876, allocations: 11.94 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.154, allocations: 61.91 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0009623/0.1551, allocations: 262.8 kB / 471.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1565, allocations: 0.5598 MB / 472.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.233e-05/0.1565, allocations: 0 / 472.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1567, allocations: 7.938 kB / 472.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.825e-06/0.1567, allocations: 0 / 472.3 MB, free: 12.92 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.000701/0.1574, allocations: 162.4 kB / 472.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.508e-05/0.1575, allocations: 19.92 kB / 472.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.338e-05/0.1575, allocations: 4 kB / 472.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.418e-05/0.1576, allocations: 19.97 kB / 472.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.906e-05/0.1576, allocations: 19.92 kB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.1576, allocations: 4 kB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.1579, allocations: 123.8 kB / 472.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.158, allocations: 63.89 kB / 472.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.802e-05/0.1581, allocations: 45.62 kB / 472.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.1583, allocations: 143.7 kB / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1583, allocations: 0 / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.859e-06/0.1583, allocations: 0 / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.1583, allocations: 3.938 kB / 472.9 MB, free: 12.32 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.0005393/0.1589, allocations: 468.6 kB / 473.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1589, allocations: 8.031 kB / 473.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.688e-05/0.159, allocations: 23.81 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.1591, allocations: 174.9 kB / 473.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1591, allocations: 16 kB / 473.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.1592, allocations: 23.94 kB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.1594, allocations: 140.2 kB / 473.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.1594, allocations: 0 / 473.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.1594, allocations: 0 / 473.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1594, allocations: 0 / 473.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.392e-05/0.1595, allocations: 100.3 kB / 473.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002183/0.1597, allocations: 226.2 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.1599, allocations: 163 kB / 474.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.1599, allocations: 0 / 474.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.1601, allocations: 166 kB / 474.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.172e-06/0.1602, allocations: 4 kB / 474.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001184/0.1613, allocations: 0.8723 MB / 475.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.1615, allocations: 107.8 kB / 475.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.723e-05/0.1615, allocations: 117.7 kB / 475.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.113e-05/0.1616, allocations: 69.67 kB / 475.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.1617, allocations: 93.45 kB / 475.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.1618, allocations: 130.5 kB / 475.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.1618, allocations: 20 kB / 475.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.162, allocations: 342.8 kB / 476.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.1623, allocations: 181.9 kB / 476.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005263/0.1628, allocations: 0.5369 MB / 476.8 MB, free: 8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003949/0.1632, allocations: 263.8 kB / 477.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.1633, allocations: 4 kB / 477.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001014/0.1643, allocations: 0.731 MB / 477.8 MB, free: 7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1643, allocations: 12.97 kB / 477.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.1644, allocations: 15.95 kB / 477.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.271e-05/0.1644, allocations: 20 kB / 477.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003263/0.1647, allocations: 119.7 kB / 478 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.033e-05/0.1648, allocations: 19.94 kB / 478 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.165, allocations: 67.38 kB / 478 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.165, allocations: 40 kB / 478.1 MB, free: 6.711 MB / 350.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 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002416/0.1653, allocations: 245.9 kB / 478.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/0.1653, allocations: 7.812 kB / 478.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.818e-05/0.1653, allocations: 17.86 kB / 478.3 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1653, allocations: 3.953 kB / 478.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.1653, allocations: 0 / 478.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1653, allocations: 0 / 478.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.1655, allocations: 193.7 kB / 478.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1655, allocations: 7.938 kB / 478.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-06/0.1655, allocations: 4 kB / 478.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1655, allocations: 0 / 478.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.1655, allocations: 0 / 478.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.1656, allocations: 0 / 478.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1656, allocations: 7.891 kB / 478.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008427/0.1664, allocations: 0.6108 MB / 479.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.413e-05/0.1665, allocations: 104.8 kB / 479.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.1665, allocations: 4.031 kB / 479.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.255e-05/0.1665, allocations: 0 / 479.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.833e-05/0.1666, allocations: 7.938 kB / 479.3 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.228e-06/0.1666, allocations: 8 kB / 479.3 MB, free: 5.395 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.432e-05/0.1666, allocations: 75.31 kB / 479.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1666, allocations: 0 / 479.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004883/0.1671, allocations: 95.98 kB / 479.5 MB, free: 5.227 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005807/0.1677, allocations: 267.5 kB / 479.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006066/0.1683, allocations: 465.6 kB / 480.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1683, allocations: 0 / 480.2 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.1685, allocations: 156.4 kB / 480.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001006/0.1686, allocations: 4 kB / 480.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005831/0.1692, allocations: 450.9 kB / 480.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.1695, allocations: 0.7375 MB / 481.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.749e-05/0.1696, allocations: 43.58 kB / 481.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.169e-05/0.1697, allocations: 23.44 kB / 481.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1697, allocations: 0 / 481.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of Templates: time 0.006359/0.176, allocations: 2.824 MB / 484.4 MB, free: 264 kB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches