BMS analysis of energy storage system