NREL / SOEP-QSS-Test

0 stars 1 forks source link

Slow / Failed simulation when using directional derivatives #2

Closed DeadParrot closed 2 years ago

DeadParrot commented 3 years ago

Directional derivative support is important in the FMUs used for QSS for accurate event indicator trajectories (needed for zero-crossing protocol robustness) and may be used for state variable second derivatives in future QSS versions. There are a few issues with the current OCT directional derivative support:

DeadParrot commented 3 years ago

Versions

The issue was observed with these component versions (may occur with others):

Component Version Date
OCT OCT-r23206_JM-r14295 2021/05
Buildings 9c37781 2021/05/04
QSS e4a0f62 2021/06/08

Build

Build the FMU with bld from the OCT directory as described in the Status page.

Run

Run the models with PyFMI or QSS from a console configured as described in the Status page.

PyFMI: Use run under the model OCT directories to generate the CVode simulation.

QSS: Use run under the model QSS directory in a method subdirectory such as QSS2.

DeadParrot commented 2 years ago

The ACControl10 event indicator noted now gets the correct directional derivatives with the OCT-r28312_JM-r14295 update.

DeadParrot commented 2 years ago

With the OCT-r28312_JM-r14295 update the CVode run of the ASHRAE2006 model built with directional derivatives terminates with:

Warning: Possible chattering detected at t = 1.308000e+04 in state event(s): [57 59 61 63 65]
Simulation failed:  'The right-hand side function had repeated recoverable errors. At time 39240.000000.
chria commented 2 years ago

Two bullet split into:

https://github.com/NREL/SOEP-QSS-Test/issues/22 https://github.com/NREL/SOEP-QSS-Test/issues/21

rest is fixed.