Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failed for ModelRef [grtfmi] #409

Closed
nl78 opened this issue Mar 23, 2023 · 5 comments · Fixed by #414
Closed

Compilation failed for ModelRef [grtfmi] #409

nl78 opened this issue Mar 23, 2023 · 5 comments · Fixed by #414

Comments

@nl78
Copy link

nl78 commented Mar 23, 2023

Compilation fails when using ModelRef.

How to reproduce:

  • TopLevel is a simple call to modelRef:
    image

  • ModelRef is a simple addition:
    image

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
Copy link
Contributor

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

@nl78
Copy link
Author

nl78 commented Mar 23, 2023

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

configuration.zip

@t-sommer
Copy link
Contributor

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

@nl78
Copy link
Author

nl78 commented Mar 27, 2023

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
Copy link
Contributor

t-sommer commented Apr 3, 2023

Can you give 0fb40d3 a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants