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: lochel
Priority: blocker Milestone: 2.0.0
Component: FMI Version: v1.14.0-dev-nightly
Keywords: Cc: sjoelund.se

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 Changed 5 years ago by Trista Arinomo <trista.arinomo@…>

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 Changed 5 years ago by Trista Arinomo <trista.arinomo@…>

Hi,

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

thanks in advance

comment:3 Changed 5 years ago by casella

  • Milestone changed from Future to 2.0.0

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

comment:4 Changed 4 years ago by lochel

  • Cc sjoelund.se 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 Changed 4 years ago by sjoelund.se

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 Changed 4 years ago by casella

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

comment:7 Changed 4 years ago by trista.arinomo@…

Sorry for the late reply,

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

comment:8 Changed 4 years ago by trista.arinomo@…

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

Changed 4 years ago by anonymous

Changed 4 years ago by trista.arinomo@…

FMU worked in dSpace env

Note: See TracTickets for help on using tickets.