sriram@sriram-K56CM:/usr/openquake/engine$ openquake --rr Thesis/Models/Thesis_200Km_TypeA_Gaussian_revisedLT_charFaultmodel/lc.ini --hazard-calculation-id 5 --exports xml
[2013-06-08 01:35:44,536 risk #7 sriram-K56CM PROGRESS MainProcess/9279 root] ** pre_executing (risk)
[2013-06-08 01:35:44,595 risk #7 sriram-K56CM CRITICAL MainProcess/9279 root] Calculation failed with exception: 'Element '{http://openquake.org/xmlns/nrml/0.4}exposureModel', attribute '{http://www.opengis.net/gml}id': The attribute '{http://www.opengis.net/gml}id' is not allowed., line 4'
Traceback (most recent call last):
File "/usr/bin/openquake", line 9, in <module>
load_entry_point('openquake.engine==0.9.2', 'console_scripts', 'openquake')()
File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 638, in main
hazard_calculation_id=args.hazard_calculation_id)
File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 500, in run_risk
job, log_level, log_file, exports, 'risk')
File "/usr/lib/python2.7/dist-packages/openquake/engine/engine.py", line 351, in run_calc
_do_run_calc(job, exports, calc, job_type)
File "/usr/lib/python2.7/dist-packages/openquake/engine/engine.py", line 425, in _do_run_calc
calc.pre_execute()
File "/usr/lib/python2.7/dist-packages/openquake/engine/calculators/risk/base.py", line 73, in pre_execute
self.taxonomies = self.get_taxonomies()
File "/usr/lib/python2.7/dist-packages/openquake/engine/calculators/risk/event_based/core.py", line 424, in get_taxonomies
taxonomies = super(EventBasedRiskCalculator, self).get_taxonomies()
File "/usr/lib/python2.7/dist-packages/openquake/engine/calculators/risk/base.py", line 118, in get_taxonomies
exposure = self._store_exposure(queryset.all()[0])
File "/usr/lib/python2.7/dist-packages/openquake/engine/calculators/risk/base.py", line 283, in _store_exposure
parsers.ExposureModelParser(content))
File "/usr/lib/python2.7/dist-packages/openquake/nrmllib/risk/parsers.py", line 69, in __init__
openquake.nrmllib.assert_valid(self._source)
File "/usr/lib/python2.7/dist-packages/openquake/nrmllib/__init__.py", line 56, in assert_valid
_NRML_SCHEMA.assertValid(etree.parse(source))
File "lxml.etree.pyx", line 3017, in lxml.etree._Validator.assertValid (src/lxml/lxml.etree.c:129442)
lxml.etree.DocumentInvalid: Element '{http://openquake.org/xmlns/nrml/0.4}exposureModel', attribute '{http://www.opengis.net/gml}id': The attribute '{http://www.opengis.net/gml}id' is not allowed., line 4
[2013-06-08 01:35:45,640 risk #7 - ERROR MainProcess/9280 supervisor] job process 9279 crashed or terminated
Calculation 7 failed
The exposure model NRML format has change dramatically in recent weeks. Try running the conversion tool to update to the latest format: https:/ /github. com/gem/ oq-nrmllib/ blob/master/ tools/exposure- converter. py