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.888/1.888, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.529e-05/3.541e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09849, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3972/0.4957, allocations: 78.47 MB / 400.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.496, allocations: 63.97 kB / 400.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02744/0.5235, allocations: 5.872 MB / 406.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5236, allocations: 0 / 406.2 MB, free: 5.547 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.801e-05/0.5236, allocations: 8 kB / 406.2 MB, free: 5.539 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.001831/0.5254, allocations: 0.7574 MB / 407 MB, free: 4.711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.5255, allocations: 12.03 kB / 407 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.5256, allocations: 70.53 kB / 407.1 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.5258, allocations: 43.53 kB / 407.1 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.526, allocations: 210.4 kB / 407.3 MB, free: 4.332 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.273e-05/0.5261, allocations: 40.77 kB / 407.4 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.333e-05/0.5262, allocations: 44 kB / 407.4 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009016/0.5271, allocations: 327.6 kB / 407.7 MB, free: 3.922 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.5271, allocations: 4 kB / 407.7 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.815e-05/0.5272, allocations: 16 kB / 407.7 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.5272, allocations: 12 kB / 407.7 MB, free: 3.891 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000766/0.528, allocations: 247.1 kB / 408 MB, free: 3.652 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002737/0.5308, allocations: 0.949 MB / 408.9 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.5323, allocations: 415.5 kB / 409.3 MB, free: 2.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/0.5328, allocations: 153.2 kB / 409.5 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.872e-05/0.5328, allocations: 8.328 kB / 409.5 MB, free: 2.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000682/0.5335, allocations: 305.4 kB / 409.8 MB, free: 1.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.136e-06/0.5335, allocations: 0 / 409.8 MB, free: 1.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001228/0.5348, allocations: 468.4 kB / 410.3 MB, free: 1.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.5349, allocations: 170.6 kB / 410.4 MB, free: 1.066 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.5352, allocations: 198.1 kB / 410.6 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-05/0.5353, allocations: 49.69 kB / 410.7 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.5355, allocations: 235.2 kB / 410.9 MB, free: 0.582 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.5356, allocations: 110.6 kB / 411 MB, free: 484 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.728e-05/0.5357, allocations: 8 kB / 411 MB, free: 476 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5358, allocations: 334.8 kB / 411.3 MB, free: 132 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004313/0.5363, allocations: 133.1 kB / 411.5 MB, free: 0 / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004299/0.5367, allocations: 145 kB / 411.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.5371, allocations: 218.1 kB / 411.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.5371, allocations: 3.938 kB / 411.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001457/0.5386, allocations: 0.5454 MB / 412.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.339e-05/0.5387, allocations: 118.8 kB / 412.5 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.5387, allocations: 3.953 kB / 412.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.5389, allocations: 32.84 kB / 412.5 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003049/0.5393, allocations: 39.91 kB / 412.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.5409, allocations: 1.436 MB / 414 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006005/0.5416, allocations: 72.06 kB / 414.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/0.5416, allocations: 20 kB / 414.1 MB, free: 13.16 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.0002688/0.5419, allocations: 212.2 kB / 414.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.971e-05/0.542, allocations: 31.62 kB / 414.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.5421, allocations: 47.08 kB / 414.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5422, allocations: 4 kB / 414.4 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.5422, allocations: 96 / 414.4 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.5422, allocations: 3.984 kB / 414.4 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.544, allocations: 0.9663 MB / 415.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.544, allocations: 0 / 415.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.5443, allocations: 43.91 kB / 415.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.5444, allocations: 0 / 415.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.5444, allocations: 15.98 kB / 415.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.214e-06/0.5444, allocations: 0 / 415.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5445, allocations: 3.938 kB / 415.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.5457, allocations: 0.5927 MB / 416 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.5459, allocations: 136.7 kB / 416.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.996e-05/0.546, allocations: 16 kB / 416.1 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006261/0.5466, allocations: 63.94 kB / 416.2 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.5469, allocations: 67.89 kB / 416.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.787e-05/0.547, allocations: 19.98 kB / 416.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001734/0.5472, allocations: 149 kB / 416.4 MB, free: 10.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5472, allocations: 0 / 416.4 MB, free: 10.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000645/0.5478, allocations: 115.9 kB / 416.6 MB, free: 10.55 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.001788/0.5496, allocations: 1.195 MB / 417.8 MB, free: 9.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.551, allocations: 0.6939 MB / 418.4 MB, free: 8.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.551, allocations: 0 / 418.4 MB, free: 8.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006162/0.5516, allocations: 335.1 kB / 418.8 MB, free: 8.215 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.552, allocations: 20 kB / 418.8 MB, free: 8.195 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.5538, allocations: 0.599 MB / 419.4 MB, free: 7.551 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004236/0.5542, allocations: 0.7998 MB / 420.2 MB, free: 6.727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002963/0.5545, allocations: 119.3 kB / 420.3 MB, free: 6.609 MB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5545, allocations: 0 / 420.3 MB, free: 6.609 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.665/3.22, allocations: 6.275 MB / 426.6 MB, free: 344 kB / 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