If the above commands doesn't help and you still see:
Warning: Termination of 'model' deferred
then just try to execute model(,,,'term') multiple times.
I think this helps in case model had been compiled multiple times without terminating it. For example during debugging of a function that does this.