Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable.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.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.759/2.759, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004251/0.0004251, allocations: 8 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3976, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2105/0.6082, allocations: 80.34 MB / 449.7 MB, free: 10.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.6085, allocations: 63.92 kB / 449.8 MB, free: 10.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02492/0.6334, allocations: 4.463 MB / 454.2 MB, free: 5.629 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6335, allocations: 0 / 454.2 MB, free: 5.629 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.6335, allocations: 0 / 454.2 MB, free: 5.629 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.001324/0.6349, allocations: 0.5639 MB / 454.8 MB, free: 4.992 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.635, allocations: 8.031 kB / 454.8 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.262e-05/0.635, allocations: 46.44 kB / 454.8 MB, free: 4.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.301e-05/0.6351, allocations: 23.84 kB / 454.9 MB, free: 4.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.6354, allocations: 178.9 kB / 455 MB, free: 4.691 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.348e-05/0.6354, allocations: 4 kB / 455 MB, free: 4.688 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.418e-05/0.6355, allocations: 11.98 kB / 455.1 MB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005552/0.636, allocations: 171.2 kB / 455.2 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.6361, allocations: 0 / 455.2 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.6361, allocations: 7.938 kB / 455.2 MB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.6361, allocations: 4 kB / 455.2 MB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.6364, allocations: 79.84 kB / 455.3 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004227/0.6369, allocations: 260.1 kB / 455.6 MB, free: 4.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.6375, allocations: 186.5 kB / 455.7 MB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.6375, allocations: 0 / 455.7 MB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000624/0.6382, allocations: 202.8 kB / 455.9 MB, free: 3.648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 3.136e-06/0.6382, allocations: 0 / 455.9 MB, free: 3.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.00144/0.6397, allocations: 397.8 kB / 456.3 MB, free: 3.254 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.6398, allocations: 140.5 kB / 456.5 MB, free: 3.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.6401, allocations: 161.3 kB / 456.6 MB, free: 2.922 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.986e-05/0.6402, allocations: 41.69 kB / 456.7 MB, free: 2.875 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.6403, allocations: 162.6 kB / 456.8 MB, free: 2.715 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.173e-05/0.6404, allocations: 39.59 kB / 456.9 MB, free: 2.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.499e-05/0.6405, allocations: 4 kB / 456.9 MB, free: 2.672 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.6407, allocations: 326.8 kB / 457.2 MB, free: 2.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.6409, allocations: 72.19 kB / 457.3 MB, free: 2.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.6412, allocations: 111.8 kB / 457.4 MB, free: 2.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.6415, allocations: 186.8 kB / 457.5 MB, free: 1.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.6415, allocations: 7.938 kB / 457.6 MB, free: 1.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009311/0.6425, allocations: 412.2 kB / 458 MB, free: 1.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.6427, allocations: 118.8 kB / 458.1 MB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.6427, allocations: 4.25 kB / 458.1 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.6427, allocations: 0 / 458.1 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.088e-05/0.6428, allocations: 15.94 kB / 458.1 MB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.6428, allocations: 0 / 458.1 MB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.643, allocations: 27.78 kB / 458.1 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.048e-05/0.6431, allocations: 12 kB / 458.1 MB, free: 1.301 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition4,$PRE.integerTable4.y,integerTable4.y,$PRE.integerTable4.nextTime,integerTable4.nextTime,$PRE.integerTable4.index,integerTable4.index,$whenCondition3,$PRE.integerTable3.y,integerTable3.y,$PRE.integerTable3.nextTime,integerTable3.nextTime,$PRE.integerTable3.index,integerTable3.index,$whenCondition2,$PRE.integerTable2.y,integerTable2.y,$PRE.integerTable2.nextTime,integerTable2.nextTime,$PRE.integerTable2.index,integerTable2.index,$whenCondition1,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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.0002666/0.6434, allocations: 152.4 kB / 458.3 MB, free: 1.141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.365e-05/0.6434, allocations: 19.8 kB / 458.3 MB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.385e-05/0.6435, allocations: 20.25 kB / 458.3 MB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.6435, allocations: 0 / 458.3 MB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6436, allocations: 4 kB / 458.3 MB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.6436, allocations: 0 / 458.3 MB, free: 1.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.6439, allocations: 225.5 kB / 458.5 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.6439, allocations: 0 / 458.5 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.942e-05/0.6439, allocations: 4 kB / 458.5 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.6439, allocations: 0 / 458.5 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.644, allocations: 15.98 kB / 458.6 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.644, allocations: 4 kB / 458.6 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.644, allocations: 0 / 458.6 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.6451, allocations: 392.4 kB / 459 MB, free: 376 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-05/0.6452, allocations: 96.84 kB / 459 MB, free: 260 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.056e-05/0.6453, allocations: 7.953 kB / 459.1 MB, free: 252 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.6455, allocations: 15.98 kB / 459.1 MB, free: 236 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.287e-05/0.6455, allocations: 11.98 kB / 459.1 MB, free: 224 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-05/0.6456, allocations: 32.03 kB / 459.1 MB, free: 192 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001952/0.6459, allocations: 135.2 kB / 459.2 MB, free: 56 kB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6459, allocations: 4 kB / 459.2 MB, free: 52 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007329/0.6466, allocations: 91.92 kB / 459.3 MB, free: 15.96 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable4.y,integerTable4.nextTime,integerTable4.index,$whenCondition3,integerTable3.y,integerTable3.nextTime,integerTable3.index,$whenCondition2,integerTable2.y,integerTable2.nextTime,integerTable2.index,$whenCondition1,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 8 (integerTable.index,integerTable.nextTime,integerTable2.index,integerTable2.nextTime,integerTable3.index,integerTable3.nextTime,integerTable4.index,integerTable4.nextTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.002/0.6486, allocations: 1.216 MB / 460.6 MB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008338/0.6495, allocations: 429.4 kB / 461 MB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6496, allocations: 0 / 461 MB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003674/0.6499, allocations: 95.89 kB / 461.1 MB, free: 14.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.6502, allocations: 11.94 kB / 461.1 MB, free: 14.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.6534, allocations: 1.605 MB / 462.7 MB, free: 12.44 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.6538, allocations: 0.716 MB / 463.4 MB, free: 11.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.685e-05/0.6539, allocations: 43.36 kB / 463.4 MB, free: 11.65 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6539, allocations: 0 / 463.4 MB, free: 11.65 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.829/3.483, allocations: 3.254 MB / 466.7 MB, free: 8.406 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.IntegerTable_res.mat does not exist to compare? outputFormat=mat