Re: Industrial ELCM error

From: Hana Sevcikova <hana_at_cs.washington.edu>
Date: Wed, 27 Jun 2007 04:41:18 -0700 (PDT)

Quinn,

Your error message suggests that you don't have enough space to
accommodate industrial jobs. Specifically, the variable
vacant_industrial_job_space (I suppose) produces only zeros and thus there
are no gridcells to sample from in order to have a set of alternatives for
the choice model.

Let me know if you find out that this is a wrong hypothesis.

Hana

On Tue, 26 Jun 2007, Quinn Korbulic wrote:

> Hello,
>
> I'm running into this error when running urbanism on our El Paso pilot
> dataset. The error is the same with the milestone release and with
> yesterday's release. I'm not sure why it is failing as this model runs fine
> in previous years.? The error is below.any help is appreciated, thanks.
>
> Simulate ...
> Number of unplaced agents: 38 (in 3 iterations)
> Number of unplaced agents: 8 (in 3 iterations)
> Number of unplaced agents: 5 (in 3 iterations)
> Industrial ELCM chunk 1 out of 1.: completed...3.6 sec,
> total 25396 KB, up 180 KB
> urbansim.gridcell.number_of_industrial_jobs....0.0 sec,
> total 25260 KB, up -136 KB
> Total number of individuals: 90
> Industrial ELCM chunk 1 out of 1.: started on Tue Jun 26
> 20:47:01 2007
> Number of agents in this chunk: 90
> urbansim.gridcell.vacant_industrial_job_space
> urbansim.gridcell.number_of_industrial_jobs....0.0
> sec, total 25004 KB, up -256 KB
> WARNING: Negative values detected in function/method
> 'vacant_industrial_job_space'
> WARNING: Minimum: -153. Negative values clipped to
> zero.
> urbansim.gridcell.vacant_industrial_job_space:
> completed...0.1 sec, total 25036 KB, up -224 KB
> Choice set size: 30
> Sampling locations ...
> WARNING: weight_array sums to 0 or less
> WARNING: weight array dosen't have enough non-zero
> counts, use sample with replacement
> WARNING: prob_array doesn't sum up to 1, and is
> normalized. Sum: 0
> Industrial ELCM chunk 1 out of 1.: completed...0.2 sec,
> total 25132 KB, up -128 KB
> Running Industrial Employment Location Choice Model (from
> urbansim.models.employment_location_choice_model): co
> p 2048 KB
> Simulate year 2003: completed......47.9 sec, total 25132 KB, up
> 11060 KB
> Closing log file:
> c:/urbansim_cache\run_188.2007_06_26_20_40\year_2003_log.txt
> Starting simulation for year 2003: completed...48.0 sec, total 25132 KB,
> up 11064 KB
> Start simulation run: completed............48.0 sec, total 25132 KB, up
> 11068 KB
> Closing log file:
> c:/urbansim_cache\run_188.2007_06_26_20_40\run_multiprocess.log
> Traceback (most recent call last):
> File "C:\workspace\urbansim\model_coordinators\model_system.py", line 572,
> in ?
> s.run(resources)
> File "C:\workspace\urbansim\model_coordinators\model_system.py", line 137,
> in run
>
> write_datasets_to_cache_at_end_of_year=write_datasets_to_cache_at_end_of_yea
> r)
> File "C:\workspace\urbansim\model_coordinators\model_system.py", line 363,
> in _run_year
> self.vardict[outputvar] = self.do_process(locals())
> File "C:\workspace\urbansim\model_coordinators\model_system.py", line 441,
> in do_process
> return eval(ev)
> File "<string>", line 0, in ?
> File "C:\workspace\opus_core\model.py", line 48, in logged_run_method
> results = run_method(*req_args, **opt_args)
> File "C:\workspace\opus_core\configurable.py", line 38, in
> config_run_method
> results = run_method(*req_args, **opt_args)
> File "C:\workspace\urbansim\models\agent_location_choice_model_member.py",
> line 46, in run
> agents_index=agents_index[new_agents_index], **kwargs)
> File "C:\workspace\urbansim\models\agent_location_choice_model.py", line
> 75, in run
> agents_index[unplaced], chunk_specification, run_config=run_config,
> debuglevel=debuglevel)
> File "C:\workspace\urbansim\models\location_choice_model.py", line 121, in
> run
> debuglevel=debuglevel)
> File "C:\workspace\opus_core\choice_model.py", line 141, in run
> specification=specification, coefficients=coefficients)
> File "C:\workspace\opus_core\chunk_model.py", line 72, in run
> dataset, **kwargs).astype(result_array_type)
> File "C:\workspace\urbansim\models\agent_location_choice_model.py", line
> 89, in run_chunk
> result = LocationChoiceModel.run_chunk(self, agents_index, agent_set,
> specification, coefficients)
> File "C:\workspace\urbansim\models\location_choice_model.py", line 140, in
> run_chunk
> choices = ChoiceModel.run_chunk(self,agents_index, agent_set,
> specification, coefficients)
> File "C:\workspace\opus_core\choice_model.py", line 153, in run_chunk
> index = self.get_choice_index(nchoices, agent_set, agents_index,
> agentsubset)
> File "C:\workspace\urbansim\models\location_choice_model.py", line 265, in
> get_choice_index
> weight=self.weights, resources=self.run_config)
> File "C:\workspace\opus_core\configurable.py", line 38, in
> config_run_method
> results = run_method(*req_args, **opt_args)
> File "C:\workspace\opus_core\samplers\weighted_sampler.py", line 103, in
> run
> replace=replace, return_indices=True )
> File "C:\workspace\opus_core\sampling_toolbox.py", line 278, in
> prob2dsample
> cum_prob = ncumsum(p_array)
> File "C:\workspace\opus_core\misc.py", line 497, in ncumsum
> raise ValueError, "The probability array must sum up to 1. It is " + \
> ValueError: The probability array must sum up to 1. It is 0.0
> Running UrbanSim for year 2003 in new process: completed................49.4
> sec
> Traceback (most recent call last):
> File "start_run.py", line 75, in ?
> run_manager.run_run(config)
> File "C:\workspace\opus_core\services\run_server\run_manager.py", line
> 160, in run_run
> model_system.run_multiprocess(run_resources)
> File "C:\workspace\urbansim\model_coordinators\model_system.py", line 479,
> in run_multiprocess
> ForkProcess().fork_new_process(
> File "C:\workspace\opus_core\fork_process.py", line 53, in
> fork_new_process
> raise StandardError("Problem with %s" % module_name)
> StandardError: Problem with urbansim.model_coordinators.model_system
>
> Quinn Korbulic
> GIS Coordinator
> Spatial Applications and Research Center
> New Mexico State University
> Geography Department
> Box 30001, Dept. MAP
> Las Cruces, NM 88003-0001
> VOICE (505) 646-5755
> FAX (505) 646-7430
>
>
>
Received on Wed Jun 27 2007 - 04:41:41 PDT

This archive was generated by hypermail 2.2.0 : Wed Jun 27 2007 - 04:41:43 PDT