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.826/1.826, allocations: 209.3 MB / 224.8 MB, free: 212 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.0004381, allocations: 15.98 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4364/0.4369, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.00325/0.4402, allocations: 1.528 MB / 332.7 MB, free: 5.664 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.4425, allocations: 0.8261 MB / 333.6 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.4426, allocations: 5.25 kB / 333.6 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.443, allocations: 26.34 kB / 333.6 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.4433, allocations: 49.56 kB / 333.6 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.4437, allocations: 78.16 kB / 333.7 MB, free: 5.012 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.4441, allocations: 112.9 kB / 333.8 MB, free: 4.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.4442, allocations: 19.81 kB / 333.8 MB, free: 4.953 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.4444, allocations: 61.14 kB / 333.9 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.4446, allocations: 64.11 kB / 334 MB, free: 4.898 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.4447, allocations: 5.062 kB / 334 MB, free: 4.898 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.4449, allocations: 36.81 kB / 334 MB, free: 4.891 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.607e-05/0.445, allocations: 26.11 kB / 334 MB, free: 4.879 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.287e-05/0.4451, allocations: 42.08 kB / 334.1 MB, free: 4.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000361/0.4455, allocations: 127.8 kB / 334.2 MB, free: 4.805 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.268e-06/0.4455, allocations: 0 / 334.2 MB, free: 4.805 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.661e-06/0.4455, allocations: 0 / 334.2 MB, free: 4.805 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.4455, allocations: 0 / 334.2 MB, free: 4.805 MB / 266.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.001192/0.4467, allocations: 0.5486 MB / 334.7 MB, free: 4.285 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.4468, allocations: 9.656 kB / 334.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.592e-05/0.4469, allocations: 16.67 kB / 334.8 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.4473, allocations: 217.6 kB / 335 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.4474, allocations: 14.89 kB / 335 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.4474, allocations: 5.938 kB / 335 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007044/0.4482, allocations: 131.4 kB / 335.1 MB, free: 3.984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4482, allocations: 3.984 kB / 335.1 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/0.4483, allocations: 1.75 kB / 335.1 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.221e-06/0.4483, allocations: 5.125 kB / 335.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00089/0.4492, allocations: 125.3 kB / 335.3 MB, free: 3.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000874/0.4501, allocations: 371.7 kB / 335.6 MB, free: 3.641 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.4512, allocations: 167.5 kB / 335.8 MB, free: 3.586 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.4513, allocations: 6.531 kB / 335.8 MB, free: 3.582 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007085/0.452, allocations: 140.9 kB / 335.9 MB, free: 3.512 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 4.791e-06/0.452, allocations: 0 / 335.9 MB, free: 3.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.001666/0.4537, allocations: 258 kB / 336.2 MB, free: 3.438 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.4538, allocations: 65.23 kB / 336.2 MB, free: 3.363 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.4542, allocations: 198.3 kB / 336.4 MB, free: 3.234 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.4542, allocations: 31.98 kB / 336.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.638e-05/0.4543, allocations: 173 kB / 336.6 MB, free: 3.035 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.389e-05/0.4544, allocations: 30.69 kB / 336.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.4545, allocations: 1.188 kB / 336.7 MB, free: 3.012 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.122e-05/0.4546, allocations: 318.6 kB / 337 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.4551, allocations: 80.94 kB / 337.1 MB, free: 2.676 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005466/0.4557, allocations: 102.2 kB / 337.2 MB, free: 2.637 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005481/0.4563, allocations: 127 kB / 337.3 MB, free: 2.559 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.935e-06/0.4563, allocations: 1.156 kB / 337.3 MB, free: 2.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.001287/0.4576, allocations: 282 kB / 337.6 MB, free: 2.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.055e-05/0.4577, allocations: 60.84 kB / 337.6 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.615e-06/0.4577, allocations: 1.031 kB / 337.6 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.4577, allocations: 1.312 kB / 337.6 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.4581, allocations: 33.67 kB / 337.7 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.4582, allocations: 1.281 kB / 337.7 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.4586, allocations: 44.02 kB / 337.7 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.4586, allocations: 4.438 kB / 337.7 MB, free: 2.324 MB / 266.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 () * Number of clocked 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 0.0001874/0.4588, allocations: 132.2 kB / 337.8 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.952e-05/0.4589, allocations: 17.64 kB / 337.9 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.01e-05/0.459, allocations: 17.78 kB / 337.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.441e-06/0.459, allocations: 1.5 kB / 337.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.749e-06/0.459, allocations: 1.375 kB / 337.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.268e-06/0.4591, allocations: 4 kB / 337.9 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003226/0.4594, allocations: 231.8 kB / 338.1 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.312e-06/0.4594, allocations: 4 kB / 338.1 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.4598, allocations: 28.16 kB / 338.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.925e-06/0.4598, allocations: 1.469 kB / 338.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.4599, allocations: 5.438 kB / 338.1 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4599, allocations: 0 / 338.1 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.4599, allocations: 1.344 kB / 338.1 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.4617, allocations: 307.2 kB / 338.4 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.984e-05/0.4618, allocations: 89.2 kB / 338.5 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.583e-05/0.4619, allocations: 1.219 kB / 338.5 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/0.4623, allocations: 33.56 kB / 338.6 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.4624, allocations: 19.22 kB / 338.6 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.552e-05/0.4625, allocations: 2.938 kB / 338.6 MB, free: 1.602 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000238/0.4627, allocations: 145.8 kB / 338.7 MB, free: 1.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.64e-07/0.4628, allocations: 0 / 338.7 MB, free: 1.496 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006822/0.4635, allocations: 42.27 kB / 338.8 MB, free: 1.484 MB / 266.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.001495/0.465, allocations: 348.6 kB / 339.1 MB, free: 1.266 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.4662, allocations: 284.4 kB / 339.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.4662, allocations: 0 / 339.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005191/0.4668, allocations: 86.03 kB / 339.5 MB, free: 1.035 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.4673, allocations: 30.52 kB / 339.5 MB, free: 1.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.4684, allocations: 346.9 kB / 339.8 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.4686, allocations: 0.725 MB / 340.6 MB, free: 8 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.4688, allocations: 14.56 kB / 340.6 MB, free: 0 / 266.7 MB Notification: Performance of SimCode: time 2.272e-06/0.4688, allocations: 5.109 kB / 340.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of Templates: time 0.008896/0.4777, allocations: 2.443 MB / 343 MB, free: 14.75 MB / 282.7 MB