Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.255/2.255, allocations: 235 MB / 247.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.664e-05/3.695e-05, allocations: 4 kB / 305 MB, free: 5.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3842, allocations: 54.86 MB / 359.9 MB, free: 2.801 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.5506, allocations: 84.84 MB / 444.7 MB, free: 11.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.5509, allocations: 67.95 kB / 444.8 MB, free: 11.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02738/0.5783, allocations: 5.893 MB / 450.7 MB, free: 6.039 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5783, allocations: 0 / 450.7 MB, free: 6.039 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.5784, allocations: 8 kB / 450.7 MB, free: 6.031 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.001795/0.5802, allocations: 0.7573 MB / 451.4 MB, free: 5.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.5802, allocations: 9.438 kB / 451.4 MB, free: 5.195 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.5804, allocations: 82.47 kB / 451.5 MB, free: 5.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.5805, allocations: 43.53 kB / 451.6 MB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.5807, allocations: 207.6 kB / 451.8 MB, free: 4.816 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.797e-05/0.5808, allocations: 28.78 kB / 451.8 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.5809, allocations: 44 kB / 451.8 MB, free: 4.742 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009678/0.5819, allocations: 382.9 kB / 452.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.5819, allocations: 0 / 452.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.015e-05/0.582, allocations: 19.94 kB / 452.2 MB, free: 4.336 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.582, allocations: 8 kB / 452.2 MB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007554/0.5828, allocations: 251.1 kB / 452.5 MB, free: 4.082 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.5855, allocations: 0.9452 MB / 453.4 MB, free: 3.086 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.587, allocations: 417.2 kB / 453.8 MB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004139/0.5874, allocations: 157.2 kB / 454 MB, free: 2.512 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.281e-05/0.5875, allocations: 8.281 kB / 454 MB, free: 2.504 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006764/0.5882, allocations: 314.4 kB / 454.3 MB, free: 2.172 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.056e-06/0.5882, allocations: 0 / 454.3 MB, free: 2.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001223/0.5894, allocations: 460.5 kB / 454.7 MB, free: 1.703 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.5896, allocations: 196.3 kB / 454.9 MB, free: 1.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.5899, allocations: 198.9 kB / 455.1 MB, free: 1.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.714e-05/0.59, allocations: 53.69 kB / 455.2 MB, free: 1.211 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.5902, allocations: 172.8 kB / 455.4 MB, free: 1.039 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.5903, allocations: 114.6 kB / 455.5 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.5904, allocations: 12 kB / 455.5 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5905, allocations: 338.8 kB / 455.8 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.591, allocations: 137.1 kB / 455.9 MB, free: 452 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004832/0.5915, allocations: 180.4 kB / 456.1 MB, free: 264 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.5919, allocations: 226.1 kB / 456.3 MB, free: 12 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5919, allocations: 0 / 456.3 MB, free: 12 kB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001481/0.5934, allocations: 0.5647 MB / 456.9 MB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.863e-05/0.5935, allocations: 118.8 kB / 457 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.5935, allocations: 0 / 457 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.5937, allocations: 37.67 kB / 457.1 MB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.5941, allocations: 43.91 kB / 457.1 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.5958, allocations: 1.42 MB / 458.5 MB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005992/0.5964, allocations: 83.86 kB / 458.6 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.087e-05/0.5965, allocations: 20 kB / 458.6 MB, free: 13.53 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.0002927/0.5968, allocations: 220.3 kB / 458.8 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.132e-05/0.5969, allocations: 31.7 kB / 458.9 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.597, allocations: 35.09 kB / 458.9 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.597, allocations: 4 kB / 458.9 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.5971, allocations: 0.6562 kB / 458.9 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.5971, allocations: 7.984 kB / 458.9 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.599, allocations: 0.9623 MB / 459.9 MB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.599, allocations: 0 / 459.9 MB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002884/0.5993, allocations: 35.91 kB / 459.9 MB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.5993, allocations: 4 kB / 459.9 MB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.876e-05/0.5994, allocations: 15.98 kB / 459.9 MB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.5994, allocations: 5.031 kB / 459.9 MB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.5994, allocations: 3.953 kB / 459.9 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.6007, allocations: 0.5811 MB / 460.5 MB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.551e-05/0.6008, allocations: 108.6 kB / 460.6 MB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.677e-05/0.6009, allocations: 16 kB / 460.6 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/0.6016, allocations: 75.92 kB / 460.7 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002541/0.6018, allocations: 67.89 kB / 460.8 MB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.748e-05/0.6019, allocations: 27.94 kB / 460.8 MB, free: 11.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001851/0.6021, allocations: 144.8 kB / 461 MB, free: 11.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.525e-06/0.6021, allocations: 0 / 461 MB, free: 11.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006749/0.6028, allocations: 119.8 kB / 461.1 MB, free: 10.95 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.001824/0.6047, allocations: 1.194 MB / 462.3 MB, free: 9.715 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.606, allocations: 0.6989 MB / 463 MB, free: 8.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.6061, allocations: 4 kB / 463 MB, free: 8.957 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000628/0.6067, allocations: 339.2 kB / 463.3 MB, free: 8.598 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.607, allocations: 28.84 kB / 463.3 MB, free: 8.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.6088, allocations: 0.558 MB / 463.9 MB, free: 7.973 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.6093, allocations: 0.7966 MB / 464.7 MB, free: 7.148 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002119/0.6095, allocations: 34.95 kB / 464.7 MB, free: 7.117 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.6098, allocations: 111.4 kB / 464.8 MB, free: 7.008 MB / 394.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6098, allocations: 0 / 464.8 MB, free: 7.008 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03353/0.6433, allocations: 6.876 MB / 471.7 MB, free: 236 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002281/0.6436, allocations: 162.7 kB / 471.9 MB, free: 4 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/3.215, allocations: 4 kB / 471.9 MB, free: 0 / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat