Opened 8 years ago

Closed 8 years ago

#4061 closed defect (fixed)

Not well-posed models not always rejected

Reported by: Willi Braun Owned by: Lennart Ochel
Priority: blocker Milestone: 1.11.0
Component: Backend Version:
Keywords: Cc:

Description

The following model should rejected as not well-posed:

model B
  Real a;
  Real b=2;
equation
  a = 2*b;
  b = time+2;
end B;

This should be done as soon as possible, but at least when the BackendDAE has been created, where we are waiting until the index reduction and then on the way it get fixed with the aid of removeSimpleEquations.

Change History (3)

comment:1 by Lennart Ochel, 8 years ago

I just tried to check if the number of equations match the number of variables before creating the backend system: OpenModelica/OMCompiler#1091. But it seems that there are a couple of models where this isn't the case but we have to accept them anyway.

comment:2 by Lennart Ochel, 8 years ago

Milestone: Future1.11.0
Owner: changed from Willi Braun to Lennart Ochel
Status: newaccepted

checkModel returns unexpected numbers in some cases. However, it works just fine to compare the number of variables and equations right after creating the backend system.

comment:3 by Lennart Ochel, 8 years ago

Resolution: fixed
Status: acceptedclosed

Fixed with 27e2783/OMCompiler.
Test added with 020ac7f/testsuite.

Note: See TracTickets for help on using tickets.