Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001414, allocations: 93.22 kB / 17.35 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 200 kB / 18.28 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2448/0.2448, allocations: 46.18 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004118, allocations: 8 kB / 419.5 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1471, allocations: 63.57 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007302/0.1479, allocations: 266.7 kB / 483.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.149, allocations: 0.6031 MB / 483.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.791e-05/0.1491, allocations: 0 / 483.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.239e-05/0.1492, allocations: 7.938 kB / 484 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.998e-06/0.1492, allocations: 0 / 484 MB, free: 3.281 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0005835/0.1498, allocations: 167.6 kB / 484.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.399e-05/0.1498, allocations: 27.98 kB / 484.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.203e-05/0.1499, allocations: 3.984 kB / 484.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.383e-05/0.1499, allocations: 19.92 kB / 484.2 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.1499, allocations: 16.48 kB / 484.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.15, allocations: 4 kB / 484.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002521/0.1502, allocations: 159.8 kB / 484.3 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.542e-05/0.1503, allocations: 60.39 kB / 484.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.224e-05/0.1504, allocations: 81.31 kB / 484.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.1507, allocations: 203.4 kB / 484.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1507, allocations: 0 / 484.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1507, allocations: 0 / 484.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.1507, allocations: 4 kB / 484.7 MB, free: 2.539 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.0005017/0.1512, allocations: 468.7 kB / 485.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1513, allocations: 12.88 kB / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.1513, allocations: 16.75 kB / 485.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.1514, allocations: 176.2 kB / 485.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.1515, allocations: 20.36 kB / 485.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.1515, allocations: 16.38 kB / 485.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.1517, allocations: 140.3 kB / 485.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1517, allocations: 4 kB / 485.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1517, allocations: 3.938 kB / 485.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1517, allocations: 0 / 485.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.504e-05/0.1518, allocations: 96.41 kB / 485.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002044/0.152, allocations: 226.2 kB / 485.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.1522, allocations: 167 kB / 486 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.1524, allocations: 153.7 kB / 486.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.1524, allocations: 0 / 486.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.1526, allocations: 173.9 kB / 486.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.202e-06/0.1527, allocations: 0 / 486.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001192/0.1539, allocations: 0.7695 MB / 487.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.345e-05/0.154, allocations: 107.7 kB / 487.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.822e-05/0.154, allocations: 117.6 kB / 487.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.489e-05/0.1541, allocations: 73.67 kB / 487.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.02e-05/0.1542, allocations: 89.45 kB / 487.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.1543, allocations: 138.6 kB / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.1544, allocations: 97.66 kB / 487.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1545, allocations: 350.7 kB / 488 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.1548, allocations: 181.9 kB / 488.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004604/0.1553, allocations: 0.5408 MB / 488.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008392/0.1561, allocations: 0.7671 MB / 489.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.1561, allocations: 8 kB / 489.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001192/0.1573, allocations: 0.7472 MB / 490.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.1574, allocations: 8 kB / 490.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.1574, allocations: 12 kB / 490.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.1574, allocations: 20 kB / 490.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.1578, allocations: 111.8 kB / 490.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-05/0.1578, allocations: 31.86 kB / 490.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.158, allocations: 67.38 kB / 490.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.1581, allocations: 40 kB / 490.6 MB, free: 12.09 MB / 366.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.0002304/0.1583, allocations: 245.7 kB / 490.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.1583, allocations: 15.75 kB / 490.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.774e-05/0.1583, allocations: 9.875 kB / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1584, allocations: 0 / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1584, allocations: 0 / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.1584, allocations: 0 / 490.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.1585, allocations: 201.8 kB / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1585, allocations: 0 / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.889e-06/0.1586, allocations: 3.938 kB / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.1586, allocations: 0 / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.1586, allocations: 0 / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1586, allocations: 0 / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1586, allocations: 0 / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008679/0.1595, allocations: 0.6264 MB / 491.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.285e-05/0.1595, allocations: 104.7 kB / 491.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.1595, allocations: 3.938 kB / 491.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.253e-05/0.1596, allocations: 0 / 491.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.655e-05/0.1596, allocations: 0 / 491.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.1596, allocations: 4 kB / 491.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.949e-05/0.1596, allocations: 75.28 kB / 491.8 MB, free: 10.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1596, allocations: 4.031 kB / 491.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000472/0.1601, allocations: 95.98 kB / 491.9 MB, free: 10.62 MB / 366.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.0004909/0.1606, allocations: 259.4 kB / 492.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005357/0.1612, allocations: 461.6 kB / 492.7 MB, free: 9.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1612, allocations: 4.062 kB / 492.7 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.1613, allocations: 160.4 kB / 492.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.1615, allocations: 13.75 kB / 492.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005786/0.162, allocations: 466.9 kB / 493.3 MB, free: 9.289 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1624, allocations: 0.7298 MB / 494 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.897e-05/0.1625, allocations: 47.58 kB / 494.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.372e-05/0.1625, allocations: 23.44 kB / 494.1 MB, free: 8.465 MB / 366.1 MB Notification: Performance of SimCode: time 3.497e-06/0.1625, allocations: 0 / 494.1 MB, free: 8.465 MB / 366.1 MB Notification: Performance of Templates: time 0.006137/0.1687, allocations: 2.868 MB / 496.9 MB, free: 5.594 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches