Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 4.431/4.431, allocations: 431.3 MB / 445.8 MB, free: 5.426 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.811e-05/2.813e-05, allocations: 4 kB / 0.5354 GB, free: 14.83 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.6377, allocations: 98.69 MB / 0.6318 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.0109/0.6487, allocations: 5.181 MB / 0.6369 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.006277/0.655, allocations: 1.931 MB / 0.6387 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005943/0.6557, allocations: 19.94 kB / 0.6388 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0003602/0.656, allocations: 63.47 kB / 0.6388 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001184/0.6572, allocations: 223.2 kB / 0.639 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.6588, allocations: 271.3 kB / 0.6393 GB, free: 4.246 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001252/0.6601, allocations: 395.1 kB / 0.6397 GB, free: 3.859 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002136/0.6622, allocations: 0.6695 MB / 0.6403 GB, free: 3.152 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005581/0.6628, allocations: 187.5 kB / 0.6405 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000649/0.6635, allocations: 215.2 kB / 0.6407 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007235/0.6642, allocations: 175.8 kB / 0.6409 GB, free: 2.586 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001545/0.6644, allocations: 24 kB / 0.6409 GB, free: 2.562 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.6647, allocations: 135.5 kB / 0.641 GB, free: 2.43 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.6649, allocations: 51.94 kB / 0.6411 GB, free: 2.379 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001524/0.6664, allocations: 0.7231 MB / 0.6418 GB, free: 1.656 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6665, allocations: 0 / 0.6418 GB, free: 1.656 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.896e-06/0.6665, allocations: 0 / 0.6418 GB, free: 1.656 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.774e-05/0.6665, allocations: 0 / 0.6418 GB, free: 1.656 MB / 0.5105 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.002715/0.6692, allocations: 0.7902 MB / 0.6426 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.6693, allocations: 12.03 kB / 0.6426 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001506/0.6708, allocations: 131.1 kB / 0.6427 GB, free: 0.668 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.672, allocations: 421.9 kB / 0.6431 GB, free: 220 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.031e-05/0.6721, allocations: 44.98 kB / 0.6431 GB, free: 176 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.6724, allocations: 44 kB / 0.6432 GB, free: 132 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002651/0.675, allocations: 0.6887 MB / 0.6439 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/0.6751, allocations: 7.984 kB / 0.6439 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.6753, allocations: 24 kB / 0.6439 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.6754, allocations: 60.86 kB / 0.6439 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002557/0.678, allocations: 0.562 MB / 0.6445 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006868/0.6849, allocations: 2.81 MB / 0.6472 GB, free: 11.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.6875, allocations: 0.5739 MB / 0.6478 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008354/0.6884, allocations: 0.5583 MB / 0.6483 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001531/0.6899, allocations: 404.3 kB / 0.6487 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 6.692e-06/0.69, allocations: 0 / 0.6487 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.003405/0.6934, allocations: 0.7472 MB / 0.6495 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.049e-05/0.6935, allocations: 89.09 kB / 0.6495 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007107/0.6942, allocations: 304.7 kB / 0.6498 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.6944, allocations: 45.69 kB / 0.6499 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003705/0.6947, allocations: 288.4 kB / 0.6501 GB, free: 8.527 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002578/0.695, allocations: 146 kB / 0.6503 GB, free: 8.383 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-05/0.6951, allocations: 15.88 kB / 0.6503 GB, free: 8.367 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002087/0.6953, allocations: 354.8 kB / 0.6506 GB, free: 8.012 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.6964, allocations: 237 kB / 0.6509 GB, free: 7.777 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.6976, allocations: 366.6 kB / 0.6512 GB, free: 7.379 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.6988, allocations: 285.7 kB / 0.6515 GB, free: 7.094 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.6988, allocations: 0 / 0.6515 GB, free: 7.094 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002792/0.7016, allocations: 0.6958 MB / 0.6522 GB, free: 6.387 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000634/0.7023, allocations: 1.077 MB / 0.6532 GB, free: 5.223 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.7023, allocations: 4 kB / 0.6532 GB, free: 5.219 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.196e-05/0.7024, allocations: 8 kB / 0.6532 GB, free: 5.211 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.7037, allocations: 107.8 kB / 0.6533 GB, free: 5.105 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-05/0.7038, allocations: 15.94 kB / 0.6534 GB, free: 5.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.7049, allocations: 75.48 kB / 0.6534 GB, free: 5.016 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.835e-05/0.7051, allocations: 23.98 kB / 0.6534 GB, free: 4.992 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.7051, allocations: 5.25 kB / 0.6535 GB, free: 4.988 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002472/0.7076, allocations: 0.5832 MB / 0.654 GB, free: 4.398 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.7076, allocations: 4 kB / 0.654 GB, free: 4.395 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.7076, allocations: 4 kB / 0.654 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.7088, allocations: 107.8 kB / 0.6541 GB, free: 4.285 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.7088, allocations: 7.984 kB / 0.6541 GB, free: 4.277 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.7098, allocations: 63.83 kB / 0.6542 GB, free: 4.215 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.559e-05/0.7099, allocations: 20 kB / 0.6542 GB, free: 4.195 MB / 0.5261 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.0007261/0.7107, allocations: 221.1 kB / 0.6544 GB, free: 3.969 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.7109, allocations: 51.39 kB / 0.6545 GB, free: 3.918 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.7135, allocations: 0.6024 MB / 0.6551 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.7135, allocations: 4 kB / 0.6551 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.7135, allocations: 320 / 0.6551 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.901e-05/0.7136, allocations: 7.984 kB / 0.6551 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005233/0.7188, allocations: 1.372 MB / 0.6564 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/0.7189, allocations: 4 kB / 0.6564 GB, free: 1.863 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.72, allocations: 91.75 kB / 0.6565 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.389e-05/0.7201, allocations: 4 kB / 0.6565 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.316e-05/0.7201, allocations: 19.98 kB / 0.6565 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.7202, allocations: 0 / 0.6565 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7202, allocations: 0 / 0.6565 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003636/0.7238, allocations: 0.9887 MB / 0.6575 GB, free: 0.7383 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004691/0.7243, allocations: 172.5 kB / 0.6577 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/0.7245, allocations: 12 kB / 0.6577 GB, free: 0.5391 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008927/0.7254, allocations: 39.94 kB / 0.6577 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.7257, allocations: 52.38 kB / 0.6578 GB, free: 460 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.033e-05/0.7258, allocations: 19.98 kB / 0.6578 GB, free: 440 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005761/0.7264, allocations: 243.2 kB / 0.658 GB, free: 196 kB / 0.5261 GB Notification: Performance of sort global known variables: time 5.31e-07/0.7264, allocations: 7.875 kB / 0.658 GB, free: 188 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001743/0.7282, allocations: 267.1 kB / 0.6583 GB, free: 15.92 MB / 0.5417 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.0003603/0.7286, allocations: 141.9 kB / 0.6584 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002911/0.7315, allocations: 0.993 MB / 0.6594 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.7315, allocations: 0 / 0.6594 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008357/0.7324, allocations: 282.3 kB / 0.6596 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.7337, allocations: 143.3 kB / 0.6598 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.7367, allocations: 1.255 MB / 0.661 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.7373, allocations: 0.9039 MB / 0.6619 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001098/0.7384, allocations: 164.2 kB / 0.6621 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.7387, allocations: 47.42 kB / 0.6621 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of SimCode: time 3.437e-06/0.7387, allocations: 0 / 0.6621 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of Templates: time 0.02501/0.7638, allocations: 8.367 MB / 0.6703 GB, free: 3.645 MB / 0.5417 GB