Digital twin battery storage in energy storage system