Multimode free electron laser with long electron pulses: effects of electron energy drift