Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Initialization.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ algorithm
end if;
//print("index-" + intString(index) + " ende\n");
end for;
Error.addCompilerError("The given system is mixed-determined. [index > " + intString(maxMixedDeterminedIndex) + "]\nPlease checkout the option \"+maxMixedDeterminedIndex\".");
Error.addMessage(Error.MIXED_DETERMINED, {intString(maxMixedDeterminedIndex)});
fail();
end fixInitialSystem;

Expand Down
22 changes: 11 additions & 11 deletions Compiler/FrontEnd/ModelicaBuiltin.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1510,15 +1510,15 @@ function setPreOptModules "example input: removeFinalParameters,removeSimpleEqua
input String modules;
output Boolean success;
algorithm
success := setCommandLineOptions("+preOptModules=" + modules);
success := setCommandLineOptions("--preOptModules=" + modules);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setPreOptModules;

function setCheapMatchingAlgorithm "example input: 3"
input Integer matchingAlgorithm;
output Boolean success;
algorithm
success := setCommandLineOptions("+cheapmatchingAlgorithm=" + String(matchingAlgorithm));
success := setCommandLineOptions("--cheapmatchingAlgorithm=" + String(matchingAlgorithm));
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setCheapMatchingAlgorithm;

Expand All @@ -1537,7 +1537,7 @@ function setMatchingAlgorithm "example input: omc"
input String matchingAlgorithm;
output Boolean success;
algorithm
success := setCommandLineOptions("+matchingAlgorithm=" + matchingAlgorithm);
success := setCommandLineOptions("--matchingAlgorithm=" + matchingAlgorithm);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setMatchingAlgorithm;

Expand All @@ -1556,15 +1556,15 @@ function setIndexReductionMethod "example input: dynamicStateSelection"
input String method;
output Boolean success;
algorithm
success := setCommandLineOptions("+indexReductionMethod=" + method);
success := setCommandLineOptions("--indexReductionMethod=" + method);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setIndexReductionMethod;

function setPostOptModules "example input: lateInline,inlineArrayEqn,removeSimpleEquations."
input String modules;
output Boolean success;
algorithm
success := setCommandLineOptions("+postOptModules=" + modules);
success := setCommandLineOptions("--postOptModules=" + modules);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setPostOptModules;

Expand All @@ -1583,7 +1583,7 @@ function setTearingMethod "example input: omcTearing"
input String tearingMethod;
output Boolean success;
algorithm
success := setCommandLineOptions("+tearingMethod=" + tearingMethod);
success := setCommandLineOptions("--tearingMethod=" + tearingMethod);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setTearingMethod;

Expand Down Expand Up @@ -1866,7 +1866,7 @@ function setAnnotationVersion "Sets the annotation version."
input String annotationVersion;
output Boolean success;
algorithm
success := setCommandLineOptions("+annotationVersion=" + annotationVersion);
success := setCommandLineOptions("--annotationVersion=" + annotationVersion);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setAnnotationVersion;

Expand All @@ -1893,7 +1893,7 @@ function setVectorizationLimit
input Integer vectorizationLimit;
output Boolean success;
algorithm
success := setCommandLineOptions("+v=" + String(vectorizationLimit));
success := setCommandLineOptions("-v=" + String(vectorizationLimit));
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setVectorizationLimit;

Expand All @@ -1909,7 +1909,7 @@ public function setDefaultOpenCLDevice
input Integer defdevid;
output Boolean success;
algorithm
success := setCommandLineOptions("+o=" + String(defdevid));
success := setCommandLineOptions("-o=" + String(defdevid));
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setDefaultOpenCLDevice;

Expand All @@ -1930,7 +1930,7 @@ function setOrderConnections "Sets the orderConnection flag."
input Boolean orderConnections;
output Boolean success;
algorithm
success := setCommandLineOptions("+orderConnections=" + String(orderConnections));
success := setCommandLineOptions("--orderConnections=" + String(orderConnections));
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setOrderConnections;

Expand All @@ -1944,7 +1944,7 @@ function setLanguageStandard "Sets the Modelica Language Standard."
input String inVersion;
output Boolean success;
algorithm
success := setCommandLineOptions("+std=" + inVersion);
success := setCommandLineOptions("--std=" + inVersion);
annotation(__OpenModelica_EarlyInline = true, preferredView="text");
end setLanguageStandard;

Expand Down
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenFMUCpp.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simula
# OMCompiler/SimulationRuntime/cpp/Makefile
# - rebuild omc to add the new platform
# - invoke the omc commands
# setCommandLineOptions("+simCodeTarget=Cpp");
# setCommandLineOptions("--simCodeTarget=Cpp");
# buildModelFMU(MyModel, platforms={"i686-w64-mingw32"});
# - alternatively call this Makefile with
# make TARGET_TRIPLET=i686-w64-mingw32 -f <%fileNamePrefix%>_FMU.makefile
Expand Down
2 changes: 2 additions & 0 deletions Compiler/Util/Error.mo
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,8 @@ public constant Message VAR_NO_REMAINING_EQN = MESSAGE(582, SYMBOLIC(), WARNING(
Util.gettext("Variable %s does not have any remaining equation to be solved in.\n The original equations were:%s"));
public constant Message MOVING_PARAMETER_BINDING_TO_INITIAL_EQ_SECTION = MESSAGE(582, TRANSLATION(), NOTIFICATION(),
Util.gettext("Moving binding to initial equation section and setting fixed attribute of %s to false."));
public constant Message MIXED_DETERMINED = MESSAGE(583, SYMBOLIC(), ERROR(),
Util.gettext("The given system is mixed-determined. [index > %s]\nPlease checkout the option \"--maxMixedDeterminedIndex\"."));

public constant Message MATCH_SHADOWING = MESSAGE(5001, TRANSLATION(), ERROR(),
Util.gettext("Local variable '%s' shadows another variable."));
Expand Down