<div dir="ltr"><div>Hi Elsa,<br><br></div>          I don't see CODES end the simulation. The "commit" function pointers are null. The only exit condition is (cev = tw_pq_dequeue(me->pq) == NULL. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 28, 2017 at 3:49 PM, Gonsiorowski, Elsa <span dir="ltr"><<a href="mailto:gonsiorowski1@llnl.gov" target="_blank">gonsiorowski1@llnl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi Jian,
<div><br>
</div>
<div>It looks like you have an end time set in you simulation. For ROSS models the end time can be changed with the `--end=`  command line argument. I’m not sure if or how CODES modifies the end time of simulations.</div>
<div><br>
<div><span class="m_4461052982287220833Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
Elsa Gonsiorowski<br>
</div>
<div style="word-wrap:break-word">
<br>
</div>
</span><br class="m_4461052982287220833Apple-interchange-newline">
</div>
<br>
<div>
<blockquote type="cite"><span class="">
<div>On Feb 28, 2017, at 14:36, Jian Peng <<a href="mailto:jpeng10@hawk.iit.edu" target="_blank">jpeng10@hawk.iit.edu</a>> wrote:</div>
<br class="m_4461052982287220833Apple-interchange-newline">
</span><div><span class="">
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
    After some debugging, I found the reason of this issue was "tw_event_send()". I added some debugging code shown as "tw_event_send.png". Then I got debugging output as "debug1.png". Please notice the highlighted value of pointer "kp". Then I found this same
 "kp" value in previous context, shown in "debug2.png". Since the "last_time" is greater than "recv_ts", "tw_eventq_push()" rather than "tw_pq_enqueue()" is called. As I'm doing sequential simulation, "tw_scheduler_sequential()" in tw-shed.c should be used.
 "tw_pq_dequeue()" is used to read the event queue, shown in "tw_scheduler_sequential.png".
<br>
<br>
</div>
    So here's the question. The events that called "tw_eventq_push()" seem not able to be retrieved by "tw_pq_dequeue()". So I'm wondering that either mapping multiple LPs to one KP or only using "tw_pq_dequeue()" in sequential scheduler is a bug? I haven't
 looked too much into both parts, just got this question in mind. <br>
<br>
</div>
    Thanks!<br>
<div><br>
     <br>
</div>
</div>
</span><div class="gmail_extra"><br>
<div class="gmail_quote"><span class="">On Mon, Feb 27, 2017 at 1:20 PM, Jian Peng <span dir="ltr">
<<a href="mailto:jpeng10@hawk.iit.edu" target="_blank">jpeng10@hawk.iit.edu</a>></span> wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span class="">
<div>Hi,<br>
<br>
</div>
    I'm running some experiments on Dragonfly with CODES 5.0.2.  Sometimes they end up with unsent messages remaining in terminals and routers. I think the reason is the events that carry these messages are not handled. I looked through my debugging information
 and confirmed it. <br>
<br>
    So, why does ROSS end when there are still events unprocessed? I'm running a sequential simulation. Thanks.<br>
<br>
</span><span id="m_4461052982287220833cid:ii_15a8131568296ddc"><image.png></span><br>
<br>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<span id="m_4461052982287220833cid:A010BA73-C016-4566-9D02-4F06447754A6@llnl.gov"><debug2.png></span><span id="m_4461052982287220833cid:E9354F44-EDD9-45B1-8969-E55AFE302572@llnl.gov"><debug3.png></span><span id="m_4461052982287220833cid:642EEFAE-DC52-47B8-BD77-B31EEEB23B93@llnl.gov"><tw_<wbr>scheduler_sequential.png></span><span id="m_4461052982287220833cid:1D7752D9-5F69-4DE5-969B-8FBA8E5225FF@llnl.gov"><tw_<wbr>event_send.png></span>_______________<wbr>______________________________<wbr>__<br>
codes-ross-users mailing list<br>
<a href="mailto:codes-ross-users@lists.mcs.anl.gov" target="_blank">codes-ross-users@lists.mcs.<wbr>anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/codes-ross-users" target="_blank">https://lists.mcs.anl.gov/<wbr>mailman/listinfo/codes-ross-<wbr>users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div><br></div>