[?] Turn on dynamic state selection?

In my build log I keep getting this error:

Notification: Forcing static selection of states. If this leads to problems during simulation turn on dynamic state selection.

Is this a setting in SystemModeler, or do I just need to set stateSelect correctly?

While I’m posting, the more critical error that I’m getting is

Internal error: DeriveMC.differentiateExpTime: error for expression CALL

I added stateSelect = StateSelect.avoid to a couple variables and that helped some, but when “myFunction” becomes less linear the build fails.

Thanks, Eric

Eric,

That is a setting in preferences:

Thanks Neil, I skipped right over the section heading when looking for the option. I’ll give it a try.