Lithium battery heat analysis