Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_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.0008889/0.0008889, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009618/0.0009621, allocations: 174.6 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.4 MB / 222.8 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3846/0.3846, allocations: 43.58 MB / 314.6 MB, free: 9.023 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006091/0.0006094, allocations: 18.97 kB / 384 MB, free: 8.227 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1596, allocations: 58.86 MB / 442.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0008281/0.1605, allocations: 268.3 kB / 443.1 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.1617, allocations: 0.5541 MB / 443.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.1617, allocations: 4 kB / 443.6 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.1618, allocations: 15.88 kB / 443.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.436e-06/0.1618, allocations: 0 / 443.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006648/0.1625, allocations: 159.7 kB / 443.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.801e-05/0.1626, allocations: 27.97 kB / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.132e-05/0.1626, allocations: 0 / 443.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.783e-05/0.1627, allocations: 23.92 kB / 443.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.164e-05/0.1627, allocations: 11.94 kB / 443.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.1627, allocations: 0 / 443.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002713/0.163, allocations: 159.8 kB / 444 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.725e-05/0.1631, allocations: 59.89 kB / 444.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.089e-05/0.1632, allocations: 49.58 kB / 444.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.1634, allocations: 135.8 kB / 444.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1634, allocations: 4 kB / 444.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1634, allocations: 0 / 444.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1634, allocations: 0 / 444.3 MB, free: 11.8 MB / 382.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.0005839/0.164, allocations: 468.4 kB / 444.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.1641, allocations: 8.031 kB / 444.7 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.524e-05/0.1642, allocations: 19.77 kB / 444.8 MB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.1643, allocations: 182.9 kB / 444.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.1643, allocations: 16 kB / 445 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.1644, allocations: 24 kB / 445 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.1646, allocations: 132.2 kB / 445.1 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1646, allocations: 0 / 445.1 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.1646, allocations: 0 / 445.1 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1647, allocations: 3.984 kB / 445.1 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.1648, allocations: 100.3 kB / 445.2 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002334/0.165, allocations: 230.1 kB / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.1652, allocations: 167 kB / 445.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.1653, allocations: 153.7 kB / 445.7 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.1653, allocations: 0 / 445.7 MB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.1656, allocations: 169.9 kB / 445.9 MB, free: 9.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.182e-06/0.1656, allocations: 0 / 445.9 MB, free: 9.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001099/0.1667, allocations: 0.7616 MB / 446.7 MB, free: 9.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.899e-05/0.1668, allocations: 107.8 kB / 446.8 MB, free: 9.109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.941e-05/0.1668, allocations: 125.6 kB / 446.9 MB, free: 8.977 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.351e-05/0.1669, allocations: 65.69 kB / 447 MB, free: 8.906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.585e-05/0.167, allocations: 93.45 kB / 447.1 MB, free: 8.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.1671, allocations: 134.5 kB / 447.2 MB, free: 8.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.361e-05/0.1671, allocations: 23.94 kB / 447.2 MB, free: 8.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.1673, allocations: 346.8 kB / 447.5 MB, free: 8.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.1676, allocations: 185.8 kB / 447.7 MB, free: 8.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005695/0.1681, allocations: 0.5253 MB / 448.3 MB, free: 7.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004297/0.1686, allocations: 275.7 kB / 448.5 MB, free: 7.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.948e-05/0.1686, allocations: 4 kB / 448.5 MB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001195/0.1698, allocations: 0.731 MB / 449.3 MB, free: 6.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.1699, allocations: 8.969 kB / 449.3 MB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.1699, allocations: 15.94 kB / 449.3 MB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/0.1699, allocations: 20 kB / 449.3 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/0.1703, allocations: 115.7 kB / 449.4 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.849e-05/0.1704, allocations: 27.92 kB / 449.4 MB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.1706, allocations: 67.34 kB / 449.5 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.1707, allocations: 36 kB / 449.5 MB, free: 6.133 MB / 382.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.0002602/0.1709, allocations: 253.3 kB / 449.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.171, allocations: 11.81 kB / 449.8 MB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.907e-05/0.171, allocations: 5.875 kB / 449.8 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.171, allocations: 0 / 449.8 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.171, allocations: 0 / 449.8 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.171, allocations: 0 / 449.8 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.1712, allocations: 205.7 kB / 450 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1712, allocations: 4 kB / 450 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-06/0.1713, allocations: 3.984 kB / 450 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1713, allocations: 0 / 450 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.1713, allocations: 4 kB / 450 MB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1713, allocations: 0 / 450 MB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1713, allocations: 4 kB / 450 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000883/0.1722, allocations: 0.6147 MB / 450.6 MB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.057e-05/0.1722, allocations: 96.8 kB / 450.7 MB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1723, allocations: 3.969 kB / 450.7 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.1723, allocations: 4 kB / 450.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.171e-05/0.1723, allocations: 4 kB / 450.7 MB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.1723, allocations: 0 / 450.7 MB, free: 4.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.631e-05/0.1724, allocations: 79.31 kB / 450.8 MB, free: 4.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1724, allocations: 0 / 450.8 MB, free: 4.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005444/0.1729, allocations: 95.98 kB / 450.9 MB, free: 4.664 MB / 382.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.0007223/0.1737, allocations: 263 kB / 451.2 MB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006186/0.1743, allocations: 464.1 kB / 451.6 MB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1743, allocations: 0 / 451.6 MB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.1745, allocations: 156.4 kB / 451.8 MB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.1746, allocations: 5.578 kB / 451.8 MB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007037/0.1754, allocations: 466.7 kB / 452.2 MB, free: 3.328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.1758, allocations: 0.7375 MB / 453 MB, free: 2.562 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.1759, allocations: 39.59 kB / 453 MB, free: 2.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.092e-05/0.1759, allocations: 23.44 kB / 453 MB, free: 2.496 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1759, allocations: 0 / 453 MB, free: 2.496 MB / 382.1 MB Notification: Performance of Templates: time 0.2796/0.4556, allocations: 2.77 MB / 455.8 MB, free: 45.75 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches