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.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.894e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.4945, allocations: 78.47 MB / 400.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.4948, allocations: 63.97 kB / 400.4 MB, free: 11.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02779/0.5226, allocations: 5.872 MB / 406.3 MB, free: 5.527 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5227, allocations: 0 / 406.3 MB, free: 5.527 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.5227, allocations: 8 kB / 406.3 MB, free: 5.52 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.001842/0.5246, allocations: 0.7535 MB / 407 MB, free: 4.695 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.5246, allocations: 8.031 kB / 407 MB, free: 4.688 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.5248, allocations: 78.53 kB / 407.1 MB, free: 4.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.5249, allocations: 43.53 kB / 407.1 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/0.5251, allocations: 214.3 kB / 407.4 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.242e-05/0.5252, allocations: 32.78 kB / 407.4 MB, free: 4.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.5253, allocations: 44 kB / 407.4 MB, free: 4.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009212/0.5263, allocations: 334 kB / 407.8 MB, free: 3.898 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.5263, allocations: 0 / 407.8 MB, free: 3.898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.09e-05/0.5264, allocations: 19.98 kB / 407.8 MB, free: 3.879 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.5264, allocations: 8 kB / 407.8 MB, free: 3.871 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007449/0.5272, allocations: 245.5 kB / 408 MB, free: 3.633 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.53, allocations: 0.949 MB / 409 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.5315, allocations: 403.2 kB / 409.4 MB, free: 2.223 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004053/0.5319, allocations: 157.2 kB / 409.5 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.532, allocations: 8.328 kB / 409.5 MB, free: 2.059 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006517/0.5326, allocations: 293.6 kB / 409.8 MB, free: 1.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.467e-06/0.5327, allocations: 0 / 409.8 MB, free: 1.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001218/0.5339, allocations: 468.3 kB / 410.3 MB, free: 1.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.534, allocations: 178.6 kB / 410.4 MB, free: 1.059 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.5343, allocations: 194.1 kB / 410.6 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.264e-05/0.5344, allocations: 57.62 kB / 410.7 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.5346, allocations: 235.2 kB / 410.9 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.5348, allocations: 110.6 kB / 411 MB, free: 472 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.5348, allocations: 8 kB / 411 MB, free: 464 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.535, allocations: 334.8 kB / 411.4 MB, free: 120 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/0.5354, allocations: 129.2 kB / 411.5 MB, free: 15.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004068/0.5358, allocations: 143.9 kB / 411.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004001/0.5363, allocations: 218.1 kB / 411.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5363, allocations: 0 / 411.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001468/0.5378, allocations: 0.5455 MB / 412.4 MB, free: 15.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.433e-05/0.5379, allocations: 114.8 kB / 412.5 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.5379, allocations: 3.953 kB / 412.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002007/0.5381, allocations: 44.77 kB / 412.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.5385, allocations: 39.91 kB / 412.6 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.5402, allocations: 1.428 MB / 414 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006206/0.5408, allocations: 71.97 kB / 414.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.778e-05/0.5409, 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.0002863/0.5412, allocations: 212.3 kB / 414.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.764e-05/0.5413, allocations: 27.72 kB / 414.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.5414, allocations: 43.08 kB / 414.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.5414, allocations: 4 kB / 414.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.5415, allocations: 4 kB / 414.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.5415, allocations: 0 / 414.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.5433, allocations: 0.9661 MB / 415.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5433, allocations: 0 / 415.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002732/0.5436, allocations: 39.91 kB / 415.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.5436, allocations: 8 kB / 415.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.446e-05/0.5437, allocations: 11.98 kB / 415.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.5437, allocations: 11.88 kB / 415.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5437, allocations: 0 / 415.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.545, allocations: 0.5813 MB / 416 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.5452, allocations: 140.6 kB / 416.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.463e-05/0.5453, allocations: 20 kB / 416.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006522/0.546, allocations: 67.94 kB / 416.2 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/0.5462, allocations: 67.67 kB / 416.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.063e-05/0.5463, allocations: 19.98 kB / 416.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001837/0.5465, allocations: 141.3 kB / 416.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5465, allocations: 0 / 416.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007364/0.5473, allocations: 115.8 kB / 416.6 MB, free: 10.57 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.001765/0.549, allocations: 1.196 MB / 417.8 MB, free: 9.332 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.5504, allocations: 0.688 MB / 418.4 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5504, allocations: 0 / 418.4 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.5511, allocations: 339.2 kB / 418.8 MB, free: 8.227 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.5514, allocations: 20 kB / 418.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.5531, allocations: 0.5876 MB / 419.4 MB, free: 7.574 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.5536, allocations: 0.7998 MB / 420.2 MB, free: 6.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.5539, allocations: 111.4 kB / 420.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5539, allocations: 0 / 420.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.614/3.168, allocations: 6.271 MB / 426.6 MB, free: 380 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