Opened 9 years ago

Closed 4 years ago

#3394 closed enhancement (wontfix)

Package fails to load for "unknown reason"

Reported by: Jesse Gohl <jesse.gohl@…> Owned by: somebody
Priority: normal Milestone: never
Component: *unknown* Version: trunk
Keywords: Cc:

Description

As related to ticket #3393, after providing fixes for the listed syntax errors, OpenModelica still fails to load the package but does not provide enough additional information to understand the issue. The error that is reported is:

[43] 09:07:49 Translation Error [c:/dev/OpenModelica/Compiler/FrontEnd/ClassLoader.mo: 288:9-288:128]: Internal error loadCompletePackageFromMp failed for unknown reason: mp=D:\jbg\projects\working\/Modelon/ThermoFluid/Valves pack=Characteristics

I should also mention that the package opens fine in Dymola and with JModelica.

Change History (6)

comment:1 by Adrian Pop, 9 years ago

Can you send us the package at OpenModelica@ida.liu.se so we can have a look at why there are issues with loading it? Also, let us know if is public or not and if is not public we will only use it for debugging and delete it afterwards. If is public and you let us we could use it for a test of this issue.

comment:2 by Jesse Gohl <jesse.gohl@…>, 9 years ago

Unfortunately, I won't be able to share it and I realize that your ability to debug the issue is very limited because of that.

comment:3 by Adrian Pop, 9 years ago

No problem. We can try some more things. BTW, what version of OpenModelica are you using?

Are all files encoded in UTF8?
Check especially package Characteristics inside ThermoFluid/Valves.
If they are not UTF8 we are trying to translate it to UTF8 when we load it and it seems we fail in this case. Maybe you have some special Swedish characters?
You can use Notepad++ to open the file and go: Encoding->UTF8 without BOM, then save the file.
Then try to reload it.

comment:4 by Jesse Gohl <jesse.gohl@…>, 9 years ago

I'm using version 1.9.2.

Regarding the character encoding, when I open the files from that package in Notepad++ it reports the encoding as ANSI. When I try to convert to UTF-8 w/o BOM there does not appear to be any changes to the file when I save it. I've confirmed this for all the files in the Characteristics package.

comment:5 by Martin Sjölund, 9 years ago

You don't need to post the entire library, but I think the directory structure would be useful. Something like Unix find: find "/usr/lib/omlibrary/Modelica 3.2.1/"

comment:6 by Per Östlund, 4 years ago

Milestone: Futurenever
Resolution: wontfix
Status: newclosed

Closed due to lack of feedback.

Note: See TracTickets for help on using tickets.