A piggery and abattoir have joined together using pig poo and the undigested contents of a cow's stomach to generate power.