Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.index|table1.nextTime|table1.y|table2.index|table2.nextTime|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 1.894/1.894, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.813e-05, allocations: 4 kB / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/0.08594, allocations: 48.69 MB / 321.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3446/0.4306, allocations: 78.46 MB / 400.2 MB, free: 7.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.4308, allocations: 71.14 kB / 400.3 MB, free: 7.059 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02221/0.453, allocations: 5.873 MB / 406.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.594e-06/0.4531, allocations: 0 / 406.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.349e-05/0.4531, allocations: 7.344 kB / 406.2 MB, free: 4.574 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001214/0.4544, allocations: 0.7565 MB / 406.9 MB, free: 3.941 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.4544, allocations: 11.59 kB / 406.9 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.4545, allocations: 42.5 kB / 407 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.4547, allocations: 209.6 kB / 407.2 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.4547, allocations: 27.75 kB / 407.2 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-05/0.4548, allocations: 49.66 kB / 407.2 MB, free: 3.688 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.4555, allocations: 327.5 kB / 407.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4556, allocations: 0 / 407.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.955e-05/0.4556, allocations: 23.25 kB / 407.6 MB, free: 3.598 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.85e-06/0.4557, allocations: 11.59 kB / 407.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005608/0.4562, allocations: 246.9 kB / 407.8 MB, free: 3.578 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.4581, allocations: 0.945 MB / 408.8 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009974/0.4591, allocations: 404.2 kB / 409.2 MB, free: 2.969 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003079/0.4595, allocations: 155.4 kB / 409.3 MB, free: 2.953 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.4595, allocations: 8.141 kB / 409.3 MB, free: 2.953 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005059/0.46, allocations: 309.6 kB / 409.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 4.167e-06/0.4601, allocations: 0 / 409.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.0009641/0.461, allocations: 462.4 kB / 410.1 MB, free: 2.641 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.4611, allocations: 173.6 kB / 410.3 MB, free: 2.449 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.4613, allocations: 195.4 kB / 410.5 MB, free: 2.332 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.524e-05/0.4614, allocations: 46.02 kB / 410.5 MB, free: 2.301 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.4615, allocations: 239.3 kB / 410.7 MB, free: 2.113 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.4617, allocations: 111.3 kB / 410.8 MB, free: 2.047 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/0.4617, allocations: 10.25 kB / 410.8 MB, free: 2.047 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.4618, allocations: 336.8 kB / 411.2 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.4621, allocations: 136.1 kB / 411.3 MB, free: 1.719 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/0.4624, allocations: 140.4 kB / 411.4 MB, free: 1.715 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.4627, allocations: 216.1 kB / 411.7 MB, free: 1.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.4628, allocations: 0 / 411.7 MB, free: 1.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001223/0.464, allocations: 0.5489 MB / 412.2 MB, free: 17.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.4641, allocations: 121 kB / 412.3 MB, free: 17.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.305e-06/0.4641, allocations: 0 / 412.3 MB, free: 17.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.4643, allocations: 39.7 kB / 412.4 MB, free: 17.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.4646, allocations: 41.97 kB / 412.4 MB, free: 17.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/0.4662, allocations: 1.432 MB / 413.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.4667, allocations: 69.45 kB / 413.9 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.993e-05/0.4668, allocations: 14.78 kB / 413.9 MB, free: 15.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002668/0.467, allocations: 218 kB / 414.1 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/0.4671, allocations: 30.95 kB / 414.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.993e-05/0.4672, allocations: 38.45 kB / 414.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.509e-06/0.4673, allocations: 11.56 kB / 414.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.467e-06/0.4673, allocations: 0 / 414.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.581e-06/0.4673, allocations: 3.984 kB / 414.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.4688, allocations: 0.9646 MB / 415.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.068e-06/0.4688, allocations: 3.844 kB / 415.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.469, allocations: 38.97 kB / 415.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.54e-06/0.469, allocations: 0 / 415.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.4691, allocations: 18.95 kB / 415.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.24e-06/0.4691, allocations: 0 / 415.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.876e-06/0.4691, allocations: 0 / 415.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009511/0.47, allocations: 0.5844 MB / 415.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001897/0.4702, allocations: 142.1 kB / 416 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.074e-05/0.4704, allocations: 17.73 kB / 416 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.4708, allocations: 68.72 kB / 416 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.471, allocations: 68.3 kB / 416.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.991e-05/0.4711, allocations: 18.94 kB / 416.1 MB, free: 14.58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.4712, allocations: 140.5 kB / 416.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.2e-07/0.4712, allocations: 0 / 416.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006053/0.4718, allocations: 114.5 kB / 416.4 MB, free: 14.49 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0003145/0.4722, allocations: 169.5 kB / 416.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.4733, allocations: 0.6956 MB / 417.2 MB, free: 14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.32e-06/0.4734, allocations: 0 / 417.2 MB, free: 14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005203/0.4739, allocations: 336.5 kB / 417.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.4742, allocations: 18.94 kB / 417.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.4753, allocations: 0.5068 MB / 418.1 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.4758, allocations: 0.7999 MB / 418.9 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.476, allocations: 30.83 kB / 418.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.849e-06/0.476, allocations: 4 kB / 418.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of Templates: time 0.009635/0.4856, allocations: 5.018 MB / 423.9 MB, free: 9.453 MB / 330.7 MB