Battery model for embedded systems | Synapse