An anaerobic wastewater treatment demonstration plant meets clean-water targets and produces more energy than it uses.