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.58/1.58, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.83e-05/5.866e-05, allocations: 4 kB / 225 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2159, allocations: 38.76 MB / 263.7 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.3201, allocations: 68.18 MB / 331.9 MB, free: 5.598 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.3203, allocations: 63.97 kB / 332 MB, free: 5.535 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05832/0.3787, allocations: 7.421 MB / 339.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.79e-06/0.3788, allocations: 0 / 339.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.575e-05/0.3788, allocations: 4 kB / 339.4 MB, free: 14.1 MB / 298.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.001795/0.3806, allocations: 0.7883 MB / 340.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.3807, allocations: 15.97 kB / 340.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.3809, allocations: 35.62 kB / 340.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008197/0.3818, allocations: 270.6 kB / 340.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.084e-05/0.3819, allocations: 20.12 kB / 340.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.382, allocations: 27.94 kB / 340.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.3831, allocations: 264.1 kB / 340.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3832, allocations: 3.938 kB / 340.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-05/0.3833, allocations: 12 kB / 340.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.3833, allocations: 7.938 kB / 340.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006403/0.384, allocations: 135.9 kB / 341 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.3864, allocations: 1.005 MB / 342 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008356/0.3873, allocations: 226.4 kB / 342.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006471/0.388, allocations: 163.5 kB / 342.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.388, allocations: 4 kB / 342.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001245/0.3893, allocations: 0.5159 MB / 342.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 5.309e-06/0.3893, allocations: 3.938 kB / 342.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.003448/0.3928, allocations: 0.6789 MB / 343.6 MB, free: 9.527 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000771/0.3936, allocations: 498.6 kB / 344 MB, free: 8.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008338/0.3945, allocations: 263 kB / 344.3 MB, free: 8.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.3947, allocations: 45.7 kB / 344.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003016/0.395, allocations: 195.2 kB / 344.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.3952, allocations: 79.36 kB / 344.6 MB, free: 8.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.654e-05/0.3953, allocations: 12 kB / 344.6 MB, free: 8.328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003305/0.3957, allocations: 330.8 kB / 344.9 MB, free: 7.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006955/0.3964, allocations: 140.4 kB / 345.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000852/0.3973, allocations: 224.9 kB / 345.3 MB, free: 7.598 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.3985, allocations: 436.9 kB / 345.7 MB, free: 7.109 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.855e-06/0.3985, allocations: 0 / 345.7 MB, free: 7.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.003084/0.4016, allocations: 0.8184 MB / 346.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004364/0.4021, allocations: 301 kB / 346.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.4021, allocations: 0 / 346.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.148e-05/0.4022, allocations: 8 kB / 346.9 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.4024, allocations: 15.92 kB / 346.9 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.19e-05/0.4025, allocations: 7.938 kB / 346.9 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/0.403, allocations: 43.69 kB / 346.9 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.4032, allocations: 24 kB / 346.9 MB, free: 5.77 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 () * 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.0007277/0.4039, allocations: 347.2 kB / 347.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.4041, allocations: 39.7 kB / 347.3 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.4043, allocations: 21.97 kB / 347.3 MB, free: 5.324 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.941e-05/0.4043, allocations: 7.984 kB / 347.3 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.455e-06/0.4044, allocations: 0 / 347.3 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.4044, allocations: 4 kB / 347.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.4064, allocations: 0.8063 MB / 348.2 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.284e-06/0.4065, allocations: 0 / 348.2 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.4065, allocations: 4 kB / 348.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.903e-06/0.4065, allocations: 0 / 348.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-05/0.4066, allocations: 19.98 kB / 348.2 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.4066, allocations: 4 kB / 348.2 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.816e-06/0.4066, allocations: 3.953 kB / 348.2 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.4083, allocations: 0.9247 MB / 349.1 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.952e-05/0.4084, allocations: 112.6 kB / 349.2 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.4085, allocations: 28 kB / 349.3 MB, free: 3.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002849/0.4088, allocations: 31.97 kB / 349.3 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.409, allocations: 23.97 kB / 349.3 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.381e-05/0.4091, allocations: 23.98 kB / 349.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002922/0.4094, allocations: 203.1 kB / 349.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.45e-07/0.4094, allocations: 0 / 349.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008095/0.4102, allocations: 155.9 kB / 349.7 MB, free: 2.809 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]) * 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.0005755/0.4108, allocations: 255.5 kB / 349.9 MB, free: 2.555 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.4121, allocations: 0.9278 MB / 350.9 MB, free: 1.504 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.378e-06/0.4121, allocations: 0 / 350.9 MB, free: 1.504 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007232/0.4129, allocations: 0.5748 MB / 351.4 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.4132, allocations: 20.95 kB / 351.5 MB, free: 0.832 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.4144, allocations: 0.523 MB / 352 MB, free: 280 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005409/0.415, allocations: 0.7759 MB / 352.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.492e-05/0.415, allocations: 15.44 kB / 352.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of SimCode: time 1.728e-06/0.415, allocations: 4 kB / 352.8 MB, free: 15.44 MB / 314.7 MB Notification: Performance of Templates: time 0.009304/0.4244, allocations: 4.312 MB / 357.1 MB, free: 11.14 MB / 314.7 MB