Service life of battery packs in power plants