Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.858/1.858, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.029e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08557, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.4138, allocations: 73.86 MB / 400.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000179/0.414, allocations: 62.33 kB / 400.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01955/0.4336, allocations: 4.437 MB / 404.9 MB, free: 8.719 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.691e-06/0.4336, allocations: 0 / 404.9 MB, free: 8.719 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.613e-06/0.4336, allocations: 4 kB / 404.9 MB, free: 8.715 MB / 314.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.0006834/0.4343, allocations: 0.5396 MB / 405.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.4344, allocations: 7.75 kB / 405.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.03e-05/0.4345, allocations: 11.62 kB / 405.5 MB, free: 8.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.281e-05/0.4346, allocations: 190 kB / 405.6 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.4346, allocations: 11.78 kB / 405.7 MB, free: 7.957 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.4347, allocations: 7.281 kB / 405.7 MB, free: 7.957 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.435, allocations: 166.9 kB / 405.8 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.191e-06/0.435, allocations: 0 / 405.8 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.435, allocations: 3.984 kB / 405.8 MB, free: 7.855 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.894e-06/0.435, allocations: 7.781 kB / 405.8 MB, free: 7.852 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.4352, allocations: 57.36 kB / 405.9 MB, free: 7.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002356/0.4354, allocations: 260.4 kB / 406.1 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.4357, allocations: 176.3 kB / 406.3 MB, free: 7.469 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.4358, allocations: 79.8 kB / 406.4 MB, free: 7.434 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.4359, allocations: 7.984 kB / 406.4 MB, free: 7.426 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.4362, allocations: 186.2 kB / 406.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 3.834e-06/0.4362, allocations: 0 / 406.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006129/0.4368, allocations: 302.2 kB / 406.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.4369, allocations: 147.2 kB / 407 MB, free: 7.066 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.437, allocations: 169.6 kB / 407.2 MB, free: 6.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.4371, allocations: 36.3 kB / 407.2 MB, free: 6.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.4371, allocations: 164.8 kB / 407.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.4372, allocations: 34.02 kB / 407.4 MB, free: 6.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.4372, allocations: 6.469 kB / 407.4 MB, free: 6.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.4373, allocations: 321.7 kB / 407.7 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.4375, allocations: 75.86 kB / 407.8 MB, free: 6.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.4376, allocations: 99.47 kB / 407.9 MB, free: 6.379 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.4379, allocations: 196.5 kB / 408.1 MB, free: 6.238 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4379, allocations: 3.953 kB / 408.1 MB, free: 6.234 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006408/0.4385, allocations: 403.6 kB / 408.5 MB, free: 6.035 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.784e-05/0.4386, allocations: 122.3 kB / 408.6 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.804e-06/0.4386, allocations: 0 / 408.6 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.4386, allocations: 7.844 kB / 408.6 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.581e-05/0.4387, allocations: 11.36 kB / 408.6 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.046e-06/0.4387, allocations: 0 / 408.6 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.4388, allocations: 19.41 kB / 408.7 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.4389, allocations: 15.44 kB / 408.7 MB, free: 5.891 MB / 314.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 8.913e-05/0.439, allocations: 127.4 kB / 408.8 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.4391, allocations: 22.83 kB / 408.8 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.4391, allocations: 22.89 kB / 408.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.856e-06/0.4391, allocations: 3.844 kB / 408.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4391, allocations: 0 / 408.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.111e-06/0.4391, allocations: 0 / 408.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.4393, allocations: 218.3 kB / 409.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.958e-06/0.4393, allocations: 4.234 kB / 409.1 MB, free: 5.531 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.154e-05/0.4394, allocations: 3.953 kB / 409.1 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.628e-06/0.4394, allocations: 7.75 kB / 409.1 MB, free: 5.523 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.4394, allocations: 11.8 kB / 409.1 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.4394, allocations: 0 / 409.1 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.858e-06/0.4394, allocations: 11.72 kB / 409.1 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005344/0.44, allocations: 366.5 kB / 409.5 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.44, allocations: 92.7 kB / 409.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.4401, allocations: 11.22 kB / 409.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.4403, allocations: 18.89 kB / 409.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.4403, allocations: 10.98 kB / 409.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.828e-05/0.4404, allocations: 35.22 kB / 409.6 MB, free: 5.188 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001088/0.4405, allocations: 131.6 kB / 409.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4405, allocations: 0 / 409.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005312/0.4411, allocations: 96.11 kB / 409.8 MB, free: 5.09 MB / 314.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.0003928/0.4415, allocations: 203.2 kB / 410 MB, free: 4.961 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000497/0.442, allocations: 416.8 kB / 410.5 MB, free: 4.688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.442, allocations: 0 / 410.5 MB, free: 4.688 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.4422, allocations: 91.89 kB / 410.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.4424, allocations: 6.969 kB / 410.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005365/0.4429, allocations: 286.3 kB / 410.8 MB, free: 4.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.4431, allocations: 0.721 MB / 411.5 MB, free: 3.785 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.4432, allocations: 15.09 kB / 411.6 MB, free: 3.777 MB / 314.7 MB Notification: Performance of SimCode: time 1.624e-06/0.4432, allocations: 3.938 kB / 411.6 MB, free: 3.773 MB / 314.7 MB Notification: Performance of Templates: time 0.005262/0.4485, allocations: 2.644 MB / 414.2 MB, free: 2.43 MB / 314.7 MB