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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.562/4.562, allocations: 404.1 MB / 411.3 MB, free: 408 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.666e-05/2.67e-05, allocations: 4 kB / 0.4945 GB, free: 1.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6875/0.6876, allocations: 92.68 MB / 0.585 GB, free: 2.289 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3027/0.9903, allocations: 127.1 MB / 0.7091 GB, free: 3.055 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003969/0.9908, allocations: 83.94 kB / 0.7092 GB, free: 2.973 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.04413/1.035, allocations: 8.585 MB / 0.7176 GB, free: 10.36 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.354e-06/1.035, allocations: 0 / 0.7176 GB, free: 10.36 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.74e-05/1.035, allocations: 19.94 kB / 0.7176 GB, free: 10.34 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.002392/1.037, allocations: 0.7391 MB / 0.7183 GB, free: 9.551 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/1.038, allocations: 12.03 kB / 0.7183 GB, free: 9.539 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/1.038, allocations: 59.25 kB / 0.7184 GB, free: 9.48 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/1.039, allocations: 416.8 kB / 0.7188 GB, free: 9.027 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.534e-05/1.039, allocations: 20 kB / 0.7188 GB, free: 9.008 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/1.039, allocations: 28 kB / 0.7188 GB, free: 8.98 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001223/1.04, allocations: 310.6 kB / 0.7191 GB, free: 8.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/1.042, allocations: 468.8 kB / 0.7196 GB, free: 8.184 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/1.042, allocations: 0 / 0.7196 GB, free: 8.184 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/1.042, allocations: 4 kB / 0.7196 GB, free: 8.18 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/1.042, allocations: 12 kB / 0.7196 GB, free: 8.168 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004357/1.046, allocations: 1.786 MB / 0.7213 GB, free: 6.316 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/1.047, allocations: 282.6 kB / 0.7216 GB, free: 6.035 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003767/1.048, allocations: 116.8 kB / 0.7217 GB, free: 5.918 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-05/1.048, allocations: 7.984 kB / 0.7217 GB, free: 5.91 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005649/1.048, allocations: 177.3 kB / 0.7219 GB, free: 5.723 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=34): time 3.657e-06/1.048, allocations: 0 / 0.7219 GB, free: 5.723 MB / 0.6042 GB Notification: Performance of matching and sorting (n=34): time 0.0009841/1.049, allocations: 283 kB / 0.7222 GB, free: 5.441 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.74e-05/1.05, allocations: 110.8 kB / 0.7223 GB, free: 5.309 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005958/1.05, allocations: 289.5 kB / 0.7226 GB, free: 5.023 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.034e-05/1.05, allocations: 33.7 kB / 0.7226 GB, free: 4.984 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000306/1.051, allocations: 255.9 kB / 0.7228 GB, free: 4.727 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/1.051, allocations: 86.81 kB / 0.7229 GB, free: 4.641 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.111e-05/1.051, allocations: 0 / 0.7229 GB, free: 4.641 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000194/1.051, allocations: 350.8 kB / 0.7233 GB, free: 4.289 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/1.051, allocations: 121.1 kB / 0.7234 GB, free: 4.168 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005308/1.052, allocations: 225.7 kB / 0.7236 GB, free: 3.902 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/1.052, allocations: 125.5 kB / 0.7237 GB, free: 3.781 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/1.052, allocations: 0 / 0.7237 GB, free: 3.781 MB / 0.6042 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001238/1.054, allocations: 389.6 kB / 0.7241 GB, free: 3.395 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005648/1.054, allocations: 1.163 MB / 0.7252 GB, free: 2.137 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/1.054, allocations: 0 / 0.7252 GB, free: 2.137 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.551e-05/1.054, allocations: 8 kB / 0.7252 GB, free: 2.129 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008134/1.055, allocations: 87.77 kB / 0.7253 GB, free: 2.043 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.198e-05/1.055, allocations: 11.98 kB / 0.7253 GB, free: 2.031 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008596/1.056, allocations: 71.66 kB / 0.7254 GB, free: 1.961 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/1.056, allocations: 16 kB / 0.7254 GB, free: 1.945 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/1.056, allocations: 4 kB / 0.7254 GB, free: 1.941 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001076/1.057, allocations: 315.2 kB / 0.7257 GB, free: 1.633 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.057, allocations: 7.938 kB / 0.7257 GB, free: 1.625 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/1.057, allocations: 8 kB / 0.7257 GB, free: 1.617 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/1.058, allocations: 76.27 kB / 0.7258 GB, free: 1.543 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/1.058, allocations: 11.92 kB / 0.7258 GB, free: 1.531 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007971/1.059, allocations: 51.8 kB / 0.7258 GB, free: 1.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.056e-05/1.059, allocations: 20 kB / 0.7259 GB, free: 1.461 MB / 0.6042 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.0002801/1.059, allocations: 142 kB / 0.726 GB, free: 1.316 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008935/1.06, allocations: 269 kB / 0.7263 GB, free: 1.047 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/1.06, allocations: 35.62 kB / 0.7263 GB, free: 1.012 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/1.061, allocations: 293.8 kB / 0.7266 GB, free: 0.7148 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/1.061, allocations: 4 kB / 0.7266 GB, free: 0.7109 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.061, allocations: 0 / 0.7266 GB, free: 0.7109 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/1.061, allocations: 7.984 kB / 0.7266 GB, free: 0.7031 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/1.064, allocations: 0.8319 MB / 0.7274 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/1.064, allocations: 4 kB / 0.7274 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006404/1.065, allocations: 59.95 kB / 0.7275 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-05/1.065, allocations: 8.031 kB / 0.7275 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/1.065, allocations: 3.984 kB / 0.7275 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/1.065, allocations: 0 / 0.7275 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/1.065, allocations: 7.938 kB / 0.7275 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/1.066, allocations: 0.5363 MB / 0.728 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/1.066, allocations: 144.5 kB / 0.7281 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/1.067, allocations: 8.062 kB / 0.7281 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007773/1.067, allocations: 51.94 kB / 0.7282 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/1.068, allocations: 39.94 kB / 0.7282 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/1.068, allocations: 19.94 kB / 0.7283 GB, free: 14.9 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003764/1.068, allocations: 212.6 kB / 0.7285 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.41e-07/1.068, allocations: 0 / 0.7285 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001096/1.069, allocations: 139.6 kB / 0.7286 GB, free: 14.56 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.001928/1.071, allocations: 1.187 MB / 0.7297 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001683/1.073, allocations: 0.5838 MB / 0.7303 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.073, allocations: 1.562 kB / 0.7303 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004632/1.073, allocations: 143.9 kB / 0.7305 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008596/1.074, allocations: 69.12 kB / 0.7305 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/1.077, allocations: 0.5889 MB / 0.7311 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005842/1.077, allocations: 0.8477 MB / 0.7319 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0007201/1.078, allocations: 77.22 kB / 0.732 GB, free: 10.94 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004543/1.078, allocations: 151.4 kB / 0.7321 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of SimCode: time 1.122e-06/1.078, allocations: 0 / 0.7321 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06741/1.146, allocations: 8.523 MB / 0.7405 GB, free: 2.332 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003577/1.146, allocations: 161.3 kB / 0.7406 GB, free: 2.137 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.193/4.339, allocations: 3.938 kB / 0.7406 GB, free: 2.133 MB / 0.6198 GB