AngeliqueR
AngeliqueR

Reputation: 123

Unexpected error while translating a model

I recently went testing the library VirtualFCS under Dymola (it is on GitHub). After some QA on the code, I checked the example VirtualFCS.Examples.VehicleExamples.RangeExtenderHybridVehicle OK, and then running it leads to Translation error in the model that I cannot understand nor find the location, except it seems to be in the FuelCellSystem component. The message is:

The function emptySlot should only be found in left hand side of multiple output, but found:
  1. There is no function emptySlot that I can find in the library nor in the MSL (just in case)
  2. The message seems to remain incomplete as it does not show what has been found
  3. No line number or component/function name where this is happening is provided

The model runs Ok under OpenModelica.

Has anyone already experienced such an error? Do you know what kind of error I'm to look for in the code?

Upvotes: 1

Views: 107

Answers (1)

Hans Olsson
Hans Olsson

Reputation: 12507

This occurs for the Jacobian in a non-linear system where the residual involves a function with a partial function application, i.e., a function with a function as input (in this case the function is a non-linear function solver, there might be a better way of handling this as the model effectively inverts an inverse).

If you open a support request you should soon get access to a fix pack for it.

(Previously a comment on a now deleted answer.)

Upvotes: 0

Related Questions