Opened 15 years ago
Last modified 15 years ago
#1149 closed defect (fixed)
Problem with diagonal model (from MathCore)
Reported by: | Jan Brugård | Owned by: | Jan Brugård |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Jan Brugård, Per Östlund |
Description
See the attached model. The model gives the strange error message:
--- [1] 10:19:20 Validation of class ControlLabL.UsageExamples.DiagonalBlockTest --- Check of ControlLabL.UsageExamples.DiagonalBlockTest failed Error: No constant value for variable Xaux[1,1] in scope ControlLabL.SystemModelUtilities.DiagonalBlock. Error: Error occured while flattening model ControlLabL.UsageExamples.DiagonalBlockTest
But Xaux is an output and should not be constant. I have not found any work around for this, since I don't know what is wrong with the model. Note that if trying to open this model in the latest version 2.2.0.6 the System Designer crashes, but it works fine to open the model in 2.2.0.5
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | DiagonalBlockTestTotal.mo added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Fixed errors involving non-constant for-loop range limits and size of non-constant matrices. There are errors in the given model though, on line 803 and 817 where 'integer(abs(offset))' is used. Since offset is an Integer and abs returns the same type given to it this results in calling integer on an Integer type, which is not allowed (See 3.7.1 and 3.7.1.1 in the Modelica 3.1 standard). Removing the integer calls makes it possible to flatten the model with my fixes, so I'm marking this bug as FIXED even though it does not yet compile with the OpenModelica back-end.
comment:3 by , 15 years ago
After some discussion it was decided that Integer arguments to the integer function should automatically be promoted to Real, so no changes to the model should be neccessary. This has been fixed now, and will be checked in as soon as Peter Aronsson fixes the things he broke when updating the front-end.
http://intranet/trac/mathmodelica/ticket/2661