Electric vehicle optimization by system level simulation