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.2_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.127/2.127, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.564e-05/3.573e-05, allocations: 4.938 kB / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3262, allocations: 54.85 MB / 359.8 MB, free: 2.215 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.4611, allocations: 84.86 MB / 444.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.4614, allocations: 65.16 kB / 444.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02533/0.4868, allocations: 5.894 MB / 450.6 MB, free: 6.074 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.481e-06/0.4868, allocations: 0 / 450.6 MB, free: 6.074 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.4868, allocations: 8 kB / 450.6 MB, free: 6.066 MB / 378.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.001563/0.4884, allocations: 0.7535 MB / 451.3 MB, free: 5.242 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.4885, allocations: 8.031 kB / 451.3 MB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.4886, allocations: 47.47 kB / 451.4 MB, free: 5.188 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.4889, allocations: 203.6 kB / 451.6 MB, free: 4.945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.489, allocations: 32.78 kB / 451.6 MB, free: 4.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.768e-05/0.4891, allocations: 40 kB / 451.7 MB, free: 4.871 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009058/0.49, allocations: 377.3 kB / 452 MB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.49, allocations: 4 kB / 452 MB, free: 4.488 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-05/0.4901, allocations: 16 kB / 452 MB, free: 4.473 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.4901, allocations: 11.95 kB / 452.1 MB, free: 4.461 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.4908, allocations: 254.4 kB / 452.3 MB, free: 4.211 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.4932, allocations: 0.9452 MB / 453.2 MB, free: 3.215 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.4945, allocations: 410.2 kB / 453.6 MB, free: 2.805 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.4949, allocations: 157.2 kB / 453.8 MB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.573e-05/0.4949, allocations: 8.328 kB / 453.8 MB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006448/0.4956, allocations: 313.3 kB / 454.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.571e-06/0.4956, allocations: 0 / 454.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001141/0.4968, allocations: 460.5 kB / 454.6 MB, free: 1.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/0.497, allocations: 200.3 kB / 454.8 MB, free: 1.602 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.4973, allocations: 199.5 kB / 455 MB, free: 1.402 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.647e-05/0.4974, allocations: 45.7 kB / 455 MB, free: 1.352 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.4976, allocations: 235.2 kB / 455.2 MB, free: 1.121 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.4977, allocations: 106.7 kB / 455.3 MB, free: 1.016 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.4978, allocations: 11.94 kB / 455.3 MB, free: 1.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.498, allocations: 334.8 kB / 455.7 MB, free: 0.668 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.4984, allocations: 142.1 kB / 455.8 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004209/0.4988, allocations: 174.8 kB / 456 MB, free: 364 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/0.4992, allocations: 218.1 kB / 456.2 MB, free: 120 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.096e-06/0.4993, allocations: 4.031 kB / 456.2 MB, free: 116 kB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001371/0.5006, allocations: 0.5454 MB / 456.7 MB, free: 15.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.5008, allocations: 118.8 kB / 456.9 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.514e-06/0.5008, allocations: 4 kB / 456.9 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.501, allocations: 32.84 kB / 456.9 MB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.5012, allocations: 39.91 kB / 456.9 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.5031, allocations: 1.428 MB / 458.4 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000478/0.5036, allocations: 83.95 kB / 458.4 MB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.82e-05/0.5037, allocations: 17.5 kB / 458.5 MB, free: 13.65 MB / 394.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.0002911/0.504, allocations: 212.2 kB / 458.7 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.074e-05/0.5041, allocations: 35.62 kB / 458.7 MB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.781e-05/0.5042, allocations: 39.08 kB / 458.7 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.929e-06/0.5042, allocations: 8 kB / 458.7 MB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.232e-06/0.5042, allocations: 0 / 458.7 MB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.479e-06/0.5043, allocations: 3.984 kB / 458.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.5061, allocations: 0.9546 MB / 459.7 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.5061, allocations: 7.984 kB / 459.7 MB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.5063, allocations: 35.92 kB / 459.8 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.382e-06/0.5064, allocations: 0 / 459.8 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.693e-05/0.5064, allocations: 15.98 kB / 459.8 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.193e-06/0.5065, allocations: 8 kB / 459.8 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.085e-06/0.5065, allocations: 0 / 459.8 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.5076, allocations: 0.589 MB / 460.4 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.5078, allocations: 108.6 kB / 460.5 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-05/0.5079, allocations: 16.94 kB / 460.5 MB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000508/0.5084, allocations: 71.94 kB / 460.6 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.5086, allocations: 75.66 kB / 460.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.767e-05/0.5087, allocations: 16 kB / 460.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001981/0.5089, allocations: 149 kB / 460.8 MB, free: 11.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.19e-07/0.5089, allocations: 0 / 460.8 MB, free: 11.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006716/0.5096, allocations: 119.9 kB / 460.9 MB, free: 11.07 MB / 394.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.0003771/0.51, allocations: 171.3 kB / 461.1 MB, free: 10.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.5113, allocations: 0.6892 MB / 461.8 MB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.766e-06/0.5113, allocations: 0 / 461.8 MB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005919/0.5119, allocations: 333 kB / 462.1 MB, free: 9.801 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.5123, allocations: 29.81 kB / 462.1 MB, free: 9.773 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.5136, allocations: 0.4921 MB / 462.6 MB, free: 9.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.5141, allocations: 0.8005 MB / 463.4 MB, free: 8.422 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.5143, allocations: 31.42 kB / 463.4 MB, free: 8.391 MB / 394.7 MB Notification: Performance of SimCode: time 2.19e-06/0.5143, allocations: 1.406 kB / 463.4 MB, free: 8.391 MB / 394.7 MB Notification: Performance of Templates: time 0.01071/0.5251, allocations: 5.068 MB / 468.5 MB, free: 3.344 MB / 394.7 MB