If you defined the model in the UI you do not have to also define it in an AMP. You should use one or the other. If it is in your AMP but you already activated it in the UI, that could cause a problem.
Try removing it from the AMP, re-deploying your AMP, then restarting the server. If it still has a problem, reply here with your full stack trace.