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

1 vue (au cours des 30 derniers jours)
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 commentaires
lorugant
lorugant le 10 Jan 2019
Modifié(e) : lorugant le 10 Jan 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 le 5 Fév 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!

Connectez-vous pour commenter.

Réponse acceptée

lorugant
lorugant le 7 Fév 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!

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by