Skip to content

Commit

Permalink
- Create the result.xml in the correct directory
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11427 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 14, 2012
1 parent 84f65b6 commit e348116
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Examples/BuildModelRecursive.mos
Expand Up @@ -7,6 +7,10 @@ ulimitOmc:="300"; // 5 minutes to generate the C-code
ulimitExe:="40"; // 40 seconds to initialize and run the simulation
loadModel(Modelica,{MSLVersion});

system("date +'%Y-%m-%d %H:%M:%S' > tmp.date);
dateAndTime:=readFile("tmp.date");
system("rm -f tmp.date");

if MSLVersion == "3.2" then
loadModel(ModelicaTest,{"1.1"});
loadModelicaTest:="\nloadModel(ModelicaTest,{\"1.1\"});";
Expand Down Expand Up @@ -108,6 +112,7 @@ system("rm -f " + log);
str:="<h1>Recursive BuildModel Test</h1><p>Results: " + String(sum(if OpenModelica.Scripting.regularFileExists(s) then 1 else 0 for s in a)) + "/" + String(size(a,1)) + " succeeded</p>
<p>Total time taken: "+OpenModelica.Scripting.Internal.Time.readableTime(OpenModelica.Scripting.Internal.Time.timerTock(OpenModelica.Scripting.Internal.Time.RT_CLOCK_USER_RESERVED))+"</p>
<p>OpenModelica Version: "+getVersion()+"</p>
<p>Test started: "+dateAndTime+"</p>
<p>Tested Library: Modelica "+getVersion(Modelica)+"</p>
<p>BuildModel time limit: "+ulimitOmc+"s</p>
<p>Simulation time limit: "+ulimitExe+"s</p>
Expand Down

0 comments on commit e348116

Please sign in to comment.