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.001263/0.001263, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 204.1 kB / 16.79 MB, free: 6.84 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.673/1.673, allocations: 205.1 MB / 222.6 MB, free: 4.742 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.5098/0.5098, allocations: 43.5 MB / 313.5 MB, free: 8.5 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.001665/0.001666, allocations: 63.91 kB / 382 MB, free: 8.742 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1702, allocations: 57.79 MB / 439.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002032/0.1723, allocations: 0.6048 MB / 440.4 MB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1736, allocations: 0.6006 MB / 441 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.271e-05/0.1736, allocations: 3.938 kB / 441 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.758e-05/0.1737, allocations: 3.938 kB / 441 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.288e-06/0.1737, allocations: 4 kB / 441 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006874/0.1744, allocations: 179.6 kB / 441.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6e-05/0.1745, allocations: 19.98 kB / 441.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.1745, allocations: 4 kB / 441.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.874e-05/0.1746, allocations: 19.92 kB / 441.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.024e-05/0.1746, allocations: 20.47 kB / 441.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.1747, allocations: 0 / 441.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.1749, allocations: 155.8 kB / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.03e-05/0.175, allocations: 60.45 kB / 441.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.261e-05/0.1751, allocations: 55.61 kB / 441.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.1754, allocations: 211.4 kB / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1754, allocations: 0 / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1754, allocations: 0 / 441.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1754, allocations: 0 / 441.7 MB, free: 12.91 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.0006196/0.176, allocations: 492.7 kB / 442.2 MB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1761, allocations: 8.031 kB / 442.2 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.1762, allocations: 16.75 kB / 442.2 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.1763, allocations: 180.1 kB / 442.4 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.1763, allocations: 16.38 kB / 442.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.1764, allocations: 20.38 kB / 442.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.1766, allocations: 140.3 kB / 442.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1766, allocations: 0 / 442.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.1766, allocations: 0 / 442.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1766, allocations: 0 / 442.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.1767, allocations: 96.41 kB / 442.7 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002145/0.1769, allocations: 222.2 kB / 442.9 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.1771, allocations: 175 kB / 443.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.1772, allocations: 153.7 kB / 443.2 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.1773, allocations: 4 kB / 443.2 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.1775, allocations: 169.9 kB / 443.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.092e-06/0.1776, allocations: 0 / 443.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.00115/0.1787, allocations: 0.7733 MB / 444.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.1788, allocations: 107.8 kB / 444.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.509e-05/0.1789, allocations: 117.7 kB / 444.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.107e-05/0.179, allocations: 77.7 kB / 444.5 MB, free: 9.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.1791, allocations: 89.45 kB / 444.6 MB, free: 9.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.1792, allocations: 138.5 kB / 444.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.1794, allocations: 158.7 kB / 444.8 MB, free: 9.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1796, allocations: 350.7 kB / 445.2 MB, free: 9.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.1799, allocations: 185.8 kB / 445.4 MB, free: 9.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007308/0.1806, allocations: 0.5331 MB / 445.9 MB, free: 8.367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.1819, allocations: 0.7827 MB / 446.7 MB, free: 7.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.1819, allocations: 4 kB / 446.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00125/0.1832, allocations: 0.7391 MB / 447.4 MB, free: 6.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.1833, allocations: 12 kB / 447.4 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.1833, allocations: 12 kB / 447.5 MB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.403e-05/0.1833, allocations: 16 kB / 447.5 MB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.1837, allocations: 120.3 kB / 447.6 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.921e-05/0.1837, allocations: 23.92 kB / 447.6 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.184, allocations: 67.34 kB / 447.7 MB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.018e-05/0.184, allocations: 40 kB / 447.7 MB, free: 6.383 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.000254/0.1843, allocations: 249.3 kB / 448 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.1843, allocations: 15.75 kB / 448 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.1844, allocations: 9.812 kB / 448 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1844, allocations: 0 / 448 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1844, allocations: 0 / 448 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1844, allocations: 0 / 448 MB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.1846, allocations: 197.8 kB / 448.2 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1846, allocations: 0 / 448.2 MB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/0.1846, allocations: 3.938 kB / 448.2 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1846, allocations: 0 / 448.2 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.1846, allocations: 12 kB / 448.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1846, allocations: 0 / 448.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1846, allocations: 0 / 448.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.1858, allocations: 0.6148 MB / 448.8 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/0.1858, allocations: 100.7 kB / 448.9 MB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.1859, allocations: 0 / 448.9 MB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.384e-05/0.1859, allocations: 0 / 448.9 MB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.1859, allocations: 4 kB / 448.9 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.186, allocations: 4.031 kB / 448.9 MB, free: 5.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.184e-05/0.186, allocations: 75.28 kB / 449 MB, free: 5.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.186, allocations: 0 / 449 MB, free: 5.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006581/0.1867, allocations: 95.98 kB / 449.1 MB, free: 4.918 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.0007231/0.1874, allocations: 271.1 kB / 449.3 MB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007255/0.1882, allocations: 465.2 kB / 449.8 MB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1882, allocations: 0 / 449.8 MB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.1884, allocations: 160.4 kB / 450 MB, free: 4.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001901/0.1886, allocations: 15.81 kB / 450 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008032/0.1894, allocations: 475.3 kB / 450.4 MB, free: 3.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.1899, allocations: 0.7258 MB / 451.2 MB, free: 2.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.19, allocations: 47.53 kB / 451.2 MB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.305e-05/0.19, allocations: 23.44 kB / 451.2 MB, free: 2.727 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1901, allocations: 4 kB / 451.2 MB, free: 2.723 MB / 382.1 MB Notification: Performance of Templates: time 0.2542/0.4443, allocations: 2.824 MB / 454.1 MB, free: 48.56 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