Criteria for validity of thermodynamic equations from non-equilibrium molecular dynamics simulations