Modeling dynamic economic systems using ModelingToolkit (MTK)

That seems like it would just work if you didn’t register the functions? You want to register as little as possible so it can define symbolic derivatives by tracing.