You can subscribe to this list here.
| 2000 |
Jan
(3) |
Feb
(2) |
Mar
|
Apr
(2) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
|
Feb
(10) |
Mar
(16) |
Apr
(22) |
May
(6) |
Jun
(6) |
Jul
(6) |
Aug
(15) |
Sep
(15) |
Oct
(15) |
Nov
(8) |
Dec
(24) |
| 2002 |
Jan
(28) |
Feb
(28) |
Mar
(140) |
Apr
(69) |
May
(58) |
Jun
(58) |
Jul
(37) |
Aug
(21) |
Sep
(36) |
Oct
(43) |
Nov
(38) |
Dec
(64) |
| 2003 |
Jan
(95) |
Feb
(152) |
Mar
(58) |
Apr
(37) |
May
(56) |
Jun
(49) |
Jul
(39) |
Aug
(68) |
Sep
(21) |
Oct
(42) |
Nov
(27) |
Dec
(31) |
| 2004 |
Jan
(61) |
Feb
(63) |
Mar
(56) |
Apr
(38) |
May
(26) |
Jun
(40) |
Jul
(41) |
Aug
(43) |
Sep
(44) |
Oct
(47) |
Nov
(68) |
Dec
(79) |
| 2005 |
Jan
(55) |
Feb
(59) |
Mar
(66) |
Apr
(34) |
May
(65) |
Jun
(49) |
Jul
(70) |
Aug
(71) |
Sep
(60) |
Oct
(63) |
Nov
(58) |
Dec
(40) |
| 2006 |
Jan
(49) |
Feb
(34) |
Mar
(37) |
Apr
(47) |
May
(45) |
Jun
(50) |
Jul
(39) |
Aug
(44) |
Sep
(42) |
Oct
(85) |
Nov
(141) |
Dec
(62) |
| 2007 |
Jan
(87) |
Feb
(120) |
Mar
(134) |
Apr
(48) |
May
(64) |
Jun
(64) |
Jul
(111) |
Aug
(81) |
Sep
(58) |
Oct
(96) |
Nov
(83) |
Dec
(155) |
| 2008 |
Jan
(263) |
Feb
(85) |
Mar
(74) |
Apr
(95) |
May
(78) |
Jun
(127) |
Jul
(129) |
Aug
(150) |
Sep
(120) |
Oct
(96) |
Nov
(85) |
Dec
(169) |
| 2009 |
Jan
(111) |
Feb
(240) |
Mar
(64) |
Apr
(48) |
May
(74) |
Jun
(61) |
Jul
(136) |
Aug
(112) |
Sep
(112) |
Oct
(89) |
Nov
(62) |
Dec
(46) |
| 2010 |
Jan
(84) |
Feb
(103) |
Mar
(87) |
Apr
(116) |
May
(97) |
Jun
(124) |
Jul
(105) |
Aug
(90) |
Sep
(107) |
Oct
(72) |
Nov
(74) |
Dec
(99) |
| 2011 |
Jan
(129) |
Feb
(108) |
Mar
(157) |
Apr
(191) |
May
(229) |
Jun
(115) |
Jul
(140) |
Aug
(138) |
Sep
(90) |
Oct
(55) |
Nov
(93) |
Dec
(71) |
| 2012 |
Jan
(123) |
Feb
(80) |
Mar
(83) |
Apr
(58) |
May
(62) |
Jun
(63) |
Jul
(120) |
Aug
(143) |
Sep
(113) |
Oct
(92) |
Nov
(64) |
Dec
(48) |
| 2013 |
Jan
(75) |
Feb
(87) |
Mar
(112) |
Apr
(104) |
May
(75) |
Jun
(46) |
Jul
(63) |
Aug
(61) |
Sep
(56) |
Oct
(105) |
Nov
(58) |
Dec
(55) |
| 2014 |
Jan
(75) |
Feb
(122) |
Mar
(150) |
Apr
(78) |
May
(79) |
Jun
(70) |
Jul
(50) |
Aug
(69) |
Sep
(60) |
Oct
(81) |
Nov
(27) |
Dec
(18) |
| 2015 |
Jan
(17) |
Feb
(58) |
Mar
(63) |
Apr
(71) |
May
(69) |
Jun
(61) |
Jul
(60) |
Aug
(44) |
Sep
(53) |
Oct
(50) |
Nov
(44) |
Dec
(26) |
| 2016 |
Jan
(26) |
Feb
(23) |
Mar
(26) |
Apr
(48) |
May
(51) |
Jun
(7) |
Jul
(28) |
Aug
(74) |
Sep
(44) |
Oct
(50) |
Nov
(44) |
Dec
(10) |
| 2017 |
Jan
(54) |
Feb
(28) |
Mar
(23) |
Apr
(24) |
May
(32) |
Jun
(52) |
Jul
(13) |
Aug
(20) |
Sep
(41) |
Oct
(45) |
Nov
(29) |
Dec
(21) |
| 2018 |
Jan
(27) |
Feb
(8) |
Mar
(49) |
Apr
(24) |
May
(22) |
Jun
(12) |
Jul
(7) |
Aug
(41) |
Sep
(17) |
Oct
(14) |
Nov
(9) |
Dec
(12) |
| 2019 |
Jan
(21) |
Feb
(5) |
Mar
(8) |
Apr
(35) |
May
(20) |
Jun
(23) |
Jul
(13) |
Aug
(14) |
Sep
(22) |
Oct
(46) |
Nov
(12) |
Dec
(33) |
| 2020 |
Jan
(15) |
Feb
(22) |
Mar
(11) |
Apr
(11) |
May
(36) |
Jun
(27) |
Jul
(10) |
Aug
(2) |
Sep
(11) |
Oct
(17) |
Nov
(16) |
Dec
(8) |
| 2021 |
Jan
(17) |
Feb
(6) |
Mar
(12) |
Apr
(2) |
May
(21) |
Jun
(20) |
Jul
(7) |
Aug
(9) |
Sep
(15) |
Oct
(15) |
Nov
(3) |
Dec
(8) |
| 2022 |
Jan
|
Feb
(16) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(9) |
Jul
(3) |
Aug
(15) |
Sep
(18) |
Oct
(8) |
Nov
|
Dec
(6) |
| 2023 |
Jan
|
Feb
(1) |
Mar
(22) |
Apr
(3) |
May
(13) |
Jun
(2) |
Jul
(3) |
Aug
(9) |
Sep
(9) |
Oct
(6) |
Nov
(2) |
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(2) |
Mar
(8) |
Apr
(4) |
May
(11) |
Jun
|
Jul
(1) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(5) |
Jul
(11) |
Aug
(4) |
Sep
(13) |
Oct
(10) |
Nov
(3) |
Dec
(7) |
|
From: Tatara, E. R. <ta...@an...> - 2025-12-19 22:37:20
|
Please see the online Repast Getting Started guides (https://repast.github.io/docs.html), or the reference section on Data Sets (https://repast.github.io/docs/RepastReference/RepastReference.html#_creating_a_data_set) which shows how to create a data set for a mean (average) and creating charts (https://repast.github.io/docs/RepastReference/RepastReference.html#runtime_gui_charts). From: 永恒 via Repast-interest <rep...@li...> Sent: Thursday, December 18, 2025 8:34 AM To: repast-interest <rep...@li...> Subject: [Repast-interest] how to compute the data hi, the team of repast I am a learner of the repast simphony, I am using the repast simphony 2. 4 version, I hava a agent which has the property of age and group, all agents are divided two groups, group A and group B. I want to statistic average ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd hi, the team of repast I am a learner of the repast simphony, I am using the repast simphony 2.4 version, I hava a agent which has the property of age and group, all agents are divided two groups, group A and group B. I want to statistic average age of each group at each tick, then show the chart. Can you show me the code? Thanks a lot, Mr Wang. |
|
From: <328...@qq...> - 2025-12-18 14:34:21
|
hi, the team of repast I am a learner of the repast simphony, I am using the repast simphony 2.4 version, I hava a agent which has the property of age and group, all agents are divided two groups, group A and group B. I want to statistic average age of each group at each tick, then show the chart. Can you show me the code? Thanks a lot, Mr Wang. |
|
From: Nicholson C. <nic...@gm...> - 2025-12-12 15:22:08
|
Whoops, on a second look, I was remembering correctly. The batch file is split among instances, and each instance runs parameter combinations in that chunk sequentially in a SINGLE VM. So, static variables will carry over within an instance. Sorry for the confusion, and thanks Jonathan for reminding me how this works. Nick > On Dec 12, 2025, at 9:42 AM, Nicholson Collier <NIC...@gm...> wrote: > > Sorry, I was misremembering, the batch mechanism creates a new vm for each instance in the batch run. So, there shouldn't be any issues with static variables from one run to the next. > > So, with that, I’m puzzled. Are there any input files that persist over the course of all the runs, but might get changed in the course of a run? > > Nick > >> On Dec 11, 2025, at 10:26 AM, Willy Ray <wil...@gm...> wrote: >> >> Statics... Interesting. The JVMs on the instances don't get restarted >> in between runs, so static member variables would retain memory across >> the batch? Am I reading what you're saying right? >> >> /w >> >> On Thu, Dec 11, 2025 at 7:01 AM Nicholson Collier >> <nic...@gm...> wrote: >>> >>> Hmm. That is a weird one. Do you have any static variables that get set in the first runs such that they don’t apply in the first runs but would in the following ones — unlikely, but that’s what comes to mind. >>> >>> Nick >>> >>> >>>> On Dec 10, 2025, at 7:58 PM, Willy Ray <wil...@gm...> wrote: >>>> >>>> Hey, this is a weird one. >>>> >>>> I have a disease transmission model, S.I.R.. >>>> >>>> I'm trying to get a histogram of the distribution of the number of >>>> transmissions for the base case. They keep coming out bimodal, and I >>>> can't figure out why. >>>> >>>> I set everything to constant, I make 100 runs on 10 cores. >>>> >>>> This time, I make a scatter of the outputs I'm interested in over the >>>> run number. >>>> >>>> The first 10 iterations (which would seem to equate to the first run >>>> on each of the 10 cores), have values that are way different from the >>>> other 90 runs. >>>> >>>> Like, T-test p-value: < 0.000001 different. >>>> >>>> Is there anything that could account for this? The first run on each >>>> core comes up with its own separate distribution of outcomes? >>>> >>>> I feel like I'm taking crazy pills! >>>> >>>> Thoughts? >>>> >>>> Thanks, Willy >>>> >>>> >>>> _______________________________________________ >>>> Repast-interest mailing list >>>> Rep...@li... >>>> https://lists.sourceforge.net/lists/listinfo/repast-interest >>> > |
|
From: Nicholson C. <nic...@gm...> - 2025-12-12 14:43:19
|
Sorry, I was misremembering, the batch mechanism creates a new vm for each instance in the batch run. So, there shouldn't be any issues with static variables from one run to the next. So, with that, I’m puzzled. Are there any input files that persist over the course of all the runs, but might get changed in the course of a run? Nick > On Dec 11, 2025, at 10:26 AM, Willy Ray <wil...@gm...> wrote: > > Statics... Interesting. The JVMs on the instances don't get restarted > in between runs, so static member variables would retain memory across > the batch? Am I reading what you're saying right? > > /w > > On Thu, Dec 11, 2025 at 7:01 AM Nicholson Collier > <nic...@gm...> wrote: >> >> Hmm. That is a weird one. Do you have any static variables that get set in the first runs such that they don’t apply in the first runs but would in the following ones — unlikely, but that’s what comes to mind. >> >> Nick >> >> >>> On Dec 10, 2025, at 7:58 PM, Willy Ray <wil...@gm...> wrote: >>> >>> Hey, this is a weird one. >>> >>> I have a disease transmission model, S.I.R.. >>> >>> I'm trying to get a histogram of the distribution of the number of >>> transmissions for the base case. They keep coming out bimodal, and I >>> can't figure out why. >>> >>> I set everything to constant, I make 100 runs on 10 cores. >>> >>> This time, I make a scatter of the outputs I'm interested in over the >>> run number. >>> >>> The first 10 iterations (which would seem to equate to the first run >>> on each of the 10 cores), have values that are way different from the >>> other 90 runs. >>> >>> Like, T-test p-value: < 0.000001 different. >>> >>> Is there anything that could account for this? The first run on each >>> core comes up with its own separate distribution of outcomes? >>> >>> I feel like I'm taking crazy pills! >>> >>> Thoughts? >>> >>> Thanks, Willy >>> >>> >>> _______________________________________________ >>> Repast-interest mailing list >>> Rep...@li... >>> https://lists.sourceforge.net/lists/listinfo/repast-interest >> |
|
From: Willy R. <wil...@gm...> - 2025-12-11 15:26:25
|
Statics... Interesting. The JVMs on the instances don't get restarted in between runs, so static member variables would retain memory across the batch? Am I reading what you're saying right? /w On Thu, Dec 11, 2025 at 7:01 AM Nicholson Collier <nic...@gm...> wrote: > > Hmm. That is a weird one. Do you have any static variables that get set in the first runs such that they don’t apply in the first runs but would in the following ones — unlikely, but that’s what comes to mind. > > Nick > > > > On Dec 10, 2025, at 7:58 PM, Willy Ray <wil...@gm...> wrote: > > > > Hey, this is a weird one. > > > > I have a disease transmission model, S.I.R.. > > > > I'm trying to get a histogram of the distribution of the number of > > transmissions for the base case. They keep coming out bimodal, and I > > can't figure out why. > > > > I set everything to constant, I make 100 runs on 10 cores. > > > > This time, I make a scatter of the outputs I'm interested in over the > > run number. > > > > The first 10 iterations (which would seem to equate to the first run > > on each of the 10 cores), have values that are way different from the > > other 90 runs. > > > > Like, T-test p-value: < 0.000001 different. > > > > Is there anything that could account for this? The first run on each > > core comes up with its own separate distribution of outcomes? > > > > I feel like I'm taking crazy pills! > > > > Thoughts? > > > > Thanks, Willy > > > > > > _______________________________________________ > > Repast-interest mailing list > > Rep...@li... > > https://lists.sourceforge.net/lists/listinfo/repast-interest > |
|
From: Nicholson C. <nic...@gm...> - 2025-12-11 14:01:27
|
Hmm. That is a weird one. Do you have any static variables that get set in the first runs such that they don’t apply in the first runs but would in the following ones — unlikely, but that’s what comes to mind. Nick > On Dec 10, 2025, at 7:58 PM, Willy Ray <wil...@gm...> wrote: > > Hey, this is a weird one. > > I have a disease transmission model, S.I.R.. > > I'm trying to get a histogram of the distribution of the number of > transmissions for the base case. They keep coming out bimodal, and I > can't figure out why. > > I set everything to constant, I make 100 runs on 10 cores. > > This time, I make a scatter of the outputs I'm interested in over the > run number. > > The first 10 iterations (which would seem to equate to the first run > on each of the 10 cores), have values that are way different from the > other 90 runs. > > Like, T-test p-value: < 0.000001 different. > > Is there anything that could account for this? The first run on each > core comes up with its own separate distribution of outcomes? > > I feel like I'm taking crazy pills! > > Thoughts? > > Thanks, Willy > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
From: Willy R. <wil...@gm...> - 2025-12-11 00:59:11
|
Hey, this is a weird one. I have a disease transmission model, S.I.R.. I'm trying to get a histogram of the distribution of the number of transmissions for the base case. They keep coming out bimodal, and I can't figure out why. I set everything to constant, I make 100 runs on 10 cores. This time, I make a scatter of the outputs I'm interested in over the run number. The first 10 iterations (which would seem to equate to the first run on each of the 10 cores), have values that are way different from the other 90 runs. Like, T-test p-value: < 0.000001 different. Is there anything that could account for this? The first run on each core comes up with its own separate distribution of outcomes? I feel like I'm taking crazy pills! Thoughts? Thanks, Willy |
|
From: Steve R. <St...@La...> - 2025-11-03 22:57:22
|
Hello Repast community! The NetLogo Center at Northwestern University just announced the first NetLogo user and agent-based modeling conference, and they would be very happy to have a Repast presence there. The conference is planned for 22-24 June at University of Illinois-Chicago. For information, see the conference page: https://www.netlogo.org/netlogo_con_2026/ We are collecting ideas for conference events that best serve the ABM community. To provide input on conference content, please fill out the short survey available here: https://docs.google.com/forms/d/e/1FAIpQLSeVXm7gxU_awbwF3pAZZKSWwIpRioxNbk7kiv2ezgQEO9-mEw/viewform?usp=dialog Thank you, and I hope to see some old friends there. Steve Railsback -- Steve Railsback Lang Railsback & Associates Arcata, California |
|
From: Pietro T. <pie...@un...> - 2025-11-03 20:27:39
|
Dear Nick, many thanks for the news, best, Pietro Il 03/11/25 20:51, Nicholson Collier ha scritto: > Hi Pietro, > > Just wanted to give you a status update on this. We’ve added 3.14 to > our testing. However, numba (one of repast4py’s dependencies) is not > yet 3.14 compatible. They should be within a few weeks, according to > their issue tracker. > > Nick > >> On Oct 13, 2025, at 9:19 AM, Nicholson Collier >> <NIC...@GM...> wrote: >> >> Pietro, >> >> We are planning a release for a few weeks from now, and I’m adding >> 3.14 to the release testing. >> >> thanks, >> >> Nick >> >>> On Oct 12, 2025, at 7:25 AM, Pietro Terna via Repast-interest >>> <rep...@li...> wrote: >>> >>> >>> Dear Nick and all, >>> >>> when do you plan to move repast4py to work with python3.14? >>> >>> Best, Pietro >>> >>> -- >>> Democrito, che ’l mondo a caso pone (Inferno, IV, 136) >>> >>> "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. >>> >>> Ahttps://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. >>> Asterischi da Verso Itaca ahttps://verso-itaca.it/asterischi-da-verso-itaca/ >>> >>> Home page:https://terna.to.it >>> Bluesky:https://bsky.app/profile/pietroterna.bsky.social >>> Mastodon:https://mastodon.uno/@PietroTerna >>> X:https://x.com/PietroTerna >>> Instagram:https://www.instagram.com/pietroterna/ >>> >>> >>> _______________________________________________ >>> Repast-interest mailing list >>> Rep...@li... >>> https://lists.sourceforge.net/lists/listinfo/repast-interest >> > -- Democrito, che ’l mondo a caso pone (Inferno, IV, 136) "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. Ahttps://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. Asterischi da Verso Itaca ahttps://verso-itaca.it/asterischi-da-verso-itaca/ Home page:https://terna.to.it Bluesky:https://bsky.app/profile/pietroterna.bsky.social Mastodon:https://mastodon.uno/@PietroTerna X:https://x.com/PietroTerna Instagram:https://www.instagram.com/pietroterna/ |
|
From: Nicholson C. <nic...@gm...> - 2025-11-03 19:51:44
|
Hi Pietro, Just wanted to give you a status update on this. We’ve added 3.14 to our testing. However, numba (one of repast4py’s dependencies) is not yet 3.14 compatible. They should be within a few weeks, according to their issue tracker. Nick > On Oct 13, 2025, at 9:19 AM, Nicholson Collier <NIC...@GM...> wrote: > > Pietro, > > We are planning a release for a few weeks from now, and I’m adding 3.14 to the release testing. > > thanks, > > Nick > >> On Oct 12, 2025, at 7:25 AM, Pietro Terna via Repast-interest <rep...@li...> wrote: >> >> >> Dear Nick and all, >> >> when do you plan to move repast4py to work with python3.14? >> >> Best, Pietro >> >> -- >> Democrito, che ’l mondo a caso pone (Inferno, IV, 136) >> >> "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. >> >> A https://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. >> Asterischi da Verso Itaca a https://verso-itaca.it/asterischi-da-verso-itaca/ >> >> Home page: https://terna.to.it <https://terna.to.it/> >> Bluesky: https://bsky.app/profile/pietroterna.bsky.social >> Mastodon: https://mastodon.uno/@PietroTerna >> X: https://x.com/PietroTerna >> Instagram: https://www.instagram.com/pietroterna/ >> >> >> _______________________________________________ >> Repast-interest mailing list >> Rep...@li... >> https://lists.sourceforge.net/lists/listinfo/repast-interest > |
|
From: Pietro T. <pie...@un...> - 2025-10-13 17:00:12
|
Dear Nick many thanks in advance, Pietro Il 13/10/25 15:19, Nicholson Collier ha scritto: > Pietro, > > We are planning a release for a few weeks from now, and I’m adding > 3.14 to the release testing. > > thanks, > > Nick > >> On Oct 12, 2025, at 7:25 AM, Pietro Terna via Repast-interest >> <rep...@li...> wrote: >> >> >> Dear Nick and all, >> >> when do you plan to move repast4py to work with python3.14? >> >> Best, Pietro >> >> -- >> Democrito, che ’l mondo a caso pone (Inferno, IV, 136) >> >> "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. >> >> Ahttps://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. >> Asterischi da Verso Itaca ahttps://verso-itaca.it/asterischi-da-verso-itaca/ >> >> Home page:https://terna.to.it >> Bluesky:https://bsky.app/profile/pietroterna.bsky.social >> Mastodon:https://mastodon.uno/@PietroTerna >> X:https://x.com/PietroTerna >> Instagram:https://www.instagram.com/pietroterna/ >> >> >> _______________________________________________ >> Repast-interest mailing list >> Rep...@li... >> https://lists.sourceforge.net/lists/listinfo/repast-interest > -- Democrito, che ’l mondo a caso pone (Inferno, IV, 136) "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. Ahttps://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. Asterischi da Verso Itaca ahttps://verso-itaca.it/asterischi-da-verso-itaca/ Home page:https://terna.to.it Bluesky:https://bsky.app/profile/pietroterna.bsky.social Mastodon:https://mastodon.uno/@PietroTerna X:https://x.com/PietroTerna Instagram:https://www.instagram.com/pietroterna/ |
|
From: Nicholson C. <nic...@gm...> - 2025-10-13 13:19:46
|
Pietro, We are planning a release for a few weeks from now, and I’m adding 3.14 to the release testing. thanks, Nick > On Oct 12, 2025, at 7:25 AM, Pietro Terna via Repast-interest <rep...@li...> wrote: > > > Dear Nick and all, > > when do you plan to move repast4py to work with python3.14? > > Best, Pietro > > -- > Democrito, che ’l mondo a caso pone (Inferno, IV, 136) > > "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. > > A https://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. > Asterischi da Verso Itaca a https://verso-itaca.it/asterischi-da-verso-itaca/ > > Home page: https://terna.to.it <https://terna.to.it/> > Bluesky: https://bsky.app/profile/pietroterna.bsky.social > Mastodon: https://mastodon.uno/@PietroTerna > X: https://x.com/PietroTerna > Instagram: https://www.instagram.com/pietroterna/ > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
From: Pietro T. <pie...@un...> - 2025-10-12 11:53:35
|
Dear Nick and all, when do you plan to move repast4py to work with python3.14? Best, Pietro -- Democrito, che ’l mondo a caso pone (Inferno, IV, 136) "It is the hallmark of any deep truth that its negation is also a deep truth." Niels Bohr. Ahttps://terna.to.it/breviArticoli.html riporto dei miei brevi articoli su temi di attualità. Asterischi da Verso Itaca ahttps://verso-itaca.it/asterischi-da-verso-itaca/ Home page:https://terna.to.it Bluesky:https://bsky.app/profile/pietroterna.bsky.social Mastodon:https://mastodon.uno/@PietroTerna X:https://x.com/PietroTerna Instagram:https://www.instagram.com/pietroterna/ |
|
From: Nicholson C. <nic...@gm...> - 2025-10-03 14:32:55
|
Can you post the stack trace for the single failing run? Are there any other error occuring - perhaps some previous error is stopping the objMap from being set. Nick > On Oct 1, 2025, at 3:50 PM, Van Parunak <van...@gm...> wrote: > > I've got lots of static variables, but most are reset by the code in each run. The only ones that are defined outside of a method (in the class definition) are constants, > > >> private static final int QUERY = 0; >> private static final int DATA = 1; >> private static final int KERNEL = 2; > and these were in the previous version of the code that ran OK. > > I'm not fiddling with any Repast internals. Each run does read in a data set that configures a specific experiment, but the only change here is that instead of storing the graphs in Repast's network structure supported by Contexts, I'm storing them in static ArrayLists, TreeMaps, and TreeSets, and again, each run stores them afresh, so I'm not depending on their persistence across runs. > > I have noticed that if I'm in batch mode, even if I define only a single configuration (no iteration over batch counter or experimental directory), the objMap error happens at the end of the run. So it's not triggered by trying to move to the next configuration. Here's my batch parameters file. Why does batch mode think it needs to fetch another config? > > Van > > >> <?xml version="1.0" encoding="utf-8"?> >> <sweep runs="1"> >> <parameter name="cosineQ" type="constant" constant_type="boolean" value="true"/> >> <parameter name="edgeEvap" type="constant" constant_type="double" value="0.1"/> >> <parameter name="nodeAntQ" type="constant" constant_type="boolean" value="true"/> >> <parameter name="logPherQ" type="constant" constant_type="boolean" value="false"/> >> <parameter name="logMatchQ" type="constant" constant_type="boolean" value="false"/> >> <parameter name="edgeDep" type="constant" constant_type="double" value="0.1"/> >> <parameter name="termCount" type="constant" constant_type="int" value="10"/> >> <parameter name="logFinalPeersQ" type="constant" constant_type="boolean" value="true"/> >> <parameter name="batchCount" type="constant" constant_type="int" value="1"/> >> <parameter name="quorBias" type="constant" constant_type="double" value="2.0"/> >> <parameter name="weightNPQ" type="constant" constant_type="boolean" value="true"/> >> <parameter name="trackGraphSizeQ" type="constant" constant_type="boolean" value="false"/> >> <parameter name="dataAblateP" type="constant" constant_type="double" value="0.0"/> >> <parameter name="detailMod" type="constant" constant_type="int" value="0"/> >> <parameter name="expDir" type="constant" constant_type="java.lang.String" value="/Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_6000_4_D_BA_6000_5"/> >> <parameter name="quorIndexSize" type="constant" constant_type="int" value="32"/> >> <parameter name="matchData0Q" type="constant" constant_type="boolean" value="false"/> >> <parameter name="quorAntQ" type="constant" constant_type="boolean" value="false"/> >> <parameter name="termCrit" type="constant" constant_type="java.lang.String" value="edgeCount"/> >> <parameter name="queryAblateP" type="constant" constant_type="double" value="0.0"/> >> <parameter name="numAnts" type="constant" constant_type="int" value="100"/> >> <parameter name="npBias" type="constant" constant_type="double" value="1.0"/> >> <parameter name="nodeEvap" type="constant" constant_type="double" value="0.1"/> >> <parameter name="nodeDep" type="constant" constant_type="double" value="0.1"/> >> <parameter name="logInitPeersQ" type="constant" constant_type="boolean" value="true"/> >> <parameter name="queryAnon" type="constant" constant_type="double" value="0.0"/> >> <parameter name="edgeThresh" type="constant" constant_type="double" value="0.1"/> >> <parameter name="raMemory" type="constant" constant_type="double" value="0.5"/> >> <parameter name="logAntQ" type="constant" constant_type="boolean" value="false"/> >> <parameter name="fileDialogQ" type="constant" constant_type="boolean" value="false"/> >> </sweep> > > > On 10/1/25 14:41, Nicholson Collier wrote: >> Hi Van, >> >> It’s hard to see how this can normally occur — the objMap is set whenever a run starts, so it should never be null. Are you doing anything in your code that manipulates data sets or any internals programmatically? Are you setting any static variables that may persist over the course of multiple batch runs? >> >> thanks, >> >> Nick >> >>> On Oct 1, 2025, at 11:00 AM, Van Parunak <van...@gm...> <mailto:van...@gm...> wrote: >>> >>> One great benefit of batch mode is being able to do repeated runs with different random seeds (say, by assigning a range of numbers to a parameter like batchCount, or by assigning a space separated list of directories containing specs for different models). >>> >>> I have a code base that was doing all this just fine. I made some changes in my code, and Repast runs a single configuration (both through the standard interface, and in batch mode) just fine. But if I set up a batch run that iterates my batchCount or expDir parameters, it runs the first configuration, then crashes with the error string below, complaining about a null value for this.objMap. None of the lines in the error string has anything to do with my code. >>> >>> I tried to set breakpoints in my code and run batch mode under the debugger, but the debugger apparently doesn't work in batch mode--none of the breakpoints stops the execution. On reflection, this makes sense--the debugger is running each instance in its own VM. >>> >>> How can I find out what I changed that broke batch mode? >>> >>> I'm guessing that this.objMap is used by Repast to iterate over successive batch configurations. Output logs from the first configuration, the one that runs successfully, have all been closed and look good. What kind of statement in my code could allow the first configuration to run successfully, but interfere with subsequent ones? >>> >>> I've appended my parameters.xml file after the error trace below. >>> >>> >>> Van >>> >>> >>> >>> ERROR MSG: >>> >>> >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - ERROR [main] 10:32:43,934 MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error while running model >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" because "this.objMap" is null >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager$ScheduledDataSet.reset(AbstractDataSetManager.java:112) ~[repast.simphony.data.jar:?] >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager.runEnded(AbstractDataSetManager.java:249) ~[repast.simphony.data.jar:?] >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.BatchRunDataSetManager.runEnded(BatchRunDataSetManager.java:52) ~[repast.simphony.data.jar:?] >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.engine.DataInitActionCreator$1.runCleanup(DataInitActionCreator.java:86) ~[repast.simphony.data.jar:?] >>> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:286) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:1) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:292) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:295) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:288) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:284) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:291) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:444) ~[repast.simphony.core.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.OneRunBatchRunner.run(OneRunBatchRunner.java:104) ~[repast.simphony.distributed.batch.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.run(InstanceRunner.java:193) ~[repast.simphony.distributed.batch.jar:?] >>> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:215) ~[repast.simphony.distributed.batch.jar:?] >>> >>> BATCH PARAMETERS: >>> >>> <?xml version="1.0" ?><sweep runs="1"><parameter name="cosineQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="edgeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeAntQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="logPherQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="logMatchQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="edgeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="termCount" type="constant" constant_type="int" value="10"></parameter><parameter name="logFinalPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="quorBias" type="constant" constant_type="double" value="2.0"></parameter><parameter name="weightNPQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="trackGraphSizeQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="dataAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="detailMod" type="constant" constant_type="int" value="0"></parameter><parameter name="quorIndexSize" type="constant" constant_type="int" value="32"></parameter><parameter name="matchData0Q" type="constant" constant_type="boolean" value="false"></parameter><parameter name="quorAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="termCrit" type="constant" constant_type="java.lang.String" value="edgeCount"></parameter><parameter name="queryAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="numAnts" type="constant" constant_type="int" value="100"></parameter><parameter name="npBias" type="constant" constant_type="double" value="1.0"></parameter><parameter name="nodeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="logInitPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="queryAnon" type="constant" constant_type="double" value="0.0"></parameter><parameter name="edgeThresh" type="constant" constant_type="double" value="0.1"></parameter><parameter name="raMemory" type="constant" constant_type="double" value="0.5"></parameter><parameter name="logAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="fileDialogQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="batchCount" type="number" number_type="int" start="1" end="5" step="1"><parameter name="expDir" type="list" value_type="java.lang.String" values="/Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_1000_4_D_BA_1000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_2000_4_D_BA_2000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_20_4_D_BA_20_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_3000_4_D_BA_3000_5_2/"></parameter></parameter></sweep> >>> >>> >>> >>> >>> _______________________________________________ >>> Repast-interest mailing list >>> Rep...@li... <mailto:Rep...@li...> >>> https://lists.sourceforge.net/lists/listinfo/repast-interest > -- > -- > Mr. and Mrs. Van Parunak > Grandma's House, LLC > 1027 Ferdon Road > Ann Arbor, MI 48104 > Matthew 11:28 > > www.grandmas-house.com <https://www.grandmas-house.com/> |
|
From: Van P. <van...@gm...> - 2025-10-01 19:50:27
|
I've got lots of static variables, but most are reset by the code in each run. The only ones that are defined outside of a method (in the class definition) are constants, > private static final int QUERY = 0; > private static final int DATA = 1; > private static final int KERNEL = 2; and these were in the previous version of the code that ran OK. I'm not fiddling with any Repast internals. Each run does read in a data set that configures a specific experiment, but the only change here is that instead of storing the graphs in Repast's network structure supported by Contexts, I'm storing them in static ArrayLists, TreeMaps, and TreeSets, and again, each run stores them afresh, so I'm not depending on their persistence across runs. I have noticed that if I'm in batch mode, even if I define only a single configuration (no iteration over batch counter or experimental directory), the objMap error happens at the end of the run. So it's not triggered by trying to move to the next configuration. Here's my batch parameters file. Why does batch mode think it needs to fetch another config? Van > <?xml version="1.0" encoding="utf-8"?> > <sweep runs="1"> > <parameter name="cosineQ" type="constant" constant_type="boolean" > value="true"/> > <parameter name="edgeEvap" type="constant" constant_type="double" > value="0.1"/> > <parameter name="nodeAntQ" type="constant" constant_type="boolean" > value="true"/> > <parameter name="logPherQ" type="constant" constant_type="boolean" > value="false"/> > <parameter name="logMatchQ" type="constant" > constant_type="boolean" value="false"/> > <parameter name="edgeDep" type="constant" constant_type="double" > value="0.1"/> > <parameter name="termCount" type="constant" constant_type="int" > value="10"/> > <parameter name="logFinalPeersQ" type="constant" > constant_type="boolean" value="true"/> > <parameter name="batchCount" type="constant" constant_type="int" > value="1"/> > <parameter name="quorBias" type="constant" constant_type="double" > value="2.0"/> > <parameter name="weightNPQ" type="constant" > constant_type="boolean" value="true"/> > <parameter name="trackGraphSizeQ" type="constant" > constant_type="boolean" value="false"/> > <parameter name="dataAblateP" type="constant" > constant_type="double" value="0.0"/> > <parameter name="detailMod" type="constant" constant_type="int" > value="0"/> > <parameter name="expDir" type="constant" > constant_type="java.lang.String" > value="/Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_6000_4_D_BA_6000_5"/> > <parameter name="quorIndexSize" type="constant" > constant_type="int" value="32"/> > <parameter name="matchData0Q" type="constant" > constant_type="boolean" value="false"/> > <parameter name="quorAntQ" type="constant" constant_type="boolean" > value="false"/> > <parameter name="termCrit" type="constant" > constant_type="java.lang.String" value="edgeCount"/> > <parameter name="queryAblateP" type="constant" > constant_type="double" value="0.0"/> > <parameter name="numAnts" type="constant" constant_type="int" > value="100"/> > <parameter name="npBias" type="constant" constant_type="double" > value="1.0"/> > <parameter name="nodeEvap" type="constant" constant_type="double" > value="0.1"/> > <parameter name="nodeDep" type="constant" constant_type="double" > value="0.1"/> > <parameter name="logInitPeersQ" type="constant" > constant_type="boolean" value="true"/> > <parameter name="queryAnon" type="constant" constant_type="double" > value="0.0"/> > <parameter name="edgeThresh" type="constant" > constant_type="double" value="0.1"/> > <parameter name="raMemory" type="constant" constant_type="double" > value="0.5"/> > <parameter name="logAntQ" type="constant" constant_type="boolean" > value="false"/> > <parameter name="fileDialogQ" type="constant" > constant_type="boolean" value="false"/> > </sweep> On 10/1/25 14:41, Nicholson Collier wrote: > Hi Van, > > It’s hard to see how this can normally occur — the objMap is set whenever a run starts, so it should never be null. Are you doing anything in your code that manipulates data sets or any internals programmatically? Are you setting any static variables that may persist over the course of multiple batch runs? > > thanks, > > Nick > >> On Oct 1, 2025, at 11:00 AM, Van Parunak<van...@gm...> wrote: >> >> One great benefit of batch mode is being able to do repeated runs with different random seeds (say, by assigning a range of numbers to a parameter like batchCount, or by assigning a space separated list of directories containing specs for different models). >> >> I have a code base that was doing all this just fine. I made some changes in my code, and Repast runs a single configuration (both through the standard interface, and in batch mode) just fine. But if I set up a batch run that iterates my batchCount or expDir parameters, it runs the first configuration, then crashes with the error string below, complaining about a null value for this.objMap. None of the lines in the error string has anything to do with my code. >> >> I tried to set breakpoints in my code and run batch mode under the debugger, but the debugger apparently doesn't work in batch mode--none of the breakpoints stops the execution. On reflection, this makes sense--the debugger is running each instance in its own VM. >> >> How can I find out what I changed that broke batch mode? >> >> I'm guessing that this.objMap is used by Repast to iterate over successive batch configurations. Output logs from the first configuration, the one that runs successfully, have all been closed and look good. What kind of statement in my code could allow the first configuration to run successfully, but interfere with subsequent ones? >> >> I've appended my parameters.xml file after the error trace below. >> >> >> Van >> >> >> >> ERROR MSG: >> >> >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - ERROR [main] 10:32:43,934 MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error while running model >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" because "this.objMap" is null >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager$ScheduledDataSet.reset(AbstractDataSetManager.java:112) ~[repast.simphony.data.jar:?] >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager.runEnded(AbstractDataSetManager.java:249) ~[repast.simphony.data.jar:?] >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.BatchRunDataSetManager.runEnded(BatchRunDataSetManager.java:52) ~[repast.simphony.data.jar:?] >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.engine.DataInitActionCreator$1.runCleanup(DataInitActionCreator.java:86) ~[repast.simphony.data.jar:?] >> INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:286) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:1) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:292) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:295) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:288) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:284) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:291) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:444) ~[repast.simphony.core.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.OneRunBatchRunner.run(OneRunBatchRunner.java:104) ~[repast.simphony.distributed.batch.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.run(InstanceRunner.java:193) ~[repast.simphony.distributed.batch.jar:?] >> INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:215) ~[repast.simphony.distributed.batch.jar:?] >> >> BATCH PARAMETERS: >> >> <?xml version="1.0" ?><sweep runs="1"><parameter name="cosineQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="edgeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeAntQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="logPherQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="logMatchQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="edgeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="termCount" type="constant" constant_type="int" value="10"></parameter><parameter name="logFinalPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="quorBias" type="constant" constant_type="double" value="2.0"></parameter><parameter name="weightNPQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="trackGraphSizeQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="dataAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="detailMod" type="constant" constant_type="int" value="0"></parameter><parameter name="quorIndexSize" type="constant" constant_type="int" value="32"></parameter><parameter name="matchData0Q" type="constant" constant_type="boolean" value="false"></parameter><parameter name="quorAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="termCrit" type="constant" constant_type="java.lang.String" value="edgeCount"></parameter><parameter name="queryAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="numAnts" type="constant" constant_type="int" value="100"></parameter><parameter name="npBias" type="constant" constant_type="double" value="1.0"></parameter><parameter name="nodeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="logInitPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="queryAnon" type="constant" constant_type="double" value="0.0"></parameter><parameter name="edgeThresh" type="constant" constant_type="double" value="0.1"></parameter><parameter name="raMemory" type="constant" constant_type="double" value="0.5"></parameter><parameter name="logAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="fileDialogQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="batchCount" type="number" number_type="int" start="1" end="5" step="1"><parameter name="expDir" type="list" value_type="java.lang.String" values="/Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_1000_4_D_BA_1000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_2000_4_D_BA_2000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_20_4_D_BA_20_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_3000_4_D_BA_3000_5_2/"></parameter></parameter></sweep> >> >> >> >> >> _______________________________________________ >> Repast-interest mailing list >> Rep...@li... >> https://lists.sourceforge.net/lists/listinfo/repast-interest -- -- Mr. and Mrs. Van Parunak Grandma's House, LLC 1027 Ferdon Road Ann Arbor, MI 48104 Matthew 11:28 www.grandmas-house.com <https://www.grandmas-house.com> |
|
From: Nicholson C. <nic...@gm...> - 2025-10-01 18:42:05
|
Hi Van, It’s hard to see how this can normally occur — the objMap is set whenever a run starts, so it should never be null. Are you doing anything in your code that manipulates data sets or any internals programmatically? Are you setting any static variables that may persist over the course of multiple batch runs? thanks, Nick > On Oct 1, 2025, at 11:00 AM, Van Parunak <van...@gm...> wrote: > > One great benefit of batch mode is being able to do repeated runs with different random seeds (say, by assigning a range of numbers to a parameter like batchCount, or by assigning a space separated list of directories containing specs for different models). > > I have a code base that was doing all this just fine. I made some changes in my code, and Repast runs a single configuration (both through the standard interface, and in batch mode) just fine. But if I set up a batch run that iterates my batchCount or expDir parameters, it runs the first configuration, then crashes with the error string below, complaining about a null value for this.objMap. None of the lines in the error string has anything to do with my code. > > I tried to set breakpoints in my code and run batch mode under the debugger, but the debugger apparently doesn't work in batch mode--none of the breakpoints stops the execution. On reflection, this makes sense--the debugger is running each instance in its own VM. > > How can I find out what I changed that broke batch mode? > > I'm guessing that this.objMap is used by Repast to iterate over successive batch configurations. Output logs from the first configuration, the one that runs successfully, have all been closed and look good. What kind of statement in my code could allow the first configuration to run successfully, but interfere with subsequent ones? > > I've appended my parameters.xml file after the error trace below. > > > Van > > > > ERROR MSG: > > > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - ERROR [main] 10:32:43,934 MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error while running model > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" because "this.objMap" is null > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager$ScheduledDataSet.reset(AbstractDataSetManager.java:112) ~[repast.simphony.data.jar:?] > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager.runEnded(AbstractDataSetManager.java:249) ~[repast.simphony.data.jar:?] > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.BatchRunDataSetManager.runEnded(BatchRunDataSetManager.java:52) ~[repast.simphony.data.jar:?] > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.engine.DataInitActionCreator$1.runCleanup(DataInitActionCreator.java:86) ~[repast.simphony.data.jar:?] > INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:286) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:1) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:292) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:295) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:288) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:284) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:291) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:444) ~[repast.simphony.core.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.OneRunBatchRunner.run(OneRunBatchRunner.java:104) ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.run(InstanceRunner.java:193) ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:215) ~[repast.simphony.distributed.batch.jar:?] > > BATCH PARAMETERS: > > <?xml version="1.0" ?><sweep runs="1"><parameter name="cosineQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="edgeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeAntQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="logPherQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="logMatchQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="edgeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="termCount" type="constant" constant_type="int" value="10"></parameter><parameter name="logFinalPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="quorBias" type="constant" constant_type="double" value="2.0"></parameter><parameter name="weightNPQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="trackGraphSizeQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="dataAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="detailMod" type="constant" constant_type="int" value="0"></parameter><parameter name="quorIndexSize" type="constant" constant_type="int" value="32"></parameter><parameter name="matchData0Q" type="constant" constant_type="boolean" value="false"></parameter><parameter name="quorAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="termCrit" type="constant" constant_type="java.lang.String" value="edgeCount"></parameter><parameter name="queryAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="numAnts" type="constant" constant_type="int" value="100"></parameter><parameter name="npBias" type="constant" constant_type="double" value="1.0"></parameter><parameter name="nodeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="logInitPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="queryAnon" type="constant" constant_type="double" value="0.0"></parameter><parameter name="edgeThresh" type="constant" constant_type="double" value="0.1"></parameter><parameter name="raMemory" type="constant" constant_type="double" value="0.5"></parameter><parameter name="logAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="fileDialogQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="batchCount" type="number" number_type="int" start="1" end="5" step="1"><parameter name="expDir" type="list" value_type="java.lang.String" values="/Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_1000_4_D_BA_1000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_2000_4_D_BA_2000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_20_4_D_BA_20_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_3000_4_D_BA_3000_5_2/"></parameter></parameter></sweep> > > > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
From: Van P. <van...@gm...> - 2025-10-01 15:00:40
|
One great benefit of batch mode is being able to do repeated runs with different random seeds (say, by assigning a range of numbers to a parameter like batchCount, or by assigning a space separated list of directories containing specs for different models). I have a code base that was doing all this just fine. I made some changes in my code, and Repast runs a single configuration (both through the standard interface, and in batch mode) just fine. But if I set up a batch run that iterates my batchCount or expDir parameters, it runs the first configuration, then crashes with the error string below, complaining about a null value for this.objMap. None of the lines in the error string has anything to do with my code. I tried to set breakpoints in my code and run batch mode under the debugger, but the debugger apparently doesn't work in batch mode--none of the breakpoints stops the execution. On reflection, this makes sense--the debugger is running each instance in its own VM. How can I find out what I changed that broke batch mode? I'm guessing that this.objMap is used by Repast to iterate over successive batch configurations. Output logs from the first configuration, the one that runs successfully, have all been closed and look good. What kind of statement in my code could allow the first configuration to run successfully, but interfere with subsequent ones? I've appended my parameters.xml file after the error trace below. Van ERROR MSG: INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - ERROR [main] 10:32:43,934 MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error while running model INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" because "this.objMap" is null INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager$ScheduledDataSet.reset(AbstractDataSetManager.java:112) ~[repast.simphony.data.jar:?] INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.AbstractDataSetManager.runEnded(AbstractDataSetManager.java:249) ~[repast.simphony.data.jar:?] INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.BatchRunDataSetManager.runEnded(BatchRunDataSetManager.java:52) ~[repast.simphony.data.jar:?] INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.data2.engine.DataInitActionCreator$1.runCleanup(DataInitActionCreator.java:86) ~[repast.simphony.data.jar:?] INFO [Thread-1] 10:32:43,940 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:286) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:1) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:292) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:295) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:288) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:284) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:291) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:444) ~[repast.simphony.core.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.OneRunBatchRunner.run(OneRunBatchRunner.java:104) ~[repast.simphony.distributed.batch.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.run(InstanceRunner.java:193) ~[repast.simphony.distributed.batch.jar:?] INFO [Thread-1] 10:32:43,941 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:215) ~[repast.simphony.distributed.batch.jar:?] BATCH PARAMETERS: <?xml version="1.0" ?><sweep runs="1"><parameter name="cosineQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="edgeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeAntQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="logPherQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="logMatchQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="edgeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="termCount" type="constant" constant_type="int" value="10"></parameter><parameter name="logFinalPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="quorBias" type="constant" constant_type="double" value="2.0"></parameter><parameter name="weightNPQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="trackGraphSizeQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="dataAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="detailMod" type="constant" constant_type="int" value="0"></parameter><parameter name="quorIndexSize" type="constant" constant_type="int" value="32"></parameter><parameter name="matchData0Q" type="constant" constant_type="boolean" value="false"></parameter><parameter name="quorAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="termCrit" type="constant" constant_type="java.lang.String" value="edgeCount"></parameter><parameter name="queryAblateP" type="constant" constant_type="double" value="0.0"></parameter><parameter name="numAnts" type="constant" constant_type="int" value="100"></parameter><parameter name="npBias" type="constant" constant_type="double" value="1.0"></parameter><parameter name="nodeEvap" type="constant" constant_type="double" value="0.1"></parameter><parameter name="nodeDep" type="constant" constant_type="double" value="0.1"></parameter><parameter name="logInitPeersQ" type="constant" constant_type="boolean" value="true"></parameter><parameter name="queryAnon" type="constant" constant_type="double" value="0.0"></parameter><parameter name="edgeThresh" type="constant" constant_type="double" value="0.1"></parameter><parameter name="raMemory" type="constant" constant_type="double" value="0.5"></parameter><parameter name="logAntQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="fileDialogQ" type="constant" constant_type="boolean" value="false"></parameter><parameter name="batchCount" type="number" number_type="int" start="1" end="5" step="1"><parameter name="expDir" type="list" value_type="java.lang.String" values="/Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_1000_4_D_BA_1000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_2000_4_D_BA_2000_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_20_4_D_BA_20_5/ /Users/vanparunak/ASSIST/V100_K_BA_10_4_Q_BA_3000_4_D_BA_3000_5_2/"></parameter></parameter></sweep> |
|
From: Van P. <van...@gm...> - 2025-10-01 10:56:28
|
Ah, "output directory." I had that set wrong. Thanks. So now the model starts, but after running one configuration, when I'd expect it to go on to the next, it complains about a null pointer inside Repast code on "this.objMap". I'm used to seeing and fixing such errors in my code, but what could be causing this? > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession - > ERROR [main] 06:52:35,531 > MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error > while running model > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession - > java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" > because "this.objMap" is null > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.data2.AbstractDataSetManager$ScheduledDataSet.reset(AbstractDataSetManager.java:112) > ~[repast.simphony.data.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.data2.AbstractDataSetManager.runEnded(AbstractDataSetManager.java:249) > ~[repast.simphony.data.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.data2.BatchRunDataSetManager.runEnded(BatchRunDataSetManager.java:52) > ~[repast.simphony.data.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.data2.engine.DataInitActionCreator$1.runCleanup(DataInitActionCreator.java:86) > ~[repast.simphony.data.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:286) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.engine.controller.DefaultController$5.visit(DefaultController.java:1) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:292) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.util.collections.NaryTree.preOrderTraverals(NaryTree.java:295) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.util.collections.NaryTree.preOrderTraversal(NaryTree.java:288) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:284) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:291) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.engine.controller.DefaultController.runCleanup(DefaultController.java:444) > ~[repast.simphony.core.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.batch.OneRunBatchRunner.run(OneRunBatchRunner.java:104) > ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.batch.InstanceRunner.run(InstanceRunner.java:193) > ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-2] 06:52:35,537 repast.simphony.batch.ssh.LocalSession > - at > repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:215) > ~[repast.simp On 9/30/25 21:46, Ozik, Jonathan wrote: > Hi Van, > > This should be copied over to your output directory when you do batch > runs. You should have a *.rs folder in your project, which contains a > user_path.xml. Do you see it? > > Jonathan > ------------------------------------------------------------------------ > *From:* Van Parunak <van...@gm...> > *Sent:* Tuesday, September 30, 2025 8:28 PM > *To:* Repast List <rep...@li...> > *Subject:* [Repast-interest] Missing "user_path.xml" in batch run? > Batch processing has been working great for me, but this evening it > failed with the error stream below, complaining ab out the absence of > scenario. rs/user_path. xml. What is this, and how can I make it show > up? INFO [Thread-2] 21: 14: 32,793 > repast. simphony. batch. ssh. LocalSession > ZjQcmQRYFpfptBannerStart > This Message Is From an External Sender > This message came from outside your organization. > ZjQcmQRYFpfptBannerEnd > Batch processing has been working great for me, but this evening it > failed with the error stream below, complaining ab out the absence of > scenario.rs/user_path.xml. What is this, and how can I make it show up? > > > INFO [Thread-2] 21:14:32,793 repast.simphony.batch.ssh.LocalSession - > ERROR [main] 21:14:32,788 > MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error > while running model > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > repast.simphony.scenario.ScenarioLoadException: > /private/var/folders/6m/j2vdcg7x7qd0330j839pr0v00000gn/T/simphony_model_1759281266864/scenario.rs/user_path.xml > (No such file or directory) > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:229) > ~[repast.simphony.scenario.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.batch.OneRunBatchRunner.init(OneRunBatchRunner.java:53) > ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.batch.OneRunBatchRunner.<init>(OneRunBatchRunner.java:47) > ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.batch.InstanceRunner.configure(InstanceRunner.java:157) > ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:214) > ~[repast.simphony.distributed.batch.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > Caused by: java.io.FileNotFoundException: > /private/var/folders/6m/j2vdcg7x7qd0330j839pr0v00000gn/T/simphony_model_1759281266864/scenario.rs/user_path.xml > (No such file or directory) > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at java.io.FileInputStream.open0(Native Method) ~[?:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at java.io.FileInputStream.open(FileInputStream.java:216) ~[?:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at java.io.FileInputStream.<init>(FileInputStream.java:157) ~[?:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at java.io.FileReader.<init>(FileReader.java:75) ~[?:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.scenario.data.UserPathFileReader.read(UserPathFileReader.java:43) > ~[repast.simphony.scenario.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > at > repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:115) > ~[repast.simphony.scenario.jar:?] > INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - > ... 4 more > > -- > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://urldefense.us/v3/__https://lists.sourceforge.net/lists/listinfo/repast-interest__;!!G_uCfscf7eWS!Y1HOD9K76BZ0ya-MnfjDMPO-RM5EQLSVAEYhWcsJlUmxFeMBB6siRmxnU2TLXIdtev84VHwhT8Pc4_blAg$ -- -- Mr. and Mrs. Van Parunak Grandma's House, LLC 1027 Ferdon Road Ann Arbor, MI 48104 Matthew 11:28 www.grandmas-house.com <https://www.grandmas-house.com> |
|
From: Ozik, J. <jo...@an...> - 2025-10-01 01:46:53
|
Hi Van,
This should be copied over to your output directory when you do batch runs. You should have a *.rs folder in your project, which contains a user_path.xml. Do you see it?
Jonathan
________________________________
From: Van Parunak <van...@gm...>
Sent: Tuesday, September 30, 2025 8:28 PM
To: Repast List <rep...@li...>
Subject: [Repast-interest] Missing "user_path.xml" in batch run?
Batch processing has been working great for me, but this evening it failed with the error stream below, complaining ab out the absence of scenario. rs/user_path. xml. What is this, and how can I make it show up? INFO [Thread-2] 21: 14: 32,793 repast. simphony. batch. ssh. LocalSession
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
Batch processing has been working great for me, but this evening it
failed with the error stream below, complaining ab out the absence of
scenario.rs/user_path.xml. What is this, and how can I make it show up?
INFO [Thread-2] 21:14:32,793 repast.simphony.batch.ssh.LocalSession -
ERROR [main] 21:14:32,788
MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error
while running model
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
repast.simphony.scenario.ScenarioLoadException:
/private/var/folders/6m/j2vdcg7x7qd0330j839pr0v00000gn/T/simphony_model_1759281266864/scenario.rs/user_path.xml
(No such file or directory)
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:229)
~[repast.simphony.scenario.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.batch.OneRunBatchRunner.init(OneRunBatchRunner.java:53)
~[repast.simphony.distributed.batch.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.batch.OneRunBatchRunner.<init>(OneRunBatchRunner.java:47)
~[repast.simphony.distributed.batch.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.batch.InstanceRunner.configure(InstanceRunner.java:157)
~[repast.simphony.distributed.batch.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:214)
~[repast.simphony.distributed.batch.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
Caused by: java.io.FileNotFoundException:
/private/var/folders/6m/j2vdcg7x7qd0330j839pr0v00000gn/T/simphony_model_1759281266864/scenario.rs/user_path.xml
(No such file or directory)
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at java.io.FileInputStream.open0(Native Method) ~[?:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at java.io.FileInputStream.open(FileInputStream.java:216) ~[?:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at java.io.FileInputStream.<init>(FileInputStream.java:157) ~[?:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at java.io.FileReader.<init>(FileReader.java:75) ~[?:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.scenario.data.UserPathFileReader.read(UserPathFileReader.java:43)
~[repast.simphony.scenario.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
at
repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:115)
~[repast.simphony.scenario.jar:?]
INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession -
... 4 more
--
_______________________________________________
Repast-interest mailing list
Rep...@li...
https://urldefense.us/v3/__https://lists.sourceforge.net/lists/listinfo/repast-interest__;!!G_uCfscf7eWS!Y1HOD9K76BZ0ya-MnfjDMPO-RM5EQLSVAEYhWcsJlUmxFeMBB6siRmxnU2TLXIdtev84VHwhT8Pc4_blAg$
|
|
From: Van P. <van...@gm...> - 2025-10-01 01:28:18
|
Batch processing has been working great for me, but this evening it failed with the error stream below, complaining ab out the absence of scenario.rs/user_path.xml. What is this, and how can I make it show up? INFO [Thread-2] 21:14:32,793 repast.simphony.batch.ssh.LocalSession - ERROR [main] 21:14:32,788 MessageCenter.INTERNAL.repast.simphony.batch.InstanceRunner - Error while running model INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - repast.simphony.scenario.ScenarioLoadException: /private/var/folders/6m/j2vdcg7x7qd0330j839pr0v00000gn/T/simphony_model_1759281266864/scenario.rs/user_path.xml (No such file or directory) INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:229) ~[repast.simphony.scenario.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.OneRunBatchRunner.init(OneRunBatchRunner.java:53) ~[repast.simphony.distributed.batch.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.OneRunBatchRunner.<init>(OneRunBatchRunner.java:47) ~[repast.simphony.distributed.batch.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.configure(InstanceRunner.java:157) ~[repast.simphony.distributed.batch.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.batch.InstanceRunner.main(InstanceRunner.java:214) ~[repast.simphony.distributed.batch.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - Caused by: java.io.FileNotFoundException: /private/var/folders/6m/j2vdcg7x7qd0330j839pr0v00000gn/T/simphony_model_1759281266864/scenario.rs/user_path.xml (No such file or directory) INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at java.io.FileInputStream.open0(Native Method) ~[?:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at java.io.FileInputStream.open(FileInputStream.java:216) ~[?:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at java.io.FileInputStream.<init>(FileInputStream.java:157) ~[?:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at java.io.FileReader.<init>(FileReader.java:75) ~[?:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.scenario.data.UserPathFileReader.read(UserPathFileReader.java:43) ~[repast.simphony.scenario.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - at repast.simphony.scenario.ScenarioLoader.load(ScenarioLoader.java:115) ~[repast.simphony.scenario.jar:?] INFO [Thread-2] 21:14:32,794 repast.simphony.batch.ssh.LocalSession - ... 4 more -- |
|
From: Ozik, J. <jo...@an...> - 2025-09-26 19:13:43
|
Hi Van, The underlying structure is a HashSet, but could you share how you're implementing your search? Jonathan ________________________________ From: Van Parunak <van...@gm...> Sent: Friday, September 26, 2025 1:57 PM To: Repast List <rep...@li...> Subject: [Repast-interest] Data structures used in Repast contexts What is the underlying Java structure in a Context? When I search for entities by a label, it looks like my search time is linear. Does that mean that the Context isn't a hash set or the like, which would have constant time up to some saturation ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd What is the underlying Java structure in a Context? When I search for entities by a label, it looks like my search time is linear. Does that mean that the Context isn't a hash set or the like, which would have constant time up to some saturation limit? -- _______________________________________________ Repast-interest mailing list Rep...@li... https://urldefense.us/v3/__https://lists.sourceforge.net/lists/listinfo/repast-interest__;!!G_uCfscf7eWS!bkUXvR8WA8AHOYs4i36eH7X0KXeimtImJf-hbRaXQ3H5dJDZnz19bCRw9XzM2mga32LLd27TKU5L5eg3dw$ |
|
From: Van P. <van...@gm...> - 2025-09-26 18:57:49
|
What is the underlying Java structure in a Context? When I search for entities by a label, it looks like my search time is linear. Does that mean that the Context isn't a hash set or the like, which would have constant time up to some saturation limit? -- |
|
From: Ozik, J. <jo...@an...> - 2025-09-25 01:34:36
|
Hi Van, Sorry for the delayed response. Nothing comes to mind immediately, but have you had a chance to profile the code (e.g., with VisualVM: https://visualvm.github.io/) to see where the hotspot(s) might be? Jonathan ________________________________ From: Van Parunak <van...@gm...> Sent: Friday, September 19, 2025 12:52 PM To: Repast List <rep...@li...> Subject: [Repast-interest] How can I prune a huge model effectively? I'm having a performance issue that I suspect is related to Repast internals, and would be grateful for some insight. I'm working with a swarming graph matching algorithm, which compares a query graph with a data graph. In general, the query ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd I'm having a performance issue that I suspect is related to Repast internals, and would be grateful for some insight. I'm working with a swarming graph matching algorithm, which compares a query graph with a data graph. In general, the query graph will be much smaller (say 10^2 - 10^3 nodes) than the data graph (10^6), and the algorithm uses only nodes that are common to the two graphs. For experimental purposes, I plant a known common subgraph (the "kernel") in both data and query, and measure the time the algorithms takes to find it. Jung loads in both graphs, with their nodes and edges in appropriate contexts, and all works fine, but the algorithm is wasting time exploring the relations between nodes that the graphs not share. Finding shared nodes and edges is not complicated--at worst, |query|* |data|, and very fast at that. A reasonable strategy is to prune the graphs so that my agents are iterating only over nodes that match in both graphs. One expects that in this case the matching process, once the pruning is done, should be relatively insensitive to data size. I implemented a "hard pruning" approach that actually removes the unmatched nodes and their adjacent edges (both data and query) from the contexts that Jung set up. This does indeed make the matching relatively insensitive to the original graph sizes, but the pruning process itself is so slow that I cannot handle a 10^6 node data graph. So I tried a "soft pruning" approach, in which I set up separate collections of the nodes and edges that appear in both graphs, and all iteration is done over these pruned collections. I don't reference the contexts or the networks constructed by Jung after pruning, but I don't remove them. Now matching time for a 100 node query is roughly linear in the size of the data graph: 3 ms for a 1000 node data graph, 300 ms for 100000, 3k ms for 10^6 nodes. Somehow the existence of the larger structures is making matching time dependent on their size. I put timers on every iterated operation in the system: the agent step() function, and a bunch of scheduled operations that happen each tick. The values of these timers are essentially constant across data sizes from 10^2 to 10^6. But the time required to match the kernel scales linearly with data size. Can anyone suggest what's going on? Where is this time being spent, and is there some way I can avoid the expense? -- _______________________________________________ Repast-interest mailing list Rep...@li... https://urldefense.us/v3/__https://lists.sourceforge.net/lists/listinfo/repast-interest__;!!G_uCfscf7eWS!ctlDtiO0KNvIbT-fUsJCEreUoBlrYlaQ9pCVZk0A_q4FuIqLtvHJxAYU8r_S3Tdc684R_DG6nfHVDKk_Fg$ |
|
From: Nicholson C. <nic...@gm...> - 2025-09-23 13:06:57
|
Hi Van, A node will be removed when that agent is removed from the context, that is, the nodes match the agents in the context. Nick > On Sep 23, 2025, at 6:30 AM, Van Parunak <van...@gm...> wrote: > > The Network API has a removeEdge() method. Is there a removeNode() method? > > -- > > > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |
|
From: Van P. <van...@gm...> - 2025-09-23 10:30:17
|
The Network API has a removeEdge() method. Is there a removeNode() method? -- |