Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.233/4.233, allocations: 402 MB / 416.6 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.486e-05/3.502e-05, allocations: 4 kB / 0.501 GB, free: 8.25 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2029, allocations: 92.69 MB / 0.5915 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.009132/0.212, allocations: 5.107 MB / 0.5965 GB, free: 6.25 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.005046/0.2172, allocations: 1.934 MB / 0.5984 GB, free: 4.309 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.2177, allocations: 16 kB / 0.5984 GB, free: 4.293 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.218, allocations: 67.47 kB / 0.5984 GB, free: 4.227 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0009256/0.219, allocations: 211.2 kB / 0.5986 GB, free: 4.02 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.2202, allocations: 275.3 kB / 0.5989 GB, free: 3.75 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001284/0.2215, allocations: 399.1 kB / 0.5993 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/0.2232, allocations: 0.6463 MB / 0.5999 GB, free: 2.68 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000466/0.2237, allocations: 183.5 kB / 0.6001 GB, free: 2.5 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005554/0.2243, allocations: 223.2 kB / 0.6003 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000639/0.2249, allocations: 167.8 kB / 0.6005 GB, free: 2.117 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001723/0.2251, allocations: 24 kB / 0.6005 GB, free: 2.094 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.2254, allocations: 135.5 kB / 0.6006 GB, free: 1.961 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.2256, allocations: 44 kB / 0.6006 GB, free: 1.918 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.2268, allocations: 0.7249 MB / 0.6014 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.2268, allocations: 3.938 kB / 0.6014 GB, free: 1.188 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.324e-06/0.2269, allocations: 0 / 0.6014 GB, free: 1.188 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.872e-05/0.2269, allocations: 0 / 0.6014 GB, free: 1.188 MB / 0.4948 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.002149/0.229, allocations: 0.7824 MB / 0.6021 GB, free: 356 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.2291, allocations: 8.031 kB / 0.6021 GB, free: 348 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.2302, allocations: 139.1 kB / 0.6023 GB, free: 208 kB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.516/0.7463, allocations: 417 kB / 0.6027 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.7465, allocations: 37.31 kB / 0.6027 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002273/0.7467, allocations: 50.72 kB / 0.6027 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/0.7496, allocations: 0.6862 MB / 0.6034 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.453e-05/0.7496, allocations: 1.938 kB / 0.6034 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.7498, allocations: 26.16 kB / 0.6034 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.75, allocations: 50 kB / 0.6035 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002889/0.7529, allocations: 0.5718 MB / 0.604 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0181/0.771, allocations: 2.36 MB / 0.6064 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/0.7736, allocations: 0.5606 MB / 0.6069 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006617/0.7743, allocations: 0.564 MB / 0.6075 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001491/0.7758, allocations: 402.8 kB / 0.6078 GB, free: 9.852 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=46): time 4.94e-06/0.7759, allocations: 0 / 0.6078 GB, free: 9.852 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.003452/0.7793, allocations: 0.7538 MB / 0.6086 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.7794, allocations: 85.75 kB / 0.6087 GB, free: 9.461 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007119/0.7801, allocations: 304 kB / 0.6089 GB, free: 9.293 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.7803, allocations: 44.58 kB / 0.609 GB, free: 9.25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003265/0.7806, allocations: 285.2 kB / 0.6093 GB, free: 9.023 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.7809, allocations: 142.6 kB / 0.6094 GB, free: 8.918 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.431e-05/0.781, allocations: 14.75 kB / 0.6094 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.7811, allocations: 352 kB / 0.6097 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.7822, allocations: 238.4 kB / 0.61 GB, free: 8.492 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.7835, allocations: 360 kB / 0.6103 GB, free: 8.266 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.7847, allocations: 298.4 kB / 0.6106 GB, free: 8.117 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.7847, allocations: 4 kB / 0.6106 GB, free: 8.113 MB / 0.4948 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003022/0.7877, allocations: 0.687 MB / 0.6113 GB, free: 7.805 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003477/0.7881, allocations: 1.08 MB / 0.6123 GB, free: 6.652 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.7882, allocations: 7.219 kB / 0.6123 GB, free: 6.648 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.505e-05/0.7882, allocations: 6.859 kB / 0.6123 GB, free: 6.648 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.7896, allocations: 112.6 kB / 0.6124 GB, free: 6.637 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.326e-05/0.7897, allocations: 5.578 kB / 0.6125 GB, free: 6.637 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.7909, allocations: 80.06 kB / 0.6125 GB, free: 6.602 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.791, allocations: 21.55 kB / 0.6126 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.791, allocations: 3.875 kB / 0.6126 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002512/0.7935, allocations: 0.577 MB / 0.6131 GB, free: 6.355 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.7936, allocations: 2.188 kB / 0.6131 GB, free: 6.355 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.7936, allocations: 6.5 kB / 0.6131 GB, free: 6.355 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.7947, allocations: 110 kB / 0.6132 GB, free: 6.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.97e-05/0.7948, allocations: 6.422 kB / 0.6132 GB, free: 6.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.7958, allocations: 74.16 kB / 0.6133 GB, free: 6.305 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.49e-05/0.7959, allocations: 19.98 kB / 0.6133 GB, free: 6.301 MB / 0.4948 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 (66): * Single equations (assignments): 65 * 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.0006059/0.7965, allocations: 216.3 kB / 0.6135 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.7967, allocations: 42.12 kB / 0.6136 GB, free: 6.109 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/0.7994, allocations: 0.6093 MB / 0.6142 GB, free: 5.848 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.7994, allocations: 3.688 kB / 0.6142 GB, free: 5.848 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.7994, allocations: 4.75 kB / 0.6142 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.7999, allocations: 173.5 kB / 0.6143 GB, free: 5.703 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.8001, allocations: 13.83 kB / 0.6144 GB, free: 5.695 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.8011, allocations: 54.23 kB / 0.6144 GB, free: 5.684 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.8014, allocations: 52.89 kB / 0.6145 GB, free: 5.672 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003198/0.8046, allocations: 0.7611 MB / 0.6152 GB, free: 5.297 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003735/0.8084, allocations: 1.154 MB / 0.6163 GB, free: 4.656 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00113/0.8096, allocations: 278.4 kB / 0.6166 GB, free: 4.559 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005777/0.8102, allocations: 243 kB / 0.6168 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of Backend: time 9.42e-07/0.8102, allocations: 0 / 0.6168 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002521/0.8128, allocations: 0.5397 MB / 0.6174 GB, free: 4.172 MB / 0.4948 GB Notification: Performance of SimCode: time 0.003288/0.8161, allocations: 1.625 MB / 0.6189 GB, free: 3.008 MB / 0.4948 GB Notification: Performance of Templates: time 0.02898/0.8451, allocations: 9.096 MB / 0.6278 GB, free: 1.664 MB / 0.4948 GB