Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.077/2.077, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.768e-05/3.775e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1367, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.422/0.5588, allocations: 78.47 MB / 400.3 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5591, allocations: 63.97 kB / 400.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0294/0.5885, allocations: 5.874 MB / 406.3 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5886, allocations: 0 / 406.3 MB, free: 5.094 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.5886, allocations: 8 kB / 406.3 MB, free: 5.086 MB / 330.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.001994/0.5906, allocations: 0.7496 MB / 407 MB, free: 4.266 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.5907, allocations: 8.031 kB / 407 MB, free: 4.258 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001572/0.5909, allocations: 82.52 kB / 407.1 MB, free: 4.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.591, allocations: 43.53 kB / 407.2 MB, free: 4.125 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.5913, allocations: 214.3 kB / 407.4 MB, free: 3.875 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.285e-05/0.5913, allocations: 28.78 kB / 407.4 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.5915, allocations: 47.98 kB / 407.5 MB, free: 3.801 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009418/0.5924, allocations: 326.1 kB / 407.8 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.5925, allocations: 0 / 407.8 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.5925, allocations: 23.94 kB / 407.8 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.5926, allocations: 8 kB / 407.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007726/0.5933, allocations: 245.5 kB / 408 MB, free: 3.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003023/0.5964, allocations: 0.9491 MB / 409 MB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.5981, allocations: 403.2 kB / 409.4 MB, free: 1.793 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004287/0.5985, allocations: 157.2 kB / 409.5 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.5986, allocations: 4.328 kB / 409.5 MB, free: 1.633 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006962/0.5993, allocations: 305.6 kB / 409.8 MB, free: 1.312 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.637e-06/0.5993, allocations: 0 / 409.8 MB, free: 1.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001254/0.6006, allocations: 464.3 kB / 410.3 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.6007, allocations: 186.5 kB / 410.5 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.601, allocations: 202.1 kB / 410.7 MB, free: 424 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.689e-05/0.6011, allocations: 45.7 kB / 410.7 MB, free: 372 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.6013, allocations: 172.8 kB / 410.9 MB, free: 196 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.6015, allocations: 110.6 kB / 411 MB, free: 84 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.6016, allocations: 12 kB / 411 MB, free: 72 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.6018, allocations: 346.8 kB / 411.3 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.6022, allocations: 133.1 kB / 411.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004141/0.6026, allocations: 139.9 kB / 411.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.6031, allocations: 218.1 kB / 411.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.6031, allocations: 4 kB / 411.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001591/0.6047, allocations: 0.5608 MB / 412.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.6049, allocations: 114.8 kB / 412.5 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.6049, allocations: 3.953 kB / 412.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.6051, allocations: 36.84 kB / 412.5 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.6055, allocations: 35.92 kB / 412.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.6073, allocations: 1.424 MB / 414 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006795/0.608, allocations: 71.98 kB / 414.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.549e-05/0.6081, allocations: 16 kB / 414.1 MB, free: 12.77 MB / 346.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.0003212/0.6085, allocations: 220.3 kB / 414.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.511e-05/0.6086, allocations: 35.62 kB / 414.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.6087, allocations: 35.09 kB / 414.4 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.6087, allocations: 8 kB / 414.4 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.6087, allocations: 0 / 414.4 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.6088, allocations: 3.984 kB / 414.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.6107, allocations: 0.9624 MB / 415.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.6108, allocations: 0 / 415.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002885/0.6111, allocations: 39.91 kB / 415.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.6111, allocations: 0 / 415.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.562e-05/0.6112, allocations: 12 kB / 415.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-05/0.6112, allocations: 7.984 kB / 415.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6112, allocations: 3.938 kB / 415.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.6125, allocations: 0.5889 MB / 416 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.6127, allocations: 136.8 kB / 416.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.845e-05/0.6128, allocations: 19.98 kB / 416.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/0.6135, allocations: 67.94 kB / 416.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.6138, allocations: 71.67 kB / 416.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.213e-05/0.6139, allocations: 16 kB / 416.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001905/0.6141, allocations: 137.3 kB / 416.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6141, allocations: 0 / 416.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007558/0.6148, allocations: 123.8 kB / 416.6 MB, free: 10.16 MB / 346.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.002369/0.6172, allocations: 1.196 MB / 417.8 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.6188, allocations: 0.6919 MB / 418.4 MB, free: 8.176 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.6189, allocations: 0 / 418.4 MB, free: 8.176 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.6196, allocations: 339.2 kB / 418.8 MB, free: 7.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.62, allocations: 20 kB / 418.8 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.6219, allocations: 0.5546 MB / 419.3 MB, free: 7.207 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.6224, allocations: 0.8037 MB / 420.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002368/0.6227, allocations: 26.95 kB / 420.2 MB, free: 6.352 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002729/0.623, allocations: 115.4 kB / 420.3 MB, free: 6.238 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.623, allocations: 0 / 420.3 MB, free: 6.238 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03385/0.6568, allocations: 6.767 MB / 427.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.6571, allocations: 159.8 kB / 427.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.927/3.584, allocations: 3.938 kB / 427.2 MB, free: 15.32 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat