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.Test14.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.Test14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|err1.y|t_new.nextTimeEvent|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Tables.CombiTimeTable.Test14") Notification: Performance of loadModel(ModelicaTest): time 1.885/1.885, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.095e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.08842, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4261, allocations: 77.48 MB / 404 MB, free: 9.277 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.4263, allocations: 74.95 kB / 404.1 MB, free: 9.266 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01568/0.442, allocations: 4 MB / 408.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.045e-06/0.4421, allocations: 0 / 408.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.4421, allocations: 0 / 408.1 MB, free: 7.723 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007494/0.4429, allocations: 0.5422 MB / 408.6 MB, free: 7.195 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4429, allocations: 7.844 kB / 408.6 MB, free: 7.195 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.443, allocations: 15.47 kB / 408.7 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.4433, allocations: 229.2 kB / 408.9 MB, free: 6.957 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.4433, allocations: 15.27 kB / 408.9 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.4434, allocations: 7.688 kB / 408.9 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.4436, allocations: 90.06 kB / 409 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.672e-06/0.4436, allocations: 0 / 409 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.4437, allocations: 0 / 409 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.742e-06/0.4437, allocations: 3.844 kB / 409 MB, free: 6.898 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.4439, allocations: 48.11 kB / 409 MB, free: 6.895 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007968/0.4447, allocations: 423.1 kB / 409.5 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/0.445, allocations: 85.66 kB / 409.5 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.928e-05/0.4451, allocations: 42.66 kB / 409.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.4452, allocations: 0 / 409.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.4454, allocations: 100 kB / 409.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.912e-06/0.4454, allocations: 3.844 kB / 409.7 MB, free: 6.441 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003514/0.4458, allocations: 118 kB / 409.8 MB, free: 6.387 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.4458, allocations: 66.89 kB / 409.9 MB, free: 6.316 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.4461, allocations: 179.6 kB / 410 MB, free: 6.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.4461, allocations: 29.52 kB / 410.1 MB, free: 6.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.4462, allocations: 176.1 kB / 410.2 MB, free: 6.023 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.4462, allocations: 27.36 kB / 410.3 MB, free: 6.008 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.4463, allocations: 0 / 410.3 MB, free: 6.008 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.076e-05/0.4463, allocations: 317.7 kB / 410.6 MB, free: 5.695 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.4464, allocations: 40.3 kB / 410.6 MB, free: 5.691 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.4466, allocations: 57.53 kB / 410.7 MB, free: 5.672 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.4467, allocations: 102.2 kB / 410.8 MB, free: 5.598 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.651e-06/0.4467, allocations: 7.75 kB / 410.8 MB, free: 5.594 MB / 314.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004044/0.4472, allocations: 201.6 kB / 411 MB, free: 5.484 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.4472, allocations: 59.09 kB / 411 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.025e-06/0.4472, allocations: 3.844 kB / 411 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.4473, allocations: 0 / 411 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.4475, allocations: 42.09 kB / 411.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.102e-06/0.4475, allocations: 3.469 kB / 411.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.4478, allocations: 39.02 kB / 411.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.4478, allocations: 7.469 kB / 411.1 MB, free: 5.387 MB / 314.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: 8 ($whenCondition2,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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 7.648e-05/0.4479, allocations: 108.3 kB / 411.2 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-05/0.448, allocations: 27.3 kB / 411.3 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.4483, allocations: 136 kB / 411.4 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.843e-06/0.4483, allocations: 3.844 kB / 411.4 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.864e-06/0.4483, allocations: 0 / 411.4 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.656e-06/0.4483, allocations: 0 / 411.4 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.4485, allocations: 225.8 kB / 411.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.566e-06/0.4486, allocations: 0 / 411.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.4488, allocations: 31.06 kB / 411.7 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.4488, allocations: 7.984 kB / 411.7 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.4488, allocations: 6.938 kB / 411.7 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.859e-06/0.4488, allocations: 0 / 411.7 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.868e-06/0.4488, allocations: 0 / 411.7 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003951/0.4492, allocations: 205.2 kB / 411.9 MB, free: 4.871 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.964e-05/0.4493, allocations: 92.73 kB / 412 MB, free: 4.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/0.4494, allocations: 3.984 kB / 412 MB, free: 4.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.4496, allocations: 35.22 kB / 412 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.4497, allocations: 11.11 kB / 412 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.4497, allocations: 7.953 kB / 412 MB, free: 4.746 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.4498, allocations: 142.3 kB / 412.2 MB, free: 4.668 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.46e-07/0.4499, allocations: 96 / 412.2 MB, free: 4.668 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003628/0.4502, allocations: 56.67 kB / 412.2 MB, free: 4.652 MB / 314.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: 5 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent) * Number of discrete states: 2 (trapezoid1.count,t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009568/0.4512, allocations: 304.8 kB / 412.5 MB, free: 4.477 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003829/0.4516, allocations: 217.3 kB / 412.7 MB, free: 4.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.581e-06/0.4516, allocations: 0 / 412.7 MB, free: 4.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.4518, allocations: 48.47 kB / 412.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.4521, allocations: 36.38 kB / 412.8 MB, free: 4.316 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005719/0.4527, allocations: 241.1 kB / 413 MB, free: 4.148 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.4529, allocations: 0.7187 MB / 413.8 MB, free: 3.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.107e-05/0.453, allocations: 18.16 kB / 413.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of SimCode: time 1.781e-06/0.453, allocations: 0 / 413.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of Templates: time 0.004854/0.4578, allocations: 2.5 MB / 416.3 MB, free: 1.445 MB / 314.7 MB