Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.468/2.468, allocations: 235 MB / 247.6 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.523e-05/3.545e-05, allocations: 4 kB / 305 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4223, allocations: 54.84 MB / 359.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1593/0.5817, allocations: 84.86 MB / 444.7 MB, free: 12.05 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.582, allocations: 63.97 kB / 444.8 MB, free: 11.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02867/0.6107, allocations: 5.891 MB / 450.7 MB, free: 6.109 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6107, allocations: 0 / 450.7 MB, free: 6.109 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.6108, allocations: 8 kB / 450.7 MB, free: 6.102 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.002008/0.6128, allocations: 0.7496 MB / 451.4 MB, free: 5.281 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.207e-05/0.6129, allocations: 8.031 kB / 451.4 MB, free: 5.273 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.613, allocations: 82.42 kB / 451.5 MB, free: 5.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.6132, allocations: 47.52 kB / 451.6 MB, free: 5.137 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.6135, allocations: 203.6 kB / 451.8 MB, free: 4.895 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-05/0.6136, allocations: 32.78 kB / 451.8 MB, free: 4.859 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.6137, allocations: 40 kB / 451.8 MB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.6147, allocations: 385.3 kB / 452.2 MB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.6148, allocations: 3.984 kB / 452.2 MB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.6148, allocations: 16 kB / 452.2 MB, free: 4.414 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.6149, allocations: 11.95 kB / 452.2 MB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007652/0.6156, allocations: 245.5 kB / 452.5 MB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.6187, allocations: 0.9491 MB / 453.4 MB, free: 3.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.6202, allocations: 409.9 kB / 453.8 MB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004413/0.6207, allocations: 157.2 kB / 454 MB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.565e-05/0.6208, allocations: 4.328 kB / 454 MB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007181/0.6215, allocations: 317.3 kB / 454.3 MB, free: 2.254 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.887e-06/0.6215, allocations: 0 / 454.3 MB, free: 2.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001259/0.6228, allocations: 460.5 kB / 454.7 MB, free: 1.785 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.623, allocations: 196.3 kB / 454.9 MB, free: 1.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.6233, allocations: 198.9 kB / 455.1 MB, free: 1.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.6235, allocations: 49.69 kB / 455.2 MB, free: 1.297 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.6237, allocations: 235.1 kB / 455.4 MB, free: 1.066 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.6239, allocations: 114.6 kB / 455.5 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.835e-05/0.6239, allocations: 8.656 kB / 455.5 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.6241, allocations: 330.8 kB / 455.8 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/0.6245, allocations: 137.1 kB / 456 MB, free: 492 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004599/0.625, allocations: 178.7 kB / 456.2 MB, free: 304 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.6254, allocations: 222.1 kB / 456.4 MB, free: 56 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.6255, allocations: 0 / 456.4 MB, free: 56 kB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001536/0.627, allocations: 0.5492 MB / 456.9 MB, free: 15.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.6271, allocations: 119.8 kB / 457 MB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.6272, allocations: 0 / 457 MB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.6274, allocations: 36.84 kB / 457.1 MB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.6277, allocations: 31.92 kB / 457.1 MB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.6294, allocations: 1.436 MB / 458.5 MB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000714/0.6302, allocations: 75.94 kB / 458.6 MB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.306e-05/0.6303, allocations: 23.97 kB / 458.6 MB, free: 13.59 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.0002955/0.6306, allocations: 212.3 kB / 458.8 MB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.241e-05/0.6307, allocations: 31.62 kB / 458.9 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.6308, allocations: 43.08 kB / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.6308, allocations: 4 kB / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.6308, allocations: 3.938 kB / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.6309, allocations: 0 / 458.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/0.6327, allocations: 0.9585 MB / 459.9 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.6327, allocations: 4 kB / 459.9 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002776/0.633, allocations: 31.91 kB / 459.9 MB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.568e-06/0.6331, allocations: 0 / 459.9 MB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/0.6331, allocations: 19.98 kB / 459.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.6331, allocations: 0 / 459.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.6332, allocations: 4 kB / 459.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.6344, allocations: 0.5929 MB / 460.5 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.892e-05/0.6345, allocations: 116.6 kB / 460.7 MB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.212e-05/0.6346, allocations: 8 kB / 460.7 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006603/0.6353, allocations: 75.94 kB / 460.7 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.6356, allocations: 71.66 kB / 460.8 MB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.257e-05/0.6357, allocations: 19.98 kB / 460.8 MB, free: 11.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001922/0.6359, allocations: 149 kB / 461 MB, free: 11.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6359, allocations: 0 / 461 MB, free: 11.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007168/0.6366, allocations: 115.9 kB / 461.1 MB, free: 11.02 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.001969/0.6386, allocations: 1.196 MB / 462.3 MB, free: 9.777 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.64, allocations: 0.6944 MB / 463 MB, free: 9.027 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.64, allocations: 0 / 463 MB, free: 9.027 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006248/0.6407, allocations: 331.1 kB / 463.3 MB, free: 8.676 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.641, allocations: 33.38 kB / 463.3 MB, free: 8.645 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.6429, allocations: 0.5795 MB / 463.9 MB, free: 8.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004436/0.6434, allocations: 0.8005 MB / 464.7 MB, free: 7.191 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.6437, allocations: 111.4 kB / 464.8 MB, free: 7.082 MB / 394.7 MB Notification: Performance of SimCode: time 1.011e-06/0.6437, allocations: 0 / 464.8 MB, free: 7.082 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.736/3.38, allocations: 6.328 MB / 471.1 MB, free: 0.7734 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat