Flying from south to north in the southern hemisphere means that on crossing the polar front the aircraft will go from the cold air mass (polar maritime) to the warm air mass (tropical maritime).  

At FL400 the aircraft will be above the tropopause.  

The tropopause in the warm air will be higher and colder than the tropopause in the cold air so the aircraft will note a decrease in temperature.