Can the same model be used for nonlinear analysis like in linear analysis? No, you will have to add a ton of information into the computer model to do nonlinear analysis. You will have to add stress strain curve for concrete, for steel. You will have to define backbone curves for beams. You will have to define P-M-M back bone curves for columns. You will have to define fiber elements for shear walls. You will be defining P-delta columns. You will be defining the limit states. The back bone curves for coupling beams for different aspect ratios are different. So all in all, to create and test one nonlinear model, it will take you about a month. Analysis will take a day. And processing the results will take another day.
What does program do is. It will start with the initial stiffness of the building which is right because before a building is loaded how can there be any cracks and loss in stiffness? Then the building is loaded with incremental loads. And it will go on increasing the loads till it reaches the limit of linearity. As soon as it hits the nonlinear zones, it will start iterating the model. Load the structure calculate the strains and deflections and stiffness. Loss in stiffness -> Yes? Iterate the same step. Loss in stiffness -> No? Go to the next load step and so on.
Nonlinear analysis is a complex task. It is the best example of "Half knowledge" is dangerous. If you do not know anything about nonlinearity then first learn it and then perform analysis. If you do it before that you will set up incorrect model and you will not be able to interpret the results.