Opened 5 years ago

Last modified 4 years ago

#5547 new enhancement

Including c-files from external_solvers for nonlinearSolverHomotopy

Reported by: Arinomo <trista.arinomo@…> 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)

Test_pre.fmu (792.8 KB ) - added by anonymous 4 years ago.
Test_post.fmu (746.3 KB ) - added by trista.arinomo@… 4 years ago.
FMU worked in dSpace env

Download all attachments as: .zip

Change History (10)

comment:1 by Trista Arinomo <trista.arinomo@…>, 5 years ago

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

comment:2 by Trista Arinomo <trista.arinomo@…>, 5 years ago

Hi,

just want to ask if this fix can be implemented in the future?

thanks in advance

comment:3 by Francesco Casella, 5 years ago

Milestone: Future2.0.0

I'm not sure we can manage for 1.14.0, but definitely for 2.0.0

comment:4 by Lennart Ochel, 5 years ago

Cc: Martin Sjölund 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 Martin Sjölund, 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 Francesco Casella, 5 years ago

@Arinomo, could you provide a minimal working example to reproduce the issue?

comment:7 by trista.arinomo@…, 5 years ago

Sorry for the late reply,

sure, I'll try to make a simple example model.

comment:8 by trista.arinomo@…, 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 anonymous, 4 years ago

Attachment: Test_pre.fmu added

by trista.arinomo@…, 4 years ago

Attachment: Test_post.fmu added

FMU worked in dSpace env

Note: See TracTickets for help on using tickets.