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.882/1.882, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.883e-05/2.931e-05, allocations: 0 / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3522, allocations: 48.7 MB / 324.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004247/0.3565, allocations: 1.776 MB / 326.6 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.359, allocations: 0.749 MB / 327.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.3593, allocations: 16.59 kB / 327.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.3594, allocations: 25.47 kB / 327.4 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002181/0.3596, allocations: 32.47 kB / 327.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.3608, allocations: 202 kB / 327.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.3612, allocations: 174.6 kB / 327.8 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003975/0.3616, allocations: 123.8 kB / 327.9 MB, free: 1.441 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.3619, allocations: 104.1 kB / 328 MB, free: 1.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.3622, allocations: 136.2 kB / 328.2 MB, free: 1.348 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003739/0.3626, allocations: 86.33 kB / 328.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.3628, allocations: 20.86 kB / 328.3 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.3629, allocations: 61.89 kB / 328.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.363, allocations: 26.78 kB / 328.4 MB, free: 1.297 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007114/0.3638, allocations: 300 kB / 328.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3638, allocations: 0 / 328.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3638, allocations: 0 / 328.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.3638, allocations: 0 / 328.6 MB, free: 1.23 MB / 266.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.002276/0.3661, allocations: 0.7525 MB / 329.4 MB, free: 0.625 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.3662, allocations: 9.625 kB / 329.4 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.3664, allocations: 48.22 kB / 329.5 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.3666, allocations: 222.1 kB / 329.7 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.298e-05/0.3667, allocations: 31.11 kB / 329.7 MB, free: 360 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.3669, allocations: 42.34 kB / 329.7 MB, free: 348 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.3685, allocations: 372.1 kB / 330.1 MB, free: 200 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.3685, allocations: 0 / 330.1 MB, free: 200 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.927e-05/0.3686, allocations: 15.12 kB / 330.1 MB, free: 192 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.3687, allocations: 8.516 kB / 330.1 MB, free: 192 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.3704, allocations: 320.9 kB / 330.4 MB, free: 92 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003729/0.3741, allocations: 0.9529 MB / 331.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.3767, allocations: 451.3 kB / 331.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.709e-05/0.3768, allocations: 4.453 kB / 331.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.3781, allocations: 344.7 kB / 332.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 4.578e-06/0.3782, allocations: 3.938 kB / 332.2 MB, free: 15.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.003408/0.3816, allocations: 0.8431 MB / 333 MB, free: 14.73 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/0.3818, allocations: 170.2 kB / 333.2 MB, free: 14.54 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.3822, allocations: 205.7 kB / 333.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.3824, allocations: 47.36 kB / 333.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.3826, allocations: 233.6 kB / 333.7 MB, free: 14.15 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.3828, allocations: 114 kB / 333.8 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/0.3829, allocations: 10.53 kB / 333.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3831, allocations: 337.4 kB / 334.1 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/0.384, allocations: 158.4 kB / 334.3 MB, free: 13.69 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008841/0.3849, allocations: 172.9 kB / 334.4 MB, free: 13.63 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008808/0.3858, allocations: 245.5 kB / 334.7 MB, free: 13.46 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.3858, allocations: 0 / 334.7 MB, free: 13.46 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002218/0.388, allocations: 0.5521 MB / 335.2 MB, free: 13.18 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.3882, allocations: 122.4 kB / 335.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3882, allocations: 0.7031 kB / 335.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.3883, allocations: 8.875 kB / 335.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005171/0.3888, allocations: 49.25 kB / 335.4 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.3888, allocations: 3 kB / 335.4 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007767/0.3896, allocations: 89.64 kB / 335.5 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.696e-05/0.3897, allocations: 20.8 kB / 335.5 MB, free: 12.99 MB / 282.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,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$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.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 (62): * Single equations (assignments): 58 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005003/0.3902, allocations: 237.9 kB / 335.8 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.3904, allocations: 28.72 kB / 335.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.3906, allocations: 38.8 kB / 335.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3906, allocations: 4.938 kB / 335.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.3906, allocations: 0 / 335.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.3906, allocations: 2.344 kB / 335.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/0.394, allocations: 1.044 MB / 336.9 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3941, allocations: 0.6094 kB / 336.9 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.3944, allocations: 36 kB / 336.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.3945, allocations: 1.156 kB / 336.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.061e-05/0.3946, allocations: 17.59 kB / 336.9 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.3946, allocations: 5.094 kB / 336.9 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3946, allocations: 1.656 kB / 336.9 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.3971, allocations: 0.6616 MB / 337.6 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.3974, allocations: 139.4 kB / 337.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.3976, allocations: 16.16 kB / 337.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008768/0.3985, allocations: 72.16 kB / 337.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/0.3988, allocations: 72.92 kB / 337.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/0.3989, allocations: 19.78 kB / 337.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3992, allocations: 138.8 kB / 338 MB, free: 11.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.3992, allocations: 0 / 338 MB, free: 11.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000938/0.4002, allocations: 127.7 kB / 338.2 MB, free: 11.46 MB / 282.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,xor.y,nor.y,nand.y,pre1.u,pre1.y,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.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.0004719/0.4006, allocations: 175.7 kB / 338.3 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.403, allocations: 0.6504 MB / 339 MB, free: 10.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.403, allocations: 5.375 kB / 339 MB, free: 10.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.4043, allocations: 370.3 kB / 339.4 MB, free: 10.74 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.4047, allocations: 18.5 kB / 339.4 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.4072, allocations: 0.7532 MB / 340.1 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006021/0.4078, allocations: 0.7979 MB / 340.9 MB, free: 9.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.4081, allocations: 32.72 kB / 341 MB, free: 9.531 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4081, allocations: 1.281 kB / 341 MB, free: 9.531 MB / 282.7 MB Notification: Performance of Templates: time 0.01465/0.4228, allocations: 4.426 MB / 345.4 MB, free: 7.523 MB / 282.7 MB