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.001234/0.001234, allocations: 102.4 kB / 16.27 MB, free: 6.102 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.00134/0.00134, allocations: 184.5 kB / 17.19 MB, free: 5.727 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.64/1.64, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.2731/0.2731, allocations: 43.51 MB / 313.9 MB, free: 0.5469 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.001791/0.001791, allocations: 70.58 kB / 382.7 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.142, allocations: 57.79 MB / 440.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.00227/0.1444, allocations: 0.5286 MB / 441 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.1455, allocations: 0.5938 MB / 441.6 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.656e-05/0.1456, allocations: 4 kB / 441.6 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1457, allocations: 15.86 kB / 441.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.1457, allocations: 0 / 441.7 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008949/0.1467, allocations: 194.8 kB / 441.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.471e-05/0.1467, allocations: 23.97 kB / 441.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.1468, allocations: 7.984 kB / 441.9 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.711e-05/0.1468, allocations: 15.94 kB / 441.9 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.383e-05/0.1469, allocations: 16.19 kB / 441.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.1469, allocations: 0 / 441.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.1472, allocations: 163.7 kB / 442.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.445e-05/0.1473, allocations: 60.17 kB / 442.1 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.754e-05/0.1474, allocations: 59.61 kB / 442.2 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003414/0.1478, allocations: 199.4 kB / 442.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1478, allocations: 0 / 442.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1478, allocations: 0 / 442.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1478, allocations: 3.938 kB / 442.4 MB, free: 5.043 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.0005438/0.1483, allocations: 496.6 kB / 442.9 MB, free: 4.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.1484, allocations: 11.89 kB / 442.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.1485, allocations: 20.75 kB / 442.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.53e-05/0.1485, allocations: 176.2 kB / 443.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1486, allocations: 20.38 kB / 443.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.1486, allocations: 20.38 kB / 443.1 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.1488, allocations: 136.4 kB / 443.3 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1488, allocations: 0 / 443.3 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.1488, allocations: 0 / 443.3 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.1488, allocations: 3.938 kB / 443.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.164e-05/0.1489, allocations: 96.34 kB / 443.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.1491, allocations: 234.1 kB / 443.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.1493, allocations: 167 kB / 443.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.1494, allocations: 153.7 kB / 443.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.1494, allocations: 0 / 443.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.1496, allocations: 161.9 kB / 444.1 MB, free: 3.223 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.114e-06/0.1496, allocations: 0 / 444.1 MB, free: 3.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.0009741/0.1506, allocations: 0.7733 MB / 444.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.1507, allocations: 111.8 kB / 444.9 MB, free: 2.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.537e-05/0.1507, allocations: 121.7 kB / 445.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.1508, allocations: 69.67 kB / 445.1 MB, free: 2.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.565e-05/0.1508, allocations: 93.45 kB / 445.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.675e-05/0.1509, allocations: 134.5 kB / 445.3 MB, free: 1.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.151, allocations: 158.7 kB / 445.5 MB, free: 1.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.32e-05/0.1511, allocations: 350.8 kB / 445.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.1513, allocations: 177.9 kB / 446 MB, free: 1.203 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/0.1517, allocations: 0.537 MB / 446.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008834/0.1526, allocations: 0.7866 MB / 447.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.1526, allocations: 4 kB / 447.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00119/0.1538, allocations: 0.7388 MB / 448.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.1539, allocations: 12 kB / 448.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.1539, allocations: 12.91 kB / 448.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.217e-05/0.1539, allocations: 16 kB / 448.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.1543, allocations: 123.7 kB / 448.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/0.1543, allocations: 27.86 kB / 448.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.1546, allocations: 67.38 kB / 448.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.791e-05/0.1546, allocations: 36 kB / 448.4 MB, free: 14.51 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.0002612/0.1549, allocations: 245.5 kB / 448.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.836e-05/0.1549, allocations: 15.75 kB / 448.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.408e-05/0.155, allocations: 5.875 kB / 448.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.155, allocations: 0 / 448.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.155, allocations: 3.938 kB / 448.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.155, allocations: 4 kB / 448.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.1552, allocations: 197.8 kB / 448.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1552, allocations: 0 / 448.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.963e-06/0.1552, allocations: 11.88 kB / 448.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1552, allocations: 0 / 448.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.1552, allocations: 4 kB / 448.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1552, allocations: 0 / 448.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1552, allocations: 7.984 kB / 448.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009343/0.1562, allocations: 0.6109 MB / 449.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.355e-05/0.1562, allocations: 100.7 kB / 449.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.1563, allocations: 0 / 449.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.501e-05/0.1563, allocations: 7.969 kB / 449.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.65e-05/0.1563, allocations: 4 kB / 449.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.1563, allocations: 0 / 449.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.955e-05/0.1564, allocations: 75.28 kB / 449.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1564, allocations: 0 / 449.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005438/0.1569, allocations: 91.98 kB / 449.7 MB, free: 13.04 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.0006294/0.1576, allocations: 263.2 kB / 450 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007004/0.1583, allocations: 472.3 kB / 450.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1583, allocations: 0 / 450.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.1585, allocations: 152.4 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.1587, allocations: 5.438 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006781/0.1593, allocations: 457 kB / 451.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.1597, allocations: 0.7295 MB / 451.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001223/0.1599, allocations: 47.58 kB / 451.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.1599, allocations: 23.44 kB / 451.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.905e-06/0.1599, allocations: 0 / 451.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of Templates: time 0.007562/0.1675, allocations: 2.926 MB / 454.8 MB, free: 7.965 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 -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","/var/lib/jenkins/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