Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set defaults that contain differentiated variables #3344

Open
hersle opened this issue Jan 18, 2025 · 0 comments
Open

Cannot set defaults that contain differentiated variables #3344

hersle opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hersle
Copy link
Contributor

hersle commented Jan 18, 2025

using ModelingToolkit, OrdinaryDiffEq
using ModelingToolkit: t_nounits as t, D_nounits as D
@variables y(t)
@named sys = ODESystem([D(y) ~ 1], t; defaults = [y => D(y)])
sys = structural_simplify(sys)
dprob = ODEProblem(sys, [], (0.0, 1.0), [])

fails with

ERROR: Differential found in a non-differential system. Likely this is a bug in the construction of an initialization system. Please report this issue with a reproducible example. Offending equation: 0 ~ -y(t) + Differential(t)(y(t))
@hersle hersle added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant