Skip to content

summary ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceGROMACS log
idsummary
pattern\s*Core\st\s\(s\)\s*Wall\st\s\(s\).*
endPattern\s*Finished\smdrun\son\srank.*
endPattern2~
endOffset1
xml:basetimes/summary.xml

Input ​

               Core t (s)   Wall t (s)        (%)
       Time:  3645267.886   152238.529     2394.4
                         1d18h17:18
                 (ns/day)    (hour/ns)
Performance:        2.270       10.572
Finished mdrun on rank 0 Wed Mar 11 05:27:44 2020

Output text ​

xml
<comment class="example.output" id="summary">
        <module cmlx:templateRef="summary">
            <scalar dataType="xsd:double" dictRef="cc:cputime" units="si:s">3645267.886</scalar>
            <scalar dataType="xsd:double" dictRef="cc:wallTime" units="si:s">152238.529</scalar>
            <scalar dataType="xsd:string" dictRef="gm:totaltime">1d18h17:18</scalar>
            <scalar dataType="xsd:double" dictRef="gm:nsperday">2.270</scalar>
            <scalar dataType="xsd:double" dictRef="gm:hourperns">10.572</scalar>
            <scalar dataType="xsd:date" dictRef="cc:jobdatetime.end">2020-03-11T05:27:44.000+01:00</scalar>
         </module>
    </comment>

Template definition ​

xml
<record />
<record>\s*Time:&#123;F,cc:cputime&#125;&#123;F,cc:wallTime&#125;.*</record>
<record>\s*&#123;X,gm:totaltime&#125;</record>
<record />
<record>\s*Performance:&#123;F,gm:nsperday&#125;&#123;F,gm:hourperns&#125;</record>
<record>\s*Finished\smdrun\son\srank\s+\S+\s+&#123;X,cc:jobdatetime.end&#125;</record>
<transform process="createDate" xpath=".//cml:scalar[@dictRef='cc:jobdatetime.end']" format="E MMM  d HH:mm:ss yyyy" />
<transform process="createDate" xpath=".//cml:scalar[@dictRef='cc:jobdatetime.end']" format="E MMM dd HH:mm:ss yyyy" />
<transform process="pullup" xpath=".//cml:list/cml:scalar" />
<transform process="pullup" xpath=".//cml:list/cml:scalar" />
<transform process="delete" xpath=".//cml:list" />
<transform process="addUnits" xpath=".//cml:scalar[@dictRef='cc:cputime']" value="si:s" />
<transform process="addUnits" xpath=".//cml:scalar[@dictRef='cc:wallTime']" value="si:s" />