Model equations mived to scripts from simulink.