Closed kananisagar04 closed 1 year ago
I am having the same issue here:
https://github.com/hadrianhu888/fmi_test_6
Specifically, test_FMI_GRT_1.slx file has a Simscape file that does not compile with GRTFMI.
I am not sure what I did wrong in terms of settings.
I am having the following error when I try to make a simple simscape system in Simulink. This is the error I am getting when I use slbuild('model') command, and I get similar errors of 'too many input arguments':
`>> slbuild('fmi_test_GRT_3')
done.
........
...
...........................
........................
.......
..................................................
.
.
.
Build Summary
Top model targets built:
fmi_test_GRT_3 Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date) Build duration: 0h 1m 36.137s Error using coder.internal.callMakeHook The call to grtfmi_make_rtw_hook, during the after_make hook generated the following error: SubSystem block (mask) does not have a parameter named 'CMakeCompilerOptimizationLevel'
The build process will terminate as a result.
Error in coder.internal.ModelBuilder>@(lBuildInfoArg,lBuildOptsArg)coder.internal.callMakeHook('after_make',lMakeOptions,lBuildOptsArg,'FolderToRunFrom',mainCompileFolder,'ModelReferenceTargetType',lModelReferenceTargetType,'BuildDirectory',mainCompileFolder,'ModelName',lModelName,'BuildInfo',lBuildInfoArg,'LocalAnchorFolder',compileAnchorDir,'TemplateMakefile',lTemplateMakefile,'MakeRTWHookFile',lMakeRTWHookFile,'Verbose',iBuildArgs.Verbose,'DispHook',lDispHook,'SlBuildProfileIsOn',iBuildArgs.SlbuildProfileIsOn) (line 1185) coder.internal.callMakeHook(...
Error in coder.internal.ModelBuilder>i_wrapAfterMakeHook (line 2936) lPostCompileSTFHooks.after_make(lBuildInfo, lBuildOpts);
Error in coder.internal.ModelBuilder>i_buildProcedure (line 1603) i_wrapAfterMakeHook...
Error in coder.internal.ModelBuilder.make_rtw (line 119) [buildResult, mainObjFolder] = i_buildProcedure...
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl_feval
Error in slbuild
Error in slbuild - Show complete stack trace Caused by: Error using grtfmi_make_rtw_hook SubSystem block (mask) does not have a parameter named 'CMakeCompilerOptimizationLevel' - Show complete stack trace`
@t-sommer, this is the following model
I am not sure what to do with the error messages.
Any ideas on how to fix it?
Thanks
Any idea when this bug will be fixed? I am still waiting on this feature. Thanks.
This should work with 227d0c37ad7292389292e5006fa3475305ca9f22.
I am trying to build a 2-Axis robot using the Simscape library. For FMU export I used FMI Kit 3.0 and the system target file is grtfmi.tlc chosen.
Matlab_Simulink.zip
Errors are: