Why did God test Abraham with the sacrifice of Isaac if He already knew what Abraham would choose?
Why did God send Isaiah to tell Hezekiah that he would die immediately if He knew 15 more years would be added to his life?
Why did God repeatedly appeal to the nation of Israel if he knew they would ultimately reject Him?
He knew all of the above that would happen.
Or do you think He didn't?
You make false assumptions about divine knowledge. God knowing the future does not determine it. His knowledge is not deterministic emanated from the past, rather is a knowledge exists in the present and the future actualized by human freewill.
No one said it determined it. But it does know it.
He gives people tests for their benefit. And to illustrate realities. Abraham's test illustrated what God ALREADY KNEW would happen to His own Son. He was the Lamb that God would provide.
But if He knew from the beginning, the foundation of the world (and He did) that the plan of salvation would be successful, then it is not a risk.
You suggested Jesus lost his omniscience. But He seemed to demonstrated plenty of that attribute while on this earth. The incarnation cost him His omnipresence. What he had to learn (obedience) was to perfect his human character while being fully human.
Feel free to elaborate whether you think Jesus had omniscience on earth.
While on the cross, Christ who is fully God feared the uncertainty and the eternal separation. There are always risks when involving human free will in the process. Christ while was/is fully God was/is also fully human.
Anyways, this topic has been discussed more than it is merited. And there never has been a consensus about God's omniscience among the theologians and scholars. You should learn to respect and accept others' opinions that differ from yours and know he who is convicted against his will is the same opinion still.
But you have already said you believe God knows the end from the beginning. Or are you changing that now too?
Let's have it straight DL. Once God saw from before the foundation of the world that the plan of salvation in His Son would be successful, was there a chance He would be wrong?
Were the prophecies just a lucky forecast?
Now, we have not said, that God determines what you will do with your life. But you better know He knows what you will do with your life. You are no surprise to Him.
And He knew, and DEMONSTRATED He knew what His Son would do, and that He would succeed. Therefore sending His Son was not a risk.