At the end of the programme, your clothes should come out cold. The machine only heats the water for the wash. All the rinses are cold. If the heater is not working, the machine would not advance throught the programme further than the wash.
If you have selected 40degrees the water wouldn't be very warm anyway.
Ray Thomas, March 2005