Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadModel(ModelicaTest): time 2.2/2.2, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.785e-05, allocations: 0 / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.322, allocations: 54.86 MB / 364.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.4461, allocations: 80.25 MB / 444.8 MB, free: 232 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/0.4463, allocations: 59.97 kB / 444.8 MB, free: 172 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02131/0.4676, allocations: 4.448 MB / 449.3 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.937e-06/0.4677, allocations: 0 / 449.3 MB, free: 11.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.4677, allocations: 0 / 449.3 MB, free: 11.74 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.000918/0.4687, allocations: 0.5429 MB / 449.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4687, allocations: 8.031 kB / 449.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.4688, allocations: 19.86 kB / 449.9 MB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.469, allocations: 190.8 kB / 450 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.469, allocations: 4 kB / 450.1 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.4691, allocations: 4 kB / 450.1 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.4694, allocations: 165 kB / 450.2 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.84e-06/0.4695, allocations: 0 / 450.2 MB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.4695, allocations: 4 kB / 450.2 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.322e-06/0.4695, allocations: 0 / 450.2 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001511/0.4697, allocations: 72.61 kB / 450.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003534/0.47, allocations: 256.2 kB / 450.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.4703, allocations: 170.4 kB / 450.7 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.4705, allocations: 79.5 kB / 450.8 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.4705, allocations: 0 / 450.8 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.4709, allocations: 194.7 kB / 451 MB, free: 9.797 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 2.915e-06/0.471, allocations: 4 kB / 451 MB, free: 9.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007003/0.4717, allocations: 289.5 kB / 451.3 MB, free: 9.504 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.4718, allocations: 153.3 kB / 451.4 MB, free: 9.324 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.4721, allocations: 169.2 kB / 451.6 MB, free: 9.152 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.036e-05/0.4721, allocations: 37.69 kB / 451.6 MB, free: 9.109 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.4723, allocations: 166.6 kB / 451.8 MB, free: 8.945 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.713e-05/0.4723, allocations: 31.56 kB / 451.8 MB, free: 8.914 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.4723, allocations: 4 kB / 451.8 MB, free: 8.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4725, allocations: 318.8 kB / 452.1 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.4727, allocations: 76.2 kB / 452.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.4729, allocations: 103.9 kB / 452.3 MB, free: 8.398 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.4732, allocations: 200.1 kB / 452.5 MB, free: 8.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.874e-06/0.4732, allocations: 4 kB / 452.5 MB, free: 8.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007411/0.474, allocations: 396.2 kB / 452.9 MB, free: 7.758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.4741, allocations: 126.8 kB / 453 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.978e-06/0.4741, allocations: 3.984 kB / 453 MB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.4742, allocations: 4 kB / 453 MB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.293e-05/0.4742, allocations: 8 kB / 453 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.4742, allocations: 7.953 kB / 453 MB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.4744, allocations: 19.83 kB / 453.1 MB, free: 7.566 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.4745, allocations: 16 kB / 453.1 MB, free: 7.551 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 () * 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.0001476/0.4746, allocations: 124 kB / 453.2 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.568e-05/0.4747, allocations: 15.81 kB / 453.2 MB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.377e-05/0.4747, allocations: 20.02 kB / 453.2 MB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.276e-06/0.4748, allocations: 4 kB / 453.2 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4748, allocations: 0 / 453.2 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.874e-06/0.4748, allocations: 10.7 kB / 453.2 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.4751, allocations: 217.6 kB / 453.5 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.009e-06/0.4751, allocations: 4 kB / 453.5 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.51e-06/0.4751, allocations: 0 / 453.5 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.26e-06/0.4751, allocations: 4 kB / 453.5 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.4752, allocations: 11.98 kB / 453.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-06/0.4752, allocations: 6.188 kB / 453.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4752, allocations: 0 / 453.5 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006819/0.4759, allocations: 377.4 kB / 453.8 MB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.249e-05/0.476, allocations: 92.92 kB / 453.9 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.173e-05/0.476, allocations: 11.94 kB / 453.9 MB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.4762, allocations: 23.98 kB / 454 MB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.4763, allocations: 11.92 kB / 454 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.341e-05/0.4764, allocations: 31.95 kB / 454 MB, free: 6.488 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001518/0.4765, allocations: 132.1 kB / 454.1 MB, free: 6.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4765, allocations: 0 / 454.1 MB, free: 6.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005878/0.4771, allocations: 87.94 kB / 454.2 MB, free: 6.273 MB / 378.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) * 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.0004698/0.4776, allocations: 203.1 kB / 454.4 MB, free: 6.066 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006212/0.4783, allocations: 421.4 kB / 454.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.46e-06/0.4783, allocations: 0 / 454.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.4785, allocations: 87.86 kB / 454.9 MB, free: 5.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.4787, allocations: 14.52 kB / 454.9 MB, free: 5.508 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006512/0.4793, allocations: 282.9 kB / 455.2 MB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.4798, allocations: 0.72 MB / 455.9 MB, free: 4.449 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.4799, allocations: 11.44 kB / 455.9 MB, free: 4.438 MB / 378.7 MB Notification: Performance of SimCode: time 1.489e-06/0.4799, allocations: 4 kB / 455.9 MB, free: 4.434 MB / 378.7 MB Notification: Performance of Templates: time 0.006186/0.4861, allocations: 2.644 MB / 458.6 MB, free: 1.797 MB / 378.7 MB