Real-Time Battery Pack Simulation Using Multicore Computers