Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test3") Notification: Performance of loadModel(ModelicaTest): time 2.613/2.613, allocations: 234.9 MB / 251.1 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004556, allocations: 15.98 kB / 315 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3851/0.3856, allocations: 54.85 MB / 369.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.5408, allocations: 82.09 MB / 451.9 MB, free: 10.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.5412, allocations: 75.97 kB / 452 MB, free: 10.52 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.02173/0.563, allocations: 4.391 MB / 456.4 MB, free: 6.117 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.563, allocations: 0 / 456.4 MB, free: 6.117 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.563, allocations: 4 kB / 456.4 MB, free: 6.113 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007496/0.5638, allocations: 467.9 kB / 456.8 MB, free: 5.598 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.5639, allocations: 11.97 kB / 456.8 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.245e-05/0.5639, allocations: 11.91 kB / 456.8 MB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.5643, allocations: 202.9 kB / 457 MB, free: 5.336 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.5644, allocations: 8 kB / 457 MB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.5644, allocations: 4 kB / 457.1 MB, free: 5.324 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.5646, allocations: 57.62 kB / 457.1 MB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.5647, allocations: 4 kB / 457.1 MB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.5647, allocations: 3.984 kB / 457.1 MB, free: 5.254 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.5647, allocations: 7.984 kB / 457.1 MB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.5649, allocations: 27.92 kB / 457.2 MB, free: 5.219 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.5655, allocations: 296.9 kB / 457.4 MB, free: 4.879 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.5657, allocations: 62.62 kB / 457.5 MB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.5658, allocations: 0 / 457.5 MB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.566, allocations: 76.05 kB / 457.6 MB, free: 4.723 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 2.284e-06/0.5661, allocations: 3.938 kB / 457.6 MB, free: 4.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0009644/0.567, allocations: 181.2 kB / 457.8 MB, free: 4.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.5671, allocations: 55.34 kB / 457.8 MB, free: 4.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.5674, allocations: 157.2 kB / 458 MB, free: 4.305 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.5674, allocations: 29.7 kB / 458 MB, free: 4.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.5675, allocations: 162.5 kB / 458.2 MB, free: 4.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.109e-05/0.5676, allocations: 31.64 kB / 458.2 MB, free: 4.078 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.5676, allocations: 4 kB / 458.2 MB, free: 4.074 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.5678, allocations: 318.8 kB / 458.5 MB, free: 3.754 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.568, allocations: 35.98 kB / 458.5 MB, free: 3.719 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.5682, allocations: 57.69 kB / 458.6 MB, free: 3.656 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002022/0.5684, allocations: 69.7 kB / 458.7 MB, free: 3.582 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5684, allocations: 0 / 458.7 MB, free: 3.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005139/0.569, allocations: 191.2 kB / 458.8 MB, free: 3.383 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.241e-05/0.569, allocations: 41.69 kB / 458.9 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.5691, allocations: 0 / 458.9 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.5691, allocations: 0 / 458.9 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.5693, allocations: 16 kB / 458.9 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.5693, allocations: 0 / 458.9 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.5694, allocations: 7.984 kB / 458.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.5694, allocations: 4 kB / 458.9 MB, free: 3.309 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001682/0.5696, allocations: 132.5 kB / 459 MB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.006e-05/0.5697, allocations: 11.86 kB / 459.1 MB, free: 3.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004404/0.5701, allocations: 122.3 kB / 459.2 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.5701, allocations: 0 / 459.2 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5702, allocations: 0 / 459.2 MB, free: 3.035 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.5702, allocations: 3.984 kB / 459.2 MB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007609/0.5709, allocations: 407.3 kB / 459.6 MB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.571, allocations: 384 / 459.6 MB, free: 2.574 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.922e-05/0.5711, allocations: 16 kB / 459.6 MB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.5711, allocations: 0 / 459.6 MB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.5711, allocations: 4 kB / 459.6 MB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.398e-06/0.5711, allocations: 4 kB / 459.6 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5711, allocations: 3.938 kB / 459.6 MB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003941/0.5715, allocations: 220.1 kB / 459.8 MB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.5716, allocations: 93 kB / 459.9 MB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.5717, allocations: 4 kB / 459.9 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.5718, allocations: 4.281 kB / 459.9 MB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.16e-05/0.5719, allocations: 7.984 kB / 459.9 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.5719, allocations: 4 kB / 459.9 MB, free: 2.184 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001464/0.5721, allocations: 123.8 kB / 460 MB, free: 2.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5721, allocations: 0 / 460 MB, free: 2.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004012/0.5725, allocations: 39.92 kB / 460.1 MB, free: 2.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001365/0.5739, allocations: 462.4 kB / 460.5 MB, free: 1.648 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005471/0.5744, allocations: 171.3 kB / 460.7 MB, free: 1.469 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5745, allocations: 0 / 460.7 MB, free: 1.469 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.5746, allocations: 28 kB / 460.7 MB, free: 1.441 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.575, allocations: 19.94 kB / 460.8 MB, free: 1.422 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006512/0.5756, allocations: 256.2 kB / 461 MB, free: 1.129 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.576, allocations: 0.7043 MB / 461.7 MB, free: 408 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.828e-05/0.5761, allocations: 11.44 kB / 461.7 MB, free: 396 kB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5761, allocations: 0 / 461.7 MB, free: 396 kB / 378.7 MB Notification: Performance of Templates: time 0.007601/0.5837, allocations: 1.872 MB / 463.6 MB, free: 14.52 MB / 394.7 MB