Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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="empty",numberOfIntervals=2,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.0008803/0.0008805, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.007097/0.007097, allocations: 172.3 kB / 16.26 MB, free: 6.613 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.811/1.811, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3824/0.3824, allocations: 40 MB / 310.7 MB, free: 9.879 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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008771/0.0008771, allocations: 16 kB / 379.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1593, allocations: 57.96 MB / 437.4 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007931/0.1601, allocations: 273.9 kB / 437.7 MB, free: 1.926 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.1616, allocations: 0.5912 MB / 438.3 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.756e-05/0.1617, allocations: 3.938 kB / 438.3 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.1618, allocations: 4 kB / 438.3 MB, free: 1.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.266e-06/0.1618, allocations: 0 / 438.3 MB, free: 1.32 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:820:5-907: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.0009031/0.1627, allocations: 175.6 kB / 438.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.365e-05/0.1628, allocations: 23.97 kB / 438.5 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.489e-05/0.1629, allocations: 4 kB / 438.5 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.757e-05/0.163, allocations: 11.92 kB / 438.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.629e-05/0.163, allocations: 20.53 kB / 438.5 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.1631, allocations: 7.938 kB / 438.5 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003739/0.1634, allocations: 151.8 kB / 438.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.1636, allocations: 60.42 kB / 438.7 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.1637, allocations: 85.25 kB / 438.8 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1641, allocations: 199.4 kB / 439 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1641, allocations: 4 kB / 439 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.1642, allocations: 0 / 439 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.1642, allocations: 0 / 439 MB, free: 0.5859 MB / 366.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.000649/0.1648, allocations: 464.7 kB / 439.5 MB, free: 84 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.1649, allocations: 8.031 kB / 439.5 MB, free: 76 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.165, allocations: 20.73 kB / 439.5 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.1651, allocations: 180.1 kB / 439.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.1652, allocations: 16.38 kB / 439.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.1652, allocations: 20.38 kB / 439.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.1655, allocations: 132.4 kB / 439.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.1655, allocations: 0 / 439.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.1655, allocations: 0 / 439.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1655, allocations: 3.984 kB / 439.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.1657, allocations: 96.41 kB / 439.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002902/0.166, allocations: 226.1 kB / 440.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000184/0.1661, allocations: 170.9 kB / 440.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.1663, allocations: 157.7 kB / 440.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.798e-06/0.1663, allocations: 4 kB / 440.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.1666, allocations: 165.9 kB / 440.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=54): time 1.763e-06/0.1666, allocations: 0 / 440.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.001167/0.1678, allocations: 0.7771 MB / 441.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.056e-05/0.1679, allocations: 103.8 kB / 441.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.707e-05/0.1679, allocations: 121.6 kB / 441.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.619e-05/0.168, allocations: 69.69 kB / 441.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.8e-05/0.1681, allocations: 93.48 kB / 441.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.1682, allocations: 138.5 kB / 441.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.1683, allocations: 93.67 kB / 442 MB, free: 13.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1685, allocations: 346.8 kB / 442.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/0.1688, allocations: 185.9 kB / 442.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000581/0.1694, allocations: 0.5331 MB / 443.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.1705, allocations: 0.7827 MB / 443.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-05/0.1705, allocations: 4 kB / 443.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001293/0.1718, allocations: 0.7393 MB / 444.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.1719, allocations: 12 kB / 444.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-05/0.1719, allocations: 12 kB / 444.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.411e-05/0.172, allocations: 16 kB / 444.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.1724, allocations: 119.7 kB / 444.7 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.732e-05/0.1724, allocations: 19.94 kB / 444.8 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002673/0.1727, allocations: 67.81 kB / 444.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.1728, allocations: 40 kB / 444.9 MB, free: 10.15 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.0003022/0.1731, allocations: 245.4 kB / 445.1 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.1731, allocations: 23.73 kB / 445.1 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.069e-05/0.1732, allocations: 9.875 kB / 445.1 MB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1732, allocations: 4 kB / 445.2 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.1732, allocations: 0 / 445.2 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.1732, allocations: 4 kB / 445.2 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.1734, allocations: 189.8 kB / 445.3 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1734, allocations: 0 / 445.3 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.076e-06/0.1734, allocations: 3.938 kB / 445.3 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1735, allocations: 0 / 445.3 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1735, allocations: 7.938 kB / 445.4 MB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1735, allocations: 4 kB / 445.4 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1735, allocations: 0 / 445.4 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008734/0.1744, allocations: 0.6148 MB / 446 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.1744, allocations: 100.7 kB / 446.1 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.1745, allocations: 0 / 446.1 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.416e-05/0.1745, allocations: 3.984 kB / 446.1 MB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.949e-05/0.1745, allocations: 4 kB / 446.1 MB, free: 8.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.1745, allocations: 0 / 446.1 MB, free: 8.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.847e-05/0.1746, allocations: 79.31 kB / 446.2 MB, free: 8.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1746, allocations: 0 / 446.2 MB, free: 8.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005363/0.1751, allocations: 95.98 kB / 446.2 MB, free: 8.684 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.0006186/0.1757, allocations: 267.5 kB / 446.5 MB, free: 8.426 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006409/0.1764, allocations: 473.6 kB / 447 MB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1764, allocations: 0 / 447 MB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.1766, allocations: 160.3 kB / 447.1 MB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001514/0.1767, allocations: 7.875 kB / 447.1 MB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000623/0.1773, allocations: 474.8 kB / 447.6 MB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.1777, allocations: 0.7298 MB / 448.3 MB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.1778, allocations: 47.58 kB / 448.4 MB, free: 6.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.1778, allocations: 19.44 kB / 448.4 MB, free: 6.488 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1778, allocations: 0 / 448.4 MB, free: 6.488 MB / 382.1 MB Notification: Performance of Templates: time 0.007484/0.1853, allocations: 2.813 MB / 451.2 MB, free: 3.672 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) Environment - environmentSimulation: