Post mortem analysis to know everything about lifetime of batteries