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.329/2.329, allocations: 234.9 MB / 250.5 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004343/0.0004345, allocations: 12 kB / 314.4 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2954, allocations: 54.85 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.4179, allocations: 80.51 MB / 449.8 MB, free: 12.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.4182, allocations: 63.95 kB / 449.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0179/0.4361, allocations: 5.024 MB / 454.9 MB, free: 7.035 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.646e-06/0.4361, allocations: 0 / 454.9 MB, free: 7.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.4362, allocations: 8 kB / 454.9 MB, free: 7.027 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.000627/0.4368, allocations: 480 kB / 455.3 MB, free: 6.508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.4369, allocations: 8.031 kB / 455.3 MB, free: 6.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.72e-05/0.4369, allocations: 19.77 kB / 455.4 MB, free: 6.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.4371, allocations: 171 kB / 455.5 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.4371, allocations: 12 kB / 455.5 MB, free: 6.262 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.4372, allocations: 27.98 kB / 455.6 MB, free: 6.234 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.4374, allocations: 124.3 kB / 455.7 MB, free: 6.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.893e-06/0.4374, allocations: 4 kB / 455.7 MB, free: 6.102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.4374, allocations: 0 / 455.7 MB, free: 6.102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4374, allocations: 3.938 kB / 455.7 MB, free: 6.098 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.4376, allocations: 100.4 kB / 455.8 MB, free: 6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002596/0.4379, allocations: 226.2 kB / 456 MB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.4381, allocations: 163 kB / 456.2 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.927e-06/0.4381, allocations: 0 / 456.2 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.4384, allocations: 172 kB / 456.3 MB, free: 5.387 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.288e-06/0.4384, allocations: 0 / 456.3 MB, free: 5.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001614/0.44, allocations: 0.8646 MB / 457.2 MB, free: 4.496 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.4401, allocations: 107.8 kB / 457.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.38e-05/0.4402, allocations: 116.8 kB / 457.4 MB, free: 4.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.365e-05/0.4403, allocations: 73.67 kB / 457.5 MB, free: 4.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.772e-05/0.4404, allocations: 155.9 kB / 457.6 MB, free: 4.027 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.4406, allocations: 134.5 kB / 457.8 MB, free: 3.895 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.4407, allocations: 24.03 kB / 457.8 MB, free: 3.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4409, allocations: 342.8 kB / 458.1 MB, free: 3.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.4412, allocations: 189.8 kB / 458.3 MB, free: 3.344 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007077/0.442, allocations: 0.5252 MB / 458.8 MB, free: 2.648 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/0.4425, allocations: 267.8 kB / 459.1 MB, free: 2.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.4426, allocations: 4 kB / 459.1 MB, free: 2.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001528/0.4441, allocations: 0.7318 MB / 459.8 MB, free: 1.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.4441, allocations: 12 kB / 459.9 MB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.4442, allocations: 12 kB / 459.9 MB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.15e-05/0.4442, allocations: 20 kB / 459.9 MB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.4447, allocations: 115.7 kB / 460 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.395e-05/0.4447, allocations: 27.86 kB / 460 MB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.4451, allocations: 71.28 kB / 460.1 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/0.4451, allocations: 43.98 kB / 460.1 MB, free: 1.348 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.0003382/0.4455, allocations: 245.6 kB / 460.4 MB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.4455, allocations: 11.81 kB / 460.4 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.4456, allocations: 13.81 kB / 460.4 MB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.402e-06/0.4456, allocations: 0 / 460.4 MB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.4456, allocations: 4 kB / 460.4 MB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.644e-06/0.4456, allocations: 0 / 460.4 MB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.4458, allocations: 193.8 kB / 460.6 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.714e-06/0.4459, allocations: 4 kB / 460.6 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.025e-05/0.4459, allocations: 4 kB / 460.6 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.064e-06/0.4459, allocations: 0 / 460.6 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.02e-06/0.4459, allocations: 0 / 460.6 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.898e-06/0.4459, allocations: 0 / 460.6 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.767e-06/0.4459, allocations: 0 / 460.6 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.4472, allocations: 0.6148 MB / 461.2 MB, free: 192 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.11e-05/0.4473, allocations: 100.8 kB / 461.3 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.4473, allocations: 0 / 461.3 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.278e-05/0.4473, allocations: 0 / 461.3 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.4474, allocations: 0 / 461.3 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.4474, allocations: 4 kB / 461.3 MB, free: 68 kB / 378.7 MB Notification: Performance of sorting global known variables: time 6.093e-05/0.4474, allocations: 75.72 kB / 461.4 MB, free: 15.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.17e-07/0.4475, allocations: 3.938 kB / 461.4 MB, free: 15.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007664/0.4482, allocations: 112 kB / 461.5 MB, free: 15.88 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.0007352/0.449, allocations: 295.5 kB / 461.8 MB, free: 15.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009069/0.4499, allocations: 457.2 kB / 462.2 MB, free: 15.17 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.43e-06/0.4499, allocations: 448 / 462.2 MB, free: 15.17 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.4502, allocations: 168.4 kB / 462.4 MB, free: 15.01 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.4503, allocations: 7.953 kB / 462.4 MB, free: 15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007425/0.4511, allocations: 472.6 kB / 462.9 MB, free: 14.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.4515, allocations: 0.7375 MB / 463.6 MB, free: 13.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.264e-05/0.4516, allocations: 19.44 kB / 463.6 MB, free: 13.72 MB / 394.7 MB Notification: Performance of SimCode: time 1.723e-06/0.4516, allocations: 0 / 463.6 MB, free: 13.72 MB / 394.7 MB Notification: Performance of Templates: time 0.008188/0.4598, allocations: 4.015 MB / 467.7 MB, free: 9.699 MB / 394.7 MB