PythonFMU icon indicating copy to clipboard operation
PythonFMU copied to clipboard

A lightweight framework that enables the packaging of Python3.x code as co-simulation FMUs

Results 30 PythonFMU issues
Sort by recently updated
recently updated
newest added

Hi, In my python code, I has "import ctype", I use ubuntu20.04, python3.9, I run fmu file with [openmcx](https://github.com/eclipse/openmcx) It can generate fmu file, but when I test the file,...

Hi, After run build, I bring my fmu file to another system, and it does not work with the error: "Failed to load shared library /tmp/tmp9az2e0dh/binaries/linux64/PythonSlave.so. libpython3.9.so.1.0: cannot open shared...

from pythonfmu-export/src/pythonfmu/PyState.hpp: ``` warning: 'void Py_SetProgramName(const wchar_t*)' is deprecated [-Wdeprecated-declarations] ``` this can be set via PyConfig now (https://docs.python.org/3/c-api/init_config.html#init-config) but this is not available as pythonfmu uses the stable ABI...

I'm trying to create a fmu of a custom class. My code is structured like this: ``` from pythonfmu.fmi2slave import Fmi2Slave, Fmi2Causality, Fmi2Variability, Real try: import MyModel as mymodel from...

Hello All, I am trying to do a FMU Check in my fmu files, most part of them are returning the errors: [VERBOSE][FMICAPI] Calling fmi2GetModelTypesPlatform [VERBOSE][FMUCHK] allocateMemory( 1, 192) called....

![image](https://github.com/NTNU-IHB/PythonFMU/assets/37976972/58f0809b-a1df-4432-99c9-730857e24030) ![image](https://github.com/NTNU-IHB/PythonFMU/assets/37976972/20c59f5b-dee6-4bf6-a56e-e33378c25d23) When I generate FMU and execute FMU, the initialized output is incorrect. The correct output should be as shown in the following image. ![image](https://github.com/NTNU-IHB/PythonFMU/assets/37976972/76f59ddc-be52-438e-8312-41793170ad5d)

Hi, I generated a .fmu file according to the tutorial then imported to the Matlab/simulink, but matlab will crash after running it.

Added a build option to compile the Python code into a native module using Cython.

When the FMU is produced the source code is included in the directory named 'source' inside the .fmu file. There is also a CMakeList.txt file for building with CMake. But...