Since we do not know your model, there can be several situations for this:
1- You may have modelling error.
2- You may have your PID incorrectly tuned.
3- Your solver may not be suitable for what you are doing.
4- Your step size may become too small during the simulation.