Reads a result file, returning a matrix corresponding to the variables and size given.
function readSimulationResult input String filename; input VariableNames variables; input Integer size = 0 "0=read any size... If the size is not the same as the result-file, this function fails"; output Real result[:, :]; end readSimulationResult;