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.144/2.144, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.000429, allocations: 8 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2769, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.3985, allocations: 80.34 MB / 449.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.3988, allocations: 59.97 kB / 449.7 MB, free: 10.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02026/0.4191, allocations: 4.475 MB / 454.1 MB, free: 5.703 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.818e-06/0.4191, allocations: 4 kB / 454.1 MB, free: 5.699 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.4191, allocations: 4 kB / 454.1 MB, free: 5.695 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.0009122/0.4201, allocations: 0.5483 MB / 454.7 MB, free: 5.074 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.4201, allocations: 8.031 kB / 454.7 MB, free: 5.066 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.38e-05/0.4202, allocations: 19.86 kB / 454.7 MB, free: 5.047 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.4204, allocations: 182.8 kB / 454.9 MB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.216e-05/0.4204, allocations: 4 kB / 454.9 MB, free: 4.824 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.4205, allocations: 15.98 kB / 454.9 MB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.4209, allocations: 169 kB / 455.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.4209, allocations: 3.984 kB / 455.1 MB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.853e-05/0.421, allocations: 0 / 455.1 MB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.111e-06/0.421, allocations: 4 kB / 455.1 MB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.4212, allocations: 75.84 kB / 455.2 MB, free: 4.543 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003403/0.4216, allocations: 264.2 kB / 455.4 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004361/0.422, allocations: 192.5 kB / 455.6 MB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.422, allocations: 7.938 kB / 455.6 MB, free: 3.996 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004508/0.4225, allocations: 194.8 kB / 455.8 MB, free: 3.781 MB / 378.7 MB Notification: Performance of pre-optimization done (n=16): time 2.606e-06/0.4225, allocations: 3.938 kB / 455.8 MB, free: 3.777 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001088/0.4236, allocations: 393.2 kB / 456.2 MB, free: 3.387 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.4237, allocations: 144.4 kB / 456.3 MB, free: 3.215 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.4239, allocations: 161.3 kB / 456.5 MB, free: 3.051 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.424, allocations: 37.69 kB / 456.5 MB, free: 3.008 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.4241, allocations: 166.6 kB / 456.7 MB, free: 2.844 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.514e-05/0.4242, allocations: 35.61 kB / 456.7 MB, free: 2.809 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/0.4242, allocations: 0 / 456.7 MB, free: 2.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4244, allocations: 326.8 kB / 457 MB, free: 2.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.4246, allocations: 76.19 kB / 457.1 MB, free: 2.402 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.4248, allocations: 112.6 kB / 457.2 MB, free: 2.281 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.4251, allocations: 186.8 kB / 457.4 MB, free: 2.074 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4251, allocations: 3.938 kB / 457.4 MB, free: 2.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007273/0.4258, allocations: 408.4 kB / 457.8 MB, free: 1.641 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.426, allocations: 122.8 kB / 457.9 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.67e-06/0.426, allocations: 7.938 kB / 457.9 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.426, allocations: 8 kB / 458 MB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.716e-05/0.4261, allocations: 4 kB / 458 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.77e-06/0.4261, allocations: 0 / 458 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.4262, allocations: 31.78 kB / 458 MB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.4263, allocations: 11.98 kB / 458 MB, free: 1.434 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.000199/0.4265, allocations: 156.4 kB / 458.2 MB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.4266, allocations: 19.8 kB / 458.2 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.446e-05/0.4266, allocations: 16.25 kB / 458.2 MB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.4266, allocations: 4 kB / 458.2 MB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4266, allocations: 0 / 458.2 MB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.701e-06/0.4267, allocations: 4 kB / 458.2 MB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.4269, allocations: 229.5 kB / 458.4 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.922e-06/0.4269, allocations: 0 / 458.4 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/0.427, allocations: 4 kB / 458.4 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.583e-06/0.427, allocations: 0 / 458.4 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.427, allocations: 7.984 kB / 458.4 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.08e-06/0.427, allocations: 0 / 458.4 MB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.427, allocations: 7.938 kB / 458.4 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007811/0.4278, allocations: 384.4 kB / 458.8 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.331e-05/0.4279, allocations: 96.91 kB / 458.9 MB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.428, allocations: 15.95 kB / 458.9 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4281, allocations: 11.98 kB / 458.9 MB, free: 372 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.937e-05/0.4282, allocations: 11.98 kB / 458.9 MB, free: 360 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-05/0.4283, allocations: 31.89 kB / 459 MB, free: 328 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.4285, allocations: 135.2 kB / 459.1 MB, free: 192 kB / 378.7 MB Notification: Performance of sort global known variables: time 6.75e-07/0.4285, allocations: 0 / 459.1 MB, free: 192 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005701/0.429, allocations: 95.92 kB / 459.2 MB, free: 96 kB / 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) * 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.0004621/0.4295, allocations: 197.2 kB / 459.4 MB, free: 15.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006669/0.4302, allocations: 433.4 kB / 459.8 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.355e-06/0.4302, allocations: 0 / 459.8 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002771/0.4305, allocations: 99.88 kB / 459.9 MB, free: 15.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001588/0.4307, allocations: 8.828 kB / 459.9 MB, free: 15.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008325/0.4315, allocations: 386.3 kB / 460.3 MB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.432, allocations: 0.72 MB / 461 MB, free: 14.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.432, allocations: 19.38 kB / 461 MB, free: 14.13 MB / 394.7 MB Notification: Performance of SimCode: time 1.361e-06/0.432, allocations: 0 / 461 MB, free: 14.13 MB / 394.7 MB Notification: Performance of Templates: time 0.005955/0.438, allocations: 2.657 MB / 463.7 MB, free: 11.48 MB / 394.7 MB