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.Test42.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.Test42,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.Test42") Notification: Performance of loadModel(ModelicaTest): time 2.591/2.591, allocations: 234.9 MB / 251.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.0004342, allocations: 16 kB / 314.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3894, allocations: 54.86 MB / 369.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.5494, allocations: 82.12 MB / 451.9 MB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.5498, allocations: 83.89 kB / 452 MB, free: 10.44 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.02114/0.5709, allocations: 4.649 MB / 456.7 MB, free: 5.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5709, allocations: 0 / 456.7 MB, free: 5.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.571, allocations: 0 / 456.7 MB, free: 5.781 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.0006739/0.5717, allocations: 490.1 kB / 457.1 MB, free: 5.242 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.5717, allocations: 12.02 kB / 457.2 MB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.005e-05/0.5718, allocations: 7.906 kB / 457.2 MB, free: 5.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.5722, allocations: 198.9 kB / 457.4 MB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.5722, allocations: 7.984 kB / 457.4 MB, free: 4.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.5722, allocations: 8 kB / 457.4 MB, free: 4.973 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.5724, allocations: 57.61 kB / 457.4 MB, free: 4.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.5725, allocations: 3.984 kB / 457.4 MB, free: 4.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.5725, allocations: 3.953 kB / 457.4 MB, free: 4.902 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.5725, allocations: 4 kB / 457.4 MB, free: 4.898 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.5726, allocations: 23.92 kB / 457.5 MB, free: 4.875 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.5732, allocations: 320.8 kB / 457.8 MB, free: 4.512 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000293/0.5735, allocations: 58.62 kB / 457.8 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.5735, allocations: 0 / 457.8 MB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.5737, allocations: 80.05 kB / 457.9 MB, free: 4.355 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.883e-06/0.5738, allocations: 0 / 457.9 MB, free: 4.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008286/0.5746, allocations: 181.2 kB / 458.1 MB, free: 4.172 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.5747, allocations: 51.41 kB / 458.1 MB, free: 4.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.575, allocations: 199.3 kB / 458.3 MB, free: 3.895 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.575, allocations: 25.7 kB / 458.4 MB, free: 3.863 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.5751, allocations: 174.5 kB / 458.5 MB, free: 3.691 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.583e-05/0.5751, allocations: 23.7 kB / 458.6 MB, free: 3.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.501e-05/0.5752, allocations: 4 kB / 458.6 MB, free: 3.664 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.5753, allocations: 318.8 kB / 458.9 MB, free: 3.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.5755, allocations: 31.98 kB / 458.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.5756, allocations: 61.62 kB / 459 MB, free: 3.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.5758, allocations: 73.64 kB / 459 MB, free: 3.168 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5759, allocations: 4 kB / 459 MB, free: 3.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004616/0.5763, allocations: 175.2 kB / 459.2 MB, free: 2.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/0.5764, allocations: 41.69 kB / 459.2 MB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.5764, allocations: 3.938 kB / 459.2 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5764, allocations: 0 / 459.2 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.5766, allocations: 16 kB / 459.3 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.5766, allocations: 0 / 459.3 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.5767, allocations: 7.984 kB / 459.3 MB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.5768, allocations: 4.375 kB / 459.3 MB, free: 2.902 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.0001475/0.5769, allocations: 129.9 kB / 459.4 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.577, allocations: 15.86 kB / 459.4 MB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004293/0.5774, allocations: 123 kB / 459.5 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.5774, allocations: 0 / 459.5 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5775, allocations: 8 kB / 459.5 MB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.5775, allocations: 0 / 459.5 MB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.5782, allocations: 423.2 kB / 460 MB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.5782, allocations: 7.938 kB / 460 MB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.625e-05/0.5783, allocations: 11.94 kB / 460 MB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.5783, allocations: 0 / 460 MB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.5783, allocations: 8 kB / 460 MB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.5784, allocations: 3.984 kB / 460 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5784, allocations: 0 / 460 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.5787, allocations: 208.5 kB / 460.2 MB, free: 1.887 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.5789, allocations: 104.9 kB / 460.3 MB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.5789, allocations: 4.094 kB / 460.3 MB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.579, allocations: 11.92 kB / 460.3 MB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.5791, allocations: 4 kB / 460.3 MB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.5791, allocations: 4 kB / 460.3 MB, free: 1.742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001929/0.5793, allocations: 143.9 kB / 460.5 MB, free: 1.602 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5793, allocations: 0 / 460.5 MB, free: 1.602 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004007/0.5798, allocations: 47.92 kB / 460.5 MB, free: 1.555 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.001311/0.5811, allocations: 455.1 kB / 461 MB, free: 1.191 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005258/0.5816, allocations: 171.3 kB / 461.1 MB, free: 1.012 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5817, allocations: 0 / 461.1 MB, free: 1.012 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.5818, allocations: 35.92 kB / 461.2 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.5822, allocations: 24.11 kB / 461.2 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006767/0.5829, allocations: 284.3 kB / 461.5 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.5832, allocations: 0.7121 MB / 462.2 MB, free: 15.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.007e-05/0.5833, allocations: 11.44 kB / 462.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5833, allocations: 0 / 462.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of Templates: time 0.005701/0.589, allocations: 1.985 MB / 464.2 MB, free: 13.91 MB / 394.7 MB