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_trunk_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.497/2.497, allocations: 270 MB / 283.6 MB, free: 1.738 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.927e-05/2.945e-05, allocations: 4 kB / 348.4 MB, free: 2.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3538, allocations: 61.88 MB / 410.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.516, allocations: 94.37 MB / 0.4928 GB, free: 12.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.5162, allocations: 67.97 kB / 0.4929 GB, free: 12.09 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05532/0.5716, allocations: 13.01 MB / 0.5056 GB, free: 15.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.612e-06/0.5716, allocations: 3.938 kB / 0.5056 GB, free: 15.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.393e-05/0.5717, allocations: 16 kB / 0.5056 GB, free: 15.03 MB / 442.7 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.001902/0.5736, allocations: 0.8443 MB / 0.5064 GB, free: 14.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5736, allocations: 8.031 kB / 0.5064 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.5739, allocations: 63.25 kB / 0.5065 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000947/0.5748, allocations: 410 kB / 0.5069 GB, free: 13.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.935e-05/0.5749, allocations: 40.94 kB / 0.5069 GB, free: 13.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.701e-05/0.575, allocations: 44 kB / 0.507 GB, free: 13.53 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009817/0.576, allocations: 425.8 kB / 0.5074 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.576, allocations: 0 / 0.5074 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.5761, allocations: 16 kB / 0.5074 GB, free: 13.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.5761, allocations: 12 kB / 0.5074 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007454/0.5769, allocations: 262 kB / 0.5077 GB, free: 12.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00288/0.5798, allocations: 1.13 MB / 0.5088 GB, free: 11.63 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.5812, allocations: 459.8 kB / 0.5092 GB, free: 11.17 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006956/0.5819, allocations: 158.2 kB / 0.5094 GB, free: 11.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-05/0.582, allocations: 4.438 kB / 0.5094 GB, free: 11.01 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009805/0.583, allocations: 264.3 kB / 0.5096 GB, free: 10.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 6.906e-06/0.583, allocations: 0 / 0.5096 GB, free: 10.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.002074/0.5851, allocations: 411.5 kB / 0.51 GB, free: 10.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001731/0.5854, allocations: 137 kB / 0.5101 GB, free: 10.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.5868, allocations: 478.8 kB / 0.5106 GB, free: 9.691 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.587, allocations: 45.7 kB / 0.5106 GB, free: 9.641 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.5874, allocations: 245.4 kB / 0.5109 GB, free: 9.398 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002687/0.5877, allocations: 122.4 kB / 0.511 GB, free: 9.277 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-05/0.5878, allocations: 11.94 kB / 0.511 GB, free: 9.266 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003054/0.5881, allocations: 374.7 kB / 0.5114 GB, free: 8.891 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006594/0.5888, allocations: 145.1 kB / 0.5115 GB, free: 8.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009074/0.5897, allocations: 231.8 kB / 0.5117 GB, free: 8.504 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005606/0.5903, allocations: 123.3 kB / 0.5118 GB, free: 8.383 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.32e-06/0.5903, allocations: 0 / 0.5118 GB, free: 8.383 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002201/0.5926, allocations: 475.2 kB / 0.5123 GB, free: 7.906 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.5926, allocations: 8 kB / 0.5123 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.5927, allocations: 0 / 0.5123 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/0.5929, allocations: 40.89 kB / 0.5123 GB, free: 7.855 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.5935, allocations: 67.78 kB / 0.5124 GB, free: 7.789 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.5962, allocations: 1.42 MB / 0.5138 GB, free: 6.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.5972, allocations: 83.91 kB / 0.5139 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.503e-05/0.5974, allocations: 20 kB / 0.5139 GB, free: 6.129 MB / 442.7 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.0003455/0.5977, allocations: 158.2 kB / 0.514 GB, free: 5.969 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.598, allocations: 55.3 kB / 0.5141 GB, free: 5.914 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.6, allocations: 469.4 kB / 0.5145 GB, free: 5.453 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/0.6, allocations: 11.98 kB / 0.5145 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.03e-06/0.6, allocations: 0 / 0.5145 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.6001, allocations: 0 / 0.5145 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.604, allocations: 1.08 MB / 0.5156 GB, free: 4.301 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/0.6041, allocations: 0 / 0.5156 GB, free: 4.301 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/0.6046, allocations: 43.91 kB / 0.5156 GB, free: 4.258 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.85e-05/0.6046, allocations: 4 kB / 0.5156 GB, free: 4.254 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.67e-05/0.6047, allocations: 15.98 kB / 0.5157 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/0.6047, allocations: 0 / 0.5157 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.842e-06/0.6048, allocations: 4 kB / 0.5157 GB, free: 4.234 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.6067, allocations: 0.519 MB / 0.5162 GB, free: 3.703 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.607, allocations: 140.4 kB / 0.5163 GB, free: 3.547 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.6072, allocations: 12 kB / 0.5163 GB, free: 3.535 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00096/0.6082, allocations: 75.92 kB / 0.5164 GB, free: 3.461 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/0.6086, allocations: 68.33 kB / 0.5165 GB, free: 3.395 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.895e-05/0.6087, allocations: 19.98 kB / 0.5165 GB, free: 3.375 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009584/0.6097, allocations: 353.2 kB / 0.5168 GB, free: 3.031 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.138e-06/0.6097, allocations: 4 kB / 0.5168 GB, free: 3.027 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001045/0.6108, allocations: 131.7 kB / 0.5169 GB, free: 2.898 MB / 442.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 (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.00218/0.613, allocations: 436.6 kB / 0.5174 GB, free: 2.598 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.6147, allocations: 498.4 kB / 0.5178 GB, free: 2.098 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.846e-06/0.6147, allocations: 0 / 0.5178 GB, free: 2.098 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007046/0.6154, allocations: 209.5 kB / 0.518 GB, free: 1.895 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008275/0.6163, allocations: 94.31 kB / 0.5181 GB, free: 1.805 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.6184, allocations: 0.6824 MB / 0.5188 GB, free: 1.098 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007027/0.6191, allocations: 0.8764 MB / 0.5196 GB, free: 192 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003755/0.6195, allocations: 75.42 kB / 0.5197 GB, free: 116 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.6197, allocations: 43.42 kB / 0.5198 GB, free: 72 kB / 442.7 MB Notification: Performance of SimCode: time 1.712e-06/0.6197, allocations: 0 / 0.5198 GB, free: 72 kB / 442.7 MB Notification: Performance of Templates: time 0.3748/0.9946, allocations: 6.498 MB / 0.5261 GB, free: 107 MB / 442.7 MB