Search code examples
anylogic

AnyLogic: Internal error while building model


I'm attempting to build a new model in AnyLogic and I'm getting the following error:

enter image description here

I'm really grasping at straws to identify what is going wrong as there are no errors in the Problem window. The only thing I can think of is that a while ago I copy-pasted Agents and classes from old models into this one. However, the model compiled and ran after the copy-paste, so if related then this is a very delayed bug. Anyone have any ideas?


Solution

  • I found the answer: it was a problem with AnyLogic's RunConfiguration. To fix it I did the following:

    1. I checked ignore on all of my agents and classes.
    2. I tried to build the model; as expected, RunConfiguration fails to build as it no longer has a top-level agent.
    3. I unchecked ignore on all of my agents and classes and gave RunConfiguration a new top-level agent.
    4. Internally, this changes the RunConfiguration's ActiveObjectClassId, which, for whatever reason, resolves the problem.

    Hopefully this helps you too!