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
  • Index
  • » Users
  • » rute
  • » Profile

Posts

Posts

Aug-15-12 21:13:33
Incomplete instructions and obtuse errors
Category: Developer

Thanks for you suggestions.

I was not successful. rml-mmc-svn failed due to MLton complaining about not finding the libraries.
It also failed with smlnj.

I will have to try more when I get back to the office.

Perhaps it could be an idea to host the correct version of paradiseo in the openmodelica
repo. It is not possible to download the source without registration. This makes problems
for automatic builds etc The CeCILL license is compatible with GPL according to wikipedia.

Best regards
Runar

Aug-11-12 17:16:12
Incomplete instructions and obtuse errors
Category: Developer

Hello,

I have been successful at building openmodelica about 4 mnt. ago from trunk. Probably the code have changed
so that some adaptations are needed, but you could give it a try: https://gist.github.com/3324725

There where some trouble with paradiseo so that the OMOptim is not build. I could not figure which
version of paradiseo to use.

The link contains PKGBUILD's for openmodelica, rml & smlnj.

Icons and desktop files are missing.

Give it a try and perhaps the AUR PKGBUILD's could be updated.

Best regards
Runar Tenfjord

Sorry. I should have checked the bug reports first. I get results from the simulation so this is not a critical "bug" anyway.

Runar

Running a simple simulation:
"""
model VesselSim
  import SI = Modelica.SIunits;
  constant SI.Position Smax = 3125. "Travel distance";
  constant SI.Mass mass = 1939 * 1024 "Vessel mass";
  SI.Velocity speed(start=0.0) "Vessel speed";
  SI.Position position(start=0.0) "Vessel position";
equation
  mass*der(speed) = 70000. - 65000.;
  der(position) = speed;
  when position >= Smax then
    terminate("Simulation reached end of travel");
  end when;
  annotation(experiment(StartTime = 0.0, StopTime = 3600.0, Tolerance = 1e-06));
end VesselSim;
"""

The simulation runs OK exept it fails to terminate in the when condition. This simulation was
also run on Dymola 7.4 and behaved as expected.

Runar

I am not sure if this is the right forum for these kind of small bugs. I try to
build from SVN head once a week and usually it is OK, but sometimes I
discover some small changes are needed to build on my platform.

Runar

Hello,

A small fix was needed to build with Qt version 4.7.2:

"""
sed -i 's/_listPoints\->setSizePolicy/\/\//' OMOptim/GUI/Widgets/widgetmoopointslist.cpp
"""

Aparently calling setSizePolicy directly is not allowed.

Runar

I found the error. The error was not fixed in r8493. My environment variable
'OPENMODELICAHOME' was defined without a trailing slash and in
OMCProxy.cpp 'bin/omc' is append to the variable giving an non existing
path.

Perhaps a simple check if the path to omc should be added or that
a trailing slash is added if needed. Probably the same error for OMOptim.

Runar

The trunk (rev 8488) builds cleanly on an ArchLinux64 system.

  gcc -v:
  >> gcc version 4.5.2
 
  make -v
  >> GNU Make 3.81
 
  binutils 2.21
  omniorb 4.1.4

The application 'omc', 'OMEdit' and OMNotebook starts as expected and
seems to function well from my limited testing.

Starting OMEdit:
"""
Application asked to unregister timer 0x1e000006 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x3e000007 which is not registered in this thread. Fix application.
Application asked to unregister timer 0x6a000010 which is not registered in this thread. Fix application.
"""

DialogBox Error:
"""
Unable to find OMEdit server, Object reference file
/tmp/openmodelica.rute.objid.OMEdit210137269 not created.
"""

OMEdit fails to start after a dialog box twice report error in finding
the Corba IOR file in the system 'tmp' folder.

Starting OMOptim:
"""
Object::connect: No such slot MainWindow::showTabTitlePopup(const QPoint &)
Object::connect:  (receiver name: 'MainWindowClass')
"""

Log:
"""
Unable to find OMEdit server, Object reference file /tmp/openmodelica.rute.objid.OMOptim210918 not created.
Unable to communicate with OMC
"""

OMOptim fails to operate correctly.

For earlier revision of the repo there was a similar error for OMShell which
was 'fixed' by removing a trailing '.' in the Corba IOR file. These error seems
to be related as omc clearly starts correctly for other applications.

Best regards
Runar Tenfjord

  • Index
  • » Users
  • » rute
  • » Profile
You are here: