Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.122/2.122, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.391e-05/3.408e-05, allocations: 0 / 273.1 MB, free: 160 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 48.7 MB / 321.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4264/0.5326, allocations: 78.46 MB / 400.3 MB, free: 11.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.5329, allocations: 71.14 kB / 400.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02874/0.5616, allocations: 5.873 MB / 406.2 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.5617, allocations: 0 / 406.2 MB, free: 5.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.173e-05/0.5617, allocations: 8 kB / 406.3 MB, free: 5.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.002151/0.5639, allocations: 0.7612 MB / 407 MB, free: 4.379 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.564, allocations: 8.031 kB / 407 MB, free: 4.371 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.5641, allocations: 74.53 kB / 407.1 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.5643, allocations: 43.53 kB / 407.1 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.5646, allocations: 210.4 kB / 407.3 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.974e-05/0.5646, allocations: 36.77 kB / 407.4 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.5648, allocations: 40 kB / 407.4 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009618/0.5657, allocations: 331.6 kB / 407.7 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.5658, allocations: 4 kB / 407.8 MB, free: 3.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.5659, allocations: 12 kB / 407.8 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.5659, allocations: 12 kB / 407.8 MB, free: 3.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007796/0.5667, allocations: 259 kB / 408 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/0.5698, allocations: 0.949 MB / 409 MB, free: 2.312 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.5714, allocations: 399.6 kB / 409.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004848/0.572, allocations: 153.2 kB / 409.5 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.455e-05/0.572, allocations: 12.25 kB / 409.5 MB, free: 1.746 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007241/0.5728, allocations: 309.4 kB / 409.8 MB, free: 1.422 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 3.967e-06/0.5728, allocations: 0 / 409.8 MB, free: 1.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001321/0.5741, allocations: 464.5 kB / 410.3 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.5743, allocations: 174.6 kB / 410.5 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.5747, allocations: 198.1 kB / 410.6 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.5748, allocations: 49.69 kB / 410.7 MB, free: 496 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.575, allocations: 168.8 kB / 410.9 MB, free: 324 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.5752, allocations: 118.6 kB / 411 MB, free: 204 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.028e-05/0.5752, allocations: 12 kB / 411 MB, free: 192 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.5754, allocations: 342.8 kB / 411.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.5759, allocations: 137.1 kB / 411.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.5763, allocations: 145 kB / 411.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.5768, allocations: 218.1 kB / 411.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.5768, allocations: 0 / 411.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001574/0.5784, allocations: 0.5609 MB / 412.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.5785, allocations: 114.8 kB / 412.5 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.5786, allocations: 3.953 kB / 412.5 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002172/0.5788, allocations: 40.77 kB / 412.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.5791, allocations: 39.91 kB / 412.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.581, allocations: 1.428 MB / 414 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00067/0.5817, allocations: 63.89 kB / 414.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.5819, allocations: 32.05 kB / 414.1 MB, free: 12.86 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.0003056/0.5822, allocations: 212.3 kB / 414.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.5823, allocations: 35.61 kB / 414.3 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.5824, allocations: 39.08 kB / 414.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.5824, allocations: 7.938 kB / 414.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.5825, allocations: 4 kB / 414.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.5825, allocations: 0 / 414.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.5845, allocations: 0.9585 MB / 415.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.5845, allocations: 0 / 415.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.5848, allocations: 35.91 kB / 415.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.288e-05/0.5849, allocations: 8 kB / 415.4 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.044e-05/0.5849, allocations: 11.98 kB / 415.4 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.618e-05/0.585, allocations: 7.938 kB / 415.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.585, allocations: 7.875 kB / 415.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.5863, allocations: 0.5888 MB / 416 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.5866, allocations: 132.8 kB / 416.1 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.924e-05/0.5867, allocations: 16 kB / 416.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006669/0.5874, allocations: 67.94 kB / 416.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002948/0.5877, allocations: 67.89 kB / 416.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.318e-05/0.5878, allocations: 19.98 kB / 416.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001942/0.588, allocations: 141.1 kB / 416.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.588, allocations: 0 / 416.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008429/0.5888, allocations: 123.8 kB / 416.6 MB, free: 10.26 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.001974/0.5908, allocations: 1.195 MB / 417.7 MB, free: 9.023 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.5924, allocations: 0.6939 MB / 418.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5924, allocations: 0 / 418.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007137/0.5932, allocations: 339.1 kB / 418.8 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.5935, allocations: 19.94 kB / 418.8 MB, free: 7.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.5954, allocations: 0.5701 MB / 419.4 MB, free: 7.285 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.596, allocations: 0.7959 MB / 420.2 MB, free: 6.465 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.5963, allocations: 26.97 kB / 420.2 MB, free: 6.438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.5966, allocations: 111.4 kB / 420.3 MB, free: 6.328 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5966, allocations: 0 / 420.3 MB, free: 6.328 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.6307, allocations: 6.781 MB / 427.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003548/0.6311, allocations: 169.3 kB / 427.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.868/3.499, allocations: 3.938 kB / 427.2 MB, free: 15.39 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat