Opened 12 years ago
Closed 12 years ago
#1855 closed defect (fixed)
assert failure in combination with encapsulated packages
Reported by: | Fritz Zaversky | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Code Generation | Version: | trunk |
Keywords: | assert failure, encapsulated package | Cc: |
Description (last modified by )
Following test model causes an error message in revision rev13094.
Assuming a library structure you would have a folder containing
- a file "package.mo":
encapsulated package OMTest "OpenModelica Test Library" end OMTest;
- and a file "AssertTest.mo":
within OMTest; model AssertTest Real x; equation assert(x>1,"message"); x = 10; end AssertTest;
when trying to simulate, following error comes:
Error: Variable AssertionLevel.error not found in scope OMTest.AssertTest
Error: Error occurred while flattening model OMTest.AssertTest
by removing "encapsulated" everything works.
Change History (2)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Status: | new → accepted |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in r13137.