I am trying to set up a simple parametric study in Dymola. I am having some problems with the name of the result files, which obviously should be different in order to not overwrite the previous one. However, it looks like the String() operator is not working as expected. First, I simply tried to use the code from here. Then I tried to change few things in the syntax, without success. For example, what's wrong with the following code?
openModel("C:/MySimulations/Test1.mo")
translateModel ("Test1");
for i in 1:10 loop
a=i;
simulateModel(resultFile="Test"+String(i));
end for;
The simulation simply does not start. However, if I remove String(i) the simulation runs correctly ten times, but it only stores one (the last) result file. I am using Dymola 2022.