UndefVarError: ODESystem not defined when running DynamicalSystems.jl example

UndefVarError: ODESystem not defined in Main
Stacktrace:
[1] top-level scope
@ C:\Users\marin.julia\packages\ModelingToolkit\DSTHC\src\systems\abstractsystem.jl:2191

I’m trying to run a example from DynamicalSystems.jl docs. My code is identical, but ODESystem isn’t found despite importing ModelingToolkit.

Is this a version conflict? How should I properly define ODESystem in recent MTK versions?

MTK v10 just came out on Friday, and one major change was going from having all of the XSystem types to just having a single System. Try using System? You might have the v10 and DynamicalSystems.jl likely hasn’t updated its docs because it just came out.

This is supposed to have a deprecation path on it but my guess is that something happened there… @cryptic.ax

1 Like

Great, it works now! Thanks a lot for your help

refactor: add depwarns for old system and problem constructors by AayushSabharwal · Pull Request #3682 · SciML/ModelingToolkit.jl · GitHub adds a bunch of fallback deprecations.