Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 1.679/1.679, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.68e-05/1.696e-05, allocations: 0 / 222.5 MB, free: 8.719 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07887/0.07891, allocations: 38.76 MB / 261.3 MB, free: 1.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.3791, allocations: 67.52 MB / 328.8 MB, free: 4.773 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003688/0.3795, allocations: 64.66 kB / 328.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09308/0.4726, allocations: 7.415 MB / 336.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4727, allocations: 3.938 kB / 336.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.4727, allocations: 8 kB / 336.3 MB, free: 14.38 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001117/0.4738, allocations: 0.781 MB / 337.1 MB, free: 13.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.4739, allocations: 8.031 kB / 337.1 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.474, allocations: 35.62 kB / 337.1 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.4745, allocations: 274.3 kB / 337.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.4746, allocations: 14.95 kB / 337.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.4746, allocations: 12 kB / 337.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003068/0.4749, allocations: 123.2 kB / 337.5 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.4755, allocations: 263 kB / 337.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.4755, allocations: 0 / 337.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/0.4755, allocations: 4 kB / 337.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/0.4756, allocations: 4 kB / 337.8 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.4769, allocations: 0.9676 MB / 338.8 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004011/0.4773, allocations: 214 kB / 339 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.4776, allocations: 155.2 kB / 339.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.4777, allocations: 7.938 kB / 339.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007298/0.4784, allocations: 0.5067 MB / 339.6 MB, free: 11.03 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 7.035e-06/0.4784, allocations: 0 / 339.6 MB, free: 11.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.001302/0.4797, allocations: 0.5 MB / 340.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003433/0.4801, allocations: 496.9 kB / 340.6 MB, free: 10.03 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.4805, allocations: 246.5 kB / 340.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.184e-05/0.4806, allocations: 45.62 kB / 340.9 MB, free: 9.773 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.4808, allocations: 191.1 kB / 341.1 MB, free: 9.613 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.4809, allocations: 78.7 kB / 341.2 MB, free: 9.551 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.4809, allocations: 0 / 341.2 MB, free: 9.551 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.4811, allocations: 331.1 kB / 341.5 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.4814, allocations: 138.4 kB / 341.6 MB, free: 9.129 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003692/0.4818, allocations: 215.2 kB / 341.8 MB, free: 8.922 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004862/0.4823, allocations: 164.3 kB / 342 MB, free: 8.801 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.627e-05/0.4824, allocations: 4 kB / 342 MB, free: 8.797 MB / 282.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001379/0.4838, allocations: 0.5223 MB / 342.5 MB, free: 8.363 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000235/0.484, allocations: 295 kB / 342.8 MB, free: 8.023 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.4841, allocations: 7.938 kB / 342.8 MB, free: 8.016 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.4841, allocations: 4.156 kB / 342.8 MB, free: 8.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.4842, allocations: 27.86 kB / 342.8 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.4842, allocations: 7.938 kB / 342.9 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.4845, allocations: 31.83 kB / 342.9 MB, free: 7.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.349e-05/0.4846, allocations: 23.62 kB / 342.9 MB, free: 7.93 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index,$whenCondition8,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,$whenCondition7,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$whenCondition6,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,stop.pre_reset[1],$whenCondition1,$whenCondition2,$whenCondition3,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,start.pre_reset[1],booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 10 * 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.000388/0.485, allocations: 342.4 kB / 343.2 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.992e-05/0.4851, allocations: 35.72 kB / 343.3 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.597e-05/0.4852, allocations: 24.95 kB / 343.3 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.668e-06/0.4852, allocations: 4 kB / 343.3 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.4852, allocations: 0 / 343.3 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.954e-06/0.4852, allocations: 3.984 kB / 343.3 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.4863, allocations: 0.6333 MB / 343.9 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.512e-06/0.4863, allocations: 4 kB / 343.9 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.035e-05/0.4864, allocations: 4 kB / 343.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.078e-06/0.4864, allocations: 3.938 kB / 344 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.564e-05/0.4864, allocations: 18.98 kB / 344 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.153e-06/0.4865, allocations: 4 kB / 344 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4865, allocations: 0 / 344 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.4879, allocations: 0.7139 MB / 344.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.488, allocations: 104.7 kB / 344.8 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.4881, allocations: 30.75 kB / 344.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002832/0.4884, allocations: 23.98 kB / 344.8 MB, free: 6.098 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.4885, allocations: 26.59 kB / 344.9 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.965e-05/0.4886, allocations: 27.67 kB / 344.9 MB, free: 6.055 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000256/0.4889, allocations: 196.9 kB / 345.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.97e-07/0.4889, allocations: 0 / 345.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008135/0.4897, allocations: 151.2 kB / 345.2 MB, free: 5.75 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,start.reset[1],start.on,start.table.y,start.table.nextTime,start.table.index,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,stop.pre_reset[1],$whenCondition7,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 29 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition7,stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition4,$whenCondition6,stop.on,$whenCondition5,stop.pre_reset[1],stop.reset[1],start.table.y,start.table.nextTime,start.table.index,$whenCondition1,$whenCondition3,start.on,$whenCondition2,start.pre_reset[1],start.reset[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 6 * 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.0005559/0.4903, allocations: 237.8 kB / 345.5 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.4915, allocations: 0.9028 MB / 346.4 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.976e-06/0.4915, allocations: 0 / 346.4 MB, free: 4.617 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006424/0.4922, allocations: 0.5634 MB / 346.9 MB, free: 4.082 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.4925, allocations: 30.83 kB / 347 MB, free: 4.055 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.4937, allocations: 0.4952 MB / 347.5 MB, free: 3.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.4942, allocations: 0.7864 MB / 348.2 MB, free: 2.781 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.4943, allocations: 15.44 kB / 348.3 MB, free: 2.766 MB / 282.7 MB Notification: Performance of SimCode: time 1.698e-06/0.4943, allocations: 0 / 348.3 MB, free: 2.766 MB / 282.7 MB Notification: Performance of Templates: time 0.00977/0.5041, allocations: 4.332 MB / 352.6 MB, free: 14.46 MB / 298.7 MB