Fluctuation relation based continuum model for thermoviscoplasticity in metals