Base.getindex is called when the input arguments are an FMU2EvaluationOutput (out) and anything but not a CartesianIndex{A}.
In the example below, ind is a vector of indices.
import FMI: Base.getindex
fmi = fmiLoad("SpringPendulumExtForce1D", "Dymola", "2022x"; type=:ME)
fmiSimulate(fmi) #<-since no FMU2Component allocated <-and I will make a ticket rightaway for that.
Base.getindex(fmu(;dx_refs=:all),[1,2])
You need this when you want to make a Flux.Chain which uses a substet of the FMU-derivatives, e.g.
inputN = [2,9,10,12,17,24,25]
net = Chain(x -> myFMU(; x=x,dx_refs=:all),
dx -> cache(dx),
dx -> dx[inputN],
…)