Diagnosing the entropy budget of a climate model