Theoretical and computational modelling of compressible and nonisothermal viscoelastic fluids