The equation of state with non-equilibrium methods