CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
155 stars 50 forks source link

Compilation failed for ModelRef [grtfmi] #409

Closed nl78 closed 1 year ago

nl78 commented 1 year ago

Compilation fails when using ModelRef.

How to reproduce:

Result : image

It seems that 'gcs' - "get current system" gives some weird name.

Configuration: matlab 2016b, FMIkit 3.0 or lastest commit.

Attached: 2 slx to reproduce modelref.zip

t-sommer commented 1 year ago

The model plus1 is referencing a variable Configuration that does not exist. Can you share it?

nl78 commented 1 year ago

Here it is. Anyway, using a reference configuration (or not) does not make any difference.

configuration.zip

t-sommer commented 1 year ago

I can reproduce the problem with R2016b. However with R2022b it works fine. Can you try a newer MATLAB version?

nl78 commented 1 year ago

I confirm : issue is present with R2016b and not present in R2020b. Could it be fixed on R2016b (by adding a try/catch?) ?

t-sommer commented 1 year ago

Can you give 0fb40d358b8550d6a419d8db61770cdd1ef600e1 a try?