I want to export my model to python as an FMU and work with its parameters. Since it is easy for me working with inputs and outputs when I'm importing the FMU in a new environment, I'm trying to change parameters to inputs. As a first approach I was trying to change the model parameters as inputs but it is unable to simulate or export it as an FMU.
The next code is a extremely simple example of what I want to do:
model test
input Real value1;
Modelica.Blocks.Math.Gain gamma(k = value1) annotation(
Placement(visible = true, transformation(origin = {200, 84}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
equation
annotation(
Diagram(coordinateSystem(extent = {{180, 100}, {220, 60}})),
version = "",
uses(Modelica(version = "4.0.0")));
end test;
Thank you very much!