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.147/2.147, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007254/0.0007256, allocations: 20 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3353, allocations: 54.86 MB / 369.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0006257/0.336, allocations: 260.3 kB / 369.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.3373, allocations: 0.5541 MB / 370 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.912e-05/0.3373, allocations: 0 / 370 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.712e-05/0.3374, allocations: 7.938 kB / 370 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.878e-06/0.3374, allocations: 0 / 370 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006949/0.3381, allocations: 163.5 kB / 370.2 MB, free: 9.754 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.894e-05/0.3382, allocations: 19.98 kB / 370.2 MB, free: 9.734 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.876e-05/0.3382, allocations: 4 kB / 370.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.378e-05/0.3383, allocations: 19.92 kB / 370.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.181e-05/0.3383, allocations: 15.94 kB / 370.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.3383, allocations: 0 / 370.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000299/0.3386, allocations: 139.8 kB / 370.4 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.371e-05/0.3387, allocations: 59.89 kB / 370.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.71e-05/0.3388, allocations: 49.58 kB / 370.5 MB, free: 9.445 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.3391, allocations: 135.8 kB / 370.6 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.3391, allocations: 0 / 370.6 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.925e-06/0.3391, allocations: 4 kB / 370.6 MB, free: 9.309 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.699e-06/0.3391, allocations: 0 / 370.6 MB, free: 9.309 MB / 298.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.0005695/0.3397, allocations: 472.9 kB / 371.1 MB, free: 8.801 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3397, allocations: 8.031 kB / 371.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.267e-05/0.3398, allocations: 15.81 kB / 371.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.34, allocations: 178.9 kB / 371.3 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.34, allocations: 16 kB / 371.3 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/0.34, allocations: 16 kB / 371.3 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.3403, allocations: 132.2 kB / 371.4 MB, free: 8.395 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.657e-06/0.3403, allocations: 4 kB / 371.4 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.3403, allocations: 3.953 kB / 371.4 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.829e-06/0.3403, allocations: 0 / 371.4 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.3405, allocations: 104.3 kB / 371.5 MB, free: 8.285 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002552/0.3407, allocations: 226.2 kB / 371.8 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.341, allocations: 167 kB / 371.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.687e-06/0.341, allocations: 0 / 371.9 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002742/0.3413, allocations: 166 kB / 372.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.248e-06/0.3413, allocations: 0 / 372.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.001606/0.3429, allocations: 0.8685 MB / 372.9 MB, free: 6.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.954e-05/0.343, allocations: 107.7 kB / 373.1 MB, free: 6.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.444e-05/0.3431, allocations: 117.7 kB / 373.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.254e-05/0.3432, allocations: 69.67 kB / 373.2 MB, free: 6.461 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.445e-05/0.3433, allocations: 163.9 kB / 373.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.3435, allocations: 138.5 kB / 373.5 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.3435, allocations: 20.03 kB / 373.5 MB, free: 6.145 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3437, allocations: 342.8 kB / 373.9 MB, free: 5.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00037/0.3441, allocations: 181.9 kB / 374.1 MB, free: 5.625 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006826/0.3448, allocations: 0.5292 MB / 374.6 MB, free: 4.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.3454, allocations: 267.7 kB / 374.9 MB, free: 4.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.3454, allocations: 4 kB / 374.9 MB, free: 4.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001456/0.3468, allocations: 0.7356 MB / 375.6 MB, free: 3.922 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3469, allocations: 12 kB / 375.6 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.3469, allocations: 12 kB / 375.6 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/0.347, allocations: 16 kB / 375.6 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.3474, allocations: 115.7 kB / 375.7 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-05/0.3474, allocations: 23.92 kB / 375.8 MB, free: 3.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005433/0.348, allocations: 75.23 kB / 375.8 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.3481, allocations: 44 kB / 375.9 MB, free: 3.629 MB / 298.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.0005317/0.3487, allocations: 253.6 kB / 376.1 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.3487, allocations: 7.812 kB / 376.1 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.45e-05/0.3488, allocations: 9.875 kB / 376.1 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.792e-06/0.3488, allocations: 4 kB / 376.2 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.622e-06/0.3488, allocations: 0 / 376.2 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.3489, allocations: 3.984 kB / 376.2 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.3492, allocations: 197.7 kB / 376.3 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-06/0.3492, allocations: 0 / 376.3 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.39e-06/0.3492, allocations: 0 / 376.3 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.24e-05/0.3493, allocations: 4 kB / 376.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.3493, allocations: 3.938 kB / 376.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.361e-06/0.3493, allocations: 0 / 376.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.463e-06/0.3493, allocations: 0 / 376.4 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.3507, allocations: 0.6148 MB / 377 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.977e-05/0.3508, allocations: 96.8 kB / 377.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.3509, allocations: 4 kB / 377.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.148e-05/0.3509, allocations: 3.938 kB / 377.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.274e-05/0.3509, allocations: 0 / 377.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.3509, allocations: 7.984 kB / 377.1 MB, free: 2.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.368e-05/0.351, allocations: 79.28 kB / 377.2 MB, free: 2.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.351, allocations: 4.031 kB / 377.2 MB, free: 2.246 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006863/0.3517, allocations: 88 kB / 377.2 MB, free: 2.16 MB / 298.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.0006517/0.3524, allocations: 269.6 kB / 377.5 MB, free: 1.922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000823/0.3532, allocations: 465.4 kB / 378 MB, free: 1.469 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.797e-06/0.3532, allocations: 4.188 kB / 378 MB, free: 1.465 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.3534, allocations: 160.4 kB / 378.1 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.3536, allocations: 14.59 kB / 378.1 MB, free: 1.297 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007457/0.3543, allocations: 488.6 kB / 378.6 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.3548, allocations: 0.7336 MB / 379.4 MB, free: 24 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.107e-05/0.3549, allocations: 23.44 kB / 379.4 MB, free: 0 / 298.7 MB Notification: Performance of SimCode: time 1.35e-06/0.3549, allocations: 0 / 379.4 MB, free: 0 / 298.7 MB Notification: Performance of Templates: time 0.007514/0.3624, allocations: 3.784 MB / 383.2 MB, free: 12.21 MB / 314.7 MB