Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadModel(Buildings): time 3.77/3.77, allocations: 402 MB / 416.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/4.01e-05, allocations: 4 kB / 0.501 GB, free: 8.258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2112, allocations: 92.69 MB / 0.5915 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.00689/0.2182, allocations: 3.7 MB / 0.5951 GB, free: 7.664 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004889/0.2231, allocations: 1.922 MB / 0.597 GB, free: 5.738 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005328/0.2237, allocations: 23.88 kB / 0.597 GB, free: 5.715 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.2241, allocations: 67.47 kB / 0.597 GB, free: 5.648 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.2253, allocations: 211.3 kB / 0.5973 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2267, allocations: 271.3 kB / 0.5975 GB, free: 5.176 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001146/0.2279, allocations: 395.1 kB / 0.5979 GB, free: 4.789 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001687/0.2296, allocations: 0.658 MB / 0.5985 GB, free: 4.098 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.2301, allocations: 183.5 kB / 0.5987 GB, free: 3.918 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005371/0.2306, allocations: 219.2 kB / 0.5989 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000656/0.2313, allocations: 175.8 kB / 0.5991 GB, free: 3.531 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.2315, allocations: 28 kB / 0.5991 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.2317, allocations: 127.6 kB / 0.5992 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.2319, allocations: 44 kB / 0.5993 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.2332, allocations: 0.7327 MB / 0.6 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2332, allocations: 0 / 0.6 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.357e-06/0.2332, allocations: 0 / 0.6 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.015e-05/0.2332, allocations: 0 / 0.6 GB, free: 2.602 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.002277/0.2355, allocations: 0.7747 MB / 0.6007 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.2356, allocations: 8.031 kB / 0.6008 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/0.2368, allocations: 139 kB / 0.6009 GB, free: 1.625 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009879/0.2378, allocations: 421.8 kB / 0.6013 GB, free: 1.172 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.792e-05/0.2379, allocations: 44.98 kB / 0.6013 GB, free: 1.129 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.238, allocations: 48 kB / 0.6014 GB, free: 1.082 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.24, allocations: 0.6887 MB / 0.602 GB, free: 376 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.2401, allocations: 7.953 kB / 0.6021 GB, free: 368 kB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.406e-05/0.2402, allocations: 20 kB / 0.6021 GB, free: 348 kB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.2403, allocations: 52.95 kB / 0.6021 GB, free: 292 kB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.539/0.7793, allocations: 0.5623 MB / 0.6027 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005473/0.7848, allocations: 2.347 MB / 0.605 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.7866, allocations: 0.5625 MB / 0.6055 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005398/0.7872, allocations: 0.5675 MB / 0.6061 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001135/0.7884, allocations: 402.7 kB / 0.6065 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=46): time 4.098e-06/0.7884, allocations: 1.375 kB / 0.6065 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.002448/0.7909, allocations: 0.7497 MB / 0.6072 GB, free: 9.949 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.7909, allocations: 90.23 kB / 0.6073 GB, free: 9.852 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005092/0.7915, allocations: 309.8 kB / 0.6076 GB, free: 9.684 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.062e-05/0.7916, allocations: 40.5 kB / 0.6076 GB, free: 9.645 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.7918, allocations: 284 kB / 0.6079 GB, free: 9.422 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.792, allocations: 145.2 kB / 0.608 GB, free: 9.316 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.061e-05/0.7921, allocations: 11.12 kB / 0.608 GB, free: 9.309 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.7922, allocations: 361 kB / 0.6084 GB, free: 8.973 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007539/0.7929, allocations: 238.6 kB / 0.6086 GB, free: 8.887 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008481/0.7938, allocations: 363.9 kB / 0.6089 GB, free: 8.656 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008137/0.7946, allocations: 289.5 kB / 0.6092 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.7947, allocations: 0 / 0.6092 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002027/0.7967, allocations: 0.687 MB / 0.6099 GB, free: 8.207 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000263/0.797, allocations: 1.079 MB / 0.6109 GB, free: 7.055 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.797, allocations: 6.766 kB / 0.611 GB, free: 7.055 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.454e-05/0.7971, allocations: 5.406 kB / 0.611 GB, free: 7.055 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.7981, allocations: 116.8 kB / 0.6111 GB, free: 7.039 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/0.7982, allocations: 6 kB / 0.6111 GB, free: 7.039 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008931/0.7991, allocations: 76.19 kB / 0.6111 GB, free: 7.008 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.436e-05/0.7991, allocations: 25.62 kB / 0.6112 GB, free: 7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.7992, allocations: 2.625 kB / 0.6112 GB, free: 7 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001834/0.801, allocations: 0.5746 MB / 0.6117 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.8011, allocations: 3.344 kB / 0.6117 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.8011, allocations: 5.312 kB / 0.6117 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008503/0.8019, allocations: 110.9 kB / 0.6118 GB, free: 6.742 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.802, allocations: 9.062 kB / 0.6119 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007647/0.8027, allocations: 65.73 kB / 0.6119 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.267e-05/0.8028, allocations: 25.72 kB / 0.6119 GB, free: 6.707 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.0005065/0.8033, allocations: 218.6 kB / 0.6122 GB, free: 6.535 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.8035, allocations: 50.8 kB / 0.6122 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.8054, allocations: 0.6053 MB / 0.6128 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.8055, allocations: 3.875 kB / 0.6128 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.8055, allocations: 0 / 0.6128 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003532/0.8059, allocations: 179.3 kB / 0.613 GB, free: 6.098 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.806, allocations: 12.38 kB / 0.613 GB, free: 6.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007421/0.8067, allocations: 51.92 kB / 0.613 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.807, allocations: 52.48 kB / 0.6131 GB, free: 6.07 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002404/0.8094, allocations: 0.7635 MB / 0.6138 GB, free: 5.691 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002712/0.8121, allocations: 1.154 MB / 0.615 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008073/0.813, allocations: 277 kB / 0.6152 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000419/0.8134, allocations: 239.5 kB / 0.6154 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of Backend: time 4.91e-07/0.8135, allocations: 1.438 kB / 0.6154 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001866/0.8153, allocations: 0.5414 MB / 0.616 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of SimCode: time 0.003234/0.8186, allocations: 1.614 MB / 0.6176 GB, free: 3.406 MB / 0.4948 GB Notification: Performance of Templates: time 0.03012/0.8488, allocations: 9.086 MB / 0.6264 GB, free: 2.328 MB / 0.4948 GB