Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5316 closed defect (fixed)

Error: The given system is mixed-determined. [index > 3] is very confusing

Reported by: Francesco Casella Owned by: Karim Adbdelhak
Priority: blocker Milestone: 1.14.0
Component: Backend Version:
Keywords: Cc:

Description (last modified by Francesco Casella)

Sometimes the back-end stops with this error:

Error: The given system is mixed-determined.   [index > 3]
Please checkout the option "--maxMixedDeterminedIndex".
Error: No system for the symbolic initialization was generated

see, e.g., Modelica.Electrical.Analog.Examples.ResonanceCircuits.

The message is quite obscure, for three main reasons:

  • it doesn't make it explicit that the issue is only with the initialization problem. I know it pops up while the backend is processing the initialization problem, but it's not obvious anyway.
  • it refers to the term index which has a well-defined completely different meaning in the context of DAE modelling, and is very, very confusing.
  • it doesn't really help understanding what to do, but mostly just scares off users.

I myself only recently understood that this somewhat means the initialization problem is under- and over-determined at the same time (though I'm still not 100% sure what this message really means). If that is the case, I would write that explicitly.

I would strongly suggest to improve the situation by changing the message, so that people do not fall into one of the three semantic traps I listed above. I'm available to discuss the details of the message in this ticket.

Change History (8)

comment:1 by Francesco Casella, 6 years ago

Description: modified (diff)

comment:2 by Karim Adbdelhak, 6 years ago

In PR2920 i changed the error message to

Error: The initialization problem of given system is mixed-determined. It is under- as well as overdetermined and the mixed-determination-index is too high. [index > 10]
Please checkout the option "--maxMixedDeterminedIndex" to simulate with a higher threshold or consider changing some initial equations, fixed variables and start values.
Error: No system for the symbolic initialization was generated

I also raised the max index to 10 according to ticket #5303, locally i had no issues so it should work fine.

comment:3 by Francesco Casella, 6 years ago

Resolution: fixed
Status: newclosed

Excellent. Thanks Karim!

comment:4 by Francesco Casella, 6 years ago

Resolution: fixed
Status: closedreopened

I'll keep this open until it's merged into master

comment:5 by Francesco Casella, 6 years ago

@Karim, I guess you should assign someone with admin rights as a reviewer, otherwise your PR's may remain in the limbo forever.

comment:6 by Karim Adbdelhak, 6 years ago

Resolution: fixed
Status: reopenedclosed

comment:7 by Karim Adbdelhak, 6 years ago

Fixed in commit.

@Francesco, I have an account to start the testruns on my own now.

in reply to:  7 comment:8 by Francesco Casella, 6 years ago

Replying to Karim.Abdelhak:

Fixed in commit.

@Francesco, I have an account to start the testruns on my own now.

Very good, I guess you'll need that often :)

Note: See TracTickets for help on using tickets.