Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.77/3.77, allocations: 403.3 MB / 415.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.308e-05/4.327e-05, allocations: 7.938 kB / 0.4991 GB, free: 13.34 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6875/0.6876, allocations: 92.67 MB / 0.5896 GB, free: 14.35 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2402/0.9279, allocations: 127.7 MB / 0.7143 GB, free: 14.46 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.9283, allocations: 87.94 kB / 0.7144 GB, free: 14.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.03742/0.9657, allocations: 8.687 MB / 0.7229 GB, free: 5.664 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.913e-06/0.9657, allocations: 0 / 0.7229 GB, free: 5.664 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.67e-05/0.9658, allocations: 16 kB / 0.7229 GB, free: 5.648 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.00253/0.9684, allocations: 0.7392 MB / 0.7236 GB, free: 4.855 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.9684, allocations: 12.02 kB / 0.7237 GB, free: 4.844 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000207/0.9687, allocations: 82.53 kB / 0.7237 GB, free: 4.754 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002704/0.969, allocations: 63.25 kB / 0.7238 GB, free: 4.691 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.9702, allocations: 420.5 kB / 0.7242 GB, free: 4.242 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.67e-05/0.9703, allocations: 37 kB / 0.7242 GB, free: 4.207 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.9705, allocations: 48 kB / 0.7243 GB, free: 4.16 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.9723, allocations: 0.5009 MB / 0.7248 GB, free: 3.621 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.9723, allocations: 3.984 kB / 0.7248 GB, free: 3.617 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.9724, allocations: 27.95 kB / 0.7248 GB, free: 3.59 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.9725, allocations: 8 kB / 0.7248 GB, free: 3.582 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.974, allocations: 343.8 kB / 0.7251 GB, free: 3.246 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005538/0.9796, allocations: 1.884 MB / 0.727 GB, free: 1.281 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.9811, allocations: 297 kB / 0.7273 GB, free: 0.9844 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.9817, allocations: 132.8 kB / 0.7274 GB, free: 0.8516 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.9818, allocations: 4 kB / 0.7274 GB, free: 0.8477 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007264/0.9825, allocations: 193.4 kB / 0.7276 GB, free: 0.6445 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=34): time 4.548e-06/0.9826, allocations: 3.938 kB / 0.7276 GB, free: 0.6406 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34): time 0.001267/0.9838, allocations: 294.8 kB / 0.7279 GB, free: 356 kB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.984, allocations: 110.8 kB / 0.728 GB, free: 220 kB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009485/0.9849, allocations: 362.7 kB / 0.7283 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.9851, allocations: 45.69 kB / 0.7284 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003378/0.9854, allocations: 240.2 kB / 0.7286 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.9856, allocations: 98.8 kB / 0.7287 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.693e-05/0.9857, allocations: 8 kB / 0.7287 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0002375/0.9859, allocations: 362.7 kB / 0.729 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005596/0.9865, allocations: 117.1 kB / 0.7291 GB, free: 14.99 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007316/0.9873, allocations: 242.9 kB / 0.7294 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005966/0.9879, allocations: 159.2 kB / 0.7295 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.9879, allocations: 0 / 0.7295 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001822/0.9897, allocations: 463.5 kB / 0.73 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008028/0.9906, allocations: 1.163 MB / 0.7311 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.9906, allocations: 0 / 0.7311 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.719e-05/0.9907, allocations: 15.98 kB / 0.7311 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/0.9916, allocations: 75.89 kB / 0.7312 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.959e-05/0.9916, allocations: 15.89 kB / 0.7312 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.9927, allocations: 83.62 kB / 0.7313 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.9929, allocations: 12 kB / 0.7313 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.9929, allocations: 4 kB / 0.7313 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/0.9945, allocations: 397.5 kB / 0.7317 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.9945, allocations: 0 / 0.7317 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.9946, allocations: 8 kB / 0.7317 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007985/0.9954, allocations: 75.83 kB / 0.7318 GB, free: 12.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.396e-05/0.9954, allocations: 7.984 kB / 0.7318 GB, free: 12.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009788/0.9964, allocations: 75.72 kB / 0.7318 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/0.9965, allocations: 23.98 kB / 0.7319 GB, free: 12.04 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00032/0.9969, allocations: 150.3 kB / 0.732 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.997, allocations: 43.44 kB / 0.732 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.9984, allocations: 345.7 kB / 0.7324 GB, free: 11.5 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.9985, allocations: 4 kB / 0.7324 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.9985, allocations: 0 / 0.7324 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.9985, allocations: 3.984 kB / 0.7324 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/1.001, allocations: 0.9172 MB / 0.7333 GB, free: 10.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/1.001, allocations: 0 / 0.7333 GB, free: 10.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007113/1.002, allocations: 67.92 kB / 0.7333 GB, free: 10.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/1.002, allocations: 0 / 0.7333 GB, free: 10.45 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.148e-05/1.002, allocations: 8 kB / 0.7334 GB, free: 10.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/1.002, allocations: 0 / 0.7334 GB, free: 10.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.002, allocations: 3.984 kB / 0.7334 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/1.004, allocations: 0.5712 MB / 0.7339 GB, free: 9.836 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/1.005, allocations: 148.6 kB / 0.7341 GB, free: 9.672 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/1.005, allocations: 12 kB / 0.7341 GB, free: 9.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/1.006, allocations: 56 kB / 0.7341 GB, free: 9.605 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002442/1.006, allocations: 43.94 kB / 0.7342 GB, free: 9.562 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.891e-05/1.006, allocations: 19.94 kB / 0.7342 GB, free: 9.543 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006806/1.007, allocations: 261.2 kB / 0.7344 GB, free: 9.293 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.51e-07/1.007, allocations: 0 / 0.7344 GB, free: 9.293 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001475/1.008, allocations: 155.7 kB / 0.7346 GB, free: 9.141 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002679/1.011, allocations: 1.211 MB / 0.7358 GB, free: 7.895 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002315/1.013, allocations: 0.6299 MB / 0.7364 GB, free: 7.238 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/1.013, allocations: 0 / 0.7364 GB, free: 7.238 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006412/1.014, allocations: 151.9 kB / 0.7365 GB, free: 7.09 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/1.015, allocations: 82.47 kB / 0.7366 GB, free: 7.008 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/1.018, allocations: 0.6348 MB / 0.7372 GB, free: 6.328 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006761/1.019, allocations: 0.8324 MB / 0.738 GB, free: 5.465 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0008862/1.02, allocations: 89.33 kB / 0.7381 GB, free: 5.379 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005146/1.02, allocations: 155.4 kB / 0.7383 GB, free: 5.227 MB / 0.6198 GB Notification: Performance of SimCode: time 1.423e-06/1.02, allocations: 3.938 kB / 0.7383 GB, free: 5.223 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05574/1.076, allocations: 9.746 MB / 0.7478 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002689/1.076, allocations: 169.4 kB / 0.748 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/3.982, allocations: 0 / 0.748 GB, free: 11.37 MB / 0.6355 GB