private File simulationDir;\r
\r
protected String experimentName;\r
+ protected static String omcVersion = null;\r
\r
public static SysdynExperiment INSTANCE;\r
\r
\r
// Add changed parameters in case that structure has not changed\r
HashMap<String, String> changes = structureChanged ? null : new HashMap<String, String>();\r
- if(!structureChanged && previousParameters != null && ModelicaManager.getOMCVersion().startsWith("1.9")) {\r
+ if (omcVersion == null) {\r
+ omcVersion = ModelicaManager.getOMCVersion();\r
+ }\r
+ if(!structureChanged && previousParameters != null && omcVersion.startsWith("1.9")) {\r
try {\r
ModelicaManager.createFullMo(simulationLocation, monitor);\r
HashMap<String, String> newParameters = ModelicaManager.getFullModelParameters(simulationLocation, monitor);\r