Development of Simulator for Hierarchical Battery Management System