Modia.jl icon indicating copy to clipboard operation
Modia.jl copied to clipboard

BoundsError with simple model

Open alhirzel opened this issue 5 years ago • 0 comments

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.

alhirzel avatar Feb 27 '19 15:02 alhirzel