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.685/3.685, allocations: 403.3 MB / 415.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.736e-05/3.748e-05, allocations: 4 kB / 0.4991 GB, free: 13.36 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6071/0.6071, allocations: 92.68 MB / 0.5896 GB, free: 14.48 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2427/0.8499, allocations: 124.2 MB / 0.7109 GB, free: 2.094 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003876/0.8504, allocations: 91.94 kB / 0.711 GB, free: 2.004 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.03354/0.8839, allocations: 8.089 MB / 0.7189 GB, free: 9.867 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.603e-06/0.884, allocations: 0 / 0.7189 GB, free: 9.867 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.511e-05/0.884, allocations: 8 kB / 0.7189 GB, free: 9.859 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.00135/0.8854, allocations: 0.6187 MB / 0.7195 GB, free: 9.191 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.8854, allocations: 8.031 kB / 0.7195 GB, free: 9.184 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001639/0.8856, allocations: 90.52 kB / 0.7196 GB, free: 9.086 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.8858, allocations: 55.39 kB / 0.7197 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006271/0.8864, allocations: 339.1 kB / 0.72 GB, free: 8.656 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.828e-05/0.8865, allocations: 44.94 kB / 0.72 GB, free: 8.613 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.8867, allocations: 56 kB / 0.7201 GB, free: 8.559 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.8881, allocations: 0.5461 MB / 0.7206 GB, free: 7.984 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.8882, allocations: 4 kB / 0.7206 GB, free: 7.98 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.8883, allocations: 24 kB / 0.7207 GB, free: 7.957 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.87e-05/0.8883, allocations: 24.94 kB / 0.7207 GB, free: 7.93 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.8895, allocations: 403.8 kB / 0.7211 GB, free: 7.535 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.8934, allocations: 1.876 MB / 0.7229 GB, free: 5.578 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009394/0.8944, allocations: 347.6 kB / 0.7232 GB, free: 5.227 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004615/0.8949, allocations: 172.8 kB / 0.7234 GB, free: 5.055 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.9e-05/0.895, allocations: 12.7 kB / 0.7234 GB, free: 5.043 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005557/0.8956, allocations: 218 kB / 0.7236 GB, free: 4.816 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.617e-06/0.8956, allocations: 4 kB / 0.7236 GB, free: 4.812 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0009994/0.8966, allocations: 329.6 kB / 0.7239 GB, free: 4.484 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.8967, allocations: 59.41 kB / 0.724 GB, free: 4.414 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/0.8971, allocations: 221.9 kB / 0.7242 GB, free: 4.191 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.982e-05/0.8972, allocations: 45.7 kB / 0.7243 GB, free: 4.141 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.8975, allocations: 216.7 kB / 0.7245 GB, free: 3.926 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.8976, allocations: 110.6 kB / 0.7246 GB, free: 3.816 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.8977, allocations: 12 kB / 0.7246 GB, free: 3.805 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.8978, allocations: 346.8 kB / 0.7249 GB, free: 3.457 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004428/0.8983, allocations: 153.5 kB / 0.7251 GB, free: 3.305 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005671/0.8989, allocations: 278 kB / 0.7253 GB, free: 2.988 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004644/0.8994, allocations: 163.2 kB / 0.7255 GB, free: 2.828 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.8994, allocations: 3.938 kB / 0.7255 GB, free: 2.824 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001288/0.9007, allocations: 494.7 kB / 0.7259 GB, free: 2.336 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.9007, allocations: 9.719 kB / 0.726 GB, free: 2.328 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.9008, allocations: 4 kB / 0.726 GB, free: 2.324 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.074e-05/0.9008, allocations: 8 kB / 0.726 GB, free: 2.316 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004626/0.9013, allocations: 59.84 kB / 0.726 GB, free: 2.258 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.919e-05/0.9013, allocations: 15.92 kB / 0.726 GB, free: 2.242 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004169/0.9017, allocations: 43.98 kB / 0.7261 GB, free: 2.199 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.297e-05/0.9018, allocations: 27.98 kB / 0.7261 GB, free: 2.172 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.0002421/0.9021, allocations: 170 kB / 0.7263 GB, free: 2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.9022, allocations: 23.72 kB / 0.7263 GB, free: 1.977 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.9034, allocations: 419.2 kB / 0.7267 GB, free: 1.562 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.9034, allocations: 4 kB / 0.7267 GB, free: 1.559 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.9034, allocations: 3.938 kB / 0.7267 GB, free: 1.555 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.9034, allocations: 3.984 kB / 0.7267 GB, free: 1.551 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.9059, allocations: 1.042 MB / 0.7277 GB, free: 464 kB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.9059, allocations: 0 / 0.7277 GB, free: 464 kB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.9063, allocations: 39.91 kB / 0.7278 GB, free: 424 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.9063, allocations: 3.938 kB / 0.7278 GB, free: 420 kB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.9064, allocations: 11.98 kB / 0.7278 GB, free: 408 kB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.9064, allocations: 4 kB / 0.7278 GB, free: 404 kB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.9064, allocations: 3.953 kB / 0.7278 GB, free: 400 kB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.9074, allocations: 475.8 kB / 0.7282 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.193e-05/0.9076, allocations: 108.7 kB / 0.7283 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.9077, allocations: 8 kB / 0.7283 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.908, allocations: 27.98 kB / 0.7284 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.9083, allocations: 68.33 kB / 0.7284 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.426e-05/0.9084, allocations: 19.95 kB / 0.7285 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001831/0.9086, allocations: 135.3 kB / 0.7286 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.414e-06/0.9086, allocations: 4 kB / 0.7286 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006446/0.9092, allocations: 91.88 kB / 0.7287 GB, free: 15.43 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.001589/0.9108, allocations: 1.059 MB / 0.7297 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001184/0.9121, allocations: 429.6 kB / 0.7301 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.9121, allocations: 0 / 0.7301 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.9126, allocations: 198.5 kB / 0.7303 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.9131, allocations: 34.47 kB / 0.7303 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.9152, allocations: 0.6277 MB / 0.731 GB, free: 13.04 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.9157, allocations: 0.8273 MB / 0.7318 GB, free: 12.18 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0004468/0.9162, allocations: 67.23 kB / 0.7318 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.9166, allocations: 143.4 kB / 0.732 GB, free: 11.98 MB / 0.6198 GB Notification: Performance of SimCode: time 1.322e-06/0.9166, allocations: 0 / 0.732 GB, free: 11.98 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03994/0.9566, allocations: 7.203 MB / 0.739 GB, free: 4.879 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003294/0.957, allocations: 197.8 kB / 0.7392 GB, free: 4.645 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/3.358, allocations: 4 kB / 0.7392 GB, free: 4.641 MB / 0.6198 GB