Changeset e44974e in OpenModelica
- Timestamp:
- 2013-12-13T11:01:15+01:00 (10 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, master, omlib-staging
- Children:
- 8b157b09
- Parents:
- 90f6059
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Examples/BuildModelRecursive.mos
r5262530e re44974e 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.