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.517/2.517, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004444, allocations: 12 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3621, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1546/0.5168, allocations: 80.5 MB / 449.9 MB, free: 10.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.5171, allocations: 67.91 kB / 449.9 MB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01958/0.5367, allocations: 5.024 MB / 454.9 MB, free: 5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5368, allocations: 0 / 454.9 MB, free: 5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.5368, allocations: 4 kB / 455 MB, free: 4.996 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.0007287/0.5376, allocations: 484 kB / 455.4 MB, free: 4.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.5376, allocations: 8.031 kB / 455.4 MB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002185/0.5379, allocations: 149.8 kB / 455.6 MB, free: 4.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.841e-05/0.538, allocations: 35.58 kB / 455.6 MB, free: 4.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.5381, allocations: 186.8 kB / 455.8 MB, free: 4.047 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/0.5382, allocations: 32.44 kB / 455.8 MB, free: 4.016 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.5383, allocations: 36 kB / 455.9 MB, free: 3.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006167/0.5389, allocations: 298.5 kB / 456.2 MB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.539, allocations: 8 kB / 456.2 MB, free: 3.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.539, allocations: 8 kB / 456.2 MB, free: 3.672 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.539, allocations: 7.953 kB / 456.2 MB, free: 3.664 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.5394, allocations: 210.2 kB / 456.4 MB, free: 3.457 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.5409, allocations: 0.6474 MB / 457 MB, free: 2.758 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.5412, allocations: 191.1 kB / 457.2 MB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.5412, allocations: 4 kB / 457.2 MB, free: 2.559 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003091/0.5416, allocations: 172.9 kB / 457.4 MB, free: 2.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=60): time 3.356e-06/0.5416, allocations: 0 / 457.4 MB, free: 2.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=60): time 0.001849/0.5434, allocations: 0.9535 MB / 458.3 MB, free: 1.402 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.5436, allocations: 104 kB / 458.4 MB, free: 1.289 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.204e-05/0.5437, allocations: 116.8 kB / 458.6 MB, free: 1.168 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.5438, allocations: 69.67 kB / 458.6 MB, free: 1.094 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.544, allocations: 215.8 kB / 458.8 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.5442, allocations: 213.3 kB / 459 MB, free: 0.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.5443, allocations: 28 kB / 459.1 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.5445, allocations: 342.8 kB / 459.4 MB, free: 304 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007353/0.5452, allocations: 306.1 kB / 459.7 MB, free: 0 / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.5463, allocations: 0.6514 MB / 460.4 MB, free: 15.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005114/0.5515, allocations: 5.733 MB / 466.1 MB, free: 8.293 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-05/0.5515, allocations: 4 kB / 466.1 MB, free: 8.289 MB / 394.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001895/0.5535, allocations: 0.759 MB / 466.9 MB, free: 7.523 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.522e-05/0.5535, allocations: 12.94 kB / 466.9 MB, free: 7.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.5536, allocations: 12 kB / 466.9 MB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.784e-05/0.5536, allocations: 24.03 kB / 466.9 MB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006941/0.5543, allocations: 131.6 kB / 467 MB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.548e-05/0.5544, allocations: 23.88 kB / 467.1 MB, free: 7.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.5548, allocations: 71.28 kB / 467.1 MB, free: 7.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-05/0.5548, allocations: 44 kB / 467.2 MB, free: 7.211 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 () * Number of clocked 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.0007862/0.5556, allocations: 485.1 kB / 467.6 MB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.5557, allocations: 15.81 kB / 467.7 MB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.737e-05/0.5557, allocations: 9.875 kB / 467.7 MB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.5557, allocations: 0 / 467.7 MB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.5558, allocations: 3.953 kB / 467.7 MB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.5558, allocations: 0 / 467.7 MB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.5576, allocations: 0.9838 MB / 468.7 MB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.5576, allocations: 0 / 468.7 MB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.115e-05/0.5577, allocations: 11.98 kB / 468.7 MB, free: 5.648 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.5577, allocations: 4 kB / 468.7 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.5577, allocations: 4 kB / 468.7 MB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.5577, allocations: 3.953 kB / 468.7 MB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.5577, allocations: 0 / 468.7 MB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.5591, allocations: 0.7509 MB / 469.4 MB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.619e-05/0.5592, allocations: 104.7 kB / 469.5 MB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.5593, allocations: 0 / 469.5 MB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.626e-05/0.5593, allocations: 0 / 469.5 MB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.136e-05/0.5594, allocations: 15.94 kB / 469.5 MB, free: 4.734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.5594, allocations: 4 kB / 469.5 MB, free: 4.73 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.349e-05/0.5594, allocations: 75.28 kB / 469.6 MB, free: 4.656 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5594, allocations: 4 kB / 469.6 MB, free: 4.652 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001004/0.5605, allocations: 167.7 kB / 469.8 MB, free: 4.488 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 () * Number of clocked 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.002824/0.5633, allocations: 1.647 MB / 471.4 MB, free: 2.852 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002141/0.5655, allocations: 0.5641 MB / 472 MB, free: 2.289 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5655, allocations: 0 / 472 MB, free: 2.289 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.5659, allocations: 168.5 kB / 472.2 MB, free: 2.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.5662, allocations: 11.94 kB / 472.2 MB, free: 2.113 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3248/0.891, allocations: 10.26 MB / 482.4 MB, free: 91.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.8914, allocations: 0.7905 MB / 483.2 MB, free: 91.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002372/0.8917, allocations: 95.14 kB / 483.3 MB, free: 91.26 MB / 394.7 MB Notification: Performance of SimCode: time 1.953e-06/0.8917, allocations: 0 / 483.3 MB, free: 91.26 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.069/3.96, allocations: 5.674 MB / 489 MB, free: 90.5 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