Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.22/4.22, allocations: 432.7 MB / 444.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.825e-05/3.877e-05, allocations: 4.062 kB / 0.5338 GB, free: 12.24 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.227, allocations: 98.73 MB / 0.6302 GB, free: 6.105 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2685/0.4955, allocations: 143.2 MB / 0.7701 GB, free: 6.68 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003857/0.496, allocations: 91.94 kB / 0.7702 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.7291/1.225, allocations: 27.13 MB / 0.7967 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.753e-06/1.225, allocations: 1.125 kB / 0.7967 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.737e-05/1.225, allocations: 10.69 kB / 0.7967 GB, free: 138.5 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.002216/1.227, allocations: 0.8214 MB / 0.7975 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/1.228, allocations: 9.406 kB / 0.7975 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/1.228, allocations: 95.92 kB / 0.7976 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/1.229, allocations: 152.5 kB / 0.7977 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008947/1.23, allocations: 442.7 kB / 0.7981 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.035e-05/1.23, allocations: 37.97 kB / 0.7982 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/1.23, allocations: 49.38 kB / 0.7982 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/1.232, allocations: 0.6533 MB / 0.7989 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/1.232, allocations: 1.031 kB / 0.7989 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.406e-05/1.232, allocations: 18.62 kB / 0.7989 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.631e-05/1.232, allocations: 38.73 kB / 0.7989 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/1.233, allocations: 0.5244 MB / 0.7994 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00456/1.238, allocations: 2.833 MB / 0.8022 GB, free: 134.1 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/1.239, allocations: 0.5422 MB / 0.8027 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005325/1.24, allocations: 255.8 kB / 0.803 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004672/1.24, allocations: 0.563 MB / 0.8035 GB, free: 133 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007791/1.241, allocations: 383.5 kB / 0.8039 GB, free: 132.7 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/1.241, allocations: 4 kB / 0.8039 GB, free: 132.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001294/1.242, allocations: 0.5094 MB / 0.8044 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.243, allocations: 89.31 kB / 0.8045 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/1.243, allocations: 296.2 kB / 0.8048 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.86e-05/1.243, allocations: 37.67 kB / 0.8048 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/1.243, allocations: 275.4 kB / 0.8051 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/1.243, allocations: 164.8 kB / 0.8052 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.265e-05/1.244, allocations: 8 kB / 0.8052 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/1.244, allocations: 362.7 kB / 0.8056 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000557/1.244, allocations: 220.1 kB / 0.8058 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006063/1.245, allocations: 336.6 kB / 0.8061 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/1.245, allocations: 268.7 kB / 0.8064 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/1.245, allocations: 7.75 kB / 0.8064 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001448/1.247, allocations: 0.6508 MB / 0.807 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002595/1.247, allocations: 1.076 MB / 0.808 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/1.247, allocations: 7.938 kB / 0.8081 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.211e-05/1.247, allocations: 3.938 kB / 0.8081 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.248, allocations: 120.7 kB / 0.8082 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/1.248, allocations: 7.875 kB / 0.8082 GB, free: 129.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008948/1.249, allocations: 73.31 kB / 0.8083 GB, free: 129.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-05/1.249, allocations: 19.56 kB / 0.8083 GB, free: 129.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/1.249, allocations: 3.938 kB / 0.8083 GB, free: 129.3 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001266/1.251, allocations: 0.5361 MB / 0.8088 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/1.251, allocations: 3.938 kB / 0.8088 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/1.251, allocations: 11.67 kB / 0.8088 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000815/1.251, allocations: 105 kB / 0.8089 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/1.252, allocations: 7.625 kB / 0.8089 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008603/1.252, allocations: 75.05 kB / 0.809 GB, free: 129 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.966e-05/1.252, allocations: 19.22 kB / 0.809 GB, free: 129 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.0002458/1.253, allocations: 149.1 kB / 0.8092 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/1.253, allocations: 41.81 kB / 0.8092 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/1.254, allocations: 0.5668 MB / 0.8097 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/1.254, allocations: 11.92 kB / 0.8098 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/1.254, allocations: 0 / 0.8098 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/1.254, allocations: 7.953 kB / 0.8098 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/1.255, allocations: 0.6234 MB / 0.8104 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/1.255, allocations: 0 / 0.8104 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009679/1.256, allocations: 103.8 kB / 0.8105 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/1.256, allocations: 0 / 0.8105 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/1.256, allocations: 8 kB / 0.8105 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/1.256, allocations: 7.984 kB / 0.8105 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/1.256, allocations: 3.953 kB / 0.8105 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/1.258, allocations: 0.8619 MB / 0.8113 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003152/1.259, allocations: 176.5 kB / 0.8115 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/1.259, allocations: 15.98 kB / 0.8115 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006138/1.259, allocations: 43.91 kB / 0.8116 GB, free: 126.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/1.26, allocations: 52.36 kB / 0.8116 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/1.26, allocations: 16 kB / 0.8116 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003703/1.26, allocations: 242.1 kB / 0.8119 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.01e-07/1.26, allocations: 0 / 0.8119 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001057/1.261, allocations: 279.1 kB / 0.8121 GB, free: 126 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.002165/1.263, allocations: 1.54 MB / 0.8136 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002015/1.265, allocations: 0.9241 MB / 0.8145 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.265, allocations: 1 kB / 0.8145 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005812/1.266, allocations: 269.5 kB / 0.8148 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/1.267, allocations: 157.4 kB / 0.8149 GB, free: 123 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/1.27, allocations: 0.9379 MB / 0.8159 GB, free: 122.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/1.271, allocations: 0.9075 MB / 0.8167 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001002/1.272, allocations: 164.5 kB / 0.8169 GB, free: 121 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000456/1.272, allocations: 187.4 kB / 0.8171 GB, free: 120.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.153e-06/1.272, allocations: 0 / 0.8171 GB, free: 120.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/1.313, allocations: 12.43 MB / 0.8292 GB, free: 108.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002565/1.313, allocations: 162.7 kB / 0.8294 GB, free: 108.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.826/4.139, allocations: 0 / 0.8294 GB, free: 108.3 MB / 0.6511 GB