In hypersonic shock tunnel experiments, the high-temperature reservoir gas expands and accelerates so rapidly that there is not enough time for vibrational energy relaxation. As a result, thermal nonequilibrium gas flow is frequently encountered in the test section, and this significantly affects the measured heat flux. In this paper, hypersonic compression-ramp flows are studied numerically to investigate the effect of incomplete vibrational energy accommodation on the separation flow structure and peak heat flux in the reattachment region under low-to-medium Reynolds number and high Mach number conditions. Numerical results and theoretical analysis suggest that the vibrational energy accommodation has no noticeable impact on the length scale of the separation zone, but strongly influences the peak heat flux of the separated ramp flows. Decomposing the peak heat flux into translational--rotational energy and vibrational energy components, $q_{\rm{tr}}$ and $q_{\rm{v}}$, respectively, we find that $q_{\rm{v}}/q_{\rm{tr}}$ characterizes the nonequilibrium degree of the vibrational energy accommodation. A formula for predicting the peak heat flux is then proposed, taking the effect of incomplete vibrational energy accommodation into consideration. Finally, surface heat flux measurements in a hypersonic shock tunnel indicate that a deviation of up to 13\% in total peak heat flux could arise if vibrational energy accommodation is not considered under the vibrationally excited free-stream condition.