1. Stop the AOS web services (Go to IIS and look for "AOS services" and stop it)
2. Stop Microsoft Dynamics 365 Unified Operations: Batch Management Service [type services.msc into run and search for it]
3. Now go to C:\AOSService\PackagesLocalDirectory
4. Delete your model
5. Now start the AOS web services and Batch Management services
6. Now refresh models
7. Synchronize the database