Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#4364 closed defect (fixed)

Very strange error messages when filename contains "InnerOuter"

Reported by: Jan Kokert Owned by: somebody
Priority: high Milestone:
Component: Run-time Version:
Keywords: innerouter filename Cc:

Description (last modified by Jan Kokert)

Hi I just wanted to create a ticket regarding inner/outer problems and provide a minimal example for that. But by doing this I observed another very strange bug: a simple model will not compile and will give many very strange error messages of the kind:

TestInnerOuterEqu.Top.o:testInnerOuterEqu.top.c:(.data+0x1a0):
undefined reference to `testInnerOuterEqu_top_function_equationsSynchronous'

Here is the code:

package TestInnerOuterEqu
  model Top
    Real a;    
    
  equation
    a = 1;
    
  end Top;

end TestInnerOuterEqu;

It seems that the filename will lead to the problem. Renaming the package to e.g. testInner or testOuter will solve the problem!!! This is totally weird!

Edit1:
The filenames testCase and even testCAse will also lead to this bug.

Edit2:
It is really the filename and not the package name which leads to that bug.

Attachments (1)

TestInnerOuterEqu.mo (131 bytes ) - added by Jan Kokert 8 years ago.

Download all attachments as: .zip

Change History (11)

by Jan Kokert, 8 years ago

Attachment: TestInnerOuterEqu.mo added

comment:1 by Jan Kokert, 8 years ago

Description: modified (diff)

comment:2 by Jan Kokert, 8 years ago

Description: modified (diff)

comment:3 by Jan Kokert, 8 years ago

Description: modified (diff)

comment:4 by Jan Kokert, 8 years ago

Description: modified (diff)

comment:5 by Jan Kokert, 8 years ago

Description: modified (diff)

comment:6 by Jan Kokert, 8 years ago

Component: *unknown*Run-time

comment:7 by Henning Kiel, 8 years ago

Is this problem still there?
I tested this with the following TestInnerOuterEqu.mos:

loadFile("TestInnerOuterEqu.mo");
getErrorString();
simulate(TestInnerOuterEqu.Top);
getErrorString();

Here, omc TestInnerOuterEqu.mos results in a successful simulation.

Are you perhaps working on Windows or OSX and changed the case of the package? Then this ticket might be a duplicate of #4407 (mind the case difference of object- and C-file in your error message).

comment:8 by Jan Kokert, 8 years ago

I herby confirm that in the latest Windows x64 nightly build (OpenModelica-v1.12.0-dev-395-gdeeabde-64bit.exe) the error is not present for all filenames testInnerOuterEqu, TestInnerOuterEqu, TestCase and testCase - good for us :D

Does anyone know, which commit fixed that??

comment:9 by Jan Kokert, 8 years ago

Resolution: fixed
Status: newclosed

comment:10 by Martin Sjölund, 7 years ago

Milestone: Future
Note: See TracTickets for help on using tickets.