https://123dok.net/document/dzxp7nvy-robust-simulation-for-hybrid-systems-chattering-path-avoidance.html