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.001448/0.001448, allocations: 101.5 kB / 15.98 MB, free: 6.352 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.001553/0.001553, allocations: 194.1 kB / 16.91 MB, free: 6.188 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.637/1.637, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.426/0.426, allocations: 43.49 MB / 313.6 MB, free: 8.234 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.001435/0.001435, allocations: 63.91 kB / 382.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1682, allocations: 57.79 MB / 440 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002536/0.1709, allocations: 0.6008 MB / 440.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.1725, allocations: 0.5889 MB / 441.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.156e-05/0.1725, allocations: 0 / 441.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.1727, allocations: 11.94 kB / 441.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.768e-06/0.1727, allocations: 3.938 kB / 441.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008905/0.1736, allocations: 183.6 kB / 441.4 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.742e-05/0.1737, allocations: 19.98 kB / 441.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.703e-05/0.1738, allocations: 7.984 kB / 441.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.545e-05/0.1738, allocations: 15.92 kB / 441.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.929e-05/0.1739, allocations: 20.48 kB / 441.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.1739, allocations: 0 / 441.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003204/0.1742, allocations: 163.8 kB / 441.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1744, allocations: 56.45 kB / 441.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.257e-05/0.1745, allocations: 59.61 kB / 441.7 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.1748, allocations: 203.4 kB / 441.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1748, allocations: 0 / 441.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1748, allocations: 0 / 441.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.1748, allocations: 0 / 441.9 MB, free: 12.57 MB / 382.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.000769/0.1756, allocations: 0.4928 MB / 442.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.1757, allocations: 11.89 kB / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.616e-05/0.1757, allocations: 16.75 kB / 442.4 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.1759, allocations: 180.2 kB / 442.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.1759, allocations: 20.38 kB / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.1759, allocations: 16.38 kB / 442.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.1762, allocations: 140.3 kB / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1762, allocations: 0 / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1762, allocations: 0 / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.758e-06/0.1762, allocations: 0 / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.1764, allocations: 96.41 kB / 442.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002682/0.1766, allocations: 226.2 kB / 443.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.1768, allocations: 167 kB / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.177, allocations: 157.7 kB / 443.4 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.177, allocations: 0 / 443.4 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002975/0.1773, allocations: 165.9 kB / 443.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.012e-06/0.1773, allocations: 0 / 443.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001148/0.1784, allocations: 0.7694 MB / 444.4 MB, free: 9.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.1786, allocations: 107.8 kB / 444.5 MB, free: 9.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.017e-05/0.1787, allocations: 121.7 kB / 444.6 MB, free: 9.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.072e-05/0.1788, allocations: 69.67 kB / 444.6 MB, free: 9.645 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.1788, allocations: 93.45 kB / 444.7 MB, free: 9.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.179, allocations: 134.5 kB / 444.9 MB, free: 9.418 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.1792, allocations: 158.7 kB / 445 MB, free: 9.254 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1794, allocations: 346.8 kB / 445.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.1796, allocations: 181.9 kB / 445.5 MB, free: 8.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005483/0.1802, allocations: 0.5408 MB / 446.1 MB, free: 8.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009024/0.1811, allocations: 0.7788 MB / 446.9 MB, free: 7.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.1811, allocations: 4 kB / 446.9 MB, free: 7.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001031/0.1822, allocations: 0.7389 MB / 447.6 MB, free: 6.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.1822, allocations: 15.94 kB / 447.6 MB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.1822, allocations: 12.84 kB / 447.6 MB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.299e-05/0.1823, allocations: 16 kB / 447.6 MB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/0.1827, allocations: 119.8 kB / 447.8 MB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.444e-05/0.1827, allocations: 27.86 kB / 447.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.1829, allocations: 63.34 kB / 447.9 MB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/0.183, allocations: 43.94 kB / 447.9 MB, free: 6.035 MB / 382.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.0003115/0.1833, allocations: 249.4 kB / 448.1 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.1833, allocations: 15.75 kB / 448.2 MB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.1834, allocations: 5.875 kB / 448.2 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1834, allocations: 0 / 448.2 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.1834, allocations: 0 / 448.2 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1834, allocations: 4 kB / 448.2 MB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.1836, allocations: 193.8 kB / 448.4 MB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1837, allocations: 4 kB / 448.4 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.952e-06/0.1837, allocations: 7.938 kB / 448.4 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1837, allocations: 0 / 448.4 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.1837, allocations: 4 kB / 448.4 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1837, allocations: 0 / 448.4 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1837, allocations: 0 / 448.4 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009433/0.1846, allocations: 0.6109 MB / 449 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.865e-05/0.1847, allocations: 104.7 kB / 449.1 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.1848, allocations: 0 / 449.1 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.418e-05/0.1848, allocations: 7.969 kB / 449.1 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.1848, allocations: 4 kB / 449.1 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.1848, allocations: 0 / 449.1 MB, free: 4.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.573e-05/0.1849, allocations: 75.28 kB / 449.2 MB, free: 4.664 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1849, allocations: 0 / 449.2 MB, free: 4.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005837/0.1855, allocations: 95.98 kB / 449.3 MB, free: 4.57 MB / 382.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.0006459/0.1861, allocations: 262.2 kB / 449.5 MB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006674/0.1868, allocations: 480.4 kB / 450 MB, free: 3.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1868, allocations: 0 / 450 MB, free: 3.852 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.187, allocations: 156.4 kB / 450.1 MB, free: 3.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/0.1872, allocations: 4 kB / 450.1 MB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006826/0.1879, allocations: 486.1 kB / 450.6 MB, free: 3.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.1883, allocations: 0.7334 MB / 451.4 MB, free: 2.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.1884, allocations: 47.58 kB / 451.4 MB, free: 2.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.1884, allocations: 19.44 kB / 451.4 MB, free: 2.371 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1885, allocations: 3.938 kB / 451.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of Templates: time 0.2611/0.4496, allocations: 2.918 MB / 454.3 MB, free: 46.05 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches