Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.303/2.303, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.913e-05/2.93e-05, allocations: 0 / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3258, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.4475, allocations: 80.42 MB / 445 MB, free: 52 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.4477, allocations: 64.66 kB / 445 MB, free: 15.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01793/0.4657, allocations: 4.993 MB / 450 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.928e-06/0.4657, allocations: 0 / 450 MB, free: 11.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.4658, allocations: 4 kB / 450 MB, free: 11.01 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.0006192/0.4664, allocations: 483 kB / 450.5 MB, free: 10.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4665, allocations: 8.031 kB / 450.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.335e-05/0.4665, allocations: 19.77 kB / 450.5 MB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.4667, allocations: 182.9 kB / 450.7 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.4667, allocations: 16 kB / 450.7 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.4668, allocations: 16 kB / 450.7 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.467, allocations: 128.3 kB / 450.9 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.267e-06/0.467, allocations: 0 / 450.9 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.6e-06/0.467, allocations: 0 / 450.9 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.737e-06/0.467, allocations: 4.797 kB / 450.9 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.4672, allocations: 100.3 kB / 451 MB, free: 9.984 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002675/0.4675, allocations: 226.2 kB / 451.2 MB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.4677, allocations: 171 kB / 451.3 MB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.4679, allocations: 151.8 kB / 451.5 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.4679, allocations: 0 / 451.5 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.4682, allocations: 168.8 kB / 451.7 MB, free: 9.219 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.396e-06/0.4682, allocations: 0 / 451.7 MB, free: 9.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001263/0.4695, allocations: 0.5755 MB / 452.2 MB, free: 8.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.4696, allocations: 108.5 kB / 452.3 MB, free: 8.516 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.121e-05/0.4697, allocations: 116.8 kB / 452.5 MB, free: 8.395 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.904e-05/0.4698, allocations: 65.69 kB / 452.5 MB, free: 8.324 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.967e-05/0.4699, allocations: 163.9 kB / 452.7 MB, free: 8.164 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.47, allocations: 134.5 kB / 452.8 MB, free: 8.031 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.4701, allocations: 16 kB / 452.8 MB, free: 8.016 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.4703, allocations: 342.8 kB / 453.2 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.4707, allocations: 177.9 kB / 453.3 MB, free: 7.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.4714, allocations: 0.5221 MB / 453.9 MB, free: 6.809 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005362/0.4719, allocations: 267.7 kB / 454.1 MB, free: 6.547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.4719, allocations: 4 kB / 454.1 MB, free: 6.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001512/0.4735, allocations: 0.7233 MB / 454.8 MB, free: 5.812 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.4735, allocations: 13.88 kB / 454.9 MB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.4735, allocations: 12 kB / 454.9 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.02e-05/0.4736, allocations: 16.78 kB / 454.9 MB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.474, allocations: 119.7 kB / 455 MB, free: 5.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.686e-05/0.4741, allocations: 28.77 kB / 455 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.4745, allocations: 67.31 kB / 455.1 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.4745, allocations: 47.95 kB / 455.1 MB, free: 5.516 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 () * 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.0002639/0.4748, allocations: 216.6 kB / 455.4 MB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.786e-05/0.4748, allocations: 7.812 kB / 455.4 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.028e-05/0.4749, allocations: 5.656 kB / 455.4 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.347e-06/0.4749, allocations: 4 kB / 455.4 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.369e-06/0.4749, allocations: 0 / 455.4 MB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.774e-06/0.4749, allocations: 3.938 kB / 455.4 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.4751, allocations: 191.2 kB / 455.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.357e-06/0.4752, allocations: 0 / 455.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.072e-06/0.4752, allocations: 0 / 455.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.105e-06/0.4752, allocations: 11.98 kB / 455.6 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.4752, allocations: 0 / 455.6 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.102e-06/0.4752, allocations: 0 / 455.6 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.394e-06/0.4752, allocations: 3.984 kB / 455.6 MB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.4765, allocations: 0.6074 MB / 456.2 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.111e-05/0.4766, allocations: 100.8 kB / 456.3 MB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.4766, allocations: 3.984 kB / 456.3 MB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.165e-05/0.4767, allocations: 0.875 kB / 456.3 MB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.448e-05/0.4767, allocations: 4.031 kB / 456.3 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.4767, allocations: 4 kB / 456.3 MB, free: 4.262 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.418e-05/0.4768, allocations: 79.28 kB / 456.4 MB, free: 4.184 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.68e-07/0.4768, allocations: 0 / 456.4 MB, free: 4.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007724/0.4776, allocations: 109.3 kB / 456.5 MB, free: 4.078 MB / 378.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 () * 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.0007356/0.4783, allocations: 281.9 kB / 456.8 MB, free: 3.836 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009072/0.4793, allocations: 456.4 kB / 457.2 MB, free: 3.391 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.1e-06/0.4793, allocations: 0 / 457.2 MB, free: 3.391 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.4795, allocations: 156.4 kB / 457.4 MB, free: 3.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.4796, allocations: 15.89 kB / 457.4 MB, free: 3.223 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006632/0.4803, allocations: 379.2 kB / 457.7 MB, free: 2.828 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.4807, allocations: 0.7376 MB / 458.5 MB, free: 2.062 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.56e-05/0.4808, allocations: 23.44 kB / 458.5 MB, free: 2.039 MB / 378.7 MB Notification: Performance of SimCode: time 1.791e-06/0.4808, allocations: 0 / 458.5 MB, free: 2.039 MB / 378.7 MB Notification: Performance of Templates: time 0.008351/0.4892, allocations: 4.005 MB / 462.5 MB, free: 14.03 MB / 394.7 MB