I agree that knowing your limit it part of medical school training, but it's also about practicing how to work effectively and safely when you pass that limit. Many doctors will eventually have to perform very long surgeries often over 12 hours of intense concentration with no breaks. Overworking medical students for long shift helps to prepare them for the occasions when they have to perform and have no one to pass the patient off to and no one to closely monitor their work.