Opened 5 years ago
Last modified 4 years ago
#5547 new enhancement
Including c-files from external_solvers for nonlinearSolverHomotopy
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | blocker | Milestone: | 2.0.0 |
Component: | FMI | Version: | v1.14.0-dev-nightly |
Keywords: | Cc: | Martin Sjölund |
Description
When exporting some FMU,
<File name="./simulation/solver/nonlinearSolverHomotopy.c"/>
is included in the modelDescription.xml.
When trying to integrate the FMU for a real-time test bench,it is often that the source files will be recompiled to make a rt-application and i always get the 'linearSolverWrapper' error because dgesv.c is not included in the modelDescription. Adding dgesv.c manually resulting in more undefined referenced, taht resolved by including these c-file:
dgesv.c; xerbla.c; dgetrf.c; dgetrs.c; ilaenv.c; dgetf2.c; dlaswp.c; dtrsm.c; dgemm.c; lsame.c; s_camp.c; iparamq.c; ieeeck.c; s_copy.c; dlamch.c; idamax.c; dswap.c; dger.c; dscal.c and i_nint.c
Would it be possible to include above files in modelDescription.xml when exporting FMU?
thanks in advance
Attachments (2)
Change History (10)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Hi,
just want to ask if this fix can be implemented in the future?
thanks in advance
comment:3 by , 5 years ago
Milestone: | Future → 2.0.0 |
---|
I'm not sure we can manage for 1.14.0, but definitely for 2.0.0
comment:4 by , 5 years ago
Cc: | added |
---|
Martin, any comment on this? As far as I understood, you require autoconf to compile FMUs even though it is not in the FMI standard. Is that related to this issue or do we just miss some dependencies?
comment:5 by , 5 years ago
I think I would need an example model triggering this. I suspect it's a model with nonlinear system but no linear system and a nonlinear solver somehow needs dgesv.
comment:6 by , 5 years ago
@Arinomo, could you provide a minimal working example to reproduce the issue?
comment:8 by , 4 years ago
Sorry for the delay, above are attached two FMUs, pre is the one exported from OM and post is FMU that can be integrated in dspace env, with modifications on modelDesciption.xml and modelName_FMU.c
by , 4 years ago
Attachment: | Test_pre.fmu added |
---|
Additional Info:
Looking at Makefile in source folder, it seems the files i mention above is included as DGESV_OBJS but not written in modelDescription.xml
If it is not to much work, could i request a fix so the above mentioned files are included as source files in modelDescription.xml
thanks in advance