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.y|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.348e-05/4.385e-05, allocations: 4 kB / 323.4 MB, free: 4.32 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3482, allocations: 58.84 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.5436, allocations: 92.8 MB / 475 MB, free: 15.71 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.5438, allocations: 67.97 kB / 475.1 MB, free: 15.64 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05316/0.597, allocations: 12.77 MB / 487.8 MB, free: 2.848 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.706e-06/0.597, allocations: 0 / 487.8 MB, free: 2.848 MB / 410.8 MB Notification: Performance of Transformations before backend: time 5.061e-05/0.5971, allocations: 15.94 kB / 487.9 MB, free: 2.832 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001846/0.599, allocations: 0.848 MB / 488.7 MB, free: 1.922 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.599, allocations: 8.031 kB / 488.7 MB, free: 1.914 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.5992, allocations: 67.25 kB / 488.8 MB, free: 1.848 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.6001, allocations: 413.9 kB / 489.2 MB, free: 1.402 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.555e-05/0.6002, allocations: 41 kB / 489.2 MB, free: 1.363 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/0.6003, allocations: 47.98 kB / 489.3 MB, free: 1.316 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009577/0.6013, allocations: 409.9 kB / 489.7 MB, free: 0.8945 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.6013, allocations: 0 / 489.7 MB, free: 0.8945 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.307e-05/0.6014, allocations: 19.98 kB / 489.7 MB, free: 0.875 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.6014, allocations: 12 kB / 489.7 MB, free: 0.8633 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007291/0.6022, allocations: 265.9 kB / 490 MB, free: 0.6055 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002789/0.605, allocations: 1.13 MB / 491.1 MB, free: 15.42 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.6063, allocations: 456.7 kB / 491.5 MB, free: 14.96 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004019/0.6067, allocations: 162.2 kB / 491.7 MB, free: 14.8 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.6068, allocations: 4.438 kB / 491.7 MB, free: 14.79 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006149/0.6074, allocations: 264.5 kB / 492 MB, free: 14.52 MB / 426.8 MB Notification: Performance of pre-optimization done (n=52): time 4.3e-06/0.6074, allocations: 0 / 492 MB, free: 14.52 MB / 426.8 MB Notification: Performance of matching and sorting (n=52): time 0.001104/0.6085, allocations: 411.5 kB / 492.4 MB, free: 14.11 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.6087, allocations: 137 kB / 492.5 MB, free: 13.95 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008398/0.6095, allocations: 470.8 kB / 493 MB, free: 13.49 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 9.159e-05/0.6096, allocations: 49.69 kB / 493 MB, free: 13.43 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.6099, allocations: 245.4 kB / 493.2 MB, free: 13.19 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.6101, allocations: 130.4 kB / 493.4 MB, free: 13.06 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.6101, allocations: 12 kB / 493.4 MB, free: 13.05 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.6104, allocations: 362.8 kB / 493.7 MB, free: 12.69 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.6108, allocations: 145.1 kB / 493.9 MB, free: 12.55 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/0.6113, allocations: 223.9 kB / 494.1 MB, free: 12.3 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.6117, allocations: 131.2 kB / 494.2 MB, free: 12.18 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-06/0.6117, allocations: 0 / 494.2 MB, free: 12.18 MB / 426.8 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001302/0.613, allocations: 479.1 kB / 494.7 MB, free: 11.7 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.613, allocations: 8.062 kB / 494.7 MB, free: 11.69 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.191e-06/0.613, allocations: 0 / 494.7 MB, free: 11.69 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/0.6132, allocations: 36.84 kB / 494.7 MB, free: 11.65 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005972/0.6139, allocations: 59.84 kB / 494.8 MB, free: 11.59 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.6166, allocations: 1.432 MB / 496.2 MB, free: 10.02 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.6177, allocations: 83.88 kB / 496.3 MB, free: 9.941 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.03e-05/0.6178, allocations: 16 kB / 496.3 MB, free: 9.926 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,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 (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * 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.000326/0.6182, allocations: 162.1 kB / 496.5 MB, free: 9.762 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/0.6184, allocations: 59.27 kB / 496.5 MB, free: 9.703 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001777/0.6202, allocations: 457.4 kB / 497 MB, free: 9.254 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.6202, allocations: 4 kB / 497 MB, free: 9.25 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.921e-06/0.6202, allocations: 0 / 497 MB, free: 9.25 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/0.6203, allocations: 8.062 kB / 497 MB, free: 9.242 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003738/0.624, allocations: 1.076 MB / 498.1 MB, free: 8.105 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.352e-06/0.6241, allocations: 0 / 498.1 MB, free: 8.105 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004178/0.6245, allocations: 47.97 kB / 498.1 MB, free: 8.059 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.97e-05/0.6245, allocations: 11.98 kB / 498.1 MB, free: 8.047 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/0.6246, allocations: 8 kB / 498.1 MB, free: 8.039 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-05/0.6247, allocations: 4 kB / 498.1 MB, free: 8.035 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.256e-06/0.6247, allocations: 3.984 kB / 498.1 MB, free: 8.031 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.6265, allocations: 0.515 MB / 498.7 MB, free: 7.5 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.6268, allocations: 144.5 kB / 498.8 MB, free: 7.34 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.627, allocations: 16 kB / 498.8 MB, free: 7.324 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009028/0.628, allocations: 71.94 kB / 498.9 MB, free: 7.254 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/0.6284, allocations: 72.31 kB / 499 MB, free: 7.184 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.6285, allocations: 23.98 kB / 499 MB, free: 7.16 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00101/0.6295, allocations: 345.2 kB / 499.3 MB, free: 6.824 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.588e-06/0.6295, allocations: 0 / 499.3 MB, free: 6.824 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.001278/0.6308, allocations: 135.8 kB / 499.5 MB, free: 6.691 MB / 426.8 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 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,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: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002439/0.6333, allocations: 438.7 kB / 499.9 MB, free: 6.324 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.6353, allocations: 493.5 kB / 0.4886 GB, free: 5.832 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.612e-06/0.6353, allocations: 0 / 0.4886 GB, free: 5.832 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0008502/0.6362, allocations: 205.6 kB / 0.4888 GB, free: 5.633 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.6372, allocations: 73.5 kB / 0.4889 GB, free: 5.562 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002824/0.6401, allocations: 0.6787 MB / 0.4896 GB, free: 4.859 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000976/0.6411, allocations: 0.8881 MB / 0.4904 GB, free: 3.938 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.0006222/0.6417, allocations: 75.36 kB / 0.4905 GB, free: 3.863 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/0.6421, allocations: 47.42 kB / 0.4905 GB, free: 3.816 MB / 426.8 MB Notification: Performance of SimCode: time 2.229e-06/0.6421, allocations: 0 / 0.4905 GB, free: 3.816 MB / 426.8 MB Notification: Performance of Templates: time 0.03192/0.6741, allocations: 6.51 MB / 0.4969 GB, free: 13.32 MB / 442.8 MB