Battery energy storage principle of self-contained power plant