Air conditioning on a Translink train from Dublin to Belfast failed on what was the warmest day of the year so far.