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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.224/2.224, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.792e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3421, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.4835, allocations: 79.75 MB / 437.8 MB, free: 15.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.4837, allocations: 63.97 kB / 437.8 MB, free: 15.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0174/0.5011, allocations: 5.008 MB / 442.9 MB, free: 10 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.979e-06/0.5012, allocations: 0 / 442.9 MB, free: 10 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.5012, allocations: 4 kB / 442.9 MB, free: 10 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.000675/0.5019, allocations: 475 kB / 443.3 MB, free: 9.488 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.502, allocations: 11.97 kB / 443.3 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.502, allocations: 19.77 kB / 443.4 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.5022, allocations: 178.9 kB / 443.5 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.5022, allocations: 0 / 443.5 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.5023, allocations: 16 kB / 443.5 MB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001814/0.5025, allocations: 96.41 kB / 443.6 MB, free: 9.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.5027, allocations: 124.3 kB / 443.8 MB, free: 9.008 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.685e-06/0.5027, allocations: 4 kB / 443.8 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.353e-06/0.5027, allocations: 0 / 443.8 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.5027, allocations: 3.953 kB / 443.8 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002139/0.503, allocations: 170.3 kB / 443.9 MB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.5032, allocations: 163 kB / 444.1 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.5034, allocations: 157.7 kB / 444.2 MB, free: 8.473 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.9e-06/0.5034, allocations: 0 / 444.2 MB, free: 8.473 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.5036, allocations: 162 kB / 444.4 MB, free: 8.305 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.298e-06/0.5037, allocations: 0 / 444.4 MB, free: 8.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001341/0.505, allocations: 0.5754 MB / 445 MB, free: 7.719 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.97e-05/0.5051, allocations: 103.8 kB / 445.1 MB, free: 7.605 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.909e-05/0.5052, allocations: 114.9 kB / 445.2 MB, free: 7.488 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-05/0.5053, allocations: 57.69 kB / 445.3 MB, free: 7.426 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.07e-05/0.5054, allocations: 159.9 kB / 445.4 MB, free: 7.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.5056, allocations: 126.5 kB / 445.5 MB, free: 7.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.972e-05/0.5056, allocations: 0 / 445.5 MB, free: 7.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.5058, allocations: 346.8 kB / 445.9 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.5062, allocations: 158.5 kB / 446 MB, free: 6.641 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006569/0.5069, allocations: 0.5024 MB / 446.5 MB, free: 5.973 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.5074, allocations: 251.6 kB / 446.8 MB, free: 5.727 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.514e-06/0.5074, allocations: 0 / 446.8 MB, free: 5.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001371/0.5088, allocations: 0.6222 MB / 447.4 MB, free: 5.098 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.5088, allocations: 12 kB / 447.4 MB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.5088, allocations: 12 kB / 447.4 MB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.333e-05/0.5089, allocations: 20 kB / 447.4 MB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/0.5093, allocations: 112.4 kB / 447.5 MB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.184e-05/0.5094, allocations: 23.92 kB / 447.6 MB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.5097, allocations: 59.28 kB / 447.6 MB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.551e-05/0.5098, allocations: 40 kB / 447.7 MB, free: 4.824 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.0002589/0.51, allocations: 206.2 kB / 447.9 MB, free: 4.617 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.5101, allocations: 15.8 kB / 447.9 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.5101, allocations: 9.906 kB / 447.9 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.429e-06/0.5101, allocations: 0 / 447.9 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.5101, allocations: 0 / 447.9 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.379e-06/0.5102, allocations: 0 / 447.9 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.5103, allocations: 154.3 kB / 448 MB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-06/0.5104, allocations: 4 kB / 448 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.996e-06/0.5104, allocations: 0 / 448 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.059e-06/0.5104, allocations: 0 / 448 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.5104, allocations: 7.984 kB / 448.1 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5104, allocations: 0 / 448.1 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.5e-06/0.5104, allocations: 0 / 448.1 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.5117, allocations: 0.6148 MB / 448.7 MB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.5118, allocations: 96.81 kB / 448.8 MB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.5118, allocations: 0 / 448.8 MB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.004e-05/0.5119, allocations: 0 / 448.8 MB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.926e-05/0.5119, allocations: 7.984 kB / 448.8 MB, free: 3.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-06/0.5119, allocations: 4.031 kB / 448.8 MB, free: 3.633 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.46e-05/0.512, allocations: 75.28 kB / 448.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.86e-07/0.512, allocations: 0 / 448.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007157/0.5127, allocations: 87.94 kB / 448.9 MB, free: 3.473 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.0007141/0.5135, allocations: 282 kB / 449.2 MB, free: 3.207 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008236/0.5143, allocations: 429.6 kB / 449.6 MB, free: 2.789 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5143, allocations: 0 / 449.6 MB, free: 2.789 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.5145, allocations: 156.4 kB / 449.8 MB, free: 2.637 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.5147, allocations: 4 kB / 449.8 MB, free: 2.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006355/0.5153, allocations: 380.8 kB / 450.2 MB, free: 2.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.5158, allocations: 0.734 MB / 450.9 MB, free: 1.465 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.5158, allocations: 27.44 kB / 450.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of SimCode: time 1.396e-06/0.5158, allocations: 0 / 450.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of Templates: time 0.008311/0.5242, allocations: 3.997 MB / 454.9 MB, free: 13.44 MB / 394.7 MB