Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.912/1.912, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.975e-05/1.953e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4419/0.5451, allocations: 78.05 MB / 394.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.5454, allocations: 62.41 kB / 394.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02689/0.5723, allocations: 5.828 MB / 400.2 MB, free: 9.219 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5724, allocations: 0 / 400.2 MB, free: 9.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.5724, allocations: 8 kB / 400.2 MB, free: 9.211 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.001849/0.5743, allocations: 0.7529 MB / 401 MB, free: 8.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.5743, allocations: 8.031 kB / 401 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.5745, allocations: 47.47 kB / 401.1 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.5747, allocations: 210.6 kB / 401.3 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.5748, allocations: 12 kB / 401.3 MB, free: 8.105 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.637e-05/0.5749, allocations: 28 kB / 401.3 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006917/0.5756, allocations: 238.1 kB / 401.5 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000735/0.5764, allocations: 274.6 kB / 401.8 MB, free: 7.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.5764, allocations: 0 / 401.8 MB, free: 7.719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.5765, allocations: 7.125 kB / 401.8 MB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.5765, allocations: 8 kB / 401.8 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.5791, allocations: 0.8767 MB / 402.7 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.5805, allocations: 393.3 kB / 403.1 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.5808, allocations: 146.1 kB / 403.2 MB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.901e-05/0.5809, allocations: 4.328 kB / 403.2 MB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006055/0.5815, allocations: 293.7 kB / 403.5 MB, free: 6.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.757e-06/0.5815, allocations: 0 / 403.5 MB, free: 6.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001066/0.5826, allocations: 383 kB / 403.9 MB, free: 6.016 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.5827, allocations: 169.8 kB / 404.1 MB, free: 5.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.583, allocations: 186.9 kB / 404.2 MB, free: 5.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.521e-05/0.5831, allocations: 40.7 kB / 404.3 MB, free: 5.617 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.5833, allocations: 231.3 kB / 404.5 MB, free: 5.418 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.5834, allocations: 103.7 kB / 404.6 MB, free: 5.332 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.5835, allocations: 0 / 404.6 MB, free: 5.332 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.5837, allocations: 340.2 kB / 404.9 MB, free: 5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003399/0.584, allocations: 127.3 kB / 405.1 MB, free: 4.926 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.5844, allocations: 128 kB / 405.2 MB, free: 4.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003422/0.5847, allocations: 104.5 kB / 405.3 MB, free: 4.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5847, allocations: 0 / 405.3 MB, free: 4.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001304/0.5861, allocations: 407.7 kB / 405.7 MB, free: 4.461 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.5862, allocations: 118.3 kB / 405.8 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.5862, allocations: 4 kB / 405.8 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001837/0.5864, allocations: 35.27 kB / 405.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.5867, allocations: 47.53 kB / 405.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.5884, allocations: 1.383 MB / 407.3 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005878/0.589, allocations: 67.25 kB / 407.3 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-05/0.5891, allocations: 15.81 kB / 407.3 MB, free: 2.738 MB / 330.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.0002746/0.5893, allocations: 199 kB / 407.5 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001006/0.5904, allocations: 404.2 kB / 407.9 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.52e-05/0.5905, allocations: 35.61 kB / 408 MB, free: 2.188 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.637e-05/0.5906, allocations: 29.28 kB / 408 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.5906, allocations: 4 kB / 408 MB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.5906, allocations: 4 kB / 408 MB, free: 2.168 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.5906, allocations: 3.984 kB / 408 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.5922, allocations: 0.8108 MB / 408.8 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5922, allocations: 8 kB / 408.8 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.5925, allocations: 35.78 kB / 408.9 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.5925, allocations: 0 / 408.9 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.5925, allocations: 7.938 kB / 408.9 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.5926, allocations: 7.984 kB / 408.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5926, allocations: 0 / 408.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5936, allocations: 0.5025 MB / 409.4 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.5939, allocations: 130.5 kB / 409.5 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.832e-05/0.594, allocations: 15.31 kB / 409.5 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.5946, allocations: 63.94 kB / 409.6 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/0.5949, allocations: 66.77 kB / 409.7 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/0.5949, allocations: 15.17 kB / 409.7 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000154/0.5951, allocations: 137.5 kB / 409.8 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5951, allocations: 0 / 409.8 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006978/0.5958, allocations: 103.8 kB / 409.9 MB, free: 0.5 MB / 330.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.001653/0.5975, allocations: 1.096 MB / 411 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.5987, allocations: 0.6673 MB / 411.7 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5987, allocations: 0 / 411.7 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.5993, allocations: 327 kB / 412 MB, free: 14.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.5996, allocations: 18.42 kB / 412 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.6013, allocations: 0.5467 MB / 412.5 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.6018, allocations: 0.8037 MB / 413.4 MB, free: 13.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.6021, allocations: 110.5 kB / 413.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of SimCode: time 2.986e-06/0.6021, allocations: 0 / 413.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.696/3.298, allocations: 6.298 MB / 419.8 MB, free: 6.973 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat