Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.21/4.21, allocations: 432.7 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.714e-05/3.732e-05, allocations: 4.891 kB / 0.5338 GB, free: 12.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2316, allocations: 98.72 MB / 0.6302 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2636/0.4953, allocations: 144.7 MB / 0.7715 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004177/0.4957, allocations: 91.94 kB / 0.7716 GB, free: 5.133 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6794/1.175, allocations: 29.03 MB / 0.8 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.844e-06/1.175, allocations: 0 / 0.8 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.344e-05/1.175, allocations: 18.75 kB / 0.8 GB, free: 136.9 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.002538/1.178, allocations: 0.816 MB / 0.8008 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/1.178, allocations: 11.28 kB / 0.8008 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000232/1.178, allocations: 86.64 kB / 0.8009 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/1.18, allocations: 156.7 kB / 0.801 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/1.182, allocations: 434.4 kB / 0.8014 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.195e-05/1.182, allocations: 44.27 kB / 0.8015 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002255/1.182, allocations: 48.53 kB / 0.8015 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/1.184, allocations: 0.6443 MB / 0.8021 GB, free: 135.3 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/1.184, allocations: 3.75 kB / 0.8021 GB, free: 135.3 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-05/1.184, allocations: 23.44 kB / 0.8022 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.93e-05/1.184, allocations: 46.86 kB / 0.8022 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/1.185, allocations: 0.5182 MB / 0.8027 GB, free: 135 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004844/1.19, allocations: 2.843 MB / 0.8055 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/1.192, allocations: 0.546 MB / 0.806 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007266/1.192, allocations: 248.3 kB / 0.8063 GB, free: 132 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006219/1.193, allocations: 0.5657 MB / 0.8068 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001096/1.194, allocations: 383.9 kB / 0.8072 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.218e-06/1.194, allocations: 0 / 0.8072 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001803/1.196, allocations: 0.5134 MB / 0.8077 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/1.196, allocations: 85.39 kB / 0.8078 GB, free: 130.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006057/1.197, allocations: 291.7 kB / 0.808 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001455/1.197, allocations: 45.48 kB / 0.8081 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003022/1.197, allocations: 275.2 kB / 0.8083 GB, free: 130.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.00022/1.197, allocations: 164.2 kB / 0.8085 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.309e-05/1.197, allocations: 11.97 kB / 0.8085 GB, free: 130.1 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001254/1.198, allocations: 354.3 kB / 0.8089 GB, free: 129.8 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000763/1.198, allocations: 222 kB / 0.8091 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000884/1.199, allocations: 337.3 kB / 0.8094 GB, free: 129.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008311/1.2, allocations: 278.2 kB / 0.8097 GB, free: 129 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/1.2, allocations: 4 kB / 0.8097 GB, free: 129 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00221/1.202, allocations: 0.6507 MB / 0.8103 GB, free: 128.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003276/1.203, allocations: 1.076 MB / 0.8113 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/1.203, allocations: 4 kB / 0.8113 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/1.203, allocations: 4 kB / 0.8114 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/1.204, allocations: 119.8 kB / 0.8115 GB, free: 127 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/1.204, allocations: 4 kB / 0.8115 GB, free: 127 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/1.206, allocations: 75.5 kB / 0.8115 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/1.206, allocations: 20 kB / 0.8116 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/1.206, allocations: 6.5 kB / 0.8116 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001941/1.208, allocations: 0.5368 MB / 0.8121 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/1.208, allocations: 4 kB / 0.8121 GB, free: 126.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/1.208, allocations: 11.95 kB / 0.8121 GB, free: 126.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/1.209, allocations: 103.8 kB / 0.8122 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/1.209, allocations: 4.375 kB / 0.8122 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/1.21, allocations: 71.56 kB / 0.8123 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.892e-05/1.21, allocations: 24.12 kB / 0.8123 GB, free: 126.1 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.0002981/1.211, allocations: 147.1 kB / 0.8124 GB, free: 126 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/1.211, allocations: 47.44 kB / 0.8125 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/1.213, allocations: 0.5633 MB / 0.813 GB, free: 125.4 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/1.213, allocations: 7.953 kB / 0.813 GB, free: 125.4 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.213, allocations: 4 kB / 0.813 GB, free: 125.4 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/1.213, allocations: 0 / 0.813 GB, free: 125.4 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/1.214, allocations: 0.6272 MB / 0.8137 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/1.214, allocations: 0 / 0.8137 GB, free: 124.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/1.215, allocations: 95.86 kB / 0.8138 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.308e-05/1.215, allocations: 4 kB / 0.8138 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.069e-05/1.216, allocations: 15.98 kB / 0.8138 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/1.216, allocations: 0 / 0.8138 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.216, allocations: 3.953 kB / 0.8138 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/1.218, allocations: 0.8696 MB / 0.8146 GB, free: 123.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000423/1.219, allocations: 176.5 kB / 0.8148 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/1.219, allocations: 12.14 kB / 0.8148 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00086/1.22, allocations: 43.91 kB / 0.8148 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/1.22, allocations: 56.34 kB / 0.8149 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.487e-05/1.22, allocations: 15.98 kB / 0.8149 GB, free: 123.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004731/1.221, allocations: 238.2 kB / 0.8151 GB, free: 123.1 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.31e-07/1.221, allocations: 0 / 0.8151 GB, free: 123.1 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001604/1.222, allocations: 287 kB / 0.8154 GB, free: 122.8 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.003056/1.225, allocations: 1.532 MB / 0.8169 GB, free: 121.3 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002685/1.228, allocations: 0.9241 MB / 0.8178 GB, free: 120.3 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.228, allocations: 4 kB / 0.8178 GB, free: 120.3 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000831/1.229, allocations: 257.6 kB / 0.8181 GB, free: 120.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/1.231, allocations: 158.1 kB / 0.8182 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/1.234, allocations: 0.9478 MB / 0.8191 GB, free: 118.9 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005735/1.235, allocations: 0.9113 MB / 0.82 GB, free: 118 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001479/1.237, allocations: 161.1 kB / 0.8202 GB, free: 117.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006209/1.237, allocations: 187.4 kB / 0.8204 GB, free: 117.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.362e-06/1.237, allocations: 0 / 0.8204 GB, free: 117.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04913/1.286, allocations: 12.44 MB / 0.8325 GB, free: 105.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/1.287, allocations: 176.6 kB / 0.8327 GB, free: 105.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.827/4.114, allocations: 4 kB / 0.8327 GB, free: 105.2 MB / 0.6511 GB