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.957/1.957, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/2.009e-05, allocations: 4 kB / 249.6 MB, free: 15.31 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2505, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1104/0.3609, allocations: 72.88 MB / 367 MB, free: 9.121 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.3612, allocations: 67.91 kB / 367 MB, free: 9.055 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03299/0.3942, allocations: 7.437 MB / 374.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.261e-06/0.3942, allocations: 0 / 374.5 MB, free: 1.609 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.3943, allocations: 7.984 kB / 374.5 MB, free: 1.602 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.001056/0.3953, allocations: 0.7883 MB / 375.3 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3954, allocations: 8.031 kB / 375.3 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.3955, allocations: 31.72 kB / 375.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.396, allocations: 290.6 kB / 375.6 MB, free: 344 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.3961, allocations: 8 kB / 375.6 MB, free: 336 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.99e-05/0.3961, allocations: 16 kB / 375.6 MB, free: 320 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003284/0.3965, allocations: 132.4 kB / 375.7 MB, free: 184 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.397, allocations: 253 kB / 376 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.397, allocations: 3.938 kB / 376 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.799e-05/0.3971, allocations: 15.94 kB / 376 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.078e-05/0.3971, allocations: 7.984 kB / 376 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.3984, allocations: 0.9706 MB / 377 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.3988, allocations: 226.5 kB / 377.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.3992, allocations: 160 kB / 377.4 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3992, allocations: 4 kB / 377.4 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007124/0.3999, allocations: 0.5127 MB / 377.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 3.52e-06/0.3999, allocations: 0 / 377.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001218/0.4012, allocations: 491.9 kB / 378.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003234/0.4015, allocations: 498.6 kB / 378.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003648/0.4019, allocations: 250.2 kB / 379.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.062e-05/0.402, allocations: 41.69 kB / 379.1 MB, free: 12.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.4022, allocations: 191.5 kB / 379.3 MB, free: 12.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.4023, allocations: 87.05 kB / 379.4 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.4023, allocations: 4 kB / 379.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.4025, allocations: 330.8 kB / 379.7 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.4028, allocations: 132.5 kB / 379.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.4032, allocations: 229.6 kB / 380.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004934/0.4037, allocations: 163.8 kB / 380.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.4038, allocations: 0 / 380.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001302/0.4051, allocations: 0.5164 MB / 380.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002318/0.4053, allocations: 297 kB / 381.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4054, allocations: 4 kB / 381.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.4054, allocations: 4 kB / 381.1 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.4055, allocations: 15.94 kB / 381.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.4055, allocations: 4 kB / 381.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.4058, allocations: 31.77 kB / 381.1 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.772e-05/0.4059, allocations: 28 kB / 381.1 MB, free: 10.33 MB / 330.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 () * 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.000389/0.4063, allocations: 344.2 kB / 381.5 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-05/0.4064, allocations: 43.62 kB / 381.5 MB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.651e-05/0.4065, allocations: 25.95 kB / 381.5 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.141e-06/0.4065, allocations: 4.188 kB / 381.6 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.726e-06/0.4065, allocations: 4 kB / 381.6 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.072e-06/0.4065, allocations: 144 / 381.6 MB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.4076, allocations: 0.6393 MB / 382.2 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.571e-06/0.4076, allocations: 0 / 382.2 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.944e-05/0.4077, allocations: 7.984 kB / 382.2 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.838e-06/0.4077, allocations: 0 / 382.2 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.134e-05/0.4078, allocations: 19.98 kB / 382.2 MB, free: 9.164 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.4078, allocations: 4 kB / 382.2 MB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.383e-06/0.4078, allocations: 0 / 382.2 MB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.4092, allocations: 0.7044 MB / 382.9 MB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.4093, allocations: 112.6 kB / 383 MB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.4095, allocations: 23.98 kB / 383.1 MB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002803/0.4098, allocations: 27.98 kB / 383.1 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.4099, allocations: 27.92 kB / 383.1 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.41, allocations: 23.98 kB / 383.1 MB, free: 8.184 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002778/0.4103, allocations: 198 kB / 383.3 MB, free: 7.988 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.83e-07/0.4103, allocations: 0 / 383.3 MB, free: 7.988 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008474/0.4112, allocations: 155.9 kB / 383.5 MB, free: 7.836 MB / 330.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]) * 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.0006256/0.4118, allocations: 251.5 kB / 383.7 MB, free: 7.586 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.4131, allocations: 0.9315 MB / 384.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.376e-06/0.4131, allocations: 0 / 384.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007012/0.4138, allocations: 0.5862 MB / 385.3 MB, free: 5.871 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.4142, allocations: 27.22 kB / 385.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.4154, allocations: 0.5155 MB / 385.8 MB, free: 5.285 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.416, allocations: 0.7835 MB / 386.6 MB, free: 4.477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.645e-05/0.4161, allocations: 23.44 kB / 386.6 MB, free: 4.453 MB / 330.7 MB Notification: Performance of SimCode: time 5.029e-06/0.4161, allocations: 0 / 386.6 MB, free: 4.453 MB / 330.7 MB Notification: Performance of Templates: time 0.009402/0.4255, allocations: 4.441 MB / 391 MB, free: 16 kB / 330.7 MB