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.319/2.319, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.087e-05/3.097e-05, allocations: 4 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.3929, allocations: 54.85 MB / 359.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1567/0.5497, allocations: 84.86 MB / 444.7 MB, free: 11.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/0.55, allocations: 67.95 kB / 444.8 MB, free: 11.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02826/0.5782, allocations: 5.887 MB / 450.7 MB, free: 6.035 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5783, allocations: 0 / 450.7 MB, free: 6.035 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.5783, allocations: 8 kB / 450.7 MB, free: 6.027 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.001953/0.5803, allocations: 0.7534 MB / 451.5 MB, free: 5.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.5804, allocations: 12.02 kB / 451.5 MB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.5805, allocations: 82.47 kB / 451.5 MB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.5807, allocations: 43.53 kB / 451.6 MB, free: 5.059 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.5809, allocations: 199.6 kB / 451.8 MB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.521e-05/0.581, allocations: 32.78 kB / 451.8 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.5811, allocations: 47.98 kB / 451.9 MB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009936/0.5821, allocations: 377.4 kB / 452.2 MB, free: 4.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.5821, allocations: 3.938 kB / 452.2 MB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.377e-05/0.5822, allocations: 23.94 kB / 452.3 MB, free: 4.332 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.5822, allocations: 8 kB / 452.3 MB, free: 4.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007758/0.583, allocations: 244.2 kB / 452.5 MB, free: 4.086 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.586, allocations: 0.9452 MB / 453.4 MB, free: 3.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.5876, allocations: 413 kB / 453.9 MB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004313/0.5881, allocations: 153.2 kB / 454 MB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.848e-05/0.5882, allocations: 12.28 kB / 454 MB, free: 2.512 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007018/0.5889, allocations: 313.3 kB / 454.3 MB, free: 2.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.297e-06/0.5889, allocations: 0 / 454.3 MB, free: 2.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001283/0.5902, allocations: 456.5 kB / 454.8 MB, free: 1.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.5904, allocations: 196.3 kB / 455 MB, free: 1.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.5907, allocations: 198.9 kB / 455.2 MB, free: 1.281 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.52e-05/0.5908, allocations: 49.7 kB / 455.2 MB, free: 1.227 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.591, allocations: 172.8 kB / 455.4 MB, free: 1.055 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.5912, allocations: 118.6 kB / 455.5 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.5912, allocations: 8 kB / 455.5 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.5914, allocations: 346.8 kB / 455.8 MB, free: 0.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.5919, allocations: 137.1 kB / 456 MB, free: 460 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004657/0.5923, allocations: 182.7 kB / 456.1 MB, free: 268 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004216/0.5928, allocations: 218.1 kB / 456.4 MB, free: 24 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5928, allocations: 4.031 kB / 456.4 MB, free: 20 kB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00158/0.5944, allocations: 0.5569 MB / 456.9 MB, free: 15.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.5945, allocations: 118.8 kB / 457 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.5946, allocations: 0 / 457 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.5948, allocations: 36.83 kB / 457.1 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003213/0.5951, allocations: 47.84 kB / 457.1 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.597, allocations: 1.416 MB / 458.5 MB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006892/0.5977, allocations: 87.77 kB / 458.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-05/0.5978, allocations: 16 kB / 458.6 MB, free: 13.55 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.000313/0.5981, allocations: 212.4 kB / 458.8 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.38e-05/0.5982, allocations: 35.61 kB / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.5983, allocations: 44.02 kB / 458.9 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.5983, allocations: 4 kB / 458.9 MB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.5984, allocations: 0 / 458.9 MB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.5984, allocations: 3.984 kB / 458.9 MB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.6003, allocations: 0.9585 MB / 459.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.6004, allocations: 8 kB / 459.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002944/0.6007, allocations: 31.92 kB / 459.9 MB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.6007, allocations: 3.984 kB / 459.9 MB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.6008, allocations: 16 kB / 459.9 MB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.6008, allocations: 0 / 459.9 MB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.6008, allocations: 4.703 kB / 459.9 MB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.6021, allocations: 0.5891 MB / 460.5 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.726e-05/0.6022, allocations: 104.7 kB / 460.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.6023, allocations: 12 kB / 460.7 MB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006757/0.603, allocations: 71.94 kB / 460.7 MB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.6033, allocations: 79.59 kB / 460.8 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-05/0.6033, allocations: 23.94 kB / 460.8 MB, free: 11.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001798/0.6035, allocations: 141.1 kB / 461 MB, free: 11.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6036, allocations: 1.031 kB / 461 MB, free: 11.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007162/0.6043, allocations: 123.8 kB / 461.1 MB, free: 10.97 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.001952/0.6062, allocations: 1.193 MB / 462.3 MB, free: 9.734 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.6077, allocations: 0.6904 MB / 463 MB, free: 8.988 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.6078, allocations: 4 kB / 463 MB, free: 8.984 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006506/0.6084, allocations: 339.1 kB / 463.3 MB, free: 8.625 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.6088, allocations: 19.86 kB / 463.3 MB, free: 8.605 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.6106, allocations: 0.5558 MB / 463.9 MB, free: 8.012 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.6111, allocations: 0.7966 MB / 464.7 MB, free: 7.188 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002282/0.6113, allocations: 30.97 kB / 464.7 MB, free: 7.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002698/0.6116, allocations: 112.4 kB / 464.8 MB, free: 7.051 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.6116, allocations: 0 / 464.8 MB, free: 7.051 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.033/0.6446, allocations: 6.88 MB / 471.7 MB, free: 280 kB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/0.6449, allocations: 157.4 kB / 471.8 MB, free: 52 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.688/3.333, allocations: 0 / 471.8 MB, free: 52 kB / 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