jobcpu

Implementation level

Type

Status

CML extraction template

image1

HTML5 representation

image2

Template attributes

Attribute

Value

source

Gaussian log

id

jobcpu

repeat

*

pattern

\s*Job cpu time:.*

endPattern

\s*Normal termination.*

endOffset

1

xml:base

jobcpu.xml

Input

Job cpu time:  0 days  0 hours  0 minutes 12.7 seconds.
File lengths (MBytes):  RWF=     12 Int=      0 D2E=      0 Chk=      7 Scr=      1
Normal termination of Gaussian 03 at Mon Nov 20 14:40:36 2006.

Output text

1<comment class="example.output" id="jobcpu">
2    <module cmlx:templateRef="jobcpu">
3      <scalar dictRef="cc:jobtime" dataType="xsd:string">PT12.700S</scalar>
4      <scalar dataType="xsd:date" dictRef="cc:jobdatetime.end">2006-11-20T14:40:36Z</scalar>
5      <scalar dataType="xsd:string" dictRef="cc:program">Gaussian 03</scalar>
6    </module>
7  </comment>

Template definition

 1<record id="jobcpu">\s*Job cpu time:\s*{X,cc:jobtime}</record>
 2<record id="files" />
 3<record id="date">\s*Normal termination of {X,cc:program} at {X,cc:jobdatetime.end}\.\s*</record>
 4<transform process="createDate" xpath=".//cml:scalar[@dictRef='cc:jobtime']" format="DHMS" />
 5<transform process="createDate" xpath=".//cml:scalar[@dictRef='cc:jobdatetime.end']" format="EEE MMM d HH:mm:ss yyyy" />
 6<transform process="pullup" xpath=".//cml:scalar" />
 7<transform process="pullup" xpath=".//cml:scalar[@dictRef='cc:jobdatetime.end']" />
 8<transform process="pullup" xpath=".//cml:scalar[@dictRef='cc:program']" />
 9<transform process="delete" xpath=".//cml:list[count(*)=0]" />
10<transform process="delete" xpath=".//cml:list[count(*)=0]" />