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.876/1.876, allocations: 194.9 MB / 208.5 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.711e-05/2.728e-05, allocations: 3.094 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07736/0.07741, allocations: 44.5 MB / 299.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4537, allocations: 73.54 MB / 373.4 MB, free: 22.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.4539, allocations: 63.67 kB / 373.4 MB, free: 22.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03112/0.4851, allocations: 7.49 MB / 380.9 MB, free: 21.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.254e-06/0.4851, allocations: 1.125 kB / 380.9 MB, free: 21.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.736e-05/0.4852, allocations: 8.031 kB / 380.9 MB, free: 21.69 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.0008407/0.486, allocations: 0.7901 MB / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.4861, allocations: 9.25 kB / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.915e-05/0.4862, allocations: 31.53 kB / 381.8 MB, free: 20.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.4866, allocations: 292.5 kB / 382.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.4867, allocations: 9.625 kB / 382.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.381e-05/0.4867, allocations: 18.72 kB / 382.1 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.4872, allocations: 285.5 kB / 382.4 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.4873, allocations: 0 / 382.4 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.4873, allocations: 6.812 kB / 382.4 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.4874, allocations: 3.531 kB / 382.4 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.4877, allocations: 145.2 kB / 382.5 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009952/0.4887, allocations: 1.024 MB / 383.5 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.4891, allocations: 239.2 kB / 383.8 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.4894, allocations: 167.8 kB / 383.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.936e-06/0.4894, allocations: 3.266 kB / 383.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005886/0.49, allocations: 0.5277 MB / 384.5 MB, free: 19.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.111e-06/0.49, allocations: 0 / 384.5 MB, free: 19.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001179/0.4912, allocations: 0.662 MB / 385.1 MB, free: 19.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.4914, allocations: 0.4889 MB / 385.6 MB, free: 18.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003224/0.4917, allocations: 265.9 kB / 385.9 MB, free: 18.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.992e-05/0.4918, allocations: 45.45 kB / 385.9 MB, free: 18.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.202e-05/0.4919, allocations: 194 kB / 386.1 MB, free: 18.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.136e-05/0.492, allocations: 83.34 kB / 386.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.492, allocations: 6.188 kB / 386.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.394e-05/0.4921, allocations: 327.1 kB / 386.5 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.4924, allocations: 147 kB / 386.7 MB, free: 17.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/0.4928, allocations: 239.6 kB / 386.9 MB, free: 17.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.4932, allocations: 437.2 kB / 387.3 MB, free: 17.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.72e-06/0.4932, allocations: 1.312 kB / 387.3 MB, free: 17.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001303/0.4946, allocations: 0.7988 MB / 388.1 MB, free: 17.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.4947, allocations: 300.1 kB / 388.4 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.92e-06/0.4947, allocations: 2.688 kB / 388.4 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.4947, allocations: 4 kB / 388.4 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.4949, allocations: 19.27 kB / 388.4 MB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.4949, allocations: 12.09 kB / 388.5 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.4951, allocations: 29.62 kB / 388.5 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-05/0.4952, allocations: 31.97 kB / 388.5 MB, free: 16.73 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 () * 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.0002632/0.4955, allocations: 354.4 kB / 388.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.743e-05/0.4956, allocations: 47.11 kB / 388.9 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.701e-05/0.4957, allocations: 27.5 kB / 388.9 MB, free: 16.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.173e-06/0.4957, allocations: 2.906 kB / 388.9 MB, free: 16.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.604e-06/0.4957, allocations: 1.594 kB / 388.9 MB, free: 16.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.28e-06/0.4957, allocations: 1.656 kB / 388.9 MB, free: 16.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.4968, allocations: 0.8164 MB / 389.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.088e-06/0.4968, allocations: 1.625 kB / 389.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.22e-05/0.4968, allocations: 2.281 kB / 389.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.4969, allocations: 5.875 kB / 389.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.337e-05/0.4969, allocations: 20.33 kB / 389.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.4969, allocations: 2.219 kB / 389.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.497, allocations: 0 / 389.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.4983, allocations: 0.9056 MB / 390.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.25e-05/0.4984, allocations: 108.2 kB / 390.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.4985, allocations: 30.39 kB / 390.8 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/0.4989, allocations: 29.44 kB / 390.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.525e-05/0.499, allocations: 21.73 kB / 390.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.791e-05/0.4991, allocations: 24.92 kB / 390.9 MB, free: 15.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002513/0.4993, allocations: 211.9 kB / 391.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.4994, allocations: 0 / 391.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008385/0.5002, allocations: 164.3 kB / 391.3 MB, free: 15.31 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]) * 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.0005169/0.5007, allocations: 247.7 kB / 391.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.5021, allocations: 0.9653 MB / 392.5 MB, free: 30.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.394e-06/0.5021, allocations: 0 / 392.5 MB, free: 30.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005833/0.5027, allocations: 0.6024 MB / 393.1 MB, free: 30.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.503, allocations: 27.98 kB / 393.1 MB, free: 30.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.5041, allocations: 0.5234 MB / 393.6 MB, free: 29.99 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.5046, allocations: 0.7887 MB / 394.4 MB, free: 29.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.5046, allocations: 14.97 kB / 394.4 MB, free: 29.28 MB / 330.7 MB Notification: Performance of SimCode: time 1.683e-06/0.5046, allocations: 0 / 394.4 MB, free: 29.28 MB / 330.7 MB Notification: Performance of Templates: time 0.007921/0.5126, allocations: 4.397 MB / 398.8 MB, free: 28.8 MB / 330.7 MB