Skip to content

Many simple differential equation systems no longer supported #4097

@TorkelE

Description

@TorkelE

This just to work previously, enabling us to deal with differential equations expressed in various formats. However, it seems this has fully been moved to AGPL ModelingToolkit, with no support left for general users?

using ModelingToolkitBase
using ModelingToolkitBase: t_nounits as t, D_nounits as D
@variables X(t)
@parameters p d
eqs = [
    D(X)/2 ~ p - d*X,
]
@mtkbuild ssys = System(eqs, t)
ERROR: ArgumentError: ModelingToolkitBase.jl is unable to simplify such systems. Encountered derivative in RHS of equation 0 ~ p - (1//2)*Differential(t, 1)(X(t)) - d*X(t). Please consider using ModelingToolkit.jl for such systems.

Stacktrace:
 [1] __mtkcompile(sys::System; inputs::OrderedCollections.OrderedSet{…}, outputs::OrderedCollections.OrderedSet{…}, disturbance_inputs::OrderedCollections.OrderedSet{…}, fully_determined::Bool, kwargs::@Kwargs{…})
   @ ModelingToolkitBase C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\systems.jl:322
 [2] __mtkcompile
   @ C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\systems.jl:120 [inlined]
 [3] _mtkcompile(sys::System; kwargs::@Kwargs{…})
   @ ModelingToolkitBase C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\systems.jl:117
 [4] _mtkcompile
   @ C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\systems.jl:103 [inlined]
 [5] mtkcompile(sys::System; additional_passes::Tuple{}, inputs::Vector{…}, outputs::Vector{…}, disturbance_inputs::Vector{…}, split::Bool, kwargs::@Kwargs{})
   @ ModelingToolkitBase C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\systems.jl:78
 [6] mtkcompile(sys::System)
   @ ModelingToolkitBase C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\systems.jl:68
 [7] top-level scope
   @ C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\deprecations.jl:8
 [8] macro expansion
   @ C:\Users\Torkel\.julia\packages\ModelingToolkitBase\fjBdh\src\systems\abstractsystem.jl:2665 [inlined]
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions