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.834/1.834, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.041e-05/3.064e-05, allocations: 1.906 kB / 255.3 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0793/0.07936, allocations: 44.5 MB / 299.8 MB, free: 6.656 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3592/0.4386, allocations: 73.53 MB / 373.4 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.4389, allocations: 64.95 kB / 373.4 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.032/0.4709, allocations: 7.484 MB / 380.9 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.905e-06/0.471, allocations: 0 / 380.9 MB, free: 21.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.203e-05/0.471, allocations: 12.16 kB / 380.9 MB, free: 21.72 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.0008383/0.4718, allocations: 0.7888 MB / 381.7 MB, free: 20.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4719, allocations: 12.97 kB / 381.7 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.472, allocations: 32.09 kB / 381.7 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.4724, allocations: 295.2 kB / 382 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.4725, allocations: 14.03 kB / 382.1 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.4726, allocations: 18.81 kB / 382.1 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.4731, allocations: 282.9 kB / 382.3 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.4731, allocations: 0 / 382.3 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.833e-05/0.4732, allocations: 8.688 kB / 382.4 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.4732, allocations: 5.219 kB / 382.4 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003171/0.4735, allocations: 142 kB / 382.5 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.4745, allocations: 1.017 MB / 383.5 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.4749, allocations: 235.1 kB / 383.7 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.4752, allocations: 173.3 kB / 383.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.4753, allocations: 1.625 kB / 383.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006034/0.4759, allocations: 0.5356 MB / 384.5 MB, free: 19.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.312e-06/0.4759, allocations: 1.5 kB / 384.5 MB, free: 19.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001211/0.4771, allocations: 0.6592 MB / 385.1 MB, free: 19.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.4773, allocations: 0.4896 MB / 385.6 MB, free: 18.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/0.4776, allocations: 262.4 kB / 385.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.521e-05/0.4777, allocations: 45.97 kB / 385.9 MB, free: 18.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.277e-05/0.4778, allocations: 194.1 kB / 386.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.171e-05/0.4779, allocations: 79.39 kB / 386.2 MB, free: 18.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.478, allocations: 6 kB / 386.2 MB, free: 18.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.549e-05/0.478, allocations: 330.4 kB / 386.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.4784, allocations: 143.4 kB / 386.6 MB, free: 17.89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.4787, allocations: 247 kB / 386.9 MB, free: 17.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000422/0.4792, allocations: 447.2 kB / 387.3 MB, free: 17.46 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.616e-06/0.4792, allocations: 1.062 kB / 387.3 MB, free: 17.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001345/0.4806, allocations: 0.8045 MB / 388.1 MB, free: 17.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.4807, allocations: 294.7 kB / 388.4 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.4807, allocations: 2.719 kB / 388.4 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.4808, allocations: 4 kB / 388.4 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.4809, allocations: 21.45 kB / 388.4 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.4809, allocations: 9.469 kB / 388.4 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.4812, allocations: 32.5 kB / 388.5 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.271e-05/0.4813, allocations: 25.31 kB / 388.5 MB, free: 16.75 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.0002841/0.4816, allocations: 353.1 kB / 388.8 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.54e-05/0.4817, allocations: 51.61 kB / 388.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.819e-05/0.4818, allocations: 27.08 kB / 388.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.245e-06/0.4818, allocations: 3.125 kB / 388.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.61e-06/0.4818, allocations: 1.438 kB / 388.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.999e-06/0.4818, allocations: 1.438 kB / 388.9 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.4829, allocations: 0.8127 MB / 389.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.573e-06/0.4829, allocations: 2.188 kB / 389.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.155e-05/0.483, allocations: 5.562 kB / 389.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.118e-06/0.483, allocations: 6.312 kB / 389.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.527e-05/0.4831, allocations: 20.44 kB / 389.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.079e-06/0.4831, allocations: 0 / 389.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.4831, allocations: 1.875 kB / 389.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.4844, allocations: 0.9101 MB / 390.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.4845, allocations: 104.9 kB / 390.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.4847, allocations: 32.03 kB / 390.8 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002852/0.485, allocations: 28.92 kB / 390.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4851, allocations: 26.3 kB / 390.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.299e-05/0.4852, allocations: 28.47 kB / 390.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002561/0.4855, allocations: 211.2 kB / 391.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.4855, allocations: 0 / 391.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008945/0.4864, allocations: 161.7 kB / 391.3 MB, free: 15.34 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.0005648/0.487, allocations: 239.5 kB / 391.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.488, allocations: 0.9734 MB / 392.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.571e-06/0.488, allocations: 0 / 392.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000934/0.489, allocations: 0.5998 MB / 393.1 MB, free: 30.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.4893, allocations: 26.55 kB / 393.1 MB, free: 30.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.4904, allocations: 0.5329 MB / 393.6 MB, free: 30.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004998/0.4909, allocations: 0.7856 MB / 394.4 MB, free: 29.31 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.491, allocations: 18.94 kB / 394.4 MB, free: 29.3 MB / 330.7 MB Notification: Performance of SimCode: time 1.73e-06/0.491, allocations: 0 / 394.4 MB, free: 29.3 MB / 330.7 MB Notification: Performance of Templates: time 0.007898/0.4989, allocations: 4.402 MB / 398.8 MB, free: 28.84 MB / 330.7 MB