Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.589/2.589, allocations: 270 MB / 283.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.178e-05, allocations: 0 / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1289, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4952/0.6242, allocations: 94.36 MB / 0.4929 GB, free: 9.578 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.6245, allocations: 65.91 kB / 0.4929 GB, free: 9.516 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05875/0.6832, allocations: 13.02 MB / 0.5057 GB, free: 12.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6833, allocations: 0 / 0.5057 GB, free: 12.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.154e-05/0.6833, allocations: 12 kB / 0.5057 GB, free: 12.47 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.002352/0.6857, allocations: 0.8569 MB / 0.5065 GB, free: 11.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.6858, allocations: 11.97 kB / 0.5065 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.6859, allocations: 78.52 kB / 0.5066 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/0.6861, allocations: 67.25 kB / 0.5067 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.6872, allocations: 406 kB / 0.507 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.592e-05/0.6873, allocations: 44.94 kB / 0.5071 GB, free: 10.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.6874, allocations: 44 kB / 0.5071 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.6885, allocations: 421.8 kB / 0.5075 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.6886, allocations: 0 / 0.5075 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.707e-05/0.6887, allocations: 16 kB / 0.5076 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.6887, allocations: 12 kB / 0.5076 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008219/0.6895, allocations: 262 kB / 0.5078 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003329/0.6929, allocations: 1.13 MB / 0.5089 GB, free: 8.961 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.6946, allocations: 448.8 kB / 0.5093 GB, free: 8.512 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.6951, allocations: 162.1 kB / 0.5095 GB, free: 8.352 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.6952, allocations: 4.438 kB / 0.5095 GB, free: 8.348 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000673/0.6958, allocations: 276.3 kB / 0.5098 GB, free: 8.062 MB / 426.7 MB Notification: Performance of pre-optimization done (n=52): time 3.316e-06/0.6959, allocations: 0 / 0.5098 GB, free: 8.062 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.001245/0.6971, allocations: 407.5 kB / 0.5102 GB, free: 7.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.298e-05/0.6972, allocations: 137 kB / 0.5103 GB, free: 7.496 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009311/0.6982, allocations: 478.8 kB / 0.5107 GB, free: 7.023 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.871e-05/0.6983, allocations: 45.7 kB / 0.5108 GB, free: 6.973 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.6985, allocations: 249.4 kB / 0.511 GB, free: 6.727 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.6987, allocations: 122.4 kB / 0.5111 GB, free: 6.605 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.595e-05/0.6988, allocations: 15.94 kB / 0.5112 GB, free: 6.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.699, allocations: 362.8 kB / 0.5115 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004418/0.6994, allocations: 145.1 kB / 0.5116 GB, free: 6.086 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.7, allocations: 231.8 kB / 0.5119 GB, free: 5.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.7004, allocations: 123.3 kB / 0.512 GB, free: 5.723 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.7004, allocations: 0 / 0.512 GB, free: 5.723 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001453/0.7019, allocations: 475.3 kB / 0.5124 GB, free: 5.246 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.7019, allocations: 10.59 kB / 0.5124 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.7019, allocations: 0 / 0.5124 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.7021, allocations: 40.8 kB / 0.5125 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.7026, allocations: 63.83 kB / 0.5125 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.7043, allocations: 1.428 MB / 0.5139 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007634/0.7051, allocations: 83.88 kB / 0.514 GB, free: 3.484 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.7051, allocations: 20 kB / 0.514 GB, free: 3.465 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.0002521/0.7054, allocations: 161 kB / 0.5142 GB, free: 3.301 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.7055, allocations: 55.3 kB / 0.5142 GB, free: 3.246 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.7068, allocations: 461.3 kB / 0.5147 GB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.7069, allocations: 4 kB / 0.5147 GB, free: 2.785 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.7069, allocations: 0 / 0.5147 GB, free: 2.785 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.7069, allocations: 4 kB / 0.5147 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.7094, allocations: 1.076 MB / 0.5157 GB, free: 1.645 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.7095, allocations: 0 / 0.5157 GB, free: 1.645 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.7098, allocations: 47.91 kB / 0.5158 GB, free: 1.598 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.7098, allocations: 4 kB / 0.5158 GB, free: 1.594 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.215e-05/0.7099, allocations: 11.98 kB / 0.5158 GB, free: 1.582 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.034e-05/0.7099, allocations: 4 kB / 0.5158 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.7099, allocations: 0 / 0.5158 GB, free: 1.578 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.7112, allocations: 0.5112 MB / 0.5163 GB, free: 1.055 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.7114, allocations: 140.4 kB / 0.5164 GB, free: 0.8984 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.7115, allocations: 16 kB / 0.5165 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007241/0.7122, allocations: 71.92 kB / 0.5165 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.7125, allocations: 80.27 kB / 0.5166 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.094e-05/0.7126, allocations: 19.98 kB / 0.5166 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006544/0.7132, allocations: 349.2 kB / 0.517 GB, free: 384 kB / 426.7 MB Notification: Performance of sort global known variables: time 3.387e-06/0.7133, allocations: 0 / 0.517 GB, free: 384 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007659/0.714, allocations: 139.7 kB / 0.5171 GB, free: 244 kB / 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.002732/0.7168, allocations: 1.41 MB / 0.5185 GB, free: 14.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.7182, allocations: 0.4945 MB / 0.5189 GB, free: 14.42 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.7182, allocations: 0 / 0.5189 GB, free: 14.42 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005439/0.7188, allocations: 201.6 kB / 0.5191 GB, free: 14.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007706/0.7195, allocations: 76.5 kB / 0.5192 GB, free: 14.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.722, allocations: 0.8127 MB / 0.52 GB, free: 13.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005835/0.7226, allocations: 0.8805 MB / 0.5209 GB, free: 12.38 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004058/0.723, allocations: 75.41 kB / 0.5209 GB, free: 12.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004673/0.7235, allocations: 191.4 kB / 0.5211 GB, free: 12.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7235, allocations: 0 / 0.5211 GB, free: 12.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04439/0.7679, allocations: 11.04 MB / 0.5319 GB, free: 1.219 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003202/0.7683, allocations: 201.7 kB / 0.5321 GB, free: 1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/3.694, allocations: 0 / 0.5321 GB, free: 1 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat