Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Logical",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.993/2.993, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.51e-05/2.515e-05, allocations: 4 kB / 299.6 MB, free: 216 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4395/0.4395, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.6321, allocations: 84.2 MB / 438.6 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.6324, allocations: 63.97 kB / 438.7 MB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03531/0.6678, allocations: 5.875 MB / 444.5 MB, free: 4.926 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6678, allocations: 0 / 444.5 MB, free: 4.926 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.312e-05/0.6679, allocations: 8 kB / 444.5 MB, free: 4.918 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.002456/0.6703, allocations: 0.7574 MB / 445.3 MB, free: 4.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/0.6704, allocations: 8.031 kB / 445.3 MB, free: 4.082 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001953/0.6706, allocations: 66.48 kB / 445.4 MB, free: 4.008 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.6708, allocations: 47.47 kB / 445.4 MB, free: 3.961 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.6711, allocations: 195.7 kB / 445.6 MB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.334e-05/0.6712, allocations: 20.78 kB / 445.6 MB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.6713, allocations: 31.98 kB / 445.7 MB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008969/0.6722, allocations: 225.5 kB / 445.9 MB, free: 3.453 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.6733, allocations: 337.3 kB / 446.2 MB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.6734, allocations: 0 / 446.2 MB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.838e-05/0.6734, allocations: 7.953 kB / 446.2 MB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.6735, allocations: 8 kB / 446.2 MB, free: 3.098 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.6776, allocations: 0.8738 MB / 447.1 MB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.6796, allocations: 393.3 kB / 447.5 MB, free: 1.789 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004703/0.6801, allocations: 141.2 kB / 447.6 MB, free: 1.648 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.911e-05/0.6801, allocations: 8.328 kB / 447.6 MB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008165/0.681, allocations: 297.3 kB / 447.9 MB, free: 1.324 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.499e-06/0.681, allocations: 0 / 447.9 MB, free: 1.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001435/0.6825, allocations: 369.2 kB / 448.3 MB, free: 0.957 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/0.6826, allocations: 200.3 kB / 448.5 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003413/0.683, allocations: 195.5 kB / 448.7 MB, free: 0.5234 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.6831, allocations: 37.7 kB / 448.7 MB, free: 492 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.6833, allocations: 180.8 kB / 448.9 MB, free: 308 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.6835, allocations: 98.77 kB / 449 MB, free: 208 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.6836, allocations: 7.922 kB / 449 MB, free: 200 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.6838, allocations: 338.8 kB / 449.3 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.6843, allocations: 129.1 kB / 449.4 MB, free: 15.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005194/0.6848, allocations: 162.8 kB / 449.6 MB, free: 15.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.6853, allocations: 110.1 kB / 449.7 MB, free: 15.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.6853, allocations: 4.031 kB / 449.7 MB, free: 15.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001785/0.6871, allocations: 427.4 kB / 450.1 MB, free: 15.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/0.6873, allocations: 114.8 kB / 450.2 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.958e-06/0.6873, allocations: 0 / 450.2 MB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002947/0.6876, allocations: 40.83 kB / 450.3 MB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006185/0.6883, allocations: 43.84 kB / 450.3 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003079/0.6914, allocations: 1.38 MB / 451.7 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.6927, allocations: 63.97 kB / 451.8 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.6929, allocations: 23.94 kB / 451.8 MB, free: 13.23 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.0004929/0.6934, allocations: 209.5 kB / 452 MB, free: 13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.6936, allocations: 27.72 kB / 452 MB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001908/0.6938, allocations: 35.39 kB / 452.1 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.6939, allocations: 4 kB / 452.1 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.84e-06/0.6939, allocations: 4 kB / 452.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.6939, allocations: 3.984 kB / 452.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.6973, allocations: 0.8111 MB / 452.9 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.6974, allocations: 4 kB / 452.9 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004874/0.6979, allocations: 35.91 kB / 452.9 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/0.6979, allocations: 0 / 452.9 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.849e-05/0.698, allocations: 4 kB / 452.9 MB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.275e-05/0.6981, allocations: 7.984 kB / 452.9 MB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.6981, allocations: 0 / 452.9 MB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.7001, allocations: 0.496 MB / 453.4 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.7003, allocations: 104.7 kB / 453.5 MB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.7005, allocations: 11.98 kB / 453.5 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.7018, allocations: 63.94 kB / 453.6 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004337/0.7022, allocations: 67.67 kB / 453.7 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.7024, allocations: 19.98 kB / 453.7 MB, free: 11.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002986/0.7027, allocations: 136.5 kB / 453.8 MB, free: 11.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.7027, allocations: 0 / 453.8 MB, free: 11.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001368/0.7041, allocations: 99.94 kB / 453.9 MB, free: 11 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.003246/0.7074, allocations: 1.11 MB / 455 MB, free: 9.855 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.7098, allocations: 0.6644 MB / 455.7 MB, free: 9.129 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/0.7098, allocations: 4 kB / 455.7 MB, free: 9.125 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.711, allocations: 328.5 kB / 456 MB, free: 8.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005732/0.7116, allocations: 20.42 kB / 456 MB, free: 8.762 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.7148, allocations: 0.5163 MB / 456.6 MB, free: 8.203 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/0.7156, allocations: 0.8008 MB / 457.4 MB, free: 7.379 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004237/0.7161, allocations: 35.27 kB / 457.4 MB, free: 7.344 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/0.7166, allocations: 107.4 kB / 457.5 MB, free: 7.242 MB / 394.7 MB Notification: Performance of SimCode: time 2.074e-06/0.7167, allocations: 0 / 457.5 MB, free: 7.242 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1468/0.8635, allocations: 6.551 MB / 464 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003844/0.8639, allocations: 126.6 kB / 464.2 MB, free: 0.5234 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.581/4.445, allocations: 0 / 464.2 MB, free: 0.5234 MB / 394.7 MB "" Variables in the reference: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 Variables in the result:_D_whenCondition1,_D_whenCondition2,_D_whenCondition3,_D_whenCondition4,and1.u1,and1.u2,and1.y,change1.pre_u_start,change1.u,change1.y,edge1.pre_u_start,edge1.u,edge1.y,fallingEdge.not_u,fallingEdge.pre_u_start,fallingEdge.u,fallingEdge.y,greater.u1,greater.u2,greater.y,greaterEqual.u1,greaterEqual.u2,greaterEqual.y,greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.u,greaterThreshold.y,hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,less.u1,less.u2,less.y,lessEqual.u1,lessEqual.u2,lessEqual.y,lessEqualThreshold.threshold,lessEqualThreshold.u,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.u,lessThreshold.y,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.u3,logicalSwitch.y,nand.u1,nand.u2,nand.y,nor.u1,nor.u2,nor.y,not1.u,not1.y,onOffController.bandwidth,onOffController.pre_y_start,onOffController.reference,onOffController.u,onOffController.y,or1.u1,or1.u2,or1.y,pre1.pre_u_start,pre1.u,pre1.y,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.Qini,rSFlipFlop.R,rSFlipFlop.S,rSFlipFlop.nor.u1,rSFlipFlop.nor.u2,rSFlipFlop.nor.y,rSFlipFlop.nor1.u1,rSFlipFlop.nor1.u2,rSFlipFlop.nor1.y,rSFlipFlop.pre.pre_u_start,rSFlipFlop.pre.u,rSFlipFlop.pre.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,switch1.u1,switch1.u2,switch1.u3,switch1.y,table1.index,table1.n,table1.nextTime,table1.startValue,table1.table[1],table1.table[2],table1.table[3],table1.table[4],table1.y,table2.index,table2.n,table2.nextTime,table2.startValue,table2.table[1],table2.table[2],table2.table[3],table2.table[4],table2.y,time,timer.entryTime,timer.u,timer.y,triggeredTrapezoid.T,triggeredTrapezoid.amplitude,triggeredTrapezoid.endValue,triggeredTrapezoid.falling,triggeredTrapezoid.offset,triggeredTrapezoid.rate,triggeredTrapezoid.rising,triggeredTrapezoid.u,triggeredTrapezoid.y,xor.u1,xor.u2,xor.y,zeroCrossing.disable,zeroCrossing.enable,zeroCrossing.u,zeroCrossing.u_pos,zeroCrossing.y