I have a dock as an static resource and I want to move the current ship in the dock to a waiting area when a ship of higher priority arrives (the dock can only attend one ship at a time. Ships are the agent in the flowchart). To do this, I allowed preemption in the seize block (the one that seizes the dock) and on it's "On task suspended" box I wrote the code:
agent.moveTo(waitingArea);
When the ship of higher priority arrives and suspends the task of the current ship, the current ship remains without movement in the dock, the new ships gets to the dock (on top of the current ship), and only after a few seconds (hours in the model), the current ship jumps to the waitingArea like if the code was jumpTo instead of moveTo.
Not only the movement is not being shown in the animation (just jumps) and the movement (jump) is being executed with an extrage delay, but also, later in the model run I get the error "Can't set arrival callback during movement".
If I remove the code described above from the "On task suspended" box, the error doesn't appear, but of course the animations of the ships would overlap like if there were two ships in the dock one on top of the other and that's what I don't want to happen.
Any idea on what is happening and how to fix it?

