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.001164/0.001164, allocations: 111.9 kB / 17.08 MB, free: 5.988 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.001032/0.001032, allocations: 195 kB / 18.01 MB, free: 5.074 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.415/1.415, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.2057/0.2057, allocations: 43.53 MB / 314.8 MB, free: 448 kB / 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.002418/0.002418, allocations: 65.47 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1519, allocations: 57.79 MB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.002596/0.1545, allocations: 0.5445 MB / 0.4891 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.1563, allocations: 0.5899 MB / 0.4896 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.517e-05/0.1564, allocations: 3.938 kB / 0.4897 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1566, allocations: 7.938 kB / 0.4897 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.02e-05/0.1566, allocations: 0 / 0.4897 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.1578, allocations: 203.5 kB / 0.4899 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.64e-05/0.158, allocations: 23.97 kB / 0.4899 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.286e-05/0.158, allocations: 7.984 kB / 0.4899 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.19e-05/0.1581, allocations: 15.92 kB / 0.4899 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.649e-05/0.1582, allocations: 12.22 kB / 0.4899 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.1582, allocations: 3.938 kB / 0.4899 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004393/0.1586, allocations: 163.8 kB / 0.4901 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.1588, allocations: 60.16 kB / 0.4901 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.614e-05/0.1589, allocations: 55.61 kB / 0.4902 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004501/0.1593, allocations: 203.4 kB / 0.4904 GB, free: 9.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1594, allocations: 4 kB / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1594, allocations: 0 / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1594, allocations: 0 / 0.4904 GB, free: 9.898 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.0008383/0.1602, allocations: 492.4 kB / 0.4908 GB, free: 9.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1603, allocations: 15.83 kB / 0.4909 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.1604, allocations: 20.75 kB / 0.4909 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.1606, allocations: 176.2 kB / 0.491 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.1606, allocations: 20.31 kB / 0.4911 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.166e-05/0.1606, allocations: 24.38 kB / 0.4911 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.1609, allocations: 132.4 kB / 0.4912 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1609, allocations: 0 / 0.4912 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1609, allocations: 0 / 0.4912 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.161, allocations: 3.984 kB / 0.4912 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.1611, allocations: 92.41 kB / 0.4913 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003109/0.1614, allocations: 230.2 kB / 0.4915 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.1617, allocations: 166.9 kB / 0.4917 GB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.1619, allocations: 157.7 kB / 0.4918 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-06/0.1619, allocations: 0 / 0.4918 GB, free: 8.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003469/0.1623, allocations: 165.9 kB / 0.492 GB, free: 8.078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 2.164e-06/0.1623, allocations: 0 / 0.492 GB, free: 8.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.00177/0.164, allocations: 0.7733 MB / 0.4928 GB, free: 7.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.1642, allocations: 107.7 kB / 0.4929 GB, free: 7.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.754e-05/0.1643, allocations: 121.6 kB / 0.493 GB, free: 7.051 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.684e-05/0.1644, allocations: 69.72 kB / 0.493 GB, free: 6.977 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.206e-05/0.1645, allocations: 93.45 kB / 0.4931 GB, free: 6.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.1647, allocations: 138.5 kB / 0.4933 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002675/0.1649, allocations: 150.7 kB / 0.4934 GB, free: 6.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.1652, allocations: 350.8 kB / 0.4937 GB, free: 6.234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000443/0.1656, allocations: 181.9 kB / 0.4939 GB, free: 6.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008205/0.1665, allocations: 0.5409 MB / 0.4944 GB, free: 5.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.1679, allocations: 0.7788 MB / 0.4952 GB, free: 4.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.852e-05/0.1679, allocations: 4 kB / 0.4952 GB, free: 4.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001779/0.1697, allocations: 0.7469 MB / 0.4959 GB, free: 3.652 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.1697, allocations: 8 kB / 0.4959 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/0.1698, allocations: 12 kB / 0.496 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.075e-05/0.1698, allocations: 16 kB / 0.496 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005729/0.1704, allocations: 119.7 kB / 0.4961 GB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.688e-05/0.1705, allocations: 24.47 kB / 0.4961 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.1709, allocations: 71.38 kB / 0.4962 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-05/0.171, allocations: 44 kB / 0.4962 GB, free: 3.363 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.0003807/0.1714, allocations: 253.3 kB / 0.4965 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.1714, allocations: 15.73 kB / 0.4965 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.861e-05/0.1715, allocations: 13.88 kB / 0.4965 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1715, allocations: 0 / 0.4965 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1715, allocations: 0 / 0.4965 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1715, allocations: 0 / 0.4965 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.1718, allocations: 185.8 kB / 0.4967 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1718, allocations: 0 / 0.4967 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.269e-05/0.1718, allocations: 7.938 kB / 0.4967 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.1718, allocations: 0 / 0.4967 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.1718, allocations: 4 kB / 0.4967 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1719, allocations: 0 / 0.4967 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1719, allocations: 0 / 0.4967 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.1733, allocations: 0.6148 MB / 0.4973 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.673e-05/0.1734, allocations: 100.7 kB / 0.4974 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.772e-05/0.1734, allocations: 4 kB / 0.4974 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.446e-05/0.1734, allocations: 3.984 kB / 0.4974 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.1735, allocations: 0 / 0.4974 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.1735, allocations: 4.031 kB / 0.4974 GB, free: 2.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.024e-05/0.1736, allocations: 79.28 kB / 0.4975 GB, free: 1.984 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1736, allocations: 0 / 0.4975 GB, free: 1.984 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008733/0.1744, allocations: 95.98 kB / 0.4975 GB, free: 1.891 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.0008455/0.1753, allocations: 263 kB / 0.4978 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1763, allocations: 473.3 kB / 0.4983 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1764, allocations: 3.938 kB / 0.4983 GB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.1766, allocations: 160.3 kB / 0.4984 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.1768, allocations: 11.98 kB / 0.4984 GB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008752/0.1777, allocations: 486.5 kB / 0.4989 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.1782, allocations: 0.7338 MB / 0.4996 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.975e-05/0.1782, allocations: 27.38 kB / 0.4996 GB, free: 15.71 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1782, allocations: 0 / 0.4996 GB, free: 15.71 MB / 398.1 MB Notification: Performance of Templates: time 0.01014/0.1884, allocations: 3.784 MB / 0.5033 GB, free: 11.93 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomNumbers/TestRandomNumbers.csv","/var/lib/jenkins1/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