Error with Openquake demos on OATS

46 views
Skip to first unread message

Amalfi

unread,
Feb 7, 2012, 8:05:18 PM2/7/12
to OpenQuake Users
Hello, I'm a new user of Openquake

I'm trying to run the demos, and been following the user guide, but it
seems didn't work. It seems that I have error message for the other
examples.

Can anybody help me with this error?

Thanks,
Amalfi

omang@li93-240:/usr/openquake$ openquake --config_file=omang/
demos_12_10_11/simple_fault_demo_hazard/config.gem --output_type=xml
Ignoring GMF_RANDOM_SEED in classical, it's meaningful only in
deterministic, event_based
CRITICAL:root:Job failed with exception: 'file '/usr/openquake/omang/
demos_12_10_11/simple_fault_demo_hazard/source_model_logic_tree.xml':
Element '{http://openquake.org/xmlns/nrml/0.2}logicTreeSet': This
element is not expected. Expected is one of ( {http://www.opengis.net/
gml}description, {http://www.opengis.net/gml}name, {http://
www.opengis.net/gml}boundedBy, {http://openquake.org/xmlns/nrml/0.2}
hazardResult, {http://openquake.org/xmlns/nrml/0.2}sourceModel,
{http://openquake.org/xmlns/nrml/0.2}rupture, {http://openquake.org/
xmlns/nrml/0.2}pointRupture, {http://openquake.org/xmlns/nrml/0.2}
simpleFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
complexFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
arbitrarilyComplexRupture ).'
CRITICAL:root:Job failed with exception: 'file '/usr/openquake/omang/
demos_12_10_11/simple_fault_demo_hazard/source_model_logic_tree.xml':
Element '{http://openquake.org/xmlns/nrml/0.2}logicTreeSet': This
element is not expected. Expected is one of ( {http://www.opengis.net/
gml}description, {http://www.opengis.net/gml}name, {http://
www.opengis.net/gml}boundedBy, {http://openquake.org/xmlns/nrml/0.2}
hazardResult, {http://openquake.org/xmlns/nrml/0.2}sourceModel,
{http://openquake.org/xmlns/nrml/0.2}rupture, {http://openquake.org/
xmlns/nrml/0.2}pointRupture, {http://openquake.org/xmlns/nrml/0.2}
simpleFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
complexFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
arbitrarilyComplexRupture ).'
[2012-02-08 02:02:35,820 #16 li93-240.members.linode.com CRITICAL
MainProcess/10581 root] Job failed with exception: 'file '/usr/
openquake/omang/demos_12_10_11/simple_fault_demo_hazard/
source_model_logic_tree.xml': Element '{http://openquake.org/xmlns/
nrml/0.2}logicTreeSet': This element is not expected. Expected is one
of ( {http://www.opengis.net/gml}description, {http://www.opengis.net/
gml}name, {http://www.opengis.net/gml}boundedBy, {http://openquake.org/
xmlns/nrml/0.2}hazardResult, {http://openquake.org/xmlns/nrml/0.2}
sourceModel, {http://openquake.org/xmlns/nrml/0.2}rupture, {http://
openquake.org/xmlns/nrml/0.2}pointRupture, {http://openquake.org/xmlns/
nrml/0.2}simpleFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
complexFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
arbitrarilyComplexRupture ).'
Traceback (most recent call last):
File "/usr/bin/openquake", line 125, in <module>
job.run_job(FLAGS.config_file, FLAGS.output_type)
File "/usr/lib/pymodules/python2.7/openquake/job/__init__.py", line
82, in run_job
a_job.launch()
File "/usr/lib/pymodules/python2.7/openquake/job/__init__.py", line
474, in launch
self.execute()
File "/usr/lib/pymodules/python2.7/openquake/java.py", line 329, in
unwrap_exception
return func(*targs, **tkwargs)
File "/usr/lib/pymodules/python2.7/openquake/hazard/general.py",
line 69, in preloader
gmpe_lt)
File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py",
line 991, in __init__
basepath, source_model_logictree_path
File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py",
line 607, in __init__
super(SourceModelLogicTree, self).__init__(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/openquake/input/logictree.py",
line 379, in __init__
raise ParsingError(self.filename, self.basepath, str(exc))
openquake.input.logictree.ParsingError: file '/usr/openquake/omang/
demos_12_10_11/simple_fault_demo_hazard/source_model_logic_tree.xml':
Element '{http://openquake.org/xmlns/nrml/0.2}logicTreeSet': This
element is not expected. Expected is one of ( {http://www.opengis.net/
gml}description, {http://www.opengis.net/gml}name, {http://
www.opengis.net/gml}boundedBy, {http://openquake.org/xmlns/nrml/0.2}
hazardResult, {http://openquake.org/xmlns/nrml/0.2}sourceModel,
{http://openquake.org/xmlns/nrml/0.2}rupture, {http://openquake.org/
xmlns/nrml/0.2}pointRupture, {http://openquake.org/xmlns/nrml/0.2}
simpleFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
complexFaultRupture, {http://openquake.org/xmlns/nrml/0.2}
arbitrarilyComplexRupture ).
Aborted
omang@li93-240:/usr/openquake$

Damiano Monelli

unread,
Feb 14, 2012, 4:10:47 AM2/14/12
to openqua...@googlegroups.com
Hi Amalfi,

sorry for the late reply.

You are getting the error because you are using an old version of the demos ('demos_12_10_11').
In your folder (omang/) you should find the latest demos in the folder named demos_14_12_11.
With these demos you should not get any error. Please let us know if you do not have such folder.

Regards,

Damiano

Ben

unread,
Feb 14, 2012, 5:27:43 AM2/14/12
to openqua...@googlegroups.com
Hi Amalfi,
Damiano is correct, you need to use the demos that are in demo_14_12_11, however I noticed that an error was made when creating your account, and you were only provided with folder demos_12_10_11. I have now updated your account with the latest versions of the demos.
Cheers, Ben

Amalfi

unread,
Feb 14, 2012, 7:13:31 AM2/14/12
to OpenQuake Users
Hi Damiano and Ben,

I have the demo_14_12_11 in my folder now, and I have try to run it
and it's working.

Thank you so much!

Cheers,
Amalfi
Reply all
Reply to author
Forward
0 new messages