Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.578/2.578, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.711e-05/4.744e-05, allocations: 7.984 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4037, allocations: 54.84 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1478/0.5515, allocations: 80.41 MB / 445 MB, free: 76 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.5518, allocations: 63.97 kB / 445.1 MB, free: 12 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01929/0.5711, allocations: 5 MB / 450.1 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5712, allocations: 0 / 450.1 MB, free: 11.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.5712, allocations: 4 kB / 450.1 MB, free: 11.02 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.0006302/0.5718, allocations: 481.8 kB / 450.6 MB, free: 10.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.5719, allocations: 12.03 kB / 450.6 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001976/0.5721, allocations: 145.9 kB / 450.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.519e-05/0.5722, allocations: 35.53 kB / 450.8 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.5723, allocations: 190.7 kB / 451 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.5724, allocations: 28.44 kB / 451 MB, free: 10.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.191e-05/0.5725, allocations: 43.98 kB / 451 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.5731, allocations: 290.6 kB / 451.3 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.5731, allocations: 0 / 451.3 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.5732, allocations: 15.98 kB / 451.3 MB, free: 9.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.5732, allocations: 11.95 kB / 451.3 MB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.5736, allocations: 202.9 kB / 451.5 MB, free: 9.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.575, allocations: 0.6435 MB / 452.2 MB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.5753, allocations: 191.1 kB / 452.4 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.5755, allocations: 186.4 kB / 452.5 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.5756, allocations: 0 / 452.5 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/0.5759, allocations: 176.9 kB / 452.7 MB, free: 8.234 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 2.064e-06/0.5759, allocations: 0 / 452.7 MB, free: 8.234 MB / 378.7 MB Notification: Performance of matching and sorting (n=60): time 0.001354/0.5772, allocations: 0.6416 MB / 453.4 MB, free: 7.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.5774, allocations: 108 kB / 453.5 MB, free: 7.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.372e-05/0.5775, allocations: 112.8 kB / 453.6 MB, free: 7.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.5776, allocations: 69.67 kB / 453.6 MB, free: 7.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.5777, allocations: 219.8 kB / 453.9 MB, free: 7.059 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.578, allocations: 205.3 kB / 454.1 MB, free: 6.855 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.578, allocations: 28 kB / 454.1 MB, free: 6.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.5782, allocations: 350.7 kB / 454.4 MB, free: 6.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007116/0.5789, allocations: 290.2 kB / 454.7 MB, free: 6.195 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.58, allocations: 0.6437 MB / 455.4 MB, free: 5.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004857/0.5849, allocations: 5.739 MB / 461.1 MB, free: 14.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-05/0.5849, allocations: 4 kB / 461.1 MB, free: 14.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001895/0.5868, allocations: 0.7446 MB / 461.8 MB, free: 13.74 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.567e-05/0.5869, allocations: 12 kB / 461.9 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.587, allocations: 12.91 kB / 461.9 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.975e-05/0.587, allocations: 23.95 kB / 461.9 MB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000701/0.5877, allocations: 128.4 kB / 462 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.599e-05/0.5878, allocations: 23.92 kB / 462 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.5882, allocations: 67.28 kB / 462.1 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-05/0.5882, allocations: 44 kB / 462.1 MB, free: 13.44 MB / 394.7 MB Warning: The initial conditions are over specified. The following 47 initial equations are redundant, so they are removed from the initialization sytem: $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]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 108 ($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],$whenCondition1,result,$PRE.$outputAlias_result,$outputAlias_result,$PRE.$outputAlias_r2,$outputAlias_r2,$PRE.$outputAlias_r4a,$outputAlias_r4a,$PRE.$outputAlias_r4b,$outputAlias_r4b,$PRE.$outputAlias_r4c,$outputAlias_r4c,$PRE.$outputAlias_r33,$outputAlias_r33) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0006703/0.5889, allocations: 441.9 kB / 462.6 MB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.589, allocations: 19.8 kB / 462.6 MB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.688e-05/0.589, allocations: 7.281 kB / 462.6 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.589, allocations: 3.953 kB / 462.6 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.5891, allocations: 0 / 462.6 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5891, allocations: 0 / 462.6 MB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.5908, allocations: 0.9955 MB / 463.6 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.5908, allocations: 0 / 463.6 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.716e-05/0.5909, allocations: 11.25 kB / 463.6 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-06/0.5909, allocations: 4 kB / 463.6 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.5909, allocations: 3.953 kB / 463.6 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.5909, allocations: 0 / 463.6 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.591, allocations: 0 / 463.6 MB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.5923, allocations: 0.7431 MB / 464.4 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.355e-05/0.5924, allocations: 112.7 kB / 464.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.5924, allocations: 0 / 464.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.863e-05/0.5925, allocations: 3.953 kB / 464.5 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.339e-05/0.5926, allocations: 9.875 kB / 464.5 MB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.5926, allocations: 0 / 464.5 MB, free: 11.01 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.578e-05/0.5926, allocations: 75.28 kB / 464.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5926, allocations: 0 / 464.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009778/0.5936, allocations: 175.7 kB / 464.7 MB, free: 10.76 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: 55 ($whenCondition1,result,$outputAlias_result,$outputAlias_r2,$outputAlias_r4a,$outputAlias_r4b,$outputAlias_r4c,$outputAlias_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 (8): * Single equations (assignments): 7 * 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.002641/0.5963, allocations: 1.654 MB / 466.4 MB, free: 9.129 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.5983, allocations: 0.5565 MB / 466.9 MB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5983, allocations: 0 / 466.9 MB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.5986, allocations: 172.5 kB / 467.1 MB, free: 8.406 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.5988, allocations: 19.83 kB / 467.1 MB, free: 8.387 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.6006, allocations: 0.7389 MB / 467.9 MB, free: 7.605 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.6011, allocations: 0.7816 MB / 468.7 MB, free: 6.797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/0.6014, allocations: 99.41 kB / 468.7 MB, free: 6.699 MB / 394.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6014, allocations: 0 / 468.7 MB, free: 6.699 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.881/3.483, allocations: 5.874 MB / 474.6 MB, free: 0.8164 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestRandomNumbers_res.mat does not exist to compare? outputFormat=mat