Thermodynamic hysteresis of phase transformation in solids