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

Posts

Posts

Yes, that solved the problem. Thank you very much!

Unfortunately, not. I tried this before (and didn't mentioned it explicitly).

Code:


>>> cd("/usr/lib/omlibrary/Modelica 3.2.2/Blocks")
"/usr/lib/omlibrary/Modelica 3.2.2/Blocks"

>>> loadFile("Math.mo")
false

I have the feeling that files starting with a within-statement cannot be loaded whilst stand-alone models can. If I make a copy of this file and remove the within-statement, it is working.
Why? How can I make it work with within-statement?

Hi Arinomo23,

As a first step I would like to load (and then export) a model, later on, I would like to do this with a package.

I cannot reproduce your test, since I do not have a Math directory, but just Math.mo with 3551 lines of code. This is quite confusing.

Cheers,
Andreas

Dear all,

When I want to load the file /usr/lib/omlibrary/Modelica 3.2.2/Blocks/Math.mo in OMShell-terminal it fails:

>>> loadFile("/usr/lib/omlibrary/Modelica 3.2.2/Blocks/Math.mo")
false

I can, of course, load the file into OME and here it is also possible to export an FMU of one of the blocks  (which is my original intent to use script-wise model handling). What did I wrong?

I would really appreciate any kind of hints/help.

Best wishes,
Andreas

Versions:
OMEdit 1.11.0~1-gf048cec
Connected to OpenModelica 1.14.0~dev-5867-g85b17c5

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