Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers.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) Running command: translateModel(Modelica.Math.Random.Examples.GenerateRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1024|r128|r64",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers") Notification: Performance of loadModel(Modelica): time 2.081/2.081, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003453, allocations: 12 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.09383, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4477/0.5416, allocations: 71.2 MB / 380.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.5419, allocations: 65.98 kB / 380.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0131/0.555, allocations: 3.006 MB / 383.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.555, allocations: 0 / 383.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.555, allocations: 1.625 kB / 383.2 MB, free: 14.43 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006699/0.5557, allocations: 0.5627 MB / 383.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.5558, allocations: 9.062 kB / 383.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.556, allocations: 16.05 kB / 383.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.5561, allocations: 187.9 kB / 384 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.5561, allocations: 5.969 kB / 384 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.178e-05/0.5562, allocations: 3.812 kB / 384 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.5567, allocations: 273.9 kB / 384.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.5567, allocations: 3.938 kB / 384.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.5567, allocations: 2.781 kB / 384.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.5567, allocations: 1.406 kB / 384.3 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.557, allocations: 148.8 kB / 384.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002547/0.5572, allocations: 218.3 kB / 384.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.5577, allocations: 490.5 kB / 385.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.5578, allocations: 5.359 kB / 385.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006284/0.5584, allocations: 488.2 kB / 385.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=46): time 2.495e-06/0.5584, allocations: 0 / 385.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=46): time 0.00139/0.5598, allocations: 0.8958 MB / 386.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/0.5599, allocations: 158.7 kB / 386.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.288e-05/0.56, allocations: 103 kB / 386.8 MB, free: 12.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.5601, allocations: 27.08 kB / 386.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.675e-05/0.5601, allocations: 155.2 kB / 386.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.586e-05/0.5602, allocations: 81.06 kB / 387 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.5602, allocations: 5.438 kB / 387 MB, free: 12.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.5603, allocations: 326.7 kB / 387.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.5604, allocations: 81.98 kB / 387.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001389/0.5606, allocations: 108.7 kB / 387.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.5608, allocations: 197.9 kB / 387.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.5609, allocations: 3.953 kB / 387.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005159/0.5614, allocations: 350.7 kB / 388.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.5615, allocations: 110 kB / 388.2 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.5615, allocations: 4.094 kB / 388.2 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.5616, allocations: 5.25 kB / 388.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.424e-06/0.5616, allocations: 1.219 kB / 388.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.5616, allocations: 2.531 kB / 388.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.5617, allocations: 22.47 kB / 388.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.5617, allocations: 7.75 kB / 388.2 MB, free: 11.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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.0004257/0.5622, allocations: 297.2 kB / 388.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.5623, allocations: 28.48 kB / 388.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.165e-05/0.5624, allocations: 9.969 kB / 388.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.5624, allocations: 0.875 kB / 388.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.5624, allocations: 2.125 kB / 388.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.5624, allocations: 1.688 kB / 388.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.5627, allocations: 248.9 kB / 388.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5627, allocations: 1.281 kB / 388.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.654e-06/0.5627, allocations: 3.953 kB / 388.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.5627, allocations: 1.281 kB / 388.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.5628, allocations: 24.19 kB / 388.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.5628, allocations: 0 / 388.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5628, allocations: 1.344 kB / 388.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.5653, allocations: 1.236 MB / 390.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/0.5654, allocations: 96.89 kB / 390.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.5656, allocations: 73.8 kB / 390.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.5657, allocations: 8.844 kB / 390.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.5658, allocations: 10.27 kB / 390.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.611e-05/0.5659, allocations: 31.97 kB / 390.3 MB, free: 11.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.083e-05/0.5659, allocations: 83.36 kB / 390.4 MB, free: 11.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.566, allocations: 0 / 390.4 MB, free: 11.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006206/0.5666, allocations: 111.3 kB / 390.5 MB, free: 11.05 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,r64,r128,r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 46 (iImpure,rImpure,$whenCondition1,r1024,r128,r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0007876/0.5674, allocations: 314.8 kB / 390.8 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.5694, allocations: 2.129 MB / 392.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.5694, allocations: 3.938 kB / 392.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/0.5714, allocations: 2.187 MB / 395.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.5716, allocations: 9.719 kB / 395.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008119/0.5725, allocations: 442.3 kB / 395.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001914/0.5727, allocations: 0.7306 MB / 396.3 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.396e-05/0.5727, allocations: 7.438 kB / 396.3 MB, free: 9.707 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5727, allocations: 3.938 kB / 396.3 MB, free: 9.703 MB / 314.7 MB Notification: Performance of Templates: time 0.007909/0.5806, allocations: 3.335 MB / 399.6 MB, free: 9.312 MB / 314.7 MB