Opened 13 years ago

Last modified 13 years ago

#1855 closed defect

assert failure in combination with encapsulated packages — at Initial Version

Reported by: Fritz Zaversky Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Code Generation Version: trunk
Keywords: assert failure, encapsulated package Cc:

Description

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 (0)

Note: See TracTickets for help on using tickets.