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_4.0.0_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.277/2.277, allocations: 270 MB / 283.6 MB, free: 3.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.308e-05, allocations: 4 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1334, allocations: 61.89 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4298/0.5632, allocations: 94.36 MB / 0.4928 GB, free: 9.777 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.5635, allocations: 63.97 kB / 0.4929 GB, free: 9.715 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05254/0.616, allocations: 13.02 MB / 0.5056 GB, free: 12.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.268e-06/0.6161, allocations: 0 / 0.5056 GB, free: 12.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.554e-05/0.6161, allocations: 12 kB / 0.5056 GB, free: 12.66 MB / 426.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.001831/0.618, allocations: 0.8569 MB / 0.5064 GB, free: 11.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.618, allocations: 8.031 kB / 0.5064 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.6183, allocations: 63.25 kB / 0.5065 GB, free: 11.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009448/0.6192, allocations: 418 kB / 0.5069 GB, free: 11.22 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.121e-05/0.6193, allocations: 40.95 kB / 0.5069 GB, free: 11.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-05/0.6194, allocations: 40 kB / 0.507 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009557/0.6204, allocations: 425.8 kB / 0.5074 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.6204, allocations: 0 / 0.5074 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.225e-05/0.6205, allocations: 16 kB / 0.5074 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.6205, allocations: 12 kB / 0.5074 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007224/0.6212, allocations: 273.9 kB / 0.5077 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002737/0.624, allocations: 1.11 MB / 0.5087 GB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.6253, allocations: 468.7 kB / 0.5092 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003774/0.6257, allocations: 158.2 kB / 0.5093 GB, free: 8.625 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.6258, allocations: 8.438 kB / 0.5093 GB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009355/0.6267, allocations: 252.4 kB / 0.5096 GB, free: 8.355 MB / 426.7 MB Notification: Performance of pre-optimization done (n=52): time 6.444e-06/0.6267, allocations: 3.938 kB / 0.5096 GB, free: 8.352 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.001835/0.6286, allocations: 415.5 kB / 0.51 GB, free: 7.941 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.6288, allocations: 136.9 kB / 0.5101 GB, free: 7.777 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.6303, allocations: 474.8 kB / 0.5106 GB, free: 7.309 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.6305, allocations: 49.7 kB / 0.5106 GB, free: 7.254 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/0.6308, allocations: 245.4 kB / 0.5109 GB, free: 7.012 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.6311, allocations: 122.5 kB / 0.511 GB, free: 6.891 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/0.6312, allocations: 8 kB / 0.511 GB, free: 6.883 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002968/0.6315, allocations: 374.7 kB / 0.5113 GB, free: 6.508 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006208/0.6322, allocations: 145.1 kB / 0.5115 GB, free: 6.367 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007861/0.633, allocations: 231.9 kB / 0.5117 GB, free: 6.121 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/0.6336, allocations: 119.2 kB / 0.5118 GB, free: 6.008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.701e-05/0.6336, allocations: 4 kB / 0.5118 GB, free: 6.004 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002147/0.6358, allocations: 475.2 kB / 0.5123 GB, free: 5.527 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.6358, allocations: 11.98 kB / 0.5123 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.6359, allocations: 0 / 0.5123 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000246/0.6361, allocations: 36.8 kB / 0.5123 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/0.6367, allocations: 67.78 kB / 0.5124 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/0.6393, allocations: 1.42 MB / 0.5138 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008791/0.6402, allocations: 83.88 kB / 0.5138 GB, free: 3.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.121e-05/0.6403, allocations: 16 kB / 0.5139 GB, free: 3.754 MB / 426.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.0003356/0.6407, allocations: 165 kB / 0.514 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002132/0.6409, allocations: 51.39 kB / 0.5141 GB, free: 3.535 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.6429, allocations: 465.2 kB / 0.5145 GB, free: 3.074 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.6429, allocations: 12 kB / 0.5145 GB, free: 3.062 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.599e-06/0.643, allocations: 0 / 0.5145 GB, free: 3.062 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.64e-05/0.643, allocations: 3.984 kB / 0.5145 GB, free: 3.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.6469, allocations: 1.072 MB / 0.5156 GB, free: 1.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.385e-06/0.6469, allocations: 0 / 0.5156 GB, free: 1.926 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004632/0.6474, allocations: 47.91 kB / 0.5156 GB, free: 1.879 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-05/0.6474, allocations: 4 kB / 0.5156 GB, free: 1.875 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.031e-05/0.6475, allocations: 11.98 kB / 0.5156 GB, free: 1.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.447e-06/0.6476, allocations: 0 / 0.5156 GB, free: 1.863 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.18e-06/0.6476, allocations: 0 / 0.5156 GB, free: 1.863 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.6494, allocations: 0.5151 MB / 0.5161 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.6497, allocations: 136.4 kB / 0.5163 GB, free: 1.184 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.6499, allocations: 23.98 kB / 0.5163 GB, free: 1.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009674/0.6509, allocations: 71.94 kB / 0.5164 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003561/0.6513, allocations: 76.31 kB / 0.5164 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.271e-05/0.6514, allocations: 12 kB / 0.5164 GB, free: 1.004 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001003/0.6525, allocations: 353.2 kB / 0.5168 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.548e-06/0.6525, allocations: 0 / 0.5168 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00129/0.6538, allocations: 143.6 kB / 0.5169 GB, free: 0.5195 MB / 426.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.002485/0.6563, allocations: 455.6 kB / 0.5173 GB, free: 192 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.6583, allocations: 494.6 kB / 0.5178 GB, free: 15.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.6583, allocations: 0 / 0.5178 GB, free: 15.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008633/0.6592, allocations: 213.5 kB / 0.518 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009924/0.6602, allocations: 73.41 kB / 0.5181 GB, free: 15.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002771/0.663, allocations: 0.6824 MB / 0.5188 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009695/0.664, allocations: 0.8804 MB / 0.5196 GB, free: 13.79 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006396/0.6647, allocations: 79.41 kB / 0.5197 GB, free: 13.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000362/0.6651, allocations: 47.42 kB / 0.5197 GB, free: 13.66 MB / 442.7 MB Notification: Performance of SimCode: time 2.396e-06/0.6651, allocations: 0 / 0.5197 GB, free: 13.66 MB / 442.7 MB Notification: Performance of Templates: time 0.03157/0.6967, allocations: 6.504 MB / 0.5261 GB, free: 7.203 MB / 442.7 MB