Recording a model with a generated shared library ready for packaging.