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.00126/0.001259, allocations: 107.5 kB / 17.03 MB, free: 5.664 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.001117/0.001117, allocations: 192.1 kB / 17.96 MB, free: 5.066 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.652/1.652, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2409/0.2409, allocations: 43.53 MB / 314.7 MB, free: 468 kB / 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.001616/0.001616, allocations: 68.41 kB / 384.2 MB, free: 56.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1553, allocations: 57.79 MB / 442 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002317/0.1577, allocations: 0.5378 MB / 442.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1589, allocations: 0.5883 MB / 443.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.1589, allocations: 0 / 443.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.1591, allocations: 11.92 kB / 443.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.26e-06/0.1591, allocations: 3.938 kB / 443.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000804/0.1599, allocations: 198.6 kB / 443.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.4e-05/0.16, allocations: 31.91 kB / 443.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.625e-05/0.1601, allocations: 7.984 kB / 443.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.626e-05/0.1601, allocations: 11.94 kB / 443.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.701e-05/0.1601, allocations: 16.25 kB / 443.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.1602, allocations: 0 / 443.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002677/0.1604, allocations: 163.7 kB / 443.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.63e-05/0.1605, allocations: 56.17 kB / 443.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.569e-05/0.1606, allocations: 55.61 kB / 443.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.1609, allocations: 207.4 kB / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1609, allocations: 0 / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1609, allocations: 0 / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.161, allocations: 4 kB / 443.8 MB, free: 4.246 MB / 318.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.0005262/0.1615, allocations: 492.4 kB / 444.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1615, allocations: 11.89 kB / 444.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.1616, allocations: 20.75 kB / 444.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.1617, allocations: 172.2 kB / 444.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.1617, allocations: 16.38 kB / 444.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.772e-05/0.1617, allocations: 24.38 kB / 444.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.1619, allocations: 132.3 kB / 444.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1619, allocations: 4 kB / 444.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.1619, allocations: 0 / 444.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.162, allocations: 0 / 444.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.103e-05/0.162, allocations: 96.41 kB / 444.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.1622, allocations: 230.2 kB / 445 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.1623, allocations: 170.9 kB / 445.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.961e-05/0.1624, allocations: 153.7 kB / 445.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.1624, allocations: 3.938 kB / 445.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.1626, allocations: 173.9 kB / 445.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 1.112e-06/0.1626, allocations: 0 / 445.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.0009043/0.1635, allocations: 0.7694 MB / 446.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.1636, allocations: 107.8 kB / 446.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.104e-05/0.1637, allocations: 117.7 kB / 446.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.635e-05/0.1637, allocations: 69.67 kB / 446.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/0.1638, allocations: 89.45 kB / 446.6 MB, free: 1.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.737e-05/0.1639, allocations: 142.5 kB / 446.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.164, allocations: 154.7 kB / 446.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1641, allocations: 350.8 kB / 447.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.1644, allocations: 181.8 kB / 447.5 MB, free: 420 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005298/0.1649, allocations: 0.5409 MB / 448 MB, free: 15.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009599/0.1659, allocations: 0.771 MB / 448.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.1659, allocations: 11.94 kB / 448.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001091/0.167, allocations: 0.7471 MB / 449.5 MB, free: 14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.167, allocations: 9.25 kB / 449.5 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.167, allocations: 12 kB / 449.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/0.1671, allocations: 16 kB / 449.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003731/0.1675, allocations: 115.8 kB / 449.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.268e-05/0.1675, allocations: 27.86 kB / 449.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.1677, allocations: 63.38 kB / 449.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.161e-05/0.1678, allocations: 44.38 kB / 449.8 MB, free: 13.72 MB / 334.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.0003655/0.1682, allocations: 245.4 kB / 450 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.1682, allocations: 15.75 kB / 450.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.059e-05/0.1683, allocations: 9.875 kB / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1683, allocations: 0 / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1683, allocations: 0 / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1683, allocations: 0 / 450.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.1685, allocations: 201.8 kB / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1685, allocations: 0 / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.071e-05/0.1685, allocations: 11.94 kB / 450.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1685, allocations: 0 / 450.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1685, allocations: 0 / 450.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1686, allocations: 3.938 kB / 450.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1686, allocations: 4 kB / 450.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009789/0.1695, allocations: 0.6109 MB / 450.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.789e-05/0.1696, allocations: 104.7 kB / 451 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.1697, allocations: 4 kB / 451 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.1697, allocations: 0 / 451 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.1697, allocations: 0 / 451 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.1697, allocations: 0 / 451 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.54e-05/0.1698, allocations: 87.25 kB / 451.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1698, allocations: 0 / 451.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005724/0.1704, allocations: 91.98 kB / 451.2 MB, free: 12.25 MB / 334.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.0007941/0.1712, allocations: 262.9 kB / 451.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008259/0.172, allocations: 465.5 kB / 451.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.172, allocations: 4.188 kB / 451.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.1722, allocations: 160.4 kB / 452.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.1724, allocations: 4 kB / 452.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006813/0.1731, allocations: 445 kB / 452.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.1734, allocations: 0.7295 MB / 453.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.298e-05/0.1735, allocations: 47.64 kB / 453.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.1736, allocations: 23.38 kB / 453.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1736, allocations: 4 kB / 453.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Templates: time 0.007707/0.1813, allocations: 2.93 MB / 456.2 MB, free: 7.172 MB / 334.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches