assertCompartmentExists function

Verify that the compartment exists in a model