Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.361/4.361, allocations: 460.4 MB / 472.6 MB, free: 5.402 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 5.124e-05/5.132e-05, allocations: 4 kB / 0.5682 GB, free: 10.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2527, allocations: 106.2 MB / 0.6719 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8952/1.148, allocations: 135.6 MB / 0.8044 GB, free: 12.81 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/1.148, allocations: 89.25 kB / 0.8045 GB, free: 12.81 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03055/1.179, allocations: 8.23 MB / 0.8125 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.226e-06/1.179, allocations: 3.875 kB / 0.8125 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.169e-05/1.179, allocations: 11.23 kB / 0.8125 GB, free: 11.95 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.001229/1.18, allocations: 0.6239 MB / 0.8131 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.21e-05/1.18, allocations: 11.69 kB / 0.8131 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001832/1.181, allocations: 91.81 kB / 0.8132 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/1.181, allocations: 50.59 kB / 0.8133 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005153/1.181, allocations: 335.5 kB / 0.8136 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.275e-05/1.181, allocations: 49.06 kB / 0.8136 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/1.181, allocations: 55.31 kB / 0.8137 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/1.183, allocations: 0.5456 MB / 0.8142 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/1.183, allocations: 3.938 kB / 0.8142 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.9e-05/1.183, allocations: 19.31 kB / 0.8142 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-05/1.183, allocations: 27.42 kB / 0.8143 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009508/1.184, allocations: 389.5 kB / 0.8146 GB, free: 11.06 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/1.187, allocations: 1.899 MB / 0.8165 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007721/1.188, allocations: 348.9 kB / 0.8168 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003768/1.188, allocations: 175 kB / 0.817 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 6.761e-05/1.188, allocations: 7.844 kB / 0.817 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00046/1.189, allocations: 212.4 kB / 0.8172 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 3.246e-06/1.189, allocations: 0 / 0.8172 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0008384/1.19, allocations: 338.5 kB / 0.8175 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/1.19, allocations: 66.25 kB / 0.8176 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/1.19, allocations: 216.3 kB / 0.8178 GB, free: 9.773 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.521e-05/1.19, allocations: 47.27 kB / 0.8178 GB, free: 9.742 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/1.19, allocations: 217.6 kB / 0.818 GB, free: 9.598 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/1.19, allocations: 115.1 kB / 0.8182 GB, free: 9.543 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/1.19, allocations: 15.53 kB / 0.8182 GB, free: 9.539 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.493e-05/1.19, allocations: 341 kB / 0.8185 GB, free: 9.227 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/1.191, allocations: 147.6 kB / 0.8186 GB, free: 9.227 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004393/1.191, allocations: 281.2 kB / 0.8189 GB, free: 9.086 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/1.192, allocations: 159.2 kB / 0.8191 GB, free: 9.074 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/1.192, allocations: 4 kB / 0.8191 GB, free: 9.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001044/1.193, allocations: 479.4 kB / 0.8195 GB, free: 8.992 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/1.193, allocations: 7.781 kB / 0.8195 GB, free: 8.992 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.193, allocations: 4.344 kB / 0.8195 GB, free: 8.992 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.802e-05/1.193, allocations: 11.69 kB / 0.8195 GB, free: 8.988 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004312/1.193, allocations: 70.05 kB / 0.8196 GB, free: 8.973 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/1.193, allocations: 6.984 kB / 0.8196 GB, free: 8.973 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/1.194, allocations: 46.86 kB / 0.8197 GB, free: 8.961 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.337e-05/1.194, allocations: 28.06 kB / 0.8197 GB, free: 8.961 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.0001897/1.194, allocations: 168.2 kB / 0.8198 GB, free: 8.832 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.012e-05/1.194, allocations: 30.28 kB / 0.8199 GB, free: 8.82 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/1.195, allocations: 412.1 kB / 0.8203 GB, free: 8.762 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/1.195, allocations: 7.531 kB / 0.8203 GB, free: 8.762 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/1.195, allocations: 3.953 kB / 0.8203 GB, free: 8.758 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/1.195, allocations: 6.766 kB / 0.8203 GB, free: 8.754 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/1.198, allocations: 1.041 MB / 0.8213 GB, free: 24.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/1.198, allocations: 0 / 0.8213 GB, free: 24.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/1.198, allocations: 36.61 kB / 0.8213 GB, free: 24.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/1.198, allocations: 7.844 kB / 0.8213 GB, free: 24.41 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/1.198, allocations: 13.23 kB / 0.8214 GB, free: 24.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/1.198, allocations: 0 / 0.8214 GB, free: 24.41 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.198, allocations: 0 / 0.8214 GB, free: 24.41 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008405/1.199, allocations: 479 kB / 0.8218 GB, free: 24.26 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.14e-05/1.199, allocations: 111 kB / 0.8219 GB, free: 24.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.084e-05/1.199, allocations: 10.78 kB / 0.8219 GB, free: 24.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/1.199, allocations: 38.7 kB / 0.822 GB, free: 24.13 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/1.2, allocations: 66.16 kB / 0.822 GB, free: 24.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.336e-05/1.2, allocations: 17.95 kB / 0.822 GB, free: 24.13 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001595/1.2, allocations: 136.8 kB / 0.8222 GB, free: 24.05 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.31e-07/1.2, allocations: 0 / 0.8222 GB, free: 24.05 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006634/1.2, allocations: 90.03 kB / 0.8223 GB, free: 24.05 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.001322/1.202, allocations: 1.064 MB / 0.8233 GB, free: 23.34 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009868/1.203, allocations: 404.1 kB / 0.8237 GB, free: 23.32 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/1.203, allocations: 256 / 0.8237 GB, free: 23.32 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004235/1.203, allocations: 214.7 kB / 0.8239 GB, free: 23.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/1.204, allocations: 41.73 kB / 0.8239 GB, free: 23.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/1.206, allocations: 0.6162 MB / 0.8245 GB, free: 23.09 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/1.206, allocations: 0.8324 MB / 0.8253 GB, free: 22.39 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003696/1.207, allocations: 66.48 kB / 0.8254 GB, free: 22.37 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/1.207, allocations: 144.9 kB / 0.8255 GB, free: 22.36 MB / 0.6511 GB Notification: Performance of SimCode: time 1.493e-06/1.207, allocations: 0 / 0.8255 GB, free: 22.36 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03182/1.239, allocations: 7.208 MB / 0.8326 GB, free: 19.07 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003217/1.239, allocations: 185.1 kB / 0.8328 GB, free: 18.84 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.72/3.959, allocations: 4 kB / 0.8328 GB, free: 18.84 MB / 0.6511 GB