function fromModel import Modelica; import DymolaCommands; import Simulator = DymolaCommands.SimulatorAPI; import Modelica_LinearSystems2; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.DiscreteStateSpace; import Modelica_LinearSystems2.DiscreteTransferFunction; input String modelName "Name of the Modelica model" annotation( Dialog(__Dymola_translatedModel(translate = true))); input Real T_linearize = 0 "Point in time of simulation to linearize the model"; input String fileName = "dslin" "Name of the result file"; input Modelica.Units.SI.Time Ts = 1 "Sample time"; input Modelica_LinearSystems2.Utilities.Types.Method method = Modelica_LinearSystems2.Utilities.Types.Method.Trapezoidal "Discretization method"; output DiscreteTransferFunction dtf[:, :]; end fromModel;