This function is identical to function linearize but returns only the A-matrix.
function linearize2 import Simulator = DymolaCommands.SimulatorAPI; input String modelName "Name of the Modelica model" annotation( Dialog(__Dymola_translatedModel)); input Modelica.Units.SI.Time t_linearize = 0 "Simulate until t_linearize and then linearize" annotation( Dialog); input Modelica_LinearSystems2.Records.SimulationOptionsForLinearization simulationSetup = Modelica_LinearSystems2.Records.SimulationOptionsForLinearization() "Simulation options it t_linearize > 0" annotation( Dialog); output Real A[nx, nx] = ABCD[1:nx, 1:nx] "A-matrix"; end linearize2;