Skip to content

Commit

Permalink
- remove one extra run of buildModel done for no apparent reason (pro…
Browse files Browse the repository at this point in the history
…bably just a copy paste error).

- add flags:
  setMatchingAlgorithm("PFPlusExt"); setIndexReductionMethod("dynamicStateSelection");


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14531 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Dec 23, 2012
1 parent b4091f6 commit 52beda7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Examples/BuildModelRecursive.mos
Expand Up @@ -51,7 +51,7 @@ writeFile(\""+log+"\",\""+s+"\n\",append=true);
statFile := \""+s+".stat\";
writeFile(statFile,\"<tr><td bgcolor=\\\"#ff0000\\\">"+s+"</td></tr>\");getErrorString();
loadModel(Modelica,{\""+MSLVersion+"\"});"+loadModelicaTest+"
setCommandLineOptions(\"+d=nogen\");
setCommandLineOptions(\"+d=nogen\"); setMatchingAlgorithm(\"PFPlusExt\"); setIndexReductionMethod(\"dynamicStateSelection\");
res:=buildModel("+s+");
greenColor := \"#00FF00\";
if res[1] == \"\" then
Expand All @@ -60,12 +60,6 @@ if res[1] == \"\" then
res:=buildModel("+s+");
greenColor := \"#FFFF00\";
end if;
if res[1] == \"\" then
err:=getErrorString();
setCommandLineOptions(\"+d=-scodeInstShortcut\");
res:=buildModel("+s+");
greenColor := \"#FF0000\";
end if;
errFile:=\""+s+".err\";
simFile:=\""+s+".sim\";
err:=getErrorString();
Expand Down Expand Up @@ -133,6 +127,7 @@ str:="<h1>Recursive BuildModel Test</h1>
<p>Tested Library: Modelica "+getVersion(Modelica)+"</p>
<p>BuildModel time limit: "+ulimitOmc+"s</p>
<p>Simulation time limit: "+ulimitExe+"s</p>
<p>Flags: setCommandLineOptions(\"+d=nogen\"); setMatchingAlgorithm(\"PFPlusExt\"); setIndexReductionMethod(\"dynamicStateSelection\");</p>
";
writeFile(log,"<html><head><title>BuildModel Results</title></head><body>" + str);
writeFile(log,"<table><tr><th>Model</th><th>Simulate</th><th>Total buildModel</th><th>Frontend</th><th>Backend</th><th>SimCode</th><th>Templates</th><th>Compile</th></tr>",append=true);getErrorString();
Expand Down

0 comments on commit 52beda7

Please sign in to comment.