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

BoundsError with simple model #93

Open
alhirzel opened this issue Feb 27, 2019 · 0 comments
Open

BoundsError with simple model #93

alhirzel opened this issue Feb 27, 2019 · 0 comments

Comments

@alhirzel
Copy link
Contributor

alhirzel commented Feb 27, 2019

I found this when trying to create the MNWE for #90. When executing the following model, a BoundsError results.

using Modia

@model OutOfBounds begin
    dummy = Var(size=(2,))
    @equations begin
        0 = 1
        1 = 2
    end
end

res = simulate(OutOfBounds, -1000; removeSingularities=false);

Ideally, an error message would be shown that indicates the dummy variables are unassigned, or perhaps even that nonsensical equations are present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant