Residents are being urged to flee from an out-of-control bushfire as a brutal heatwave sweeping the nation is set to send the mercury soaring as high as 47C.