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_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadModel(Modelica): time 1.635/1.635, allocations: 171.2 MB / 185.7 MB, free: 1.387 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.841e-05/2.833e-05, allocations: 4 kB / 228.1 MB, free: 7.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.0805, allocations: 38.77 MB / 266.9 MB, free: 0.4922 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002168/0.08272, allocations: 1.297 MB / 268.2 MB, free: 15.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.08475, allocations: 0.8853 MB / 269.1 MB, free: 14.29 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.88e-05/0.08488, allocations: 7.938 kB / 269.1 MB, free: 14.28 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.08512, allocations: 75.77 kB / 269.2 MB, free: 14.2 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.08529, allocations: 79.86 kB / 269.2 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.08658, allocations: 319.2 kB / 269.6 MB, free: 13.81 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.08679, allocations: 103.8 kB / 269.7 MB, free: 13.71 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.165e-05/0.0869, allocations: 12 kB / 269.7 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.08703, allocations: 79.81 kB / 269.8 MB, free: 13.62 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.08727, allocations: 115.8 kB / 269.9 MB, free: 13.51 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005162/0.0878, allocations: 223.7 kB / 270.1 MB, free: 13.29 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.08792, allocations: 24 kB / 270.1 MB, free: 13.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.08807, allocations: 63.81 kB / 270.2 MB, free: 13.2 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.293e-05/0.08815, allocations: 20 kB / 270.2 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005179/0.08868, allocations: 303.6 kB / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.0887, allocations: 0 / 270.5 MB, free: 12.89 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.08872, allocations: 4 kB / 270.5 MB, free: 12.88 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.08874, allocations: 0 / 270.5 MB, free: 12.88 MB / 234.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.0009644/0.08971, allocations: 0.7693 MB / 271.3 MB, free: 12 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.08977, allocations: 12.03 kB / 271.3 MB, free: 11.99 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.952e-05/0.08988, allocations: 31.7 kB / 271.3 MB, free: 11.96 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.09031, allocations: 262.5 kB / 271.6 MB, free: 11.67 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.09037, allocations: 20.12 kB / 271.6 MB, free: 11.65 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.09043, allocations: 20 kB / 271.6 MB, free: 11.63 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006021/0.09105, allocations: 272.2 kB / 271.9 MB, free: 11.34 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.09108, allocations: 0 / 271.9 MB, free: 11.34 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.555e-05/0.09112, allocations: 7.938 kB / 271.9 MB, free: 11.33 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.557e-05/0.09116, allocations: 4 kB / 271.9 MB, free: 11.32 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003641/0.09153, allocations: 143.8 kB / 272 MB, free: 11.18 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.09264, allocations: 0.97 MB / 273 MB, free: 10.14 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004889/0.09315, allocations: 230.3 kB / 273.2 MB, free: 9.879 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.09318, allocations: 7.984 kB / 273.2 MB, free: 9.871 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007618/0.09395, allocations: 0.5081 MB / 273.7 MB, free: 9.289 MB / 234.7 MB Notification: Performance of pre-optimization done (n=32): time 2.494e-06/0.09397, allocations: 0 / 273.7 MB, free: 9.289 MB / 234.7 MB Notification: Performance of matching and sorting (n=32): time 0.002042/0.09602, allocations: 1.255 MB / 275 MB, free: 7.883 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002647/0.0963, allocations: 0.4986 MB / 275.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.09679, allocations: 269.7 kB / 275.7 MB, free: 7.004 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.588e-05/0.09688, allocations: 41.7 kB / 275.8 MB, free: 6.957 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.09708, allocations: 148.6 kB / 275.9 MB, free: 6.809 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.09719, allocations: 71.23 kB / 276 MB, free: 6.738 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.09723, allocations: 8 kB / 276 MB, free: 6.73 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.09743, allocations: 338.8 kB / 276.3 MB, free: 6.391 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.09777, allocations: 128.4 kB / 276.5 MB, free: 6.262 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000443/0.09823, allocations: 217.1 kB / 276.7 MB, free: 6.012 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005161/0.09876, allocations: 424.8 kB / 277.1 MB, free: 5.535 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.341e-06/0.09878, allocations: 0 / 277.1 MB, free: 5.535 MB / 234.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001391/0.1002, allocations: 0.7908 MB / 277.9 MB, free: 4.676 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.1004, allocations: 297 kB / 278.2 MB, free: 4.324 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1004, allocations: 4 kB / 278.2 MB, free: 4.32 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/0.1005, allocations: 8 kB / 278.2 MB, free: 4.312 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.1006, allocations: 11.94 kB / 278.2 MB, free: 4.301 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.67e-05/0.1006, allocations: 8.141 kB / 278.2 MB, free: 4.293 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.1009, allocations: 47.64 kB / 278.2 MB, free: 4.246 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.101, allocations: 20 kB / 278.3 MB, free: 4.227 MB / 234.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,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition6,$whenCondition7,$whenCondition8,$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],$whenCondition3,$whenCondition4,$whenCondition5,$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],$whenCondition2,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,$whenCondition1,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,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.0004689/0.1015, allocations: 388.3 kB / 278.6 MB, free: 3.801 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.682e-05/0.1016, allocations: 39.7 kB / 278.7 MB, free: 3.762 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.737e-05/0.1017, allocations: 34.17 kB / 278.7 MB, free: 3.727 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1017, allocations: 0 / 278.7 MB, free: 3.727 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.1017, allocations: 4 kB / 278.7 MB, free: 3.723 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1017, allocations: 0 / 278.7 MB, free: 3.723 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.103, allocations: 0.8055 MB / 279.5 MB, free: 2.836 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.103, allocations: 0 / 279.5 MB, free: 2.836 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.461e-05/0.1031, allocations: 7.938 kB / 279.5 MB, free: 2.828 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.1031, allocations: 3.984 kB / 279.5 MB, free: 2.824 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.487e-05/0.1032, allocations: 20 kB / 279.6 MB, free: 2.805 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1032, allocations: 0 / 279.6 MB, free: 2.805 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.1032, allocations: 4 kB / 279.6 MB, free: 2.801 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.1048, allocations: 0.8992 MB / 280.5 MB, free: 1.82 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.644e-05/0.1049, allocations: 104.7 kB / 280.6 MB, free: 1.699 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.1051, allocations: 27.98 kB / 280.6 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/0.1054, allocations: 23.98 kB / 280.6 MB, free: 1.648 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.1055, allocations: 27.95 kB / 280.6 MB, free: 1.621 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.278e-05/0.1056, allocations: 23.92 kB / 280.7 MB, free: 1.598 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002957/0.1059, allocations: 213.9 kB / 280.9 MB, free: 1.391 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.054e-06/0.1059, allocations: 4 kB / 280.9 MB, free: 1.387 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0007511/0.1067, allocations: 151.8 kB / 281 MB, free: 1.238 MB / 234.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,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition2,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,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],$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 29 (integerTable.index,integerTable.nextTime,stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition6,$whenCondition8,stop.on,$whenCondition7,stop.pre_reset[1],stop.reset[1],start.table.y,start.table.nextTime,start.table.index,$whenCondition3,$whenCondition5,start.on,$whenCondition4,start.pre_reset[1],start.reset[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition2,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition1) * 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.0005762/0.1073, allocations: 223.6 kB / 281.2 MB, free: 1.012 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.1086, allocations: 0.9471 MB / 282.2 MB, free: 15.94 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1087, allocations: 0 / 282.2 MB, free: 15.94 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007575/0.1094, allocations: 0.5862 MB / 282.8 MB, free: 15.28 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1098, allocations: 30.55 kB / 282.8 MB, free: 15.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.1113, allocations: 0.6431 MB / 283.5 MB, free: 14.57 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.1117, allocations: 0.7758 MB / 284.2 MB, free: 13.77 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.1118, allocations: 25.91 kB / 284.3 MB, free: 13.74 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.595e-05/0.1119, allocations: 19.44 kB / 284.3 MB, free: 13.72 MB / 250.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1119, allocations: 0 / 284.3 MB, free: 13.72 MB / 250.7 MB Notification: Performance of Templates: time 0.01263/0.1245, allocations: 4.049 MB / 288.3 MB, free: 9.68 MB / 250.7 MB