Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.986/3.986, allocations: 432.7 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.614e-05, allocations: 3.531 kB / 0.5338 GB, free: 12.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2274, allocations: 98.72 MB / 0.6302 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.237/0.4645, allocations: 128.6 MB / 0.7558 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003445/0.4649, allocations: 99.91 kB / 0.7559 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03279/0.4977, allocations: 8.082 MB / 0.7637 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.134e-06/0.4978, allocations: 0 / 0.7637 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.199e-05/0.4978, allocations: 23.94 kB / 0.7638 GB, free: 13.14 MB / 0.6511 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.001408/0.4992, allocations: 0.6183 MB / 0.7644 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.228e-05/0.4993, allocations: 11.97 kB / 0.7644 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001717/0.4995, allocations: 98.45 kB / 0.7645 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.4997, allocations: 51.73 kB / 0.7645 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006036/0.5003, allocations: 327.3 kB / 0.7648 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.035e-05/0.5004, allocations: 41 kB / 0.7649 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.5005, allocations: 56 kB / 0.7649 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.5019, allocations: 0.5325 MB / 0.7655 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.5019, allocations: 0 / 0.7655 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.502, allocations: 16 kB / 0.7655 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.705e-05/0.5021, allocations: 28.98 kB / 0.7655 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001095/0.5032, allocations: 393.8 kB / 0.7659 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003566/0.5068, allocations: 1.892 MB / 0.7677 GB, free: 8.879 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008828/0.5077, allocations: 343.5 kB / 0.768 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004372/0.5081, allocations: 184.8 kB / 0.7682 GB, free: 8.348 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.287e-05/0.5082, allocations: 4 kB / 0.7682 GB, free: 8.344 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/0.5088, allocations: 213.9 kB / 0.7684 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.206e-06/0.5088, allocations: 0 / 0.7684 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009269/0.5097, allocations: 333.6 kB / 0.7687 GB, free: 7.789 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.5098, allocations: 59.41 kB / 0.7688 GB, free: 7.719 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.5102, allocations: 224.9 kB / 0.769 GB, free: 7.488 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.864e-05/0.5103, allocations: 49.7 kB / 0.7691 GB, free: 7.434 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.5105, allocations: 208.9 kB / 0.7693 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.5106, allocations: 114.6 kB / 0.7694 GB, free: 7.113 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.247e-05/0.5107, allocations: 12 kB / 0.7694 GB, free: 7.102 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.5109, allocations: 338.8 kB / 0.7697 GB, free: 6.762 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004248/0.5113, allocations: 153.5 kB / 0.7699 GB, free: 6.613 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005328/0.5118, allocations: 276.5 kB / 0.7701 GB, free: 6.293 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/0.5123, allocations: 155.2 kB / 0.7703 GB, free: 6.141 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.5123, allocations: 7.953 kB / 0.7703 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001189/0.5135, allocations: 482.5 kB / 0.7707 GB, free: 5.656 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.5135, allocations: 8 kB / 0.7707 GB, free: 5.648 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.5136, allocations: 7.984 kB / 0.7708 GB, free: 5.641 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.127e-05/0.5136, allocations: 8 kB / 0.7708 GB, free: 5.633 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004491/0.5141, allocations: 63.78 kB / 0.7708 GB, free: 5.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.012e-05/0.5141, allocations: 8 kB / 0.7708 GB, free: 5.562 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/0.5145, allocations: 52.16 kB / 0.7709 GB, free: 5.512 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.292e-05/0.5146, allocations: 24 kB / 0.7709 GB, free: 5.488 MB / 0.6511 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.0002327/0.5149, allocations: 162.1 kB / 0.7711 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/0.5149, allocations: 31.66 kB / 0.7711 GB, free: 5.293 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/0.5161, allocations: 423.1 kB / 0.7715 GB, free: 4.879 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.5161, allocations: 4 kB / 0.7715 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.5161, allocations: 3.938 kB / 0.7715 GB, free: 4.871 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.5161, allocations: 3.984 kB / 0.7715 GB, free: 4.867 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.5184, allocations: 1.034 MB / 0.7725 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.5185, allocations: 0 / 0.7725 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.5188, allocations: 39.91 kB / 0.7725 GB, free: 3.734 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.5188, allocations: 0 / 0.7725 GB, free: 3.734 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.5188, allocations: 12 kB / 0.7726 GB, free: 3.723 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.5189, allocations: 4 kB / 0.7726 GB, free: 3.719 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5189, allocations: 0 / 0.7726 GB, free: 3.719 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009453/0.5198, allocations: 483.7 kB / 0.773 GB, free: 3.227 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-05/0.5199, allocations: 108.7 kB / 0.7731 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.244e-05/0.52, allocations: 19.92 kB / 0.7731 GB, free: 3.082 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000324/0.5203, allocations: 23.98 kB / 0.7732 GB, free: 3.059 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.5206, allocations: 68.34 kB / 0.7732 GB, free: 2.992 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.515e-05/0.5207, allocations: 15.98 kB / 0.7732 GB, free: 2.977 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001829/0.5209, allocations: 144 kB / 0.7734 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.31e-07/0.5209, allocations: 0 / 0.7734 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006502/0.5215, allocations: 91.98 kB / 0.7735 GB, free: 2.746 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.001415/0.523, allocations: 1.055 MB / 0.7745 GB, free: 1.664 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001074/0.5241, allocations: 407.7 kB / 0.7749 GB, free: 1.266 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5241, allocations: 0 / 0.7749 GB, free: 1.266 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005102/0.5246, allocations: 205.5 kB / 0.7751 GB, free: 1.062 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.525, allocations: 44.86 kB / 0.7751 GB, free: 1.02 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.527, allocations: 0.625 MB / 0.7757 GB, free: 360 kB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5298/1.057, allocations: 0.8208 MB / 0.7765 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004803/1.057, allocations: 66.84 kB / 0.7766 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/1.058, allocations: 142.2 kB / 0.7767 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of SimCode: time 1.373e-06/1.058, allocations: 0.75 kB / 0.7767 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04044/1.098, allocations: 7.17 MB / 0.7837 GB, free: 138.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002685/1.099, allocations: 178.7 kB / 0.7839 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.585/3.683, allocations: 4.719 kB / 0.7839 GB, free: 138.5 MB / 0.6511 GB