save model and ontology