Opened 16 years ago

Last modified 14 years ago

#1062 closed defect (fixed)

Not so useful error message for an invalid model (from MathCore)

Reported by: krsta Owned by: krsta
Priority: high Milestone:
Component: Version:
Keywords: Cc: krsta, Martin Sjölund

Description

The below model is not valid and returns an error message:
"Internal error, check of model failed with no error message."
Is it possible to give a more detailed error message?

model WhenNotValid
  Real x, y;
equation
  x + y = 5;
  when sample(0,2) then
    2*x + y = 7; //Not valid (should be e.g. y=7-2*x)
  end when;
end WhenNotValid;

Change History (3)

comment:2 by Martin Sjölund, 14 years ago

This was implemented by Björn using print() instead of Error.mo. I'll improve it a bit.

comment:3 by Martin Sjölund, 14 years ago

Fixed in r7515 (testcases already exist and were updated)

Note: See TracTickets for help on using tickets.