Functional modeling of a starter motor