fix exception message when compartment not found importing a model

Fix exception when generating message for invalid compartment when importing a model and remove extraneous print statements