Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestRandomNumbers.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadModel(ModelicaTest): time 2.43/2.43, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006065/0.0006066, allocations: 8 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3739, allocations: 54.86 MB / 369.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.5214, allocations: 80.49 MB / 450.3 MB, free: 12.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.5217, allocations: 75.8 kB / 450.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01962/0.5414, allocations: 5.027 MB / 455.4 MB, free: 7.062 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.5414, allocations: 0 / 455.4 MB, free: 7.062 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.5415, allocations: 4 kB / 455.4 MB, free: 7.059 MB / 378.7 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.0007032/0.5422, allocations: 488 kB / 455.9 MB, free: 6.531 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.5422, allocations: 8.031 kB / 455.9 MB, free: 6.523 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.069e-05/0.5423, allocations: 19.77 kB / 455.9 MB, free: 6.504 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.5424, allocations: 171 kB / 456.1 MB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.5425, allocations: 12 kB / 456.1 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.5425, allocations: 27.98 kB / 456.1 MB, free: 6.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.5428, allocations: 124.3 kB / 456.2 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.5428, allocations: 0 / 456.2 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.5428, allocations: 0 / 456.2 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5428, allocations: 4 kB / 456.2 MB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001467/0.543, allocations: 104.3 kB / 456.3 MB, free: 6.023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00026/0.5433, allocations: 226.2 kB / 456.6 MB, free: 5.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.5435, allocations: 163 kB / 456.7 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.5435, allocations: 0 / 456.7 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.5438, allocations: 164.2 kB / 456.9 MB, free: 5.418 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 6.662e-06/0.5438, allocations: 4 kB / 456.9 MB, free: 5.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.00172/0.5455, allocations: 0.8685 MB / 457.7 MB, free: 4.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.5457, allocations: 103.8 kB / 457.8 MB, free: 4.406 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.958e-05/0.5458, allocations: 121.6 kB / 458 MB, free: 4.277 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.5459, allocations: 69.67 kB / 458 MB, free: 4.203 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.188e-05/0.546, allocations: 159.9 kB / 458.2 MB, free: 4.043 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.5462, allocations: 134.5 kB / 458.3 MB, free: 3.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.5462, allocations: 16 kB / 458.3 MB, free: 3.895 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.5464, allocations: 350.8 kB / 458.7 MB, free: 3.543 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004679/0.5469, allocations: 185.8 kB / 458.9 MB, free: 3.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000778/0.5477, allocations: 0.5291 MB / 459.4 MB, free: 2.664 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006891/0.5484, allocations: 263.8 kB / 459.6 MB, free: 2.406 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/0.5484, allocations: 4 kB / 459.6 MB, free: 2.402 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001749/0.5502, allocations: 0.7319 MB / 460.4 MB, free: 1.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.5502, allocations: 20 kB / 460.4 MB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/0.5503, allocations: 12 kB / 460.4 MB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.048e-05/0.5503, allocations: 16 kB / 460.4 MB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.551, allocations: 119.7 kB / 460.5 MB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.642e-05/0.551, allocations: 27.86 kB / 460.6 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.5514, allocations: 67.28 kB / 460.6 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/0.5514, allocations: 44 kB / 460.7 MB, free: 1.363 MB / 378.7 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 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003567/0.5518, allocations: 245.4 kB / 460.9 MB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.086e-05/0.5519, allocations: 7.812 kB / 460.9 MB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.5519, allocations: 5.875 kB / 460.9 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.5519, allocations: 7.984 kB / 460.9 MB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5519, allocations: 7.938 kB / 460.9 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.5519, allocations: 0 / 460.9 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/0.5522, allocations: 193.8 kB / 461.1 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5522, allocations: 0 / 461.1 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.043e-05/0.5522, allocations: 0 / 461.1 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.5522, allocations: 4 kB / 461.1 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.5522, allocations: 4 kB / 461.1 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.5523, allocations: 0 / 461.1 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5523, allocations: 0 / 461.1 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.5536, allocations: 0.6148 MB / 461.8 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-05/0.5537, allocations: 100.8 kB / 461.9 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.5537, allocations: 0 / 461.9 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.058e-05/0.5537, allocations: 4 kB / 461.9 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.5538, allocations: 0 / 461.9 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.5538, allocations: 0 / 461.9 MB, free: 88 kB / 378.7 MB Notification: Performance of sorting global known variables: time 3.2e-05/0.5538, allocations: 79.72 kB / 461.9 MB, free: 8 kB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5538, allocations: 0 / 461.9 MB, free: 8 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008363/0.5547, allocations: 107.9 kB / 462 MB, free: 15.9 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008254/0.5555, allocations: 288.7 kB / 462.3 MB, free: 15.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.5567, allocations: 460.9 kB / 462.8 MB, free: 15.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5567, allocations: 0.8125 kB / 462.8 MB, free: 15.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.5569, allocations: 168.3 kB / 462.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.5571, allocations: 11.14 kB / 463 MB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009655/0.5581, allocations: 484.5 kB / 463.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.5585, allocations: 0.7336 MB / 464.2 MB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.283e-05/0.5586, allocations: 27.42 kB / 464.2 MB, free: 13.72 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5586, allocations: 3.938 kB / 464.2 MB, free: 13.72 MB / 394.7 MB Notification: Performance of Templates: time 0.226/0.7846, allocations: 4.008 MB / 468.2 MB, free: 9.707 MB / 394.7 MB