JPScore issueshttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues2019-06-12T15:48:19+02:00https://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/322Waiting area on platform2019-06-12T15:48:19+02:00Ghost UserWaiting area on platformIf there are no doors on the platform the agents should go to the waiting are and wait.
![Screenshot_2019-06-12_15.41.53](/uploads/940996ae0294f50c2cf5fefce3bc5dac/Screenshot_2019-06-12_15.41.53.png)
Or the room (and subroom) has ...If there are no doors on the platform the agents should go to the waiting are and wait.
![Screenshot_2019-06-12_15.41.53](/uploads/940996ae0294f50c2cf5fefce3bc5dac/Screenshot_2019-06-12_15.41.53.png)
Or the room (and subroom) has to be defined as (final) goal.tobias schroedtertobias schroedterhttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/323ff_global_shortest_trips for trains2019-06-12T15:52:36+02:00Ghost Userff_global_shortest_trips for trainsThe router ff_global_shortest_trips needs to be able to use the dynamic trains from #300.The router ff_global_shortest_trips needs to be able to use the dynamic trains from #300.Mohcine Chraibim.chraibi@fz-juelich.deMohcine Chraibim.chraibi@fz-juelich.dehttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/325inifile, header2019-06-24T09:30:40+02:00Ghost Userinifile, headerThe simulation *RiMEA_Test_04_0-5* does not run with `<header>` as described in the [documentation](http://www.jupedsim.org/jpscore/2016-11-01-inifile).
[ini_RiMEA_Test_04_0-5.xml](/uploads/34bb482701018f085dfb6f803c49eeb1/ini_RiMEA_Tes...The simulation *RiMEA_Test_04_0-5* does not run with `<header>` as described in the [documentation](http://www.jupedsim.org/jpscore/2016-11-01-inifile).
[ini_RiMEA_Test_04_0-5.xml](/uploads/34bb482701018f085dfb6f803c49eeb1/ini_RiMEA_Test_04_0-5.xml)
[geo_RiMEA_Test_04.xml](/uploads/4fd1cb5dc22914899a3045e653a28593/geo_RiMEA_Test_04.xml)https://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/330Writing Errors for WAs2019-06-24T13:03:42+02:00Ghost UserWriting Errors for WAsIn issue #327 we had to spend a lot of time to find our problem and in the end it was just one wrong letter in the definition of a waiting area.
As we have mentioned in #327 the simulation failed, without writing an error to the log-fil...In issue #327 we had to spend a lot of time to find our problem and in the end it was just one wrong letter in the definition of a waiting area.
As we have mentioned in #327 the simulation failed, without writing an error to the log-file. In the huge files for KapaKrit we might have 3.000 lines or more. Finding a typing error without any message in the log-file could take hours.
So, @schroedter1, is it possible to write such errors into the log? It does not have to be a very specified log-message, which tells you the specific line or something. But a small hint to see in which goal/waiting area the error occurs would be very helpful. Maybe by writing the goals id to the log.tobias schroedtertobias schroedterhttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/331statistical distributions2019-06-24T19:37:53+02:00Ghost Userstatistical distributionsAt the moment, the pre-movement time is Gauss-distributed. The agent parameters are also.
I suggest that we implement more statistical distributions (for agent velocity and pre-movement time):
- no distribution
- uniform (min and max)...At the moment, the pre-movement time is Gauss-distributed. The agent parameters are also.
I suggest that we implement more statistical distributions (for agent velocity and pre-movement time):
- no distribution
- uniform (min and max)
- truncated normal (min, max, mean, sigma)
- normal (mean, sigma) - already exists
- triangular (min, max, mean)
- log-normal (min, max, mean, sigma, sigma_2)https://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/287Waiting areas2019-06-25T16:54:45+02:00Ghost UserWaiting areasIn order to simulate the transition from a platform edge to a train, waiting areas should be defined in front of the doors (transitions), for example, areas where only a certain number of people can stand.In order to simulate the transition from a platform edge to a train, waiting areas should be defined in front of the doors (transitions), for example, areas where only a certain number of people can stand.tobias schroedtertobias schroedterhttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/311Improve FF2019-06-27T08:10:38+02:00tobias schroedterImprove FF* [ ] Merge FF and FF_Trips
* [ ] Remove `ERROR: Could not find a route for pedestrian 37 in room 2 and subroom 0` when ped leaves the geometry through door
* [ ] If doors are temp_close at start of simulation do not quit computation
* ...* [ ] Merge FF and FF_Trips
* [ ] Remove `ERROR: Could not find a route for pedestrian 37 in room 2 and subroom 0` when ped leaves the geometry through door
* [ ] If doors are temp_close at start of simulation do not quit computation
* [ ] Extend FF such that it is also possible to navigate to points not only exits
0.8.5tobias schroedtertobias schroedterhttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/328track for trains question2019-06-27T09:25:38+02:00Tim Orthtrack for trains question## Question
I need some support with the tracks for trains feature.
I changed the class of the subroom to „Platform“ and set the type of the wall of the track to „track-1“ in the geometry.
Defined the start and end of the track in t...## Question
I need some support with the tracks for trains feature.
I changed the class of the subroom to „Platform“ and set the type of the wall of the track to „track-1“ in the geometry.
Defined the start and end of the track in train_time_table.xml with the coordinates of the „track-1“-wall.
```
Terminal message: Arrival:
TRAIN Desiro_HC at time: 30
enter with train Desiro_HC
Enter correctGeometry: Building Has 5 Transitions
room: 101 subroom_id 1
Error in GetIntersection. Should be 2 but got 1
```
1. Which element should have 2 intersections? The „track-1“-wall and the ttt track are from intersection 10/130 to 10/20. I think I’m missing something.
2. In addition: Can the track only be in/at one subroom? Because I get an error if the defined track in ttt uses more then one.
```
Error: Arrival: TRAIN Desiro_HC at time: 30 could not find any track! Exit.
```
Folder witch data for the main question: [files](https://1drv.ms/u/s!AsV6LgpLPxYhgbIanMfhzZ8QJLIXuw?e=tQSaw4)0.8.5Mohcine Chraibim.chraibi@fz-juelich.deMohcine Chraibim.chraibi@fz-juelich.dehttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/306Schedule (for WAs)2019-07-01T11:01:01+02:00Ghost UserSchedule (for WAs)For reopening the waiting areas we need a schedule:
**schedule.xml***
```
<?xml version="1.0" encoding="UTF-8" ...?>
<JPScore project="JPS-Project" version="0.6" ...>
<groups>
<group id="1">
<member wa_id="1"/>
...For reopening the waiting areas we need a schedule:
**schedule.xml***
```
<?xml version="1.0" encoding="UTF-8" ...?>
<JPScore project="JPS-Project" version="0.6" ...>
<groups>
<group id="1">
<member wa_id="1"/>
<member wa_id="2"/>
<member wa_id="3"/>
</group>
<group id="2">
<member wa_id="4"/>
<member wa_id="5"/>
<member wa_id="6"/>
</group>
</groups>
<times>
<time group_id="1">
<t="60"/>
<t="120"/>
<t="350"/>
<t="800"/>
</time>
<time group_id="2">
<t="20"/>
<t="80"/>
<t="310"/>
<t="760"/>
<time/>
</times>
</JPScore>
```tobias schroedtertobias schroedterhttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/332JURECA | header, logfile2019-07-04T08:06:58+02:00Ghost UserJURECA | header, logfile**jpscore**:
```
JuPedSim - JPScore
Current date : Jul 2 2019 19:07:41
Version : 0.8.4
Commit hash : v0.8.4-68-ga33375a
Commit date : Mon Jul 1 15:21:05 2019
Branch : develop
----
```
**inifile** in `/data`:
...**jpscore**:
```
JuPedSim - JPScore
Current date : Jul 2 2019 19:07:41
Version : 0.8.4
Commit hash : v0.8.4-68-ga33375a
Commit date : Mon Jul 1 15:21:05 2019
Branch : develop
----
```
**inifile** in `/data`:
```xml
<header>
<seed>4313</seed>
<max_sim_time>80</max_sim_time>
<num_threads>48</num_threads>
<show_statistics>true</show_statistics>
<logfile>log_RiMEA_Test_04_7-0_om_2</logfile>
<!--<progressbar/>-->
<trajectories format="plain" fps="2">
<file location="traj_RiMEA_Test_04_7-0_om_2.txt" />
</trajectories>
<geometry>geo_RiMEA_Test_04.xml</geometry>
</header>
...
```
**batch_script** in `$HOME`:
```batch
#!/bin/bash -x
#SBATCH -J R70
#SBATCH --account=ias-7
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=48
#SBATCH --output=data/out_%j.txt
#SBATCH --error=data/err_%j.txt
#SBATCH --time=6:00:00
#SBATCH --mail-user=g.jaeger@fz-juelich.de
#SBATCH --mail-type=ALL
export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}
srun ./jpscore/bin/jpscore data/ini_RiMEA_Test_04_7-0_om_2.xml
```
The logfile is stored in the root directory (`$HOME`) as `datalog_RiMEA_Test_04_7-0_om_2.txt`. Also the statistic files are stored there.
Both files should be stored in the directory `data` (like the trajectory files).
**Note**:
The function `<progressbar/>` creates a very large file (5-15 GB) and should be disabled.https://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/316Error - File could not be opened2019-07-04T15:10:10+02:00Ghost UserError - File could not be opened@chraibi1
We talked about this problem and I have tried a lots of variation, all with the same result, the simulation fails because a file (writing door statistics) can not be opened.
![Bildschirmfoto_2019-04-16_um_16.31.50](/uploads/cc...@chraibi1
We talked about this problem and I have tried a lots of variation, all with the same result, the simulation fails because a file (writing door statistics) can not be opened.
![Bildschirmfoto_2019-04-16_um_16.31.50](/uploads/cc9c4cc4139b4c863b5be1711864caf0/Bildschirmfoto_2019-04-16_um_16.31.50.png)
Changing the size of the files (door-statistics) for 10 MB to 1 MB, had no effect. Also limiting the number of people to a minimum.
As I did simulations without sources, which failed as well, we can exclude them as "source of error".
Also normal goals can be excluded. Simulation with WAs failed when using more than one WA. So maybe there is a problem?
[correct_Bahnsteige.xml](/uploads/b45db6b2baa8b324ccbcea3dfc9ac219/correct_Bahnsteige.xml)
[Personen_ini.xml](/uploads/8ffa94f6ba0b88008821814fdd72b3e5/Personen_ini.xml)
[log.txt](/uploads/4a43f79e41068712a55fbecfc46040de/log.txt)Mohcine Chraibim.chraibi@fz-juelich.deMohcine Chraibim.chraibi@fz-juelich.dehttps://gitlab.jsc.fz-juelich.de/jupedsim/jpscore/-/issues/324Print Statistics2019-07-17T06:19:29+02:00Ghost UserPrint Statisticsfrom [Simulation.cpp, line 417 ff](https://gitlab.version.fz-juelich.de/jupedsim/jpscore/blob/develop/Simulation.cpp):
```c++
void Simulation::PrintStatistics(double simTime)
for (const auto& itr : _building->GetAllTransitions()) {
...from [Simulation.cpp, line 417 ff](https://gitlab.version.fz-juelich.de/jupedsim/jpscore/blob/develop/Simulation.cpp):
```c++
void Simulation::PrintStatistics(double simTime)
for (const auto& itr : _building->GetAllTransitions()) {
Transition* goal = itr.second;
if (goal->GetDoorUsage()) {
Log->Write(
"\nExit ID [%d] used by [%d] pedestrians. Last passing time [%0.2f] s",
goal->GetID(), goal->GetDoorUsage(),
goal->GetLastPassingTime());
string statsfile = "flow_exit_id_"+to_string(goal->GetID())+".txt";
if(goal->GetOutflowRate() < (std::numeric_limits<double>::max)())
{
char tmp[50];
sprintf(tmp, "%.2f", goal->GetOutflowRate());
statsfile = "flow_exit_id_"+to_string(goal->GetID())+"_rate_"+tmp+".txt";
}
Log->Write("More Information in the file: %s", statsfile.c_str());
{
auto statOutput = new FileHandler(statsfile.c_str());
statOutput->Write("#Simulation time: %.2f", simTime);
statOutput->Write("#Flow at exit "+goal->GetCaption()+"( ID "+to_string(goal->GetID())+" )");
statOutput->Write("#Time (s) cummulative number of agents \n");
statOutput->Write(goal->GetFlowCurve());
statOutput->FileHandler::~FileHandler();
}
}
}
```
Can we change the filename `flow_exit_id_` in line [430](https://gitlab.version.fz-juelich.de/jupedsim/jpscore/blob/develop/Simulation.cpp#L430) like the trajectory filename (e.g. `flow_exit_id_filename.txt`?