Online iterative real-time measurements and modeling of combustion engines