Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.577/4.577, allocations: 460.4 MB / 472.6 MB, free: 5.414 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.325e-05, allocations: 4 kB / 0.5682 GB, free: 10.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2681, allocations: 106.2 MB / 0.6719 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9678/1.236, allocations: 151.7 MB / 0.8201 GB, free: 13.12 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/1.236, allocations: 94.91 kB / 0.8202 GB, free: 13.12 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1129/1.349, allocations: 29.07 MB / 0.8486 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.655e-06/1.349, allocations: 3.875 kB / 0.8486 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.099e-05/1.349, allocations: 15.53 kB / 0.8486 GB, free: 1.82 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002489/1.352, allocations: 0.8226 MB / 0.8494 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/1.352, allocations: 7.688 kB / 0.8494 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002276/1.352, allocations: 92.39 kB / 0.8495 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/1.354, allocations: 152.1 kB / 0.8496 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009991/1.355, allocations: 432.6 kB / 0.85 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/1.355, allocations: 47.66 kB / 0.8501 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/1.355, allocations: 55.98 kB / 0.8501 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/1.357, allocations: 0.6426 MB / 0.8508 GB, free: 228 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/1.357, allocations: 0 / 0.8508 GB, free: 228 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-05/1.357, allocations: 34.91 kB / 0.8508 GB, free: 212 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.49e-05/1.357, allocations: 40.86 kB / 0.8508 GB, free: 176 kB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/1.358, allocations: 0.5132 MB / 0.8513 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006151/1.365, allocations: 2.826 MB / 0.8541 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/1.366, allocations: 0.5368 MB / 0.8546 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006068/1.367, allocations: 250.1 kB / 0.8549 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006467/1.367, allocations: 0.5657 MB / 0.8554 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009804/1.368, allocations: 392.9 kB / 0.8558 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.927e-06/1.368, allocations: 0 / 0.8558 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001572/1.37, allocations: 0.5033 MB / 0.8563 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/1.37, allocations: 85.58 kB / 0.8564 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000596/1.371, allocations: 303.6 kB / 0.8567 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001431/1.371, allocations: 40.52 kB / 0.8567 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002978/1.371, allocations: 283.8 kB / 0.857 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/1.372, allocations: 155.3 kB / 0.8571 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.094e-05/1.372, allocations: 13.12 kB / 0.8571 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002714/1.372, allocations: 355.9 kB / 0.8575 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/1.373, allocations: 223.8 kB / 0.8577 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009344/1.374, allocations: 338.4 kB / 0.858 GB, free: 9.855 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007739/1.375, allocations: 270.2 kB / 0.8583 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/1.375, allocations: 0 / 0.8583 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001883/1.377, allocations: 0.6495 MB / 0.8589 GB, free: 9.188 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005422/1.377, allocations: 1.078 MB / 0.8599 GB, free: 8.043 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/1.377, allocations: 8 kB / 0.86 GB, free: 8.035 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.411e-05/1.377, allocations: 8 kB / 0.86 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/1.379, allocations: 119.4 kB / 0.8601 GB, free: 7.914 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.865e-05/1.379, allocations: 4 kB / 0.8601 GB, free: 7.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009467/1.38, allocations: 69.27 kB / 0.8601 GB, free: 7.852 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.472e-05/1.38, allocations: 23.36 kB / 0.8602 GB, free: 7.832 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/1.38, allocations: 4 kB / 0.8602 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00144/1.381, allocations: 0.5446 MB / 0.8607 GB, free: 7.445 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/1.381, allocations: 4 kB / 0.8607 GB, free: 7.441 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/1.381, allocations: 4 kB / 0.8607 GB, free: 7.438 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009027/1.382, allocations: 107 kB / 0.8608 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/1.382, allocations: 7.938 kB / 0.8608 GB, free: 7.328 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008342/1.383, allocations: 66.27 kB / 0.8609 GB, free: 7.273 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/1.383, allocations: 23.44 kB / 0.8609 GB, free: 7.254 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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.0002801/1.383, allocations: 153.5 kB / 0.861 GB, free: 7.117 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/1.383, allocations: 47.44 kB / 0.8611 GB, free: 7.07 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/1.385, allocations: 0.5577 MB / 0.8616 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/1.385, allocations: 8 kB / 0.8616 GB, free: 6.684 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/1.385, allocations: 0 / 0.8616 GB, free: 6.684 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/1.385, allocations: 3.984 kB / 0.8617 GB, free: 6.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/1.386, allocations: 0.6301 MB / 0.8623 GB, free: 6.172 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.386, allocations: 0 / 0.8623 GB, free: 6.172 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/1.387, allocations: 91.8 kB / 0.8624 GB, free: 6.082 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-05/1.387, allocations: 4 kB / 0.8624 GB, free: 6.078 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.386e-05/1.388, allocations: 11.94 kB / 0.8624 GB, free: 6.074 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.396e-05/1.388, allocations: 11.89 kB / 0.8624 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-05/1.388, allocations: 4 kB / 0.8624 GB, free: 6.059 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/1.39, allocations: 0.8659 MB / 0.8632 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000488/1.39, allocations: 179.1 kB / 0.8634 GB, free: 5.277 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/1.391, allocations: 19.77 kB / 0.8634 GB, free: 5.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/1.391, allocations: 39.88 kB / 0.8635 GB, free: 5.234 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/1.391, allocations: 51.67 kB / 0.8635 GB, free: 5.195 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-05/1.391, allocations: 15.5 kB / 0.8635 GB, free: 5.184 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0005154/1.392, allocations: 240.7 kB / 0.8638 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.61e-07/1.392, allocations: 0 / 0.8638 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001314/1.393, allocations: 275.7 kB / 0.864 GB, free: 4.75 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002839/1.396, allocations: 1.534 MB / 0.8655 GB, free: 3.469 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002391/1.399, allocations: 0.922 MB / 0.8664 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.399, allocations: 0 / 0.8664 GB, free: 2.793 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006957/1.399, allocations: 263.3 kB / 0.8667 GB, free: 2.613 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/1.401, allocations: 148.1 kB / 0.8668 GB, free: 2.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/1.404, allocations: 0.9436 MB / 0.8677 GB, free: 1.672 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/1.405, allocations: 0.9116 MB / 0.8686 GB, free: 0.75 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001153/1.406, allocations: 160.3 kB / 0.8688 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/1.407, allocations: 181.8 kB / 0.8689 GB, free: 0.5391 MB / 0.6511 GB Notification: Performance of SimCode: time 1.252e-06/1.407, allocations: 0 / 0.8689 GB, free: 0.5391 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05268/1.459, allocations: 12.44 MB / 0.8811 GB, free: 4.27 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/1.46, allocations: 185.9 kB / 0.8813 GB, free: 4.043 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.892/4.352, allocations: 2.5 kB / 0.8813 GB, free: 4.043 MB / 0.6667 GB