Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] No statistical output file while using Traci
  • From: Thodoris Zerlentis <zerlentis@xxxxxxxx>
  • Date: Mon, 7 Dec 2020 08:51:19 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=alpE/y248v01RsQ6b4oQDoM7lPErJImyuShqy2BokAE=; b=TgWBcTECn4OGptsLQpmqODQbbwfHpUE1t0eXYbjvVPAzbPC4VqAsGGdeA//4qbY3THMBpxt2/2VV/mxBJe6Hc/S5aDtpF2lK2f6x2q+ubhz91diQ+8dDkyafWnAOXwLPArcAjQF3haH1reDWRWNaQCBlp4bH/28yjbPSqc+O29ty90GrlKVdOSe0B5iQaVitdbAzYvZrYRCQI/CoFelpAfe7H/Iy1JWQzundJUA3eLWZ5YSEy6zi+PRz2OwMLbtlhOxqclOe8efG+A473CGtCHWA6DCHc7RgFlTN3+qwyk7m4vw9zNyD7SgmlqoBAbR5M8J+sHj/RN5m+MaFySUS5g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g86Qdd1fAK26GWRjBIShzWc2QR/Zp4Wx535dP420SWr9HoLRs+mGhuZaP7/kNwKzisu4mXn8NboGAMbbfmWOPNfQkUtPXKymNL+ogU5qkOBYaGSP3ZvlCxSjwTxFOO9DpQgAf4dUKvrH7CdqbvU5rP1AZmeg0O18HX5xsA/W3DbFPDI8nF5+LX+rgzvJe6IxjQAtzv/oSYEQrey1YkIiEQ1uItpDuabIbGssORF2Qh0zIT3uNdPK8ATbzrGb/nghELv+2PaWIXwwd2V2ZU/ZLWyX4x9ANZ1Ge+nsCdWRsxbe0kZhRj0Kl8l6k/9w+1n8fp0Ft9eOBAkX8/Tdm5PEgg==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWy7+76YKW4rr+ZkeVi124Fqct4KnrO7+AgAAXkgw=
  • Thread-topic: [sumo-user] No statistical output file while using Traci

Thank you for your response Jacob. I already have as my last command in my script the Traci.close(). By using sumo gui everything works perfectly. What am I missing?

Best regards,
Thodoris

Αποκτήστε το Outlook για Android


From: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Monday, December 7, 2020 9:21:47 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] No statistical output file while using Traci
 
make sure to call traci.close() at the end of your script (The peer from that error message is your python script which suddenly shuts down).

Am So., 6. Dez. 2020 um 12:15 Uhr schrieb Thodoris Zerlentis <zerlentis@xxxxxxxx>:
Greeting everyone,
I am using traci commands through a python script in order to run some simulations. My sumo version is 1.2.0. The problem is that after simulation ends with the command traci.close() i get a non fully written statistical output file. I only get the coming lines:
***Starting server on port 42389 ***
Loading net-file from '../../../../.net.xml'... done (13ms).
Loading additional-files from '../../../../.add.xml'... done (12ms).
Loading done.
Simulation version 1.2.0 started with time: 0.00 

In the error log i get Error: tcpip::Socket::recvAndCheck @ recv: peer shutdownQuitting (on error).

The strange thing is that if i run the exact same script but using the sumo-gui the output files are fully writen.

My configuration file:
<?xml version="1.0" encoding="iso-8859-1"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/sumoConfiguration.xsd">
    <input>
        <net-file value="net.xml"/>
        <route-files value="rou.xml"/>
        <additional-files value="add.xml"/>
    </input>

    <output>
         <tripinfo-output value="output/tripinfo.xml"/>
         <tripinfo-output.write-unfinished value="true"/>
    </output>

    <report>
         <duration-log.statistics value="true"/>
         <message-log value="output/statistic.xml"/>
         <error-log value="output/error.log.xml"/>
    </report>

    <time>
        <begin value="0"/>
        <end value="81600"/>
        <step-length value="0.01"/>
    </time>

    <gui_only>
        <start value="true"/>
        <gui-settings-file value="gui.xml"/>
    </gui_only>

</configuration>
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top