8000 Failed FmuFunction evaluation should result in NaN outputs · Issue #3915 · casadi/casadi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Failed FmuFunction evaluation should result in NaN outputs #3915
@jaeandersson

Description

@jaeandersson

If I explicitly create a division by zero error:

[bvsm_dymola_fmi2:] Error: The following error was detected at time: 0
[bvsm_dymola_fmi2:] 
Model error - division by zero: (nB*(k1*nA-k2*nC)) / (VR) = (0) / (0)

[bvsm_dymola_fmi2:] fmiGetReal: dsblock_ failed, QiErr = 1
CasADi - 2024-11-11 07:43:25 WARNING("Evaluation failed") [.../casadi/core/fmu.cpp:1154]
[bvsm_dymola_fmi2:] Error: The following error was detected at time: 0
[bvsm_dymola_fmi2:] 
Model error - division by zero: (nB*(k1*nA-k2*nC)) / (VR) = (0) / (0)

[bvsm_dymola_fmi2:] fmiGetReal: dsblock_ failed, QiErr = 1
CasADi - 2024-11-11 07:43:25 WARNING("Evaluation failed") [.../casadi/core/fmu.cpp:1154]
[bvsm_dymola_fmi2:] Error: The following error was detected at time: 0
[bvsm_dymola_fmi2:] 
Model error - division by zero: (nB*(k1*nA-k2*nC)) / (VR) = (0) / (0)

[bvsm_dymola_fmi2:] fmiGetReal: dsblock_ failed, QiErr = 1
CasADi - 2024-11-11 07:43:25 WARNING("FMU evaluation failed") [.../casadi/core/fmu.cpp:723]

The error is correctly detected and communicated, but it's somehow not propagated to the FmuFunction, neither in return value nor in a raised exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0