Generator-motor model