Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.index|integerTable.nextTime|integerTable.y|integerTable2.index|integerTable2.nextTime|integerTable2.y|integerTable3.index|integerTable3.nextTime|integerTable3.y|integerTable4.index|integerTable4.nextTime|integerTable4.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadModel(ModelicaTest): time 2.048/2.048, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006635/0.0006637, allocations: 8 kB / 283.1 MB, free: 9.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3815, allocations: 48.71 MB / 331.8 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.145/0.5266, allocations: 73.96 MB / 405.8 MB, free: 4.488 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5269, allocations: 63.97 kB / 405.8 MB, free: 4.426 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0249/0.5519, allocations: 4.455 MB / 410.3 MB, free: 15.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5519, allocations: 0 / 410.3 MB, free: 15.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.5519, allocations: 0 / 410.3 MB, free: 15.97 MB / 346.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.001144/0.5531, allocations: 0.56 MB / 410.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.5532, allocations: 11.97 kB / 410.8 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.5533, allocations: 11.91 kB / 410.9 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.5534, allocations: 182.9 kB / 411 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.457e-05/0.5535, allocations: 15.94 kB / 411.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.701e-05/0.5536, allocations: 8 kB / 411.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.5541, allocations: 179.1 kB / 411.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.5541, allocations: 4 kB / 411.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.5542, allocations: 3.984 kB / 411.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.5542, allocations: 0 / 411.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.5544, allocations: 71.89 kB / 411.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003831/0.5548, allocations: 256.2 kB / 411.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005707/0.5554, allocations: 186.4 kB / 411.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.5555, allocations: 4 kB / 411.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005657/0.556, allocations: 206.7 kB / 412 MB, free: 14.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.765e-06/0.5561, allocations: 0 / 412 MB, free: 14.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001386/0.5575, allocations: 393.2 kB / 412.3 MB, free: 13.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.5576, allocations: 144.5 kB / 412.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.5579, allocations: 182.2 kB / 412.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.166e-05/0.558, allocations: 33.7 kB / 412.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.5581, allocations: 170.6 kB / 412.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.089e-05/0.5582, allocations: 39.55 kB / 412.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.5582, allocations: 4 kB / 412.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.5584, allocations: 322.8 kB / 413.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.5586, allocations: 68.2 kB / 413.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.5588, allocations: 107.8 kB / 413.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.5591, allocations: 198.8 kB / 413.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.5592, allocations: 7.953 kB / 413.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008678/0.56, allocations: 404.5 kB / 414 MB, free: 11.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/0.5602, allocations: 130.7 kB / 414.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.5602, allocations: 7.984 kB / 414.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.5602, allocations: 4 kB / 414.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.862e-05/0.5603, allocations: 3.938 kB / 414.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.5603, allocations: 4 kB / 414.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001784/0.5605, allocations: 15.84 kB / 414.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.371e-05/0.5606, allocations: 19.98 kB / 414.2 MB, free: 11.67 MB / 346.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.000255/0.5609, allocations: 158 kB / 414.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.5609, allocations: 23.77 kB / 414.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.849e-05/0.561, allocations: 20.17 kB / 414.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.561, allocations: 4 kB / 414.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.561, allocations: 0 / 414.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.5611, allocations: 4 kB / 414.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003177/0.5614, allocations: 217.6 kB / 414.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5614, allocations: 0 / 414.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.45e-05/0.5614, allocations: 7.953 kB / 414.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5614, allocations: 4 kB / 414.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.5615, allocations: 11.98 kB / 414.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.5615, allocations: 0 / 414.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.5615, allocations: 4 kB / 414.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009775/0.5625, allocations: 352.2 kB / 415 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.581e-05/0.5626, allocations: 88.92 kB / 415 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/0.5627, allocations: 15.94 kB / 415.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.5629, allocations: 15.98 kB / 415.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.589e-05/0.563, allocations: 11.98 kB / 415.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.03e-05/0.5631, allocations: 27.95 kB / 415.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001859/0.5633, allocations: 139.1 kB / 415.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5633, allocations: 4 kB / 415.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006785/0.564, allocations: 91.98 kB / 415.3 MB, free: 10.39 MB / 346.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.0006174/0.5646, allocations: 202.7 kB / 415.5 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008995/0.5655, allocations: 425.5 kB / 416 MB, free: 9.715 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5655, allocations: 0 / 416 MB, free: 9.715 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.5659, allocations: 95.97 kB / 416 MB, free: 9.621 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.5661, allocations: 8.625 kB / 416.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.5672, allocations: 390.8 kB / 416.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.5676, allocations: 0.7238 MB / 417.2 MB, free: 8.438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.569e-05/0.5677, allocations: 15.44 kB / 417.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of SimCode: time 1.363e-06/0.5677, allocations: 0 / 417.2 MB, free: 8.422 MB / 346.7 MB Notification: Performance of Templates: time 0.008193/0.5759, allocations: 2.662 MB / 419.8 MB, free: 5.766 MB / 346.7 MB