Changeset e44974e in OpenModelica


Ignore:
Timestamp:
2013-12-13T11:01:15+01:00 (10 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
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
Message:

Also output that custom commands were used

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18477 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Examples/BuildModelRecursive.mos

    r5262530e re44974e  
    22
    33if regularFileExists("CustomCommands.mos") then runScript("CustomCommands.mos") else "";
     4customCommandsStr := if regularFileExists("CustomCommands.mos") then ("<pre>" + escapeXML(readFile("CustomCommands.mos")) + "</pre>") else "";
    45library:=$TypeName(Modelica);
    56libraryVersion:="default";
     
    2728system("rm -f tmp.date");
    2829
    29 loadModelCommand:="\nloadModel("+libraryString+",{\""+libraryVersion+"\"});\n";
     30loadModelCommand:=(if regularFileExists("CustomCommands.mos") then "\nrunScript(\"CustomCommands.mos\");" else "") + "\nloadModel("+libraryString+",{\""+libraryVersion+"\"});\n";
    3031
    3132omc:=getInstallationDirectoryPath()+"/bin/omc";
    3233dygraphs:=getInstallationDirectoryPath()+"/share/doc/omc/testmodels/dygraph-combined.js";
    3334
    34 a:={typeNameString(x) for x guard isExperiment(x) in getClassNames(library,recursive=true,sort=true)};
     35a:={typeNameString(x) for x guard isExperiment(x) in getClassNames(Modelica.Blocks,recursive=true,sort=true)};
    3536getErrorString();
    3637
     
    250251<p>Simulation time limit: "+ulimitExe+"s</p>
    251252<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>
    254256";
    255257writeFile(log,"<html><head><title>BuildModel Results</title></head><body>" + str);
Note: See TracChangeset for help on using the changeset viewer.