Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The LM741 model is not offset-free !
Thus, there is a dc voltage at the output which charges the feedback C continuously until it reaches the limits (power rail). You must provide a certain degree of dc feedback.
By the way, the input R is too large.
Maybe you saw the output drifting (depending on the total time of simulation).
To avoid too much drift, you can use the feedback as suggested by LvW. Play with the value of the resistor. A lower value will give more departure from straight slopes, but less DC offset at the output.
By adding the resistor, in fact you make a low pass filter, but with a corner frequency far below the frequency of your signal. The DC gain will be
DC gain = -(resistor parallel to C1)/R1
You may add a resistor (R = R1) in the + input to give some reduction in offset due to input bias current. Of course you can also take a better opamp with less input current, less input offset current and less offset voltage.