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

1 次查看(过去 30 天)
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 个评论
lorugant
lorugant 2019-1-10
编辑:lorugant 2019-1-10
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 2019-2-5
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!

请先登录,再进行评论。

采纳的回答

lorugant
lorugant 2019-2-7
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!

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by