Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test14.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.Tables.CombiTimeTable.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|t_new.nextTimeEvent|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Tables.CombiTimeTable.Test14") Notification: Performance of loadModel(ModelicaTest): time 2.263/2.263, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.248e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3614, allocations: 54.86 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.17/0.5315, allocations: 83.39 MB / 447.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.5318, allocations: 71.95 kB / 448 MB, free: 13.01 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$t_new.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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.01839/0.5502, allocations: 4.171 MB / 452.2 MB, free: 8.863 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.817e-06/0.5502, allocations: 0 / 452.2 MB, free: 8.863 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.5502, allocations: 4 kB / 452.2 MB, free: 8.859 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009962/0.5513, allocations: 0.5885 MB / 452.8 MB, free: 8.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.5513, allocations: 11.97 kB / 452.8 MB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.5514, allocations: 15.81 kB / 452.8 MB, free: 8.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.5518, allocations: 234.5 kB / 453 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.5519, allocations: 8 kB / 453 MB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.5519, allocations: 11.91 kB / 453.1 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.5522, allocations: 97.64 kB / 453.1 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.32e-06/0.5522, allocations: 0 / 453.1 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.5523, allocations: 3.953 kB / 453.2 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.537e-06/0.5523, allocations: 4 kB / 453.2 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.5525, allocations: 51.94 kB / 453.2 MB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009489/0.5534, allocations: 444.5 kB / 453.6 MB, free: 7.242 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.5538, allocations: 102.6 kB / 453.7 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.554, allocations: 49.03 kB / 453.8 MB, free: 7.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.554, allocations: 7.875 kB / 453.8 MB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.5543, allocations: 104.5 kB / 453.9 MB, free: 6.961 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 3.024e-06/0.5543, allocations: 0 / 453.9 MB, free: 6.961 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004258/0.5548, allocations: 134.3 kB / 454 MB, free: 6.824 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.144e-05/0.5548, allocations: 55.41 kB / 454.1 MB, free: 6.758 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/0.5551, allocations: 189.9 kB / 454.3 MB, free: 6.562 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.5552, allocations: 38.73 kB / 454.3 MB, free: 6.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.5553, allocations: 178.4 kB / 454.5 MB, free: 6.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.802e-05/0.5554, allocations: 39.48 kB / 454.5 MB, free: 6.305 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.735e-05/0.5554, allocations: 4 kB / 454.5 MB, free: 6.301 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.5556, allocations: 322.8 kB / 454.8 MB, free: 5.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.5558, allocations: 48.59 kB / 454.9 MB, free: 5.926 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.556, allocations: 76.81 kB / 455 MB, free: 5.844 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.5562, allocations: 119.3 kB / 455.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.5562, allocations: 0 / 455.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005418/0.5568, allocations: 240.9 kB / 455.3 MB, free: 5.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.935e-05/0.5568, allocations: 67.39 kB / 455.4 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.676e-06/0.5569, allocations: 4.547 kB / 455.4 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.5569, allocations: 3.953 kB / 455.4 MB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.5572, allocations: 51.97 kB / 455.4 MB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.5572, allocations: 3.984 kB / 455.4 MB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.5575, allocations: 35.83 kB / 455.5 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.5575, allocations: 11.98 kB / 455.5 MB, free: 5.273 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.t_new.nextTimeEvent,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * 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.0001253/0.5576, allocations: 113.6 kB / 455.6 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.5577, allocations: 19.81 kB / 455.6 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004183/0.5581, allocations: 155.1 kB / 455.8 MB, free: 4.973 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.165e-06/0.5582, allocations: 3.953 kB / 455.8 MB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.5582, allocations: 4 kB / 455.8 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.5582, allocations: 3.984 kB / 455.8 MB, free: 4.961 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003278/0.5585, allocations: 229.5 kB / 456 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-06/0.5586, allocations: 1.219 kB / 456 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.5588, allocations: 31.97 kB / 456 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.383e-06/0.5588, allocations: 4 kB / 456 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.5588, allocations: 8 kB / 456 MB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.87e-06/0.5589, allocations: 3.984 kB / 456.1 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.5589, allocations: 3.953 kB / 456.1 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005448/0.5594, allocations: 220.8 kB / 456.3 MB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.5596, allocations: 108.9 kB / 456.4 MB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.5597, allocations: 0 / 456.4 MB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.5599, allocations: 39.97 kB / 456.4 MB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.718e-05/0.56, allocations: 19.97 kB / 456.4 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.56, allocations: 7.953 kB / 456.4 MB, free: 4.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001988/0.5603, allocations: 152.2 kB / 456.6 MB, free: 4.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.16e-07/0.5603, allocations: 1.688 kB / 456.6 MB, free: 4.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003801/0.5607, allocations: 48 kB / 456.6 MB, free: 4.016 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001309/0.562, allocations: 390.8 kB / 457 MB, free: 3.711 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005251/0.5625, allocations: 258.8 kB / 457.3 MB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.634e-06/0.5625, allocations: 0 / 457.3 MB, free: 3.434 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.5627, allocations: 47.94 kB / 457.3 MB, free: 3.387 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.5631, allocations: 43.64 kB / 457.4 MB, free: 3.344 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007096/0.5638, allocations: 245.6 kB / 457.6 MB, free: 3.078 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.5642, allocations: 0.7361 MB / 458.3 MB, free: 2.316 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.917e-05/0.5643, allocations: 15.44 kB / 458.4 MB, free: 2.301 MB / 378.7 MB Notification: Performance of SimCode: time 1.763e-06/0.5644, allocations: 0 / 458.4 MB, free: 2.301 MB / 378.7 MB Notification: Performance of Templates: time 0.0063/0.5707, allocations: 2.688 MB / 461 MB, free: 15.61 MB / 394.7 MB