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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.253/2.253, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.226e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3484, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1387/0.4872, allocations: 79.75 MB / 437.9 MB, free: 14.99 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.4875, allocations: 63.97 kB / 437.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01873/0.5062, allocations: 5.004 MB / 442.9 MB, free: 9.914 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5063, allocations: 0 / 442.9 MB, free: 9.914 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.5063, allocations: 4 kB / 442.9 MB, free: 9.91 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.0006351/0.507, allocations: 482.9 kB / 443.4 MB, free: 9.391 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.507, allocations: 12.03 kB / 443.4 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.744e-05/0.5071, allocations: 19.77 kB / 443.4 MB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.5072, allocations: 178.9 kB / 443.6 MB, free: 9.145 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.5072, allocations: 4 kB / 443.6 MB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.5073, allocations: 12 kB / 443.6 MB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001918/0.5075, allocations: 92.41 kB / 443.7 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.5077, allocations: 124.3 kB / 443.8 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.5077, allocations: 0 / 443.8 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.5077, allocations: 4 kB / 443.9 MB, free: 8.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.5077, allocations: 3.953 kB / 443.9 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001954/0.508, allocations: 166.3 kB / 444 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.5082, allocations: 174.9 kB / 444.2 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.5084, allocations: 149.8 kB / 444.3 MB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.182e-05/0.5084, allocations: 3.984 kB / 444.3 MB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.5087, allocations: 160.2 kB / 444.5 MB, free: 8.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.084e-06/0.5087, allocations: 0 / 444.5 MB, free: 8.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001319/0.51, allocations: 0.5755 MB / 445.1 MB, free: 7.625 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.488e-05/0.5101, allocations: 111.8 kB / 445.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.788e-05/0.5102, allocations: 112.8 kB / 445.3 MB, free: 7.387 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.884e-05/0.5103, allocations: 53.69 kB / 445.3 MB, free: 7.328 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.912e-05/0.5104, allocations: 155.9 kB / 445.5 MB, free: 7.176 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.5106, allocations: 130.5 kB / 445.6 MB, free: 7.047 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.542e-05/0.5106, allocations: 0 / 445.6 MB, free: 7.047 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5107, allocations: 346.8 kB / 446 MB, free: 6.699 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.5111, allocations: 158.5 kB / 446.1 MB, free: 6.543 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006903/0.5119, allocations: 0.5024 MB / 446.6 MB, free: 5.875 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005856/0.5125, allocations: 251.6 kB / 446.9 MB, free: 5.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.5125, allocations: 0 / 446.9 MB, free: 5.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0015/0.514, allocations: 0.6219 MB / 447.5 MB, free: 5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.514, allocations: 12.94 kB / 447.5 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/0.5141, allocations: 12 kB / 447.5 MB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.548e-05/0.5141, allocations: 20 kB / 447.5 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006447/0.5148, allocations: 119.6 kB / 447.6 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-05/0.5148, allocations: 23.92 kB / 447.7 MB, free: 4.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.5152, allocations: 55.28 kB / 447.7 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.5152, allocations: 40 kB / 447.8 MB, free: 4.723 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 () * 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.0003041/0.5155, allocations: 210.6 kB / 448 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001244/0.5168, allocations: 0.5677 MB / 448.5 MB, free: 3.934 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.5168, allocations: 11.81 kB / 448.5 MB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.5169, allocations: 9.969 kB / 448.6 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.5169, allocations: 0 / 448.6 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.5169, allocations: 0 / 448.6 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.5169, allocations: 0 / 448.6 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.5171, allocations: 154.3 kB / 448.7 MB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5171, allocations: 4 kB / 448.7 MB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.125e-06/0.5171, allocations: 4 kB / 448.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.5171, allocations: 0 / 448.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-06/0.5171, allocations: 0 / 448.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.5171, allocations: 0 / 448.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5172, allocations: 0 / 448.7 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.5184, allocations: 0.6148 MB / 449.3 MB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.5185, allocations: 96.8 kB / 449.4 MB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.5185, allocations: 8.016 kB / 449.4 MB, free: 2.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.141e-05/0.5185, allocations: 4 kB / 449.4 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.761e-05/0.5186, allocations: 4 kB / 449.4 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.5186, allocations: 0 / 449.4 MB, free: 2.961 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.084e-05/0.5186, allocations: 75.28 kB / 449.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5187, allocations: 0 / 449.5 MB, free: 2.887 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007873/0.5194, allocations: 95.92 kB / 449.6 MB, free: 2.793 MB / 378.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 () * 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.00246/0.5219, allocations: 1.506 MB / 451.1 MB, free: 1.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009884/0.523, allocations: 424.5 kB / 451.5 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.523, allocations: 1.312 kB / 451.5 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.5232, allocations: 160.4 kB / 451.7 MB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.5234, allocations: 4 kB / 451.7 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.5247, allocations: 0.517 MB / 452.2 MB, free: 144 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.5251, allocations: 0.7338 MB / 452.9 MB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.5252, allocations: 47.42 kB / 453 MB, free: 15.33 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5252, allocations: 0 / 453 MB, free: 15.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.871/3.397, allocations: 4.721 MB / 457.7 MB, free: 10.6 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