Influence of the equation of state on the compression and heating of hydrogen