Developing a model for motor leakage