Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.382/4.382, allocations: 464.6 MB / 476.8 MB, free: 2.109 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.818e-05/3.837e-05, allocations: 4 kB / 0.5732 GB, free: 5.598 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2463, allocations: 107.2 MB / 0.6778 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8922/1.139, allocations: 136 MB / 0.8107 GB, free: 12.1 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/1.139, allocations: 96.27 kB / 0.8108 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03021/1.169, allocations: 8.228 MB / 0.8188 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.573e-06/1.169, allocations: 0 / 0.8188 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.92e-05/1.169, allocations: 8.312 kB / 0.8188 GB, free: 11.23 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001199/1.171, allocations: 0.6177 MB / 0.8194 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/1.171, allocations: 15.47 kB / 0.8194 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/1.171, allocations: 90.44 kB / 0.8195 GB, free: 10.74 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/1.171, allocations: 53.81 kB / 0.8196 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/1.171, allocations: 334 kB / 0.8199 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.292e-05/1.171, allocations: 49.81 kB / 0.8199 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/1.172, allocations: 59.14 kB / 0.82 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/1.173, allocations: 0.537 MB / 0.8205 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/1.173, allocations: 7.812 kB / 0.8205 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.885e-05/1.173, allocations: 25.84 kB / 0.8205 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.223e-05/1.173, allocations: 24.3 kB / 0.8206 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009864/1.174, allocations: 389.3 kB / 0.8209 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00297/1.177, allocations: 1.906 MB / 0.8228 GB, free: 9.34 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007631/1.178, allocations: 342.7 kB / 0.8231 GB, free: 9.281 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003633/1.178, allocations: 174.7 kB / 0.8233 GB, free: 9.27 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 7.292e-05/1.178, allocations: 11.52 kB / 0.8233 GB, free: 9.266 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004561/1.179, allocations: 211.2 kB / 0.8235 GB, free: 9.184 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 3.847e-06/1.179, allocations: 3.969 kB / 0.8235 GB, free: 9.184 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0008371/1.18, allocations: 330.7 kB / 0.8238 GB, free: 9.105 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/1.18, allocations: 59.25 kB / 0.8239 GB, free: 9.039 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/1.18, allocations: 222.1 kB / 0.8241 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.67e-05/1.18, allocations: 49.48 kB / 0.8241 GB, free: 8.871 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000143/1.18, allocations: 222 kB / 0.8243 GB, free: 8.707 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/1.18, allocations: 107.2 kB / 0.8244 GB, free: 8.641 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/1.18, allocations: 13.22 kB / 0.8245 GB, free: 8.641 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.437e-05/1.18, allocations: 349.8 kB / 0.8248 GB, free: 8.312 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000366/1.181, allocations: 145.1 kB / 0.8249 GB, free: 8.309 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004364/1.181, allocations: 277.5 kB / 0.8252 GB, free: 8.16 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003881/1.182, allocations: 160.5 kB / 0.8254 GB, free: 8.125 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/1.182, allocations: 3.875 kB / 0.8254 GB, free: 8.125 MB / 0.6355 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001074/1.183, allocations: 479.1 kB / 0.8258 GB, free: 8.016 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/1.183, allocations: 4.438 kB / 0.8258 GB, free: 8.016 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/1.183, allocations: 7.938 kB / 0.8258 GB, free: 8.012 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.288e-05/1.183, allocations: 7.656 kB / 0.8258 GB, free: 8.012 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/1.183, allocations: 71.08 kB / 0.8259 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/1.183, allocations: 7.75 kB / 0.8259 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/1.184, allocations: 39.98 kB / 0.8259 GB, free: 7.977 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/1.184, allocations: 30.48 kB / 0.826 GB, free: 7.973 MB / 0.6355 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.0001922/1.184, allocations: 174.1 kB / 0.8261 GB, free: 7.84 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.714e-05/1.184, allocations: 27.28 kB / 0.8262 GB, free: 7.828 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009808/1.185, allocations: 413 kB / 0.8266 GB, free: 7.719 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/1.185, allocations: 7.781 kB / 0.8266 GB, free: 7.719 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/1.185, allocations: 7.938 kB / 0.8266 GB, free: 7.711 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/1.185, allocations: 3.984 kB / 0.8266 GB, free: 7.707 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/1.187, allocations: 1.041 MB / 0.8276 GB, free: 23.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/1.187, allocations: 0 / 0.8276 GB, free: 23.22 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/1.188, allocations: 34.61 kB / 0.8276 GB, free: 23.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/1.188, allocations: 11.83 kB / 0.8276 GB, free: 23.21 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/1.188, allocations: 18.84 kB / 0.8277 GB, free: 23.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/1.188, allocations: 0 / 0.8277 GB, free: 23.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.188, allocations: 0 / 0.8277 GB, free: 23.2 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008699/1.189, allocations: 482.5 kB / 0.8281 GB, free: 23 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/1.189, allocations: 104.4 kB / 0.8282 GB, free: 22.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.715e-05/1.189, allocations: 10.81 kB / 0.8282 GB, free: 22.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/1.189, allocations: 38.77 kB / 0.8283 GB, free: 22.88 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/1.189, allocations: 63.62 kB / 0.8283 GB, free: 22.85 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-05/1.19, allocations: 14.78 kB / 0.8283 GB, free: 22.85 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001845/1.19, allocations: 136.5 kB / 0.8285 GB, free: 22.77 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.71e-07/1.19, allocations: 0 / 0.8285 GB, free: 22.77 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006495/1.19, allocations: 90.19 kB / 0.8286 GB, free: 22.76 MB / 0.6511 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.001341/1.192, allocations: 1.062 MB / 0.8296 GB, free: 22.04 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009713/1.193, allocations: 406.2 kB / 0.83 GB, free: 22 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.193, allocations: 4.062 kB / 0.83 GB, free: 21.99 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004152/1.193, allocations: 200.7 kB / 0.8302 GB, free: 21.97 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/1.194, allocations: 46.89 kB / 0.8302 GB, free: 21.96 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/1.196, allocations: 0.618 MB / 0.8308 GB, free: 21.69 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/1.196, allocations: 0.8356 MB / 0.8316 GB, free: 20.92 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003851/1.196, allocations: 73.81 kB / 0.8317 GB, free: 20.89 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/1.197, allocations: 139.4 kB / 0.8318 GB, free: 20.86 MB / 0.6511 GB Notification: Performance of SimCode: time 1.272e-06/1.197, allocations: 3.938 kB / 0.8318 GB, free: 20.86 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03579/1.233, allocations: 7.203 MB / 0.8389 GB, free: 17.41 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/1.233, allocations: 186 kB / 0.8391 GB, free: 17.19 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.624/3.857, allocations: 3.938 kB / 0.8391 GB, free: 17.18 MB / 0.6511 GB