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<https://aka.ms/ghei36>

________________________________
From: [email protected] <[email protected]> on behalf 
of Jakob Erdmann <[email protected]>
Sent: Monday, December 7, 2020 9:21:47 AM
To: Sumo project User discussions <[email protected]>
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 
<[email protected]<mailto:[email protected]>>:
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
[email protected]<mailto:[email protected]>
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to