Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_5_0_1_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.977/3.977, allocations: 403.3 MB / 415.4 MB, free: 13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.59e-05/3.609e-05, allocations: 7.938 kB / 0.4991 GB, free: 13.35 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6184/0.6185, allocations: 92.67 MB / 0.5896 GB, free: 14.5 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2639/0.8824, allocations: 140.3 MB / 0.7267 GB, free: 1.961 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004985/0.883, allocations: 91.94 kB / 0.7268 GB, free: 1.871 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1286/1.012, allocations: 28.93 MB / 0.755 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.93e-06/1.012, allocations: 0 / 0.755 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.975e-05/1.012, allocations: 15.94 kB / 0.755 GB, free: 4.637 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.00315/1.015, allocations: 0.8242 MB / 0.7558 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/1.015, allocations: 8.031 kB / 0.7559 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002482/1.015, allocations: 98.5 kB / 0.7559 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/1.017, allocations: 147 kB / 0.7561 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/1.019, allocations: 435.3 kB / 0.7565 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.58e-05/1.019, allocations: 41 kB / 0.7565 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/1.019, allocations: 48 kB / 0.7566 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/1.021, allocations: 0.6536 MB / 0.7572 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/1.021, allocations: 4 kB / 0.7572 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/1.022, allocations: 27.97 kB / 0.7573 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/1.022, allocations: 48.92 kB / 0.7573 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002056/1.024, allocations: 0.5231 MB / 0.7578 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006965/1.031, allocations: 2.377 MB / 0.7601 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/1.033, allocations: 0.5451 MB / 0.7607 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008618/1.034, allocations: 238.4 kB / 0.7609 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000781/1.035, allocations: 0.5778 MB / 0.7615 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001301/1.036, allocations: 383.7 kB / 0.7618 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.268e-06/1.036, allocations: 0 / 0.7618 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.002104/1.038, allocations: 0.5073 MB / 0.7623 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.522e-05/1.038, allocations: 89.58 kB / 0.7624 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007154/1.039, allocations: 299.5 kB / 0.7627 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001332/1.039, allocations: 41.7 kB / 0.7627 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003872/1.039, allocations: 276.5 kB / 0.763 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000263/1.04, allocations: 157.8 kB / 0.7631 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/1.04, allocations: 16 kB / 0.7632 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002275/1.04, allocations: 358.7 kB / 0.7635 GB, free: 11.49 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008543/1.041, allocations: 217.1 kB / 0.7637 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/1.042, allocations: 350.4 kB / 0.764 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009301/1.043, allocations: 265.5 kB / 0.7643 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/1.043, allocations: 0 / 0.7643 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002457/1.045, allocations: 0.6664 MB / 0.7649 GB, free: 9.945 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006128/1.046, allocations: 1.082 MB / 0.766 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/1.046, allocations: 4 kB / 0.766 GB, free: 8.773 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.27e-05/1.046, allocations: 4 kB / 0.766 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/1.047, allocations: 119.8 kB / 0.7661 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.973e-05/1.048, allocations: 7.984 kB / 0.7661 GB, free: 8.645 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009489/1.048, allocations: 71.56 kB / 0.7662 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.618e-05/1.049, allocations: 23.98 kB / 0.7662 GB, free: 8.551 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/1.049, allocations: 7.953 kB / 0.7662 GB, free: 8.543 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001499/1.05, allocations: 0.5523 MB / 0.7668 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/1.05, allocations: 4 kB / 0.7668 GB, free: 7.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/1.05, allocations: 4 kB / 0.7668 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008403/1.051, allocations: 107.8 kB / 0.7669 GB, free: 7.871 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/1.051, allocations: 7.984 kB / 0.7669 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00075/1.052, allocations: 55.7 kB / 0.7669 GB, free: 7.809 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.096e-05/1.052, allocations: 24.12 kB / 0.767 GB, free: 7.785 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.0002529/1.052, allocations: 147.1 kB / 0.7671 GB, free: 7.633 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/1.052, allocations: 59.33 kB / 0.7672 GB, free: 7.574 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/1.054, allocations: 0.5595 MB / 0.7677 GB, free: 7.008 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/1.054, allocations: 8 kB / 0.7677 GB, free: 7 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/1.054, allocations: 0 / 0.7677 GB, free: 7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/1.054, allocations: 3.984 kB / 0.7677 GB, free: 6.996 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/1.055, allocations: 0.6227 MB / 0.7683 GB, free: 6.324 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/1.055, allocations: 4 kB / 0.7683 GB, free: 6.32 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009911/1.056, allocations: 99.78 kB / 0.7684 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-05/1.056, allocations: 4 kB / 0.7684 GB, free: 6.219 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.103e-05/1.056, allocations: 15.95 kB / 0.7684 GB, free: 6.203 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/1.056, allocations: 0 / 0.7684 GB, free: 6.203 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.056, allocations: 4 kB / 0.7685 GB, free: 6.199 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/1.058, allocations: 0.868 MB / 0.7693 GB, free: 5.305 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003916/1.059, allocations: 180.4 kB / 0.7695 GB, free: 5.109 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/1.059, allocations: 15.95 kB / 0.7695 GB, free: 5.094 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006385/1.06, allocations: 39.95 kB / 0.7695 GB, free: 5.055 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/1.06, allocations: 52.3 kB / 0.7696 GB, free: 5.004 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.838e-05/1.06, allocations: 15.98 kB / 0.7696 GB, free: 4.988 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004066/1.06, allocations: 242.2 kB / 0.7698 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.01e-07/1.06, allocations: 0 / 0.7698 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001156/1.062, allocations: 283 kB / 0.7701 GB, free: 4.48 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.002631/1.064, allocations: 1.528 MB / 0.7716 GB, free: 2.918 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002373/1.067, allocations: 0.9285 MB / 0.7725 GB, free: 1.965 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.067, allocations: 4 kB / 0.7725 GB, free: 1.961 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007144/1.067, allocations: 263.4 kB / 0.7727 GB, free: 1.703 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/1.069, allocations: 154.2 kB / 0.7729 GB, free: 1.551 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/1.071, allocations: 0.9649 MB / 0.7738 GB, free: 0.5547 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5056/1.577, allocations: 0.8968 MB / 0.7747 GB, free: 165.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001223/1.578, allocations: 161.6 kB / 0.7749 GB, free: 165.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/1.579, allocations: 184.3 kB / 0.775 GB, free: 165.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.223e-06/1.579, allocations: 0 / 0.775 GB, free: 165.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05879/1.638, allocations: 12.48 MB / 0.7872 GB, free: 164.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002748/1.638, allocations: 179 kB / 0.7874 GB, free: 164.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.753/4.392, allocations: 1.859 kB / 0.7874 GB, free: 164.7 MB / 0.6511 GB