The value of VS_RtGnSp is calculated in evaluate.go to be either the rated rotor speed or 1e-3. However, this variable is the generator speed, not the rotor speed so the gearbox ratio is missing from this equation. The best solution is likely to remove the code which sets this value and leave it for the user to specify.