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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.332/4.332, allocations: 404.1 MB / 411.3 MB, free: 428 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.871e-05/3.871e-05, allocations: 4 kB / 0.4945 GB, free: 1.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6903/0.6904, allocations: 92.69 MB / 0.5851 GB, free: 2.293 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2633/0.9538, allocations: 123.6 MB / 0.7057 GB, free: 6.574 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004219/0.9543, allocations: 95.88 kB / 0.7058 GB, free: 6.48 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.03832/0.9927, allocations: 7.956 MB / 0.7136 GB, free: 14.47 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9927, allocations: 0 / 0.7136 GB, free: 14.47 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.226e-05/0.9928, allocations: 12.59 kB / 0.7136 GB, free: 14.46 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.001499/0.9943, allocations: 0.6148 MB / 0.7142 GB, free: 13.8 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.9944, allocations: 12.02 kB / 0.7142 GB, free: 13.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.9945, allocations: 59.42 kB / 0.7143 GB, free: 13.73 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.9953, allocations: 327.1 kB / 0.7146 GB, free: 13.37 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.584e-05/0.9953, allocations: 23.98 kB / 0.7146 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.9955, allocations: 32 kB / 0.7146 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001242/0.9967, allocations: 366.5 kB / 0.715 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.9981, allocations: 493.3 kB / 0.7154 GB, free: 12.44 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.9982, allocations: 352 / 0.7154 GB, free: 12.44 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.9983, allocations: 7.953 kB / 0.7155 GB, free: 12.43 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.655e-05/0.9983, allocations: 17.31 kB / 0.7155 GB, free: 12.41 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004301/1.003, allocations: 1.79 MB / 0.7172 GB, free: 10.56 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009618/1.004, allocations: 321.3 kB / 0.7175 GB, free: 10.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004559/1.004, allocations: 166.5 kB / 0.7177 GB, free: 10.07 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 9.836e-05/1.004, allocations: 7.984 kB / 0.7177 GB, free: 10.06 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006108/1.005, allocations: 202.4 kB / 0.7179 GB, free: 9.852 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 4.809e-06/1.005, allocations: 0 / 0.7179 GB, free: 9.852 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001133/1.006, allocations: 302 kB / 0.7182 GB, free: 9.551 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/1.006, allocations: 55.41 kB / 0.7182 GB, free: 9.484 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/1.007, allocations: 232.6 kB / 0.7184 GB, free: 9.25 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.364e-05/1.007, allocations: 41.64 kB / 0.7185 GB, free: 9.203 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/1.007, allocations: 220.7 kB / 0.7187 GB, free: 8.98 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/1.007, allocations: 98.67 kB / 0.7188 GB, free: 8.883 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.864e-05/1.007, allocations: 0 / 0.7188 GB, free: 8.883 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001903/1.007, allocations: 338.8 kB / 0.7191 GB, free: 8.543 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004566/1.008, allocations: 141.5 kB / 0.7193 GB, free: 8.406 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/1.008, allocations: 265 kB / 0.7195 GB, free: 8.098 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005743/1.009, allocations: 146.1 kB / 0.7196 GB, free: 7.957 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/1.009, allocations: 3.953 kB / 0.7196 GB, free: 7.953 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001444/1.011, allocations: 446.4 kB / 0.7201 GB, free: 7.512 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/1.011, allocations: 4 kB / 0.7201 GB, free: 7.508 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/1.011, allocations: 4 kB / 0.7201 GB, free: 7.504 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.629e-05/1.011, allocations: 8 kB / 0.7201 GB, free: 7.496 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005553/1.011, allocations: 59.84 kB / 0.7201 GB, free: 7.438 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/1.011, allocations: 16.39 kB / 0.7202 GB, free: 7.422 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/1.012, allocations: 39.81 kB / 0.7202 GB, free: 7.383 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/1.012, allocations: 24 kB / 0.7202 GB, free: 7.359 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.0002664/1.012, allocations: 154 kB / 0.7204 GB, free: 7.203 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001038/1.013, allocations: 304.9 kB / 0.7207 GB, free: 6.898 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.488e-05/1.013, allocations: 27.62 kB / 0.7207 GB, free: 6.871 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/1.015, allocations: 383.8 kB / 0.7211 GB, free: 6.496 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/1.015, allocations: 4 kB / 0.7211 GB, free: 6.492 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/1.015, allocations: 4 kB / 0.7211 GB, free: 6.488 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/1.015, allocations: 3.984 kB / 0.7211 GB, free: 6.484 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/1.017, allocations: 0.9412 MB / 0.722 GB, free: 5.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/1.017, allocations: 0 / 0.722 GB, free: 5.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/1.018, allocations: 31.91 kB / 0.722 GB, free: 5.469 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/1.018, allocations: 7.938 kB / 0.722 GB, free: 5.461 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.503e-05/1.018, allocations: 8 kB / 0.722 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/1.018, allocations: 0 / 0.722 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.018, allocations: 11.89 kB / 0.722 GB, free: 5.441 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/1.019, allocations: 456.5 kB / 0.7225 GB, free: 4.977 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/1.019, allocations: 100.8 kB / 0.7226 GB, free: 4.859 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.053e-05/1.019, allocations: 0 / 0.7226 GB, free: 4.859 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/1.02, allocations: 19.98 kB / 0.7226 GB, free: 4.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/1.02, allocations: 68.33 kB / 0.7227 GB, free: 4.773 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-05/1.02, allocations: 19.95 kB / 0.7227 GB, free: 4.754 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001699/1.02, allocations: 132.2 kB / 0.7228 GB, free: 4.625 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.02e-07/1.02, allocations: 0 / 0.7228 GB, free: 4.625 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0007456/1.021, allocations: 71.84 kB / 0.7229 GB, free: 4.555 MB / 0.6042 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.001673/1.023, allocations: 1.032 MB / 0.7239 GB, free: 3.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001092/1.024, allocations: 387.7 kB / 0.7242 GB, free: 3.121 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.024, allocations: 0 / 0.7242 GB, free: 3.121 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005111/1.024, allocations: 194.5 kB / 0.7244 GB, free: 2.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/1.025, allocations: 35.98 kB / 0.7245 GB, free: 2.895 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/1.027, allocations: 0.5772 MB / 0.725 GB, free: 2.285 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/1.028, allocations: 0.8231 MB / 0.7258 GB, free: 1.438 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004511/1.028, allocations: 71.16 kB / 0.7259 GB, free: 1.363 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/1.029, allocations: 143.4 kB / 0.726 GB, free: 1.223 MB / 0.6042 GB Notification: Performance of SimCode: time 1.453e-06/1.029, allocations: 0 / 0.726 GB, free: 1.223 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05914/1.088, allocations: 6.764 MB / 0.7326 GB, free: 10.48 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003067/1.088, allocations: 176.3 kB / 0.7328 GB, free: 10.29 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.875/3.963, allocations: 0 / 0.7328 GB, free: 10.29 MB / 0.6198 GB