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

FMU export problems

FMU export problems

I'm trying to export my modelica model in FMU and the to load it in Simulink using the Pilot Support Package (PSP) by Mathworks.
When I try to load the FMU file with PSP in Simulink it gives me the following error:
Dynamic library file ("modelxxx.dll") does not exist in FMU 'directory of the FMU file'
I run the FMUChecker and it gives me the following errors:
[FATAL][FMILIB] Could not change to the DLL directory ...\fmucktmpa06852\binaries\win64\
[FATAL][FMILIB] The FMU contains no binary for this platform.
[FATAL][FMUCHK] Could not create the DLL loading mechanism(C-API).

I'm working under Windows10 because PSP is available only for windows.

Any suggestion? I'm new in Modelica.

Thanks in advance.

Re: FMU export problems

What OpenModelica version are you using? If is 1.9.6 then is only 32 bit and can generate only 32 bit FMUs.
You need the 64bit nightly build to make a 64bit FMU:
https://build.openmodelica.org/omc/buil … lds/64bit/

Re: FMU export problems

Thanks for the fast reply.
I downloaded and installed the nightly build as you suggested. Running the FMUChecker now it gives me the following error:
[INFO][FMUCHK] Printing output file header
"time"
[INFO][FMILIB] Loading 'win64' binary with 'standard32' platform types
[FATAL][FMICAPI] Could not load the DLL: Impossibile trovare il modulo specificato.

[FATAL][FMUCHK] Could not create the DLL loading mechanism(C-API).

I forgot to say that I'm using FMU version 1 Model Exchange

There are 0 guests and 0 other users also viewing this topic