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: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 194.8 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005105/0.0005105, allocations: 11.94 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1525, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4812/0.6338, allocations: 71.21 MB / 379.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.6341, allocations: 66.23 kB / 379.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01272/0.6468, allocations: 3.002 MB / 382.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.6469, allocations: 0.9375 kB / 382.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.6469, allocations: 1.812 kB / 382.8 MB, free: 14.45 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.0006591/0.6476, allocations: 0.5599 MB / 383.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.6476, allocations: 9.781 kB / 383.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.93e-05/0.6477, allocations: 53.59 kB / 383.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.6479, allocations: 23.98 kB / 383.5 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.648, allocations: 187.6 kB / 383.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.6481, allocations: 3.312 kB / 383.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.6481, allocations: 5.75 kB / 383.7 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.6486, allocations: 284.3 kB / 383.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.6487, allocations: 1.281 kB / 383.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.6487, allocations: 1.281 kB / 383.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.6487, allocations: 1.312 kB / 383.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.649, allocations: 153 kB / 384.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.6495, allocations: 401.6 kB / 384.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.65, allocations: 0.4961 MB / 385 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.6501, allocations: 0 / 385 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009802/0.6511, allocations: 492 kB / 385.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.429e-06/0.6511, allocations: 0 / 385.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001544/0.6527, allocations: 0.9117 MB / 386.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.968e-05/0.6528, allocations: 158.8 kB / 386.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.6529, allocations: 92.75 kB / 386.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.6529, allocations: 27.8 kB / 386.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.802e-05/0.653, allocations: 159.3 kB / 386.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.547e-05/0.6531, allocations: 90.73 kB / 386.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-06/0.6531, allocations: 5.625 kB / 386.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.48e-05/0.6532, allocations: 331.3 kB / 387.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.6533, allocations: 84.95 kB / 387.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.6535, allocations: 115 kB / 387.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.6538, allocations: 211.7 kB / 387.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6538, allocations: 7.938 kB / 387.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005304/0.6543, allocations: 371.1 kB / 388 MB, free: 11.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.6544, allocations: 104.6 kB / 388.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.6545, allocations: 0 / 388.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.6545, allocations: 1.438 kB / 388.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.325e-05/0.6546, allocations: 7.25 kB / 388.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.6546, allocations: 1.688 kB / 388.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.6547, allocations: 33.47 kB / 388.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.6548, allocations: 8.5 kB / 388.1 MB, free: 11.61 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,$outputAlias_r64,$outputAlias_r128,$outputAlias_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 (5): * Single equations (assignments): 3 * 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.0003809/0.6551, allocations: 299.9 kB / 388.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.854e-05/0.6552, allocations: 25.97 kB / 388.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.6553, allocations: 9.609 kB / 388.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.6553, allocations: 6.031 kB / 388.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.6553, allocations: 0 / 388.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6553, allocations: 1.344 kB / 388.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.6573, allocations: 1.448 MB / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.395e-06/0.6574, allocations: 1.188 kB / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.56e-05/0.6574, allocations: 9.047 kB / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.6575, allocations: 0 / 389.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.6575, allocations: 21.03 kB / 390 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.6575, allocations: 2.578 kB / 390 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.6576, allocations: 5.281 kB / 390 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.6592, allocations: 1.322 MB / 391.3 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.324e-05/0.6593, allocations: 102.2 kB / 391.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.6595, allocations: 68.64 kB / 391.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.6597, allocations: 7.75 kB / 391.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.142e-05/0.6598, allocations: 22.27 kB / 391.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.31e-05/0.6599, allocations: 32.8 kB / 391.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.03e-05/0.6599, allocations: 83.52 kB / 391.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6599, allocations: 0 / 391.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00062/0.6606, allocations: 106.6 kB / 391.7 MB, free: 10.61 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 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_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]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_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,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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.00309/0.6637, allocations: 2.415 MB / 394.1 MB, free: 9.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.6658, allocations: 2.138 MB / 396.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.6659, allocations: 0 / 396.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.6677, allocations: 2.186 MB / 398.4 MB, free: 9.465 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.6681, allocations: 25.92 kB / 398.5 MB, free: 9.457 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.6706, allocations: 1.556 MB / 400 MB, free: 8.801 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.6709, allocations: 0.7272 MB / 400.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.6709, allocations: 36.48 kB / 400.8 MB, free: 8.098 MB / 314.7 MB Notification: Performance of SimCode: time 1.283e-06/0.6709, allocations: 4 kB / 400.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.047/3.717, allocations: 4.187 MB / 405 MB, free: 7.629 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat