Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Saveing edits to a package causes it to not load in the future

Saveing edits to a package causes it to not load in the future

I have a large modelica package that I am trying to edit in openModelica. I have version 1.8.1 and am running on windows 7. I can open the package just fine and can edit the package just fine. After I edit I even check the model for the part that I edited and everything checks out ok. I then save the whole package, and despite taking excessivly long to save a two megabyte file it eventually does save it. However if I then try to reopen the package it will complain that there is an unexpected semicolon. Looking at the file in a text editor it is apparent that every where there is an unexpected semicolon is a line that looks like:
annotation;
I can remove these lines and the package will load. But when I simulate a model using components from this package it will generate very wrong results. Even if I only use components which I did not edit. In fact my model breaks in this way even if the only edits I make to the package are moving items around but not changing connections. Does anyone have any idea why this might happen?

Edited by: ptr.holly - Nov-22-12 10:43:28
There are 0 guests and 0 other users also viewing this topic
You are here: