Opened 2 years ago

Last modified 2 years ago

#5435 new enhancement

Verify that all state derivatives have the derivative attribute

Reported by: vjohnsson Owned by: Iakov Nakhimovski
Priority: major Milestone:
Component: FMILibrary Version: trunk
Keywords: Cc:

Description

See https://trac.modelica.org/fmi/ticket/397 for reference.

Since FMIL accepts a state derivative that does not reference a state, calling fmi2_import_get_real_variable_derivative_of will return null for such a state derivative. Ensure that null cannot be returned for a state derivative here by performing the validation suggested in the ticket above.

Change History (3)

comment:1 Changed 2 years ago by vjohnsson

r10048: Added verification that all state derivatives have the derivative attribute.

comment:2 Changed 2 years ago by Zimon Kuhs

r10050

Updated test_malformed_xml to correctly check for an error, as the behaviour was changed by r10048.

comment:3 Changed 2 years ago by hlarsson

r10127: Fixing compiler warning introduced by r10048 and removing an unused variable.

Note: See TracTickets for help on using tickets.