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.001738/0.001738, allocations: 114 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002128/0.002128, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2294/0.2294, allocations: 46.1 MB / 343.8 MB, free: 11.74 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 77.19 kB / 417 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.143, allocations: 62.44 MB / 479.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002609/0.1457, allocations: 0.6031 MB / 480.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.1472, allocations: 0.5874 MB / 480.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.773e-05/0.1473, allocations: 0 / 480.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.1474, allocations: 7.938 kB / 480.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.023e-06/0.1474, allocations: 4 kB / 480.7 MB, free: 4.406 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.001128/0.1486, allocations: 183 kB / 480.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.939e-05/0.1487, allocations: 27.97 kB / 480.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.142e-05/0.1487, allocations: 7.938 kB / 480.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.147e-05/0.1488, allocations: 15.98 kB / 480.9 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.848e-05/0.1489, allocations: 16.48 kB / 480.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.1489, allocations: 0 / 480.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004564/0.1493, allocations: 167.7 kB / 481.1 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.1495, allocations: 68.38 kB / 481.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.661e-05/0.1496, allocations: 59.59 kB / 481.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.1501, allocations: 199.5 kB / 481.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.1501, allocations: 3.938 kB / 481.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1501, allocations: 0 / 481.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.373e-06/0.1501, allocations: 0 / 481.4 MB, free: 3.672 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.0007919/0.1509, allocations: 496.7 kB / 481.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.151, allocations: 12.02 kB / 481.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.844e-05/0.151, allocations: 16.75 kB / 481.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.1512, allocations: 180.2 kB / 482.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.1512, allocations: 12.38 kB / 482.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.1513, allocations: 28.38 kB / 482.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.1516, allocations: 128.4 kB / 482.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1516, allocations: 0 / 482.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.1516, allocations: 3.984 kB / 482.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.1516, allocations: 0 / 482.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.1518, allocations: 96.34 kB / 482.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.1521, allocations: 226.2 kB / 482.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.1523, allocations: 163 kB / 482.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.1525, allocations: 157.7 kB / 482.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.1525, allocations: 0 / 482.9 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.1528, allocations: 169.8 kB / 483.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.333e-06/0.1529, allocations: 0 / 483.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.001513/0.1544, allocations: 0.7772 MB / 483.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.1545, allocations: 99.8 kB / 484 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.903e-05/0.1546, allocations: 125.5 kB / 484.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-05/0.1547, allocations: 73.7 kB / 484.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.1548, allocations: 93.45 kB / 484.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.1549, allocations: 126.5 kB / 484.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.1551, allocations: 166.6 kB / 484.5 MB, free: 368 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.1553, allocations: 342.8 kB / 484.9 MB, free: 16 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.1557, allocations: 185.8 kB / 485 MB, free: 15.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006165/0.1563, allocations: 0.537 MB / 485.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.1574, allocations: 0.7749 MB / 486.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.1574, allocations: 4 kB / 486.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001516/0.1589, allocations: 0.7391 MB / 487.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.1589, allocations: 15.98 kB / 487.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/0.159, allocations: 15.98 kB / 487.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.282e-05/0.159, allocations: 20 kB / 487.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.1596, allocations: 116.4 kB / 487.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.676e-05/0.1597, allocations: 23.88 kB / 487.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003666/0.16, allocations: 79.3 kB / 487.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.433e-05/0.1601, allocations: 40 kB / 487.4 MB, free: 13.13 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.0003459/0.1605, allocations: 241.5 kB / 487.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.1605, allocations: 19.73 kB / 487.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.1606, allocations: 9.812 kB / 487.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1606, allocations: 0 / 487.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1606, allocations: 4 kB / 487.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.1606, allocations: 0 / 487.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.1608, allocations: 189.8 kB / 487.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1608, allocations: 0 / 487.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.374e-06/0.1609, allocations: 3.938 kB / 487.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1609, allocations: 0 / 487.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1609, allocations: 11.98 kB / 487.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1609, allocations: 0 / 487.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1609, allocations: 0 / 487.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.1621, allocations: 0.6108 MB / 488.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.472e-05/0.1622, allocations: 104.7 kB / 488.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.1622, allocations: 0 / 488.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.973e-05/0.1623, allocations: 4 kB / 488.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.785e-05/0.1623, allocations: 32 / 488.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/0.1623, allocations: 4 kB / 488.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.78e-05/0.1624, allocations: 79.28 kB / 488.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1624, allocations: 3.938 kB / 488.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000765/0.1631, allocations: 99.92 kB / 488.8 MB, free: 11.67 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.0008006/0.164, allocations: 260 kB / 489 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009378/0.1649, allocations: 476.5 kB / 489.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1649, allocations: 0 / 489.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.1651, allocations: 160.4 kB / 489.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.1654, allocations: 4 kB / 489.6 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008406/0.1662, allocations: 478.1 kB / 490.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.1667, allocations: 0.7381 MB / 490.9 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.1668, allocations: 39.59 kB / 490.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.385e-05/0.1669, allocations: 23.44 kB / 490.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1669, allocations: 0 / 490.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of Templates: time 0.00961/0.1765, allocations: 2.977 MB / 493.9 MB, free: 6.52 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