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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.895/1.895, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.084e-05/1.091e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2533, allocations: 48.68 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.3604, allocations: 73.22 MB / 393.2 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.3606, allocations: 59.97 kB / 393.3 MB, free: 7.191 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01903/0.3797, allocations: 4.42 MB / 397.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.135e-06/0.3797, allocations: 0 / 397.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.709e-06/0.3797, allocations: 0 / 397.7 MB, free: 2.762 MB / 330.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.0007696/0.3805, allocations: 0.5391 MB / 398.2 MB, free: 2.156 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3806, allocations: 12.03 kB / 398.2 MB, free: 2.145 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.479e-05/0.3806, allocations: 15.89 kB / 398.3 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.3808, allocations: 187.9 kB / 398.4 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.3809, allocations: 3.953 kB / 398.4 MB, free: 1.902 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.3809, allocations: 12 kB / 398.5 MB, free: 1.891 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001453/0.3811, allocations: 55.97 kB / 398.5 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.3814, allocations: 168.8 kB / 398.7 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.705e-06/0.3814, allocations: 0 / 398.7 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.3814, allocations: 0 / 398.7 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.3814, allocations: 8 kB / 398.7 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002969/0.3817, allocations: 232.8 kB / 398.9 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.382, allocations: 164.5 kB / 399.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.3822, allocations: 83.5 kB / 399.2 MB, free: 1.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.3822, allocations: 3.953 kB / 399.2 MB, free: 1.078 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003454/0.3826, allocations: 190.7 kB / 399.3 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 2.586e-06/0.3826, allocations: 3.938 kB / 399.3 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006034/0.3832, allocations: 277.3 kB / 399.6 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.626e-05/0.3833, allocations: 148.4 kB / 399.8 MB, free: 420 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.3835, allocations: 161.4 kB / 399.9 MB, free: 252 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.3836, allocations: 33.7 kB / 400 MB, free: 212 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.3837, allocations: 162.6 kB / 400.1 MB, free: 48 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.3837, allocations: 43.48 kB / 400.2 MB, free: 4 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.3838, allocations: 4 kB / 400.2 MB, free: 0 / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3839, allocations: 314.8 kB / 400.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.3841, allocations: 72.2 kB / 400.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.3843, allocations: 99.86 kB / 400.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.3846, allocations: 71.95 kB / 400.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.999e-06/0.3846, allocations: 0 / 400.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006757/0.3853, allocations: 285.4 kB / 401 MB, free: 15.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.3854, allocations: 123.6 kB / 401.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3854, allocations: 7.984 kB / 401.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3854, allocations: 0 / 401.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.34e-05/0.3855, allocations: 7.938 kB / 401.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.884e-06/0.3855, allocations: 0 / 401.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.3856, allocations: 19.84 kB / 401.1 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.3857, allocations: 15.98 kB / 401.2 MB, free: 14.95 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 () * 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.000124/0.3858, allocations: 124.2 kB / 401.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.3859, allocations: 27.75 kB / 401.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.125e-05/0.3859, allocations: 16.33 kB / 401.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.58e-06/0.386, allocations: 4 kB / 401.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.572e-06/0.386, allocations: 0 / 401.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.386, allocations: 4 kB / 401.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.3862, allocations: 190.1 kB / 401.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-06/0.3862, allocations: 0 / 401.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.153e-05/0.3863, allocations: 4 kB / 401.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.293e-06/0.3863, allocations: 3.984 kB / 401.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.3863, allocations: 8 kB / 401.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.341e-06/0.3863, allocations: 3.953 kB / 401.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.742e-06/0.3863, allocations: 4 kB / 401.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000589/0.3869, allocations: 369.4 kB / 401.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.387, allocations: 88.92 kB / 402 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.3871, allocations: 7.984 kB / 402 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.3872, allocations: 19.92 kB / 402 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/0.3873, allocations: 11.98 kB / 402 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/0.3874, allocations: 24.2 kB / 402 MB, free: 13.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000133/0.3875, allocations: 140.1 kB / 402.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.3875, allocations: 0 / 402.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.388, allocations: 91.88 kB / 402.3 MB, free: 13.73 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) * 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.0004287/0.3885, allocations: 195 kB / 402.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005207/0.389, allocations: 406.7 kB / 402.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.882e-06/0.389, allocations: 0 / 402.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.3892, allocations: 87.91 kB / 402.9 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.3894, allocations: 8.703 kB / 403 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005668/0.3899, allocations: 281.7 kB / 403.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.3904, allocations: 0.7235 MB / 404 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.398e-05/0.3904, allocations: 15.44 kB / 404 MB, free: 11.91 MB / 346.7 MB Notification: Performance of SimCode: time 1.321e-06/0.3904, allocations: 0 / 404 MB, free: 11.91 MB / 346.7 MB Notification: Performance of Templates: time 0.005783/0.3962, allocations: 2.671 MB / 406.6 MB, free: 9.242 MB / 346.7 MB