Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.774/3.774, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.67e-05, allocations: 4 kB / 0.4991 GB, free: 13.36 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6686/0.6687, allocations: 92.68 MB / 0.5896 GB, free: 14.5 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.8994, allocations: 121.5 MB / 0.7083 GB, free: 4.84 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003878/0.8999, allocations: 87.94 kB / 0.7084 GB, free: 4.754 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.006226/0.9061, allocations: 1.445 MB / 0.7098 GB, free: 3.309 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.348e-06/0.9062, allocations: 0 / 0.7098 GB, free: 3.309 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.804e-06/0.9062, allocations: 3.938 kB / 0.7098 GB, free: 3.305 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005621/0.9068, allocations: 380.5 kB / 0.7101 GB, free: 2.891 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.9068, allocations: 8.031 kB / 0.7102 GB, free: 2.883 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.234e-05/0.9069, allocations: 38.55 kB / 0.7102 GB, free: 2.836 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.907, allocations: 15.86 kB / 0.7102 GB, free: 2.82 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.9071, allocations: 167 kB / 0.7104 GB, free: 2.617 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.9072, allocations: 0 / 0.7104 GB, free: 2.617 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.9072, allocations: 4 kB / 0.7104 GB, free: 2.613 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.9074, allocations: 87.33 kB / 0.7105 GB, free: 2.516 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.9074, allocations: 4 kB / 0.7105 GB, free: 2.512 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.9075, allocations: 3.938 kB / 0.7105 GB, free: 2.508 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.9075, allocations: 7.953 kB / 0.7105 GB, free: 2.5 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.9076, allocations: 28 kB / 0.7105 GB, free: 2.473 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.9083, allocations: 336.7 kB / 0.7108 GB, free: 2.094 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.9084, allocations: 42.52 kB / 0.7109 GB, free: 2.043 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.9085, allocations: 24.8 kB / 0.7109 GB, free: 2.016 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.9085, allocations: 4 kB / 0.7109 GB, free: 2.012 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.9086, allocations: 30.56 kB / 0.7109 GB, free: 1.973 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=4): time 4.148e-06/0.9086, allocations: 96 / 0.7109 GB, free: 1.973 MB / 0.5886 GB Notification: Performance of matching and sorting (n=4): time 0.0002511/0.9089, allocations: 73.61 kB / 0.711 GB, free: 1.895 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.9089, allocations: 77.11 kB / 0.7111 GB, free: 1.801 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.9091, allocations: 121.3 kB / 0.7112 GB, free: 1.672 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.9091, allocations: 25.7 kB / 0.7112 GB, free: 1.641 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.237e-05/0.9092, allocations: 104 kB / 0.7113 GB, free: 1.535 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.9092, allocations: 3.906 kB / 0.7113 GB, free: 1.531 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.9092, allocations: 4 kB / 0.7113 GB, free: 1.527 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.9094, allocations: 318.8 kB / 0.7116 GB, free: 1.207 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.153e-05/0.9094, allocations: 20 kB / 0.7116 GB, free: 1.188 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.208e-05/0.9095, allocations: 25.72 kB / 0.7117 GB, free: 1.156 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.919e-05/0.9096, allocations: 12 kB / 0.7117 GB, free: 1.145 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.9096, allocations: 0 / 0.7117 GB, free: 1.145 MB / 0.5886 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001839/0.9098, allocations: 77.48 kB / 0.7117 GB, free: 1.062 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.9098, allocations: 5.562 kB / 0.7117 GB, free: 1.059 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.9098, allocations: 0 / 0.7117 GB, free: 1.059 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.9099, allocations: 4 kB / 0.7117 GB, free: 1.055 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.9101, allocations: 16.02 kB / 0.7118 GB, free: 1.039 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.9101, allocations: 0 / 0.7118 GB, free: 1.039 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.9102, allocations: 15.98 kB / 0.7118 GB, free: 1.023 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.9103, allocations: 0 / 0.7118 GB, free: 1.023 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 8.982e-05/0.9104, allocations: 109 kB / 0.7119 GB, free: 0.9102 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.333e-05/0.9104, allocations: 11.86 kB / 0.7119 GB, free: 0.8984 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.9105, allocations: 12.02 kB / 0.7119 GB, free: 0.8828 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.9105, allocations: 4 kB / 0.7119 GB, free: 0.8789 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.9105, allocations: 0 / 0.7119 GB, free: 0.8789 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.9105, allocations: 0 / 0.7119 GB, free: 0.8789 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.9108, allocations: 189.6 kB / 0.7121 GB, free: 0.6445 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.9108, allocations: 0 / 0.7121 GB, free: 0.6445 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.9109, allocations: 15.92 kB / 0.7121 GB, free: 0.6289 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.9109, allocations: 0 / 0.7121 GB, free: 0.6289 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.911, allocations: 8.141 kB / 0.7121 GB, free: 0.6211 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.911, allocations: 4 kB / 0.7121 GB, free: 0.6172 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.911, allocations: 7.875 kB / 0.7121 GB, free: 0.6094 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.9112, allocations: 159.5 kB / 0.7123 GB, free: 448 kB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.441e-05/0.9113, allocations: 89 kB / 0.7124 GB, free: 340 kB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.918e-05/0.9113, allocations: 0 / 0.7124 GB, free: 340 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.9115, allocations: 19.94 kB / 0.7124 GB, free: 320 kB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.9116, allocations: 7.984 kB / 0.7124 GB, free: 312 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.9116, allocations: 4 kB / 0.7124 GB, free: 308 kB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.634e-05/0.9117, allocations: 103.8 kB / 0.7125 GB, free: 204 kB / 0.5886 GB Notification: Performance of sort global known variables: time 4.61e-07/0.9117, allocations: 4 kB / 0.7125 GB, free: 200 kB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000299/0.912, allocations: 11.94 kB / 0.7125 GB, free: 188 kB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005547/0.9126, allocations: 0.7043 MB / 0.7132 GB, free: 15.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001725/0.9128, allocations: 36 kB / 0.7132 GB, free: 15.41 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.9128, allocations: 4 kB / 0.7132 GB, free: 15.41 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.288e-05/0.9129, allocations: 15.94 kB / 0.7132 GB, free: 15.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.9131, allocations: 11.95 kB / 0.7133 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005407/0.9136, allocations: 131.7 kB / 0.7134 GB, free: 15.22 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.914, allocations: 0.6965 MB / 0.7141 GB, free: 14.5 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.774e-05/0.914, allocations: 12.22 kB / 0.7141 GB, free: 14.49 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.9141, allocations: 19.42 kB / 0.7141 GB, free: 14.47 MB / 0.6042 GB Notification: Performance of SimCode: time 8.02e-07/0.9141, allocations: 0 / 0.7141 GB, free: 14.47 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.9387, allocations: 1.699 MB / 0.7158 GB, free: 12.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002997/0.9391, allocations: 188.5 kB / 0.7159 GB, free: 12.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.107/3.046, allocations: 1.719 kB / 0.7159 GB, free: 12.63 MB / 0.6042 GB