The Liouville theorem and accurate plasma simulation