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.0009808/0.0009807, allocations: 91.12 kB / 17.35 MB, free: 6.375 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.001323/0.001323, allocations: 180.2 kB / 18.26 MB, free: 5.52 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.48/1.48, allocations: 223.3 MB / 242.3 MB, free: 228 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.2293/0.2293, allocations: 44.24 MB / 337.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003552, allocations: 8 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.142, allocations: 61.92 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007853/0.1429, allocations: 270.7 kB / 472.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.1443, allocations: 0.61 MB / 473.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.081e-05/0.1443, allocations: 3.938 kB / 473.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.1445, allocations: 0 / 473.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.1445, allocations: 0 / 473.1 MB, free: 12.48 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.0007986/0.1453, allocations: 171.6 kB / 473.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.815e-05/0.1454, allocations: 27.95 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.417e-05/0.1454, allocations: 4 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.004e-05/0.1455, allocations: 11.94 kB / 473.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.266e-05/0.1455, allocations: 16.48 kB / 473.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.1456, allocations: 8 kB / 473.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000318/0.1459, allocations: 159.8 kB / 473.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.146, allocations: 60.44 kB / 473.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.842e-05/0.1461, allocations: 85.31 kB / 473.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.1464, allocations: 199.4 kB / 473.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.1464, allocations: 0 / 473.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1465, allocations: 4 kB / 473.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1465, allocations: 0 / 473.9 MB, free: 11.73 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.0005803/0.147, allocations: 470.9 kB / 474.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1471, allocations: 12.03 kB / 474.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.068e-05/0.1472, allocations: 16.75 kB / 474.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.1473, allocations: 184.1 kB / 474.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.1473, allocations: 16.38 kB / 474.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.099e-05/0.1474, allocations: 20.31 kB / 474.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.1476, allocations: 132.4 kB / 474.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1476, allocations: 0 / 474.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.1476, allocations: 0 / 474.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1476, allocations: 0 / 474.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.872e-05/0.1477, allocations: 96.41 kB / 474.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002325/0.148, allocations: 230.2 kB / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/0.1481, allocations: 171 kB / 475.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.1483, allocations: 153.7 kB / 475.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.567e-06/0.1483, allocations: 4 kB / 475.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.1486, allocations: 161.9 kB / 475.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 3.146e-06/0.1486, allocations: 4 kB / 475.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001127/0.1497, allocations: 0.7771 MB / 476.3 MB, free: 9.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.1498, allocations: 103.8 kB / 476.4 MB, free: 9.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.458e-05/0.1499, allocations: 121.6 kB / 476.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.206e-05/0.15, allocations: 73.67 kB / 476.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.15, allocations: 89.45 kB / 476.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1502, allocations: 130.5 kB / 476.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.1503, allocations: 97.66 kB / 476.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1504, allocations: 346.8 kB / 477.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.1507, allocations: 185.9 kB / 477.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005571/0.1513, allocations: 0.5331 MB / 477.9 MB, free: 7.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.1523, allocations: 0.7788 MB / 478.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.56e-05/0.1524, allocations: 4 kB / 478.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00115/0.1535, allocations: 0.7435 MB / 479.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.1536, allocations: 12 kB / 479.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.1536, allocations: 16.12 kB / 479.5 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.1536, allocations: 16 kB / 479.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/0.154, allocations: 115.7 kB / 479.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.81e-05/0.154, allocations: 27.92 kB / 479.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.1543, allocations: 63.38 kB / 479.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/0.1544, allocations: 40 kB / 479.7 MB, free: 5.305 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 (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.0002694/0.1547, allocations: 245.4 kB / 480 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.1547, allocations: 15.75 kB / 480 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.1547, allocations: 5.875 kB / 480 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1547, allocations: 3.984 kB / 480 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1547, allocations: 0 / 480 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1547, allocations: 3.984 kB / 480 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.1549, allocations: 205.8 kB / 480.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1549, allocations: 0 / 480.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-06/0.1549, allocations: 7.875 kB / 480.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1549, allocations: 0 / 480.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.155, allocations: 0 / 480.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.155, allocations: 4 kB / 480.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.155, allocations: 0 / 480.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009075/0.1559, allocations: 0.6186 MB / 480.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.156, allocations: 104.8 kB / 480.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.156, allocations: 4 kB / 480.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.377e-05/0.156, allocations: 0 / 480.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-05/0.1561, allocations: 4 kB / 481 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.1561, allocations: 3.984 kB / 481 MB, free: 3.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.261e-05/0.1561, allocations: 75.28 kB / 481 MB, free: 3.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1561, allocations: 0 / 481 MB, free: 3.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005686/0.1567, allocations: 92 kB / 481.1 MB, free: 3.82 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 (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.0006429/0.1574, allocations: 264.3 kB / 481.4 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007338/0.1581, allocations: 461.1 kB / 481.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1581, allocations: 4 kB / 481.8 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.1583, allocations: 157 kB / 482 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.1585, allocations: 11.92 kB / 482 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007803/0.1593, allocations: 470.8 kB / 482.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.1597, allocations: 0.7298 MB / 483.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.1598, allocations: 43.58 kB / 483.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.1599, allocations: 23.44 kB / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1599, allocations: 0 / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of Templates: time 0.008416/0.1683, allocations: 2.868 MB / 486.1 MB, free: 14.8 MB / 366.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches