fmistatus=Error; Test CS model Instance(l​ogStatusEr​ror): fmi2Instan​tiate:Unde​fined function or variable 'fmuhelper'

2 visualizaciones (últimos 30 días)
Hi,
I followed the below link,
to export a sample model as fmu and tried to import the same with a testfile of fmu functions. It is not getting instantiated.
My fmi import is throwing the error as:
fmi2Instantiate: Undefined function or variable 'fmuhelper'.
fmi2_import_instantiate failed.
module=FMICAPI, log level=5:Calling fmi2SetupExperiment
segmentation fault (core dumped)
I see that fmuhelper is generated as a pcode as in "fmuhelper.p" in resources folder along with other MEX files. Can anyone please guide me on how to move forward? I added the paths and still unable to get rid of the error. The file is getting parsed though. but coming to instantiation it is failing. Any help would be great.
Thanks,
lorugant
  2 comentarios
lorugant
lorugant el 10 de En. de 2019
Editada: lorugant el 10 de En. de 2019
Regarding the model. It was just a dot product of two discrete numbers. The matlab version I am running is 2018b and coming to the operating systems, I am running ubuntu bionic beaver(18.04) incase, this info is helpful in anyway. Thanks
lorugant
lorugant el 5 de Feb. de 2019
Hello! I tried the same setup in windows too for 64 bit. And I am still encountering the same error. can anyone please let me know how to debug this error? Thanks!

Iniciar sesión para comentar.

Respuesta aceptada

lorugant
lorugant el 7 de Feb. de 2019
OK everyone, I got past this error. The matlab was unable to find the fmuhelper in the file. So, I set the path using the environment tab to the specific folder containing the fmuhelper. But I still am encountering errors in running the fmu. But the problem above is solved. Thanks!

Más respuestas (0)

Categorías

Más información sobre Create Standalone FMU en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by