A surgical instrument is configured to compensate for battery pack and drivetrain failures. One method includes generating a firing sequence, determining whether a subset of rechargeable battery cells is damaged during the firing sequence, and stepping-up an output voltage of the battery pack to complete the firing sequence in response to a determination that a subset of the rechargeable battery cells is damaged. Another method includes generating a mechanical output to motivate a drivetrain to transmit a motion to a jaw assembly of the surgical instrument, activating a safe mode in response to an acute failure of the drivetrain, and activating a bailout mode in response to a catastrophic failure of the drivetrain. Another method includes driving a drivetrain, sensing and recording vibration information from the drivetrain, generating an output signal based on the vibration information, and determining a status of the surgical instrument based on the output signal.