﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1855	assert failure in combination with encapsulated packages	Fritz Zaversky	Martin Sjölund	"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."	defect	accepted	high	1.9.0	Code Generation	trunk		assert failure, encapsulated package	
