Lithium battery charging failure simulation