Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.37/4.37, allocations: 464.6 MB / 476.8 MB, free: 2.191 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.78e-05/3.816e-05, allocations: 4 kB / 0.5732 GB, free: 5.598 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2487, allocations: 107.2 MB / 0.6778 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9188/1.168, allocations: 152.1 MB / 0.8264 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/1.168, allocations: 98.11 kB / 0.8265 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1178/1.286, allocations: 29.07 MB / 0.8549 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.004e-06/1.286, allocations: 0 / 0.8549 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.104e-05/1.286, allocations: 16 kB / 0.8549 GB, free: 10.05 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00266/1.289, allocations: 0.8209 MB / 0.8557 GB, free: 9.215 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.739e-05/1.289, allocations: 15.97 kB / 0.8557 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002648/1.289, allocations: 90.33 kB / 0.8558 GB, free: 9.133 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001569/1.291, allocations: 143.1 kB / 0.8559 GB, free: 8.992 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/1.292, allocations: 437.7 kB / 0.8563 GB, free: 8.598 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.64e-05/1.292, allocations: 49.89 kB / 0.8564 GB, free: 8.57 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/1.292, allocations: 45.62 kB / 0.8564 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/1.294, allocations: 0.6494 MB / 0.8571 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/1.294, allocations: 0 / 0.8571 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.775e-05/1.294, allocations: 25.42 kB / 0.8571 GB, free: 8.051 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/1.294, allocations: 40.8 kB / 0.8571 GB, free: 8.016 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001486/1.296, allocations: 0.5195 MB / 0.8576 GB, free: 7.668 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005875/1.301, allocations: 2.833 MB / 0.8604 GB, free: 5.078 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/1.303, allocations: 0.5512 MB / 0.8609 GB, free: 4.684 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006068/1.304, allocations: 245.1 kB / 0.8612 GB, free: 4.527 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006439/1.304, allocations: 0.5544 MB / 0.8617 GB, free: 3.844 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009623/1.305, allocations: 396.7 kB / 0.8621 GB, free: 3.539 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.156e-06/1.305, allocations: 0 / 0.8621 GB, free: 3.539 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001478/1.307, allocations: 0.5038 MB / 0.8626 GB, free: 3.168 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/1.307, allocations: 85.48 kB / 0.8627 GB, free: 3.062 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006004/1.308, allocations: 300.9 kB / 0.8629 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001644/1.308, allocations: 43.38 kB / 0.863 GB, free: 2.773 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/1.308, allocations: 286.5 kB / 0.8633 GB, free: 2.559 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/1.308, allocations: 150.9 kB / 0.8634 GB, free: 2.434 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-05/1.308, allocations: 14.94 kB / 0.8634 GB, free: 2.43 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001707/1.309, allocations: 353.9 kB / 0.8638 GB, free: 2.094 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006283/1.309, allocations: 219.7 kB / 0.864 GB, free: 1.965 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007088/1.31, allocations: 339.1 kB / 0.8643 GB, free: 1.688 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/1.311, allocations: 271.3 kB / 0.8645 GB, free: 1.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/1.311, allocations: 0 / 0.8645 GB, free: 1.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001753/1.312, allocations: 0.6509 MB / 0.8652 GB, free: 1.02 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000508/1.313, allocations: 1.076 MB / 0.8662 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/1.313, allocations: 7.938 kB / 0.8662 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.205e-05/1.313, allocations: 8 kB / 0.8662 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/1.314, allocations: 111.3 kB / 0.8664 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.086e-05/1.314, allocations: 7.938 kB / 0.8664 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009483/1.315, allocations: 73.83 kB / 0.8664 GB, free: 15.68 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.894e-05/1.315, allocations: 27.48 kB / 0.8665 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/1.315, allocations: 4 kB / 0.8665 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001467/1.317, allocations: 0.5332 MB / 0.867 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/1.317, allocations: 8.25 kB / 0.867 GB, free: 15.28 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/1.317, allocations: 7.938 kB / 0.867 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009116/1.318, allocations: 111.3 kB / 0.8671 GB, free: 15.16 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/1.318, allocations: 11.89 kB / 0.8671 GB, free: 15.15 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008369/1.319, allocations: 65.92 kB / 0.8672 GB, free: 15.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.352e-05/1.319, allocations: 19.25 kB / 0.8672 GB, free: 15.08 MB / 0.6667 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.0002947/1.319, allocations: 151.7 kB / 0.8673 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/1.319, allocations: 47.52 kB / 0.8674 GB, free: 14.9 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/1.321, allocations: 0.5597 MB / 0.8679 GB, free: 14.52 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/1.321, allocations: 8 kB / 0.8679 GB, free: 14.51 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/1.321, allocations: 0 / 0.8679 GB, free: 14.51 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/1.321, allocations: 7.938 kB / 0.8679 GB, free: 14.5 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/1.322, allocations: 0.6272 MB / 0.8686 GB, free: 14 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.322, allocations: 0 / 0.8686 GB, free: 14 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/1.323, allocations: 94.98 kB / 0.8687 GB, free: 13.91 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.339e-05/1.323, allocations: 4.047 kB / 0.8687 GB, free: 13.91 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.637e-05/1.323, allocations: 15.48 kB / 0.8687 GB, free: 13.9 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/1.323, allocations: 0 / 0.8687 GB, free: 13.9 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/1.323, allocations: 7.938 kB / 0.8687 GB, free: 13.89 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/1.326, allocations: 0.866 MB / 0.8695 GB, free: 13.27 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000431/1.326, allocations: 180.2 kB / 0.8697 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/1.326, allocations: 14.69 kB / 0.8697 GB, free: 13.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006784/1.327, allocations: 43.88 kB / 0.8698 GB, free: 13.06 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/1.327, allocations: 56.94 kB / 0.8698 GB, free: 13.02 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.073e-05/1.327, allocations: 15.06 kB / 0.8698 GB, free: 13.01 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004224/1.328, allocations: 237.1 kB / 0.87 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.31e-07/1.328, allocations: 0 / 0.87 GB, free: 12.82 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001271/1.329, allocations: 280.2 kB / 0.8703 GB, free: 12.57 MB / 0.6667 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.002781/1.332, allocations: 1.518 MB / 0.8718 GB, free: 11.31 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.003261/1.335, allocations: 0.927 MB / 0.8727 GB, free: 10.63 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.335, allocations: 0 / 0.8727 GB, free: 10.63 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0006879/1.336, allocations: 261.2 kB / 0.873 GB, free: 10.45 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/1.337, allocations: 155.3 kB / 0.8731 GB, free: 10.33 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/1.34, allocations: 0.9384 MB / 0.874 GB, free: 9.508 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000634/1.341, allocations: 0.9049 MB / 0.8749 GB, free: 8.594 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.00106/1.342, allocations: 168.5 kB / 0.8751 GB, free: 8.426 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/1.342, allocations: 184.1 kB / 0.8752 GB, free: 8.371 MB / 0.6667 GB Notification: Performance of SimCode: time 1.092e-06/1.342, allocations: 0 / 0.8752 GB, free: 8.371 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04515/1.388, allocations: 12.44 MB / 0.8874 GB, free: 12.11 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/1.388, allocations: 179.9 kB / 0.8876 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.812/4.2, allocations: 0 / 0.8876 GB, free: 11.88 MB / 0.6823 GB