On the artificial compressibility method for the Navier Stokes Fourier system