Open CasBex opened 10 months ago
Thanks for noticing, we will do a complete check with DispatchDoctor.jl in all libraries.
Some FMUs (e.g. Dymola) start counting at higher values... returning 0
could be a better option (value refs must be greater than 0
).
fmi2StringToValueReference
has a type instability where it can return either aUInt32
or aNothing
type result. This gives some impracticalities when for example broadcasting where you can get either aVector{UInt32}
or aVector{Union{Nothing,UInt32}}
depending on the input. This pull-request fixes that by returningtypemax(UInt32)
(= 4.3e9) by default. (If your model has more than 4.3e9 inputs then this will fail, but I don't think this edge case is realistic)