Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.652/1.652, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003522, allocations: 12 kB / 233.8 MB, free: 0.9883 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07906/0.07944, allocations: 38.77 MB / 272.5 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3291/0.4086, allocations: 68.26 MB / 340.8 MB, free: 14.87 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.4089, allocations: 71.97 kB / 340.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03663/0.4456, allocations: 7.485 MB / 348.3 MB, free: 7.316 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4456, allocations: 3.938 kB / 348.4 MB, free: 7.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.144e-05/0.4456, allocations: 8 kB / 348.4 MB, free: 7.305 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.001289/0.4469, allocations: 0.8199 MB / 349.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.447, allocations: 8.031 kB / 349.2 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.4471, allocations: 31.72 kB / 349.2 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.4476, allocations: 282.4 kB / 349.5 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.4477, allocations: 16.17 kB / 349.5 MB, free: 6 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.4478, allocations: 16 kB / 349.5 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007034/0.4485, allocations: 288.2 kB / 349.8 MB, free: 5.676 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.4485, allocations: 3.938 kB / 349.8 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.4486, allocations: 4 kB / 349.8 MB, free: 5.668 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.4486, allocations: 8 kB / 349.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.449, allocations: 139.9 kB / 350 MB, free: 5.523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.4505, allocations: 1.005 MB / 351 MB, free: 4.445 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005613/0.4511, allocations: 234.4 kB / 351.2 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.4511, allocations: 4 kB / 351.2 MB, free: 4.176 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008756/0.452, allocations: 0.5197 MB / 351.7 MB, free: 3.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 2.715e-06/0.452, allocations: 0 / 351.7 MB, free: 3.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.002409/0.4544, allocations: 1.313 MB / 353 MB, free: 2.117 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003095/0.4548, allocations: 498.7 kB / 353.5 MB, free: 1.52 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/0.4553, allocations: 298.5 kB / 353.8 MB, free: 1.215 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.462e-05/0.4554, allocations: 41.64 kB / 353.9 MB, free: 1.168 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.4556, allocations: 203.3 kB / 354 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.4557, allocations: 71.14 kB / 354.1 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.4558, allocations: 12 kB / 354.1 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4559, allocations: 326.8 kB / 354.4 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003867/0.4563, allocations: 148.3 kB / 354.6 MB, free: 424 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004749/0.4568, allocations: 232.8 kB / 354.8 MB, free: 148 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006487/0.4575, allocations: 452.8 kB / 355.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4575, allocations: 0 / 355.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001681/0.4592, allocations: 0.8378 MB / 356.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002375/0.4595, allocations: 293 kB / 356.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.4595, allocations: 4 kB / 356.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.4595, allocations: 4 kB / 356.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.4597, allocations: 24.08 kB / 356.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.107e-05/0.4597, allocations: 7.953 kB / 356.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.46, allocations: 27.84 kB / 356.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.517e-05/0.4601, allocations: 27.98 kB / 356.5 MB, free: 14.29 MB / 298.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 () * Number of clocked 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.0005531/0.4607, allocations: 399.8 kB / 356.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.4608, allocations: 39.62 kB / 356.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.808e-05/0.4609, allocations: 26.17 kB / 356.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.4609, allocations: 0 / 356.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.4609, allocations: 4 kB / 356.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.4609, allocations: 3.953 kB / 356.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.4623, allocations: 0.812 MB / 357.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.4623, allocations: 0 / 357.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.463e-05/0.4624, allocations: 12.06 kB / 357.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4624, allocations: 0 / 357.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-05/0.4625, allocations: 20.12 kB / 357.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.4625, allocations: 7.953 kB / 357.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/0.4625, allocations: 3.938 kB / 357.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.4644, allocations: 0.906 MB / 358.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.4646, allocations: 104.7 kB / 358.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.4647, allocations: 24 kB / 358.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000328/0.4651, allocations: 27.97 kB / 358.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.4652, allocations: 27.92 kB / 358.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.814e-05/0.4653, allocations: 23.98 kB / 358.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003434/0.4657, allocations: 209.9 kB / 359.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4657, allocations: 0 / 359.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000847/0.4665, allocations: 159.9 kB / 359.3 MB, free: 11.3 MB / 298.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]) * Number of clocked states: 0 () * 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.0006382/0.4672, allocations: 247.5 kB / 359.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.4687, allocations: 0.9391 MB / 360.5 MB, free: 9.992 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.4687, allocations: 8.312 kB / 360.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008392/0.4696, allocations: 0.5822 MB / 361 MB, free: 9.328 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.47, allocations: 24.55 kB / 361.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.4716, allocations: 0.6767 MB / 361.7 MB, free: 8.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/0.4722, allocations: 0.7797 MB / 362.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.4722, allocations: 19.42 kB / 362.5 MB, free: 7.746 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.4723, allocations: 4 kB / 362.5 MB, free: 7.742 MB / 298.7 MB Notification: Performance of Templates: time 0.01129/0.4836, allocations: 4.322 MB / 366.9 MB, free: 3.422 MB / 298.7 MB