Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Logical",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.616/2.616, allocations: 235.1 MB / 242.3 MB, free: 15.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.312e-05/2.309e-05, allocations: 4 kB / 299.6 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4101, allocations: 54.86 MB / 354.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.5798, allocations: 84.19 MB / 438.6 MB, free: 14.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.5801, allocations: 67.97 kB / 438.7 MB, free: 14.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03191/0.612, allocations: 5.852 MB / 444.5 MB, free: 8.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6121, allocations: 0 / 444.5 MB, free: 8.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.6121, allocations: 8 kB / 444.6 MB, free: 8.148 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.002136/0.6143, allocations: 0.7496 MB / 445.3 MB, free: 7.328 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.6143, allocations: 8.031 kB / 445.3 MB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.6145, allocations: 51.47 kB / 445.4 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/0.6148, allocations: 203.7 kB / 445.6 MB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.667e-05/0.6148, allocations: 19.94 kB / 445.6 MB, free: 7.008 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.615, allocations: 24 kB / 445.6 MB, free: 6.984 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008481/0.6158, allocations: 229.5 kB / 445.8 MB, free: 6.758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009841/0.6168, allocations: 337.3 kB / 446.2 MB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.6168, allocations: 0 / 446.2 MB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.099e-05/0.6169, allocations: 7.938 kB / 446.2 MB, free: 6.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.617, allocations: 8 kB / 446.2 MB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003216/0.6202, allocations: 0.866 MB / 447 MB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.6219, allocations: 407.2 kB / 447.4 MB, free: 5.086 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004495/0.6224, allocations: 145.2 kB / 447.6 MB, free: 4.941 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/0.6225, allocations: 8.328 kB / 447.6 MB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007329/0.6232, allocations: 293.4 kB / 447.9 MB, free: 4.621 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.439e-06/0.6232, allocations: 3.938 kB / 447.9 MB, free: 4.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001296/0.6245, allocations: 373.1 kB / 448.2 MB, free: 4.246 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.6247, allocations: 196.3 kB / 448.4 MB, free: 4.012 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000321/0.625, allocations: 199.5 kB / 448.6 MB, free: 3.812 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-05/0.6251, allocations: 33.7 kB / 448.7 MB, free: 3.773 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.6253, allocations: 180.8 kB / 448.8 MB, free: 3.594 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.6255, allocations: 98.77 kB / 448.9 MB, free: 3.496 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.6256, allocations: 4 kB / 448.9 MB, free: 3.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.6258, allocations: 342.7 kB / 449.3 MB, free: 3.148 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004449/0.6262, allocations: 125.1 kB / 449.4 MB, free: 3.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.6267, allocations: 170.7 kB / 449.6 MB, free: 2.852 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004204/0.6272, allocations: 98.14 kB / 449.7 MB, free: 2.754 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.6272, allocations: 32 / 449.7 MB, free: 2.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001592/0.6288, allocations: 435.4 kB / 450.1 MB, free: 2.324 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.6289, allocations: 114.8 kB / 450.2 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.6289, allocations: 0 / 450.2 MB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002027/0.6292, allocations: 40.78 kB / 450.2 MB, free: 2.145 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.6295, allocations: 35.91 kB / 450.3 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.6314, allocations: 1.388 MB / 451.7 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007181/0.6321, allocations: 63.98 kB / 451.7 MB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.601e-05/0.6322, allocations: 16 kB / 451.7 MB, free: 0.5273 MB / 378.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.0003072/0.6325, allocations: 209.5 kB / 451.9 MB, free: 308 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001218/0.6338, allocations: 400.9 kB / 452.3 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.751e-05/0.6339, allocations: 35.56 kB / 452.4 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.634, allocations: 31.39 kB / 452.4 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.634, allocations: 4 kB / 452.4 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.6341, allocations: 0 / 452.4 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.6341, allocations: 7.984 kB / 452.4 MB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.6359, allocations: 0.8037 MB / 453.2 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.6359, allocations: 0 / 453.2 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.6363, allocations: 35.86 kB / 453.2 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.6363, allocations: 3.984 kB / 453.3 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.598e-05/0.6363, allocations: 8 kB / 453.3 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.976e-06/0.6364, allocations: 8 kB / 453.3 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.6364, allocations: 0 / 453.3 MB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.6376, allocations: 0.5034 MB / 453.8 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.614e-05/0.6377, allocations: 96.83 kB / 453.9 MB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.6379, allocations: 15.98 kB / 453.9 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007843/0.6387, allocations: 63.94 kB / 453.9 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.639, allocations: 67.89 kB / 454 MB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.972e-05/0.6391, allocations: 19.98 kB / 454 MB, free: 14.13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.6392, allocations: 136.5 kB / 454.2 MB, free: 14 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6392, allocations: 0 / 454.2 MB, free: 14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008396/0.6401, allocations: 99.84 kB / 454.3 MB, free: 13.9 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.001867/0.642, allocations: 1.11 MB / 455.4 MB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.6435, allocations: 0.6685 MB / 456 MB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.6435, allocations: 4 kB / 456 MB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006635/0.6442, allocations: 324.8 kB / 456.4 MB, free: 11.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.6445, allocations: 19.84 kB / 456.4 MB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.6464, allocations: 0.5168 MB / 456.9 MB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.6469, allocations: 0.8008 MB / 457.7 MB, free: 10.28 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.6472, allocations: 27.3 kB / 457.7 MB, free: 10.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/0.6475, allocations: 115.4 kB / 457.8 MB, free: 10.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6476, allocations: 0 / 457.8 MB, free: 10.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05683/0.7044, allocations: 6.389 MB / 464.2 MB, free: 3.781 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003128/0.7048, allocations: 116.9 kB / 464.3 MB, free: 3.594 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.108/3.813, allocations: 0 / 464.3 MB, free: 3.594 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat