I found the program on GitHub a month ago and I am very excited about it. Thanks to all who are working on it! So, I am a newbie and still trying a lot how to realize certain things.
Now I come across a runtime error in a simulation and can not find the solution, so I turn with my question to the forum and ask for help.
I assign a priority to each entity as an expresion. In the upper model the queue is processed according to FIFO, in the lower model the queue is processed according to priority. For this I use NextEntity in the server and sort the list by priority.
'list=sort(|x,y|(x.prio < y.prio), [PRIO].QueueList); size(list) > 0 ? list(1) : null'
Everything works as planned, except that after 1,287.75 h I get the following runtime error:
Runtime error in replication 1 of scenario 1 at time 4635915,947700 s:
ServerPRIO2 keyword 'NextEntity':
Comparison method violates its general contract!
I can't find the problem and I don't know how to possibly get this programmed on a different (better) way. I think I'm not the first one who wants a different order than FIFO, maybe someone can post his solution or help me with my error.
Thanks a lot!
Sebastian