Giter VIP home page Giter VIP logo

Comments (7)

traversaro avatar traversaro commented on August 23, 2024

It seems that the FMU is loaded successfully once, and then the crash happens when the FMI is loaded again. Perhaps it is a OpenModelica problem related to loading the same FMU twice.

from modest-py.

triccyx avatar triccyx commented on August 23, 2024

It seems that the FMU is loaded successfully once, and then the crash happens when the FMI is loaded again. Perhaps it is a OpenModelica problem related to loading the same FMU twice.

Not sure about this. I have changed the test script to execute the identification with only one method ('GA') and with only one "learning period" and it still crashes.

from modest-py.

krzysztofarendt avatar krzysztofarendt commented on August 23, 2024

@triccyx, when I try to load your FMU I immediately get the following error:

pyfmi.fmi.FMUException: Error loading the binary. Could not load the DLL: libSimulationRuntimeC.so: cannot open shared object file: No such file or directory

I tried different things but I can't make it working.

However, in screenlog.log the last line says:
Linear multistep method : BDFJSON object expected ',' or '}', got: "lineEnd":282,"colSt

This seems to be the same bug as the one reported here: https://openmodelica.org/forum/default-topic/2341-pyfmi,-openmodelica-fmu,-and-ipython-json-involved

I have little experience with OpenModelica, but I did the following test:

  • I installed OpenModelica stable on Debian 9 using sudo apt install openmodelica, following this website
  • I generated an FMU from Simple2R1C_ic.mo example using these settings:
    fmi_settings

The resulting FMU works fine for me. I attached it to this post. Can you please check this one?
om_fmu.zip

from modest-py.

triccyx avatar triccyx commented on August 23, 2024

Hi! Thank for your response.
With your FMU the situation is the same as before:
1)pyfmi is working, I have attached the image:
image
2)I have the same error on modest-py:
screendump.log

This time I have my test that has just one identification method ('GA') and with only one "learning period"

Is there something else I can test or try?

from modest-py.

traversaro avatar traversaro commented on August 23, 2024

I suspect the issue is that @triccyx is using a development version of OpenModelica, while @krzysztofarendt probably tested with the stable.

from modest-py.

triccyx avatar triccyx commented on August 23, 2024

I think this could not be the problem. I am using the FMU generated by @krzysztofarendt.

from modest-py.

krzysztofarendt avatar krzysztofarendt commented on August 23, 2024

from modest-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.