A method for controlling a variable speed drive of a power system , the power system comprising the variable-speed drive configured to drive a motor , a first transformer configured to couple to the variable-speed drive and an umbilical cable , wherein the first transformer is configured to increase a first voltage output by the variable-speed drive ; and a second transformer configured to couple to the umbilical cable and the motor , wherein the second transformer is configured to decrease a second voltage output by the first transformer , the method comprising, at one or more controllers communicatively coupled to the variable speed drive : determining, via one or more processors , a first magnetizing current component based at least in part on a modeled flux component and a measured flux component of the motor of the power system ; determining, via the one or more processors , a second magnetizing current component to compensate for a harmonic order of the power system based on a modeled resonance frequency of the power system ; determining, via the one or more processors , a first torque current component based at least in part on a modeled speed component and a measured speed component of the motor of the power system ; determining, via the one or more processors , a second torque current component to compensate for the harmonic order of the power system based on the modeled resonance frequency; determining, via the one or more processors , one or more reference voltages based at least in part on the first magnetizing current component, the second magnetizing current component, the first torque current component, and the second torque current component, wherein the one or more reference voltages are configured to specify operation of the variable-speed drive coupled to the motor ; and applying, via the one or more processors , the one or more reference voltages to the variable-speed drive . determining, via one or more processors , a first magnetizing current component based at least in part on a modeled flux component and a measured flux component of the motor of the power system ; determining, via the one or more processors , a second magnetizing current component to compensate for a harmonic order of the power system based on a modeled resonance frequency of the power system ; determining, via the one or more processors , a first torque current component based at least in part on a modeled speed component and a measured speed component of the motor of the power system ; determining, via the one or more processors , a second torque current component to compensate for the harmonic order of the power system based on the modeled resonance frequency; determining, via the one or more processors , one or more reference voltages based at least in part on the first magnetizing current component, the second magnetizing current component, the first torque current component, and the second torque current component, wherein the one or more reference voltages are configured to specify operation of the variable-speed drive coupled to the motor ; and applying, via the one or more processors , the one or more reference voltages to the variable-speed drive . <EOS>