Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test21.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.Tables.CombiTimeTable.Test21,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.nextTimeEvent|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test21") Notification: Performance of loadModel(ModelicaTest): time 1.923/1.923, allocations: 209.2 MB / 224.8 MB, free: 1.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004392, allocations: 16 kB / 282.6 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0901/0.09057, allocations: 48.7 MB / 331.3 MB, free: 8.949 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3987/0.4893, allocations: 75.87 MB / 407.1 MB, free: 9.211 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.4896, allocations: 74.75 kB / 407.2 MB, free: 9.141 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01674/0.5064, allocations: 4.016 MB / 411.2 MB, free: 5.137 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.328e-06/0.5064, allocations: 4 kB / 411.2 MB, free: 5.133 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.5065, allocations: 0 / 411.2 MB, free: 5.133 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005729/0.507, allocations: 432.6 kB / 411.7 MB, free: 4.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.5071, allocations: 8.031 kB / 411.7 MB, free: 4.648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.5071, allocations: 7.906 kB / 411.7 MB, free: 4.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.5074, allocations: 194.3 kB / 411.9 MB, free: 4.414 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.5075, allocations: 7.938 kB / 411.9 MB, free: 4.406 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.5075, allocations: 8 kB / 411.9 MB, free: 4.398 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.5076, allocations: 49.67 kB / 411.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5076, allocations: 0 / 411.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.5077, allocations: 0 / 411.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.572e-06/0.5077, allocations: 0 / 411.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6e-05/0.5077, allocations: 12 kB / 411.9 MB, free: 4.332 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004605/0.5082, allocations: 288.9 kB / 412.2 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002159/0.5085, allocations: 46.5 kB / 412.3 MB, free: 3.945 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.5085, allocations: 7.984 kB / 412.3 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/0.5086, allocations: 59.48 kB / 412.3 MB, free: 3.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.766e-06/0.5087, allocations: 0 / 412.3 MB, free: 3.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004773/0.5091, allocations: 129.2 kB / 412.5 MB, free: 3.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.5092, allocations: 51.41 kB / 412.5 MB, free: 3.672 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.5095, allocations: 164.8 kB / 412.7 MB, free: 3.504 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.5095, allocations: 25.7 kB / 412.7 MB, free: 3.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.916e-05/0.5096, allocations: 166.6 kB / 412.9 MB, free: 3.309 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.5096, allocations: 15.8 kB / 412.9 MB, free: 3.293 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.766e-06/0.5097, allocations: 0 / 412.9 MB, free: 3.293 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.5098, allocations: 322.8 kB / 413.2 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.077e-05/0.5099, allocations: 20 kB / 413.2 MB, free: 2.949 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.51, allocations: 27.92 kB / 413.2 MB, free: 2.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.743e-05/0.5101, allocations: 53.64 kB / 413.3 MB, free: 2.863 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.686e-06/0.5101, allocations: 0 / 413.3 MB, free: 2.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003746/0.5105, allocations: 123.4 kB / 413.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.243e-05/0.5106, allocations: 38.48 kB / 413.5 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.5106, allocations: 3.984 kB / 413.5 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.5107, allocations: 0 / 413.5 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.5108, allocations: 11.94 kB / 413.5 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.5108, allocations: 3.953 kB / 413.5 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.5109, allocations: 4 kB / 413.5 MB, free: 2.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.511, allocations: 4 kB / 413.5 MB, free: 2.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001986/0.5112, allocations: 121.8 kB / 413.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.456e-05/0.5113, allocations: 11.91 kB / 413.6 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003664/0.5116, allocations: 90.11 kB / 413.7 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.5117, allocations: 0 / 413.7 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.5117, allocations: 8 kB / 413.7 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.5117, allocations: 7.891 kB / 413.7 MB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007051/0.5125, allocations: 350.5 kB / 414.1 MB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.264e-06/0.5125, allocations: 0 / 414.1 MB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.115e-05/0.5125, allocations: 8 kB / 414.1 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.459e-06/0.5126, allocations: 0 / 414.1 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.5126, allocations: 4 kB / 414.1 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.092e-06/0.5126, allocations: 3.953 kB / 414.1 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.882e-06/0.5126, allocations: 0 / 414.1 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002476/0.5129, allocations: 183.3 kB / 414.2 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.544e-05/0.513, allocations: 89.11 kB / 414.3 MB, free: 1.695 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.513, allocations: 3.938 kB / 414.3 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.5131, allocations: 0 / 414.3 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.5132, allocations: 11.94 kB / 414.4 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.5132, allocations: 12 kB / 414.4 MB, free: 1.668 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001511/0.5133, allocations: 123.8 kB / 414.5 MB, free: 1.547 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.5134, allocations: 0 / 414.5 MB, free: 1.547 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003854/0.5137, allocations: 31.98 kB / 414.5 MB, free: 1.516 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001162/0.5149, allocations: 381.9 kB / 414.9 MB, free: 1.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002421/0.5152, allocations: 119.3 kB / 415 MB, free: 1.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.68e-06/0.5152, allocations: 0 / 415 MB, free: 1.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.524e-05/0.5153, allocations: 16 kB / 415 MB, free: 1.074 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.5156, allocations: 15.98 kB / 415 MB, free: 1.059 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005366/0.5161, allocations: 231.4 kB / 415.3 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.5165, allocations: 0.7082 MB / 416 MB, free: 64 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.097e-05/0.5166, allocations: 15.44 kB / 416 MB, free: 48 kB / 330.7 MB Notification: Performance of SimCode: time 1.305e-06/0.5166, allocations: 0 / 416 MB, free: 48 kB / 330.7 MB Notification: Performance of Templates: time 0.004237/0.5209, allocations: 1.696 MB / 417.7 MB, free: 14.36 MB / 346.7 MB