Opened 4 years ago

Last modified 3 years ago

#6360 new defect

Base model parameters disappear from GUI when edit Extended model

Reported by: Simone Bosotti <simone1.bosotti@…> Owned by: Adeel Asghar
Priority: high Milestone:
Component: OMEdit Version:
Keywords: Cc:

Description

Consider to work on a model, called "Container" using diagram view in OMEdit. This model contains a model "ExtendedModel" that extends a "BaseModel".
If I modify the extended model and save, when I go back to the container model the parameters contained in the base class are no more visible in the parameters window.
They appear again only unloading and reloading again the package.

Procedure:
1) load the attached test.mo package
2) open "Container" and check that both "a" and "b" input fields are present
3) open "ExtendedModel" and change the equation "c = a+b" into "c = a*b"
4) go back to "Container" and open the parameter window for extendedModel
5) "a" input field does not appear anymore

About OMEdit:
Connected to OpenModelica v1.18.0-dev-5-g263a0e58e8 (64-bit)
Connected to OMSimulator v2.0.0.post284-gc8ec782-mingw

Attachments (2)

test.mo (448 bytes ) - added by Simone Bosotti <simone1.bosotti@…> 4 years ago.
Package to recreate the bug
screenshot.png (17.5 KB ) - added by Simone Bosotti <simone1.bosotti@…> 4 years ago.
Screenshot of the problem

Download all attachments as: .zip

Change History (4)

by Simone Bosotti <simone1.bosotti@…>, 4 years ago

Attachment: test.mo added

Package to recreate the bug

by Simone Bosotti <simone1.bosotti@…>, 4 years ago

Attachment: screenshot.png added

Screenshot of the problem

comment:1 by Francesco Casella, 4 years ago

Priority: normalhigh

Thanks @Simone!

@adeas31, there are probably other similar such cases, due to cached information not being properly updated.

comment:2 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.