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
  • » salokin
  • » Profile

Posts

Posts

Jun-05-18 10:53:59
WheelsAndTires-release & MultiBondLib & MotorcycleLib can't open

Hi caibigbear,

as the author of the MotorcycleLib told you, I think it is quite hard and especially time consuming to get the library working in OM.
I don't even manage to get the BondLib working properly in OMEdit. I can load it but most of the examples fail with translation errors. As the developers said this is properly due to the fact the the libs are based on Modelica 2.x.x.

I don't know if you already have those papers/theses. They'll give you a nice overview of the functions of the single libraries and what they are composed of. Maybe that helps you to model your desired system with the MSL 3.2.2.

BondLib: http://people.inf.ethz.ch/~fcellier/Pub … ica_05.pdf
MultiBondLib: http://people.inf.ethz.ch/~fcellier/Pubs/BG/sne_07.pdf
WheelsAndTires: https://www.inf.ethz.ch/personal/cellie … res_ms.pdf
MotorcycleLib: https://www.inf.ethz.ch/personal/cellie … itt_ms.pdf

If you're really interested in updating all of those libraries (in order to make them work in OM) it's probably worth contacting Dr. Dirk Zimmer from the DLR. He might have some hints on how to approach the further development. Good Luck!

Jun-04-18 11:41:33
WheelsAndTires-release & MultiBondLib & MotorcycleLib can't open


@caibigbear,,
have you found a solution to your problem?

Jun-04-18 11:40:00
WheelsAndTires-release & MultiBondLib & MotorcycleLib can't open


I encountered the same problem and get the exact same error message:
/MotorcycleLib 1.0/package.mo: 1:0-1:6]: Parser error: Unexpected token near: import (IMPORT))
Moreover, I get the same error message when I try to load the MultiBondLib and the WheelsAndTires Lib, as well.

Hence, I started to adjust the source code of the package.mo files. I removed line 1 (import...) in the package.mo file of the MultiBondLib and loaded the BondLib manually (You'll see that the directory that the BondLib is supposed to be imported from does not exist on your local machine anyway). After that, it was possible to load the MultiBondLib. Subsequently, I did the same for the WheelsAndTires Lib which depends on the Bond and MultiBondLib. However, I stumbled across a few other syntax errors and thus far I haven't managed to load the MotorcycleLib successfully.

I'm new to Modelica and just started using OMEdit (I was working with Dymola before). I assume that the problem is caused by incompatibility between the different releases of the libraries. For example, the MultiBondLib is encoded in Modelica 2.2.1 and has been tested with Dymola and the BondLib 2.1. The MotorcycleLib as well as the WheelAndTires lib were developed in the course of Master theses in 2009 and are strongly based on the MultiBondLib. I fear that the libraries are not maintained or updated. However, those are just assumptions.

Has anyone used the MotorcycleLib with OMEdit before and has some hints on its use? Any help is much appreciated.



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