Energy storage system working mode