summary

Implementation level
Type Status
CML extraction template image1
HTML5 representation image2
Template attributes
Attribute Value
source GROMACS log
id summary
pattern \s*Core\st\s\(s\)\s*Wall\st\s\(s\).*
endPattern \s*Finished\smdrun\son\srank.*
endPattern2 ~
endOffset 1
xml:base times/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
<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
<record />
<record>\s*Time:{F,cc:cputime}{F,cc:wallTime}.*</record>
<record>\s*{X,gm:totaltime}</record>
<record />
<record>\s*Performance:{F,gm:nsperday}{F,gm:hourperns}</record>
<record>\s*Finished\smdrun\son\srank\s+\S+\s+{X,cc:jobdatetime.end}</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" />