Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3055 closed defect (duplicate)

Wrong initialization of parameters in FMI2

Reported by: Rüdiger Franke Owned by: Lennart Ochel
Priority: high Milestone: 1.9.2
Component: FMI Version: trunk
Keywords: Cc:

Description

Recently FMI version 2 sets parameters to their start values during fmi2Enter/ExitInitializationMode. This reverts possible custom values set beforehand by the calling environment. The problem was seen in r23881 and r23899; it was not there in r23815 and earlier.

The problem can be reproduced by running a parameter estimation with HQP. On a machine with omc, git, gcc and tcl-dev:

git clone https://github.com/omuses/hqp.git
cd hqp
./configure
make
cd odc
./run dic_fmu_est

The estimation should converge after on SQP iteration. Caused by the overridden parameter values, the estimation iterates forever or stalls after multiple iterations.

Change History (8)

comment:1 by Rüdiger Franke, 10 years ago

One more comment: the above run will fail under Linux using recent nightly builds. This is because the binaries directory is called makefileParams.platform instead of linux64. It must be renamed if ./run dic_fmu_est shall work.

comment:2 by Willi Braun, 10 years ago

Owner: changed from Adeel Asghar to Lennart Ochel
Status: newassigned

I guess it's connected to #3050.

comment:3 by Lennart Ochel, 10 years ago

I changed the initialization of primary parameters for #3050 with r23934. Can one check if it also affects the issue of this ticket?

in reply to:  3 comment:4 by Willi Braun, 10 years ago

Replying to lochel:

I changed the initialization of primary parameters for #3050 with r23934. Can one check if it also affects the issue of this ticket?

Looks good, it works for me.

comment:5 by Willi Braun, 10 years ago

Resolution: fixed
Status: assignedclosed

comment:6 by Lennart Ochel, 10 years ago

Resolution: fixed
Status: closedreopened

comment:7 by Lennart Ochel, 10 years ago

Resolution: duplicate
Status: reopenedclosed

see #3050

comment:8 by Lennart Ochel, 10 years ago

Willi, please add a test case in order to ensure that no one will break initialization of parameters in FMI2.

Note: See TracTickets for help on using tickets.