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 1.974/1.974, allocations: 209.4 MB / 216.5 MB, free: 6.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.537e-05/2.548e-05, allocations: 7.938 kB / 267.6 MB, free: 4.977 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 48.7 MB / 316.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4184/0.5239, allocations: 78.02 MB / 394.3 MB, free: 14.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.5242, allocations: 62.84 kB / 394.4 MB, free: 14.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03633/0.5606, allocations: 5.837 MB / 400.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5606, allocations: 0 / 400.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.5607, allocations: 11.94 kB / 400.3 MB, free: 9.406 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.002404/0.5631, allocations: 0.758 MB / 401 MB, free: 8.609 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.5632, allocations: 8.031 kB / 401 MB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.5634, allocations: 43.53 kB / 401.1 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.5637, allocations: 210.6 kB / 401.3 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.429e-05/0.5637, allocations: 16 kB / 401.3 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.5639, allocations: 27.98 kB / 401.3 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009445/0.5648, allocations: 225.9 kB / 401.5 MB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.5659, allocations: 277.7 kB / 401.8 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.5659, allocations: 3.938 kB / 401.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.458e-05/0.566, allocations: 7.047 kB / 401.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.566, allocations: 8 kB / 401.8 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003466/0.5695, allocations: 0.8768 MB / 402.7 MB, free: 7.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.5714, allocations: 389 kB / 403.1 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004866/0.5719, allocations: 144 kB / 403.2 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.241e-05/0.572, allocations: 4.328 kB / 403.2 MB, free: 6.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008265/0.5728, allocations: 294.2 kB / 403.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 4.218e-06/0.5728, allocations: 0 / 403.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001471/0.5743, allocations: 383.8 kB / 403.9 MB, free: 6.215 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.5745, allocations: 166.2 kB / 404 MB, free: 6.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.5749, allocations: 191.4 kB / 404.2 MB, free: 5.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.575, allocations: 36.81 kB / 404.3 MB, free: 5.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.5752, allocations: 174.8 kB / 404.4 MB, free: 5.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.5754, allocations: 111.8 kB / 404.5 MB, free: 5.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.5755, allocations: 0 / 404.5 MB, free: 5.586 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.5757, allocations: 344.5 kB / 404.9 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004981/0.5763, allocations: 128.8 kB / 405 MB, free: 5.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005059/0.5768, allocations: 130.2 kB / 405.1 MB, free: 5.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004964/0.5773, allocations: 99.64 kB / 405.2 MB, free: 5.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.5773, allocations: 0 / 405.2 MB, free: 5.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001855/0.5792, allocations: 428.5 kB / 405.7 MB, free: 4.695 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.5793, allocations: 117.7 kB / 405.8 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.5793, allocations: 4 kB / 405.8 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.5795, allocations: 32.09 kB / 405.8 MB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.5799, allocations: 39.66 kB / 405.8 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/0.5817, allocations: 1.39 MB / 407.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006147/0.5823, allocations: 62.86 kB / 407.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-05/0.5824, allocations: 18.88 kB / 407.3 MB, free: 2.98 MB / 330.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.0002933/0.5827, allocations: 206.3 kB / 407.5 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001043/0.5838, allocations: 395.6 kB / 407.9 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.5838, allocations: 31.62 kB / 407.9 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.584, allocations: 39.83 kB / 408 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.584, allocations: 7.938 kB / 408 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.584, allocations: 0 / 408 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.584, allocations: 0 / 408 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.5856, allocations: 0.8167 MB / 408.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.5857, allocations: 0 / 408.8 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/0.586, allocations: 39.47 kB / 408.8 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.595e-06/0.586, allocations: 0 / 408.8 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/0.586, allocations: 11.98 kB / 408.8 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5861, allocations: 0 / 408.8 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5861, allocations: 4 kB / 408.8 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.5872, allocations: 0.4963 MB / 409.3 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.5874, allocations: 134.7 kB / 409.5 MB, free: 1.098 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.758e-05/0.5875, allocations: 7.375 kB / 409.5 MB, free: 1.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006375/0.5882, allocations: 71.86 kB / 409.6 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.5884, allocations: 65.89 kB / 409.6 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-05/0.5885, allocations: 15.31 kB / 409.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001754/0.5887, allocations: 133.4 kB / 409.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5887, allocations: 0 / 409.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007202/0.5894, allocations: 103.9 kB / 409.9 MB, free: 0.7461 MB / 330.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.001676/0.5911, allocations: 1.104 MB / 411 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.5924, allocations: 0.6675 MB / 411.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5924, allocations: 0 / 411.6 MB, free: 15.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005654/0.593, allocations: 332.3 kB / 412 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.5933, allocations: 4 kB / 412 MB, free: 14.83 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.5951, allocations: 0.5231 MB / 412.5 MB, free: 14.35 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.5956, allocations: 0.8028 MB / 413.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000217/0.5958, allocations: 31.28 kB / 413.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.5961, allocations: 108 kB / 413.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5961, allocations: 0 / 413.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04564/0.6418, allocations: 6.305 MB / 419.7 MB, free: 7.176 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002923/0.6421, allocations: 118.1 kB / 419.8 MB, free: 6.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.774/3.416, allocations: 0 / 419.8 MB, free: 6.98 MB / 346.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