Induction machine efficiency in motor and generator mode