encapsulated function reduceRosenbrock import Modelica; import MatricesMSL = Modelica.Math.Matrices; import Modelica_LinearSystems2; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.Math.Matrices; import Modelica_LinearSystems2.Math.Vectors; input Real A[:, :] "State matrix"; input Real B[:, :] "Input matrix"; input Real C[:, :] "Output matrix"; input Real D[:, :] "Feedforward matrix"; output Real Ar[:, :]; output Real Br[:, :]; output Real Cr[:, :]; output Real Dr[:, :]; output Integer n "Dimension of Ar: Ar[n,n]"; output Integer m "Second dimension of Br: Br{n,m]"; output Integer p "First dimension of Cr: Cr[p,n]"; end reduceRosenbrock;