Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_5_0_1_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.657/3.657, allocations: 403.3 MB / 415.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.815e-05, allocations: 0 / 0.4991 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.583/0.5831, allocations: 92.7 MB / 0.5897 GB, free: 14.33 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2265/0.8096, allocations: 124.2 MB / 0.711 GB, free: 1.957 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.81, allocations: 91.94 kB / 0.7111 GB, free: 1.867 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.03263/0.8427, allocations: 8.097 MB / 0.719 GB, free: 9.723 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.373e-06/0.8427, allocations: 0 / 0.719 GB, free: 9.723 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.134e-05/0.8427, allocations: 8 kB / 0.719 GB, free: 9.715 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001315/0.8441, allocations: 0.6226 MB / 0.7196 GB, free: 9.043 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.8441, allocations: 8.031 kB / 0.7196 GB, free: 9.035 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000166/0.8443, allocations: 86.52 kB / 0.7197 GB, free: 8.941 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.8445, allocations: 55.39 kB / 0.7197 GB, free: 8.887 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005701/0.845, allocations: 342.6 kB / 0.72 GB, free: 8.512 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.014e-05/0.8451, allocations: 49 kB / 0.7201 GB, free: 8.465 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.8453, allocations: 55.98 kB / 0.7201 GB, free: 8.41 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.8466, allocations: 0.5286 MB / 0.7207 GB, free: 7.852 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.8466, allocations: 4 kB / 0.7207 GB, free: 7.848 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.268e-05/0.8467, allocations: 20 kB / 0.7207 GB, free: 7.828 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.24e-05/0.8468, allocations: 24.95 kB / 0.7207 GB, free: 7.805 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.8479, allocations: 393.8 kB / 0.7211 GB, free: 7.418 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003398/0.8513, allocations: 1.876 MB / 0.7229 GB, free: 5.465 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008686/0.8522, allocations: 343.5 kB / 0.7232 GB, free: 5.117 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004262/0.8526, allocations: 180.8 kB / 0.7234 GB, free: 4.938 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-05/0.8527, allocations: 8 kB / 0.7234 GB, free: 4.93 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005088/0.8532, allocations: 210.4 kB / 0.7236 GB, free: 4.711 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.868e-06/0.8533, allocations: 0 / 0.7236 GB, free: 4.711 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0009139/0.8542, allocations: 329.9 kB / 0.7239 GB, free: 4.383 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.8543, allocations: 67.39 kB / 0.724 GB, free: 4.305 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.8546, allocations: 217.9 kB / 0.7242 GB, free: 4.086 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.065e-05/0.8547, allocations: 45.7 kB / 0.7243 GB, free: 4.035 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.8549, allocations: 220.7 kB / 0.7245 GB, free: 3.816 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.855, allocations: 106.7 kB / 0.7246 GB, free: 3.711 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/0.8551, allocations: 12 kB / 0.7246 GB, free: 3.699 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.8552, allocations: 350.8 kB / 0.7249 GB, free: 3.348 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004215/0.8557, allocations: 145.5 kB / 0.7251 GB, free: 3.203 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005236/0.8562, allocations: 272.5 kB / 0.7253 GB, free: 2.891 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.8567, allocations: 167.2 kB / 0.7255 GB, free: 2.727 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.8567, allocations: 0 / 0.7255 GB, free: 2.727 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001183/0.8579, allocations: 486.8 kB / 0.7259 GB, free: 2.246 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.8579, allocations: 4 kB / 0.7259 GB, free: 2.242 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.8579, allocations: 8.031 kB / 0.7259 GB, free: 2.234 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.858, allocations: 8 kB / 0.726 GB, free: 2.227 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004667/0.8585, allocations: 67.77 kB / 0.726 GB, free: 2.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/0.8585, allocations: 8 kB / 0.726 GB, free: 2.152 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003897/0.8589, allocations: 39.83 kB / 0.7261 GB, free: 2.113 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.981e-05/0.859, allocations: 27.98 kB / 0.7261 GB, free: 2.086 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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 0.0002272/0.8592, allocations: 178.4 kB / 0.7263 GB, free: 1.906 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.36e-05/0.8593, allocations: 23.72 kB / 0.7263 GB, free: 1.883 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.8604, allocations: 419.2 kB / 0.7267 GB, free: 1.473 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.8605, allocations: 8 kB / 0.7267 GB, free: 1.465 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.8605, allocations: 0 / 0.7267 GB, free: 1.465 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.8605, allocations: 7.984 kB / 0.7267 GB, free: 1.457 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.8628, allocations: 1.038 MB / 0.7277 GB, free: 372 kB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.8628, allocations: 0 / 0.7277 GB, free: 372 kB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.8631, allocations: 43.91 kB / 0.7278 GB, free: 328 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-05/0.8631, allocations: 4 kB / 0.7278 GB, free: 324 kB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.8632, allocations: 7.984 kB / 0.7278 GB, free: 316 kB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.8632, allocations: 4 kB / 0.7278 GB, free: 312 kB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.8632, allocations: 3.953 kB / 0.7278 GB, free: 308 kB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009593/0.8642, allocations: 479.8 kB / 0.7282 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.646e-05/0.8643, allocations: 100.7 kB / 0.7283 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/0.8644, allocations: 8 kB / 0.7283 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.8647, allocations: 31.98 kB / 0.7284 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.8649, allocations: 68.33 kB / 0.7284 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.808e-05/0.865, allocations: 19.95 kB / 0.7285 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000158/0.8652, allocations: 135.3 kB / 0.7286 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.91e-07/0.8652, allocations: 0 / 0.7286 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006247/0.8658, allocations: 91.88 kB / 0.7287 GB, free: 15.35 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * 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.00139/0.8672, allocations: 1.067 MB / 0.7297 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001045/0.8683, allocations: 408.6 kB / 0.7301 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.8683, allocations: 4.062 kB / 0.7301 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004923/0.8688, allocations: 205.5 kB / 0.7303 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.8692, allocations: 35.92 kB / 0.7303 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.8712, allocations: 0.6172 MB / 0.7309 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.8717, allocations: 0.8312 MB / 0.7317 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003689/0.8721, allocations: 67.25 kB / 0.7318 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.8724, allocations: 139.4 kB / 0.7319 GB, free: 11.9 MB / 0.6198 GB Notification: Performance of SimCode: time 1.042e-06/0.8725, allocations: 0 / 0.7319 GB, free: 11.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.9047, allocations: 7.17 MB / 0.7389 GB, free: 4.828 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003623/0.9052, allocations: 185.3 kB / 0.7391 GB, free: 4.602 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.4/3.305, allocations: 0 / 0.7391 GB, free: 4.602 MB / 0.6198 GB