Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.Interaction1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 1.727/1.727, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003605/0.0003606, allocations: 12 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07869/0.07908, allocations: 44.5 MB / 308.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4459, allocations: 73.63 MB / 382.1 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.4462, allocations: 68.33 kB / 382.1 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03046/0.4767, allocations: 7.549 MB / 389.7 MB, free: 18.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.359e-06/0.4767, allocations: 0 / 389.7 MB, free: 18.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.4768, allocations: 7.844 kB / 389.7 MB, free: 18.06 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008651/0.4776, allocations: 0.8304 MB / 390.5 MB, free: 17.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.4777, allocations: 7.719 kB / 390.5 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.441e-05/0.4778, allocations: 39.09 kB / 390.6 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.4782, allocations: 288.9 kB / 390.8 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.428e-05/0.4782, allocations: 19.39 kB / 390.9 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.226e-05/0.4783, allocations: 18.5 kB / 390.9 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005185/0.4788, allocations: 278.5 kB / 391.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.4788, allocations: 0 / 391.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.4789, allocations: 11.02 kB / 391.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-05/0.4789, allocations: 7.625 kB / 391.2 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.4793, allocations: 144.7 kB / 391.3 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009495/0.4802, allocations: 1.017 MB / 392.3 MB, free: 16.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.4806, allocations: 241.3 kB / 392.6 MB, free: 16.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.4807, allocations: 0 / 392.6 MB, free: 16.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000563/0.4812, allocations: 0.5387 MB / 393.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.747e-06/0.4813, allocations: 0 / 393.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001596/0.4829, allocations: 1.291 MB / 394.4 MB, free: 14.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.483, allocations: 0.4904 MB / 394.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.4834, allocations: 264.7 kB / 395.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.086e-05/0.4834, allocations: 47.17 kB / 395.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.4836, allocations: 191.3 kB / 395.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.976e-05/0.4836, allocations: 81.02 kB / 395.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.4837, allocations: 10.88 kB / 395.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.518e-05/0.4838, allocations: 331.3 kB / 395.8 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.4841, allocations: 143.7 kB / 395.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.4844, allocations: 251 kB / 396.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.4848, allocations: 450.2 kB / 396.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.4849, allocations: 0 / 396.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001189/0.4861, allocations: 0.8169 MB / 397.4 MB, free: 12.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.4862, allocations: 294.7 kB / 397.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.234e-06/0.4862, allocations: 0 / 397.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.4862, allocations: 7.75 kB / 397.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.4864, allocations: 21.66 kB / 397.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.4864, allocations: 11.12 kB / 397.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002312/0.4866, allocations: 23 kB / 397.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.4867, allocations: 29.53 kB / 397.8 MB, free: 12.52 MB / 314.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: 53 ($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,timeTable.nextEventScaled,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.000365/0.4871, allocations: 401.3 kB / 398.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.244e-05/0.4872, allocations: 45.88 kB / 398.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.4872, allocations: 28.39 kB / 398.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.971e-06/0.4873, allocations: 0 / 398.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.36e-06/0.4873, allocations: 3.875 kB / 398.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.552e-06/0.4873, allocations: 0 / 398.3 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.4883, allocations: 0.8149 MB / 399.1 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.129e-06/0.4883, allocations: 0 / 399.1 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.54e-05/0.4884, allocations: 7.844 kB / 399.1 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.162e-06/0.4884, allocations: 4 kB / 399.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.326e-05/0.4885, allocations: 23.97 kB / 399.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.513e-06/0.4885, allocations: 4.094 kB / 399.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.4885, allocations: 0 / 399.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.4899, allocations: 0.9151 MB / 400 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.4899, allocations: 104.5 kB / 400.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4901, allocations: 24.94 kB / 400.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/0.4903, allocations: 39.75 kB / 400.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.337e-05/0.4905, allocations: 23.69 kB / 400.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.4906, allocations: 29.7 kB / 400.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002343/0.4908, allocations: 212.5 kB / 400.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.49e-07/0.4908, allocations: 3.938 kB / 400.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007956/0.4916, allocations: 162.8 kB / 400.6 MB, free: 11.09 MB / 314.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: 32 ($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,timeTable.nextEventScaled,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 30 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,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.0004669/0.4921, allocations: 242.6 kB / 400.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009537/0.4931, allocations: 0.9811 MB / 401.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.503e-06/0.4931, allocations: 0 / 401.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.4937, allocations: 0.6097 MB / 402.5 MB, free: 9.957 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.494, allocations: 26.44 kB / 402.5 MB, free: 9.953 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.4952, allocations: 0.7033 MB / 403.2 MB, free: 9.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/0.4958, allocations: 0.7841 MB / 404 MB, free: 24.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.4958, allocations: 19.25 kB / 404 MB, free: 24.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.931e-06/0.4959, allocations: 0 / 404 MB, free: 24.91 MB / 330.7 MB Notification: Performance of Templates: time 0.00783/0.5037, allocations: 4.41 MB / 408.4 MB, free: 24.44 MB / 330.7 MB