Skip to content

ModelingToolkit can't find a variable its knows as an unkown #3964

@branch171

Description

@branch171

I have an InitializationProblem problem and for some unkown reason ModelingToolkit can't find a variable that it knows is an unkown.

Here is my list of unknowns produced after structural_simplify()

compressor1₊T_out(t)
compressor2₊T_out(t)
mixer₊h_out(t)
separator3₊inport₊T(t)
(separator3₊inport₊z(t))[1]
(separator3₊inport₊z(t))[2]
compressor3₊T_out(t)
separator4₊inport₊T(t)
separator4₊inport₊mdot(t)
ERROR: UndefVarError: separator3₊inport₊T not defined in ModelingToolkit

As you can see separator3₊inport₊T is in the model at least before I call:

iprob = ModelingToolkit.InitializationProblem(sys,0.0,merge(Dict(u0), Dict(para)))

Has any one see this type of behavior before.

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