Changeset 18477
- Timestamp:
- 2013-12-13T11:01:15+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Examples/BuildModelRecursive.mos
r18394 r18477 2 2 3 3 if regularFileExists("CustomCommands.mos") then runScript("CustomCommands.mos") else ""; 4 customCommandsStr := if regularFileExists("CustomCommands.mos") then ("<pre>" + escapeXML(readFile("CustomCommands.mos")) + "</pre>") else ""; 4 5 library:=$TypeName(Modelica); 5 6 libraryVersion:="default"; … … 27 28 system("rm -f tmp.date"); 28 29 29 loadModelCommand:= "\nloadModel("+libraryString+",{\""+libraryVersion+"\"});\n";30 loadModelCommand:=(if regularFileExists("CustomCommands.mos") then "\nrunScript(\"CustomCommands.mos\");" else "") + "\nloadModel("+libraryString+",{\""+libraryVersion+"\"});\n"; 30 31 31 32 omc:=getInstallationDirectoryPath()+"/bin/omc"; 32 33 dygraphs:=getInstallationDirectoryPath()+"/share/doc/omc/testmodels/dygraph-combined.js"; 33 34 34 a:={typeNameString(x) for x guard isExperiment(x) in getClassNames( library,recursive=true,sort=true)};35 a:={typeNameString(x) for x guard isExperiment(x) in getClassNames(Modelica.Blocks,recursive=true,sort=true)}; 35 36 getErrorString(); 36 37 … … 250 251 <p>Simulation time limit: "+ulimitExe+"s</p> 251 252 <p>Default tolerance: "+String(default_tolerance)+"</p> 252 <p>Flags: setCommandLineOptions(\"+d=nogen,initialization\"); setMatchingAlgorithm(\"PFPlusExt\"); setIndexReductionMethod(\"dynamicStateSelection\");</p> 253 <p>Links are provided if getErrorString() or the simulation generates output. <font style=\"background-color:#00FF00\">Green</font> means success, <font style=\"background-color:#FFFF00\">yellow</font> means success if +d=scodeInstShortcut was used. <font style=\"background-color:#FF0000\">Red</font> is bad and in general signifies a failure.</p> 253 <p>Flags: setCommandLineOptions(\"+d=nogen,initialization\"); setMatchingAlgorithm(\"PFPlusExt\"); setIndexReductionMethod(\"dynamicStateSelection\");</p>" 254 + customCommandsStr + 255 "<p>Links are provided if getErrorString() or the simulation generates output. <font style=\"background-color:#00FF00\">Green</font> means success, <font style=\"background-color:#FFFF00\">yellow</font> means success if +d=scodeInstShortcut was used. <font style=\"background-color:#FF0000\">Red</font> is bad and in general signifies a failure.</p> 254 256 "; 255 257 writeFile(log,"<html><head><title>BuildModel Results</title></head><body>" + str);
Note: See TracChangeset
for help on using the changeset viewer.