Closed robha67 closed 2 years ago
@robha67 , the API is implemented with this commit https://github.com/OpenModelica/OMSimulator/commit/aa5efa48258ee83910e1b512f54abf675fd8e126. An example test case of how to use the API is available here https://github.com/OpenModelica/OMSimulator/blob/master/testsuite/api/reduceSSV.py, You can test the feature
@robha67 Please reopen if you find problems
I cannot find any discription of this function in the OMSimulator user guide @arun3688
@robha67 That is true, i did not add the documentation for this API, I will soon add it, but you can see the example here on how to use it
https://github.com/OpenModelica/OMSimulator/blob/master/testsuite/api/reduceSSV.py
@arun3688 Great, thanks.
API command to generate a reduced SSV file. The use-case https://github.com/OpenModelica/OMSimulator/tree/master/testsuite/resources/embrace_TwoConf/resources has two SSV files with many unused entries. The idea is to create an SSV that only contains the parameters that are referenced in the SSM. So, something along the line
omsReduceSSV(ECS_Conf1.ssv, ECS_HW.ssm, "NameOfReduced".ssv)
Mvh Robert