diff --git a/tests/test-plot-2/test-plot-2.ref b/tests/test-plot-2/test-plot-2.ref index e69de29bb..5f8d90adc 100644 --- a/tests/test-plot-2/test-plot-2.ref +++ b/tests/test-plot-2/test-plot-2.ref @@ -0,0 +1,438 @@ + + ++++++++++++++++++++++++++++++++++++++++++++ + + MAD-X 5.05.02 (64 bit, Linux) + + + Support: mad@cern.ch, http://cern.ch/mad + + + Release date: 2019.07.25 + + + Execution date: 2020.05.22 16:02:46 + + ++++++++++++++++++++++++++++++++++++++++++++ +option, -echo; + +++++++ info: keddy redefined + + +beam, particle=proton, energy=0.938272*1.1547; + + + +use, sequence=LEIR; + + + +select, flag=twiss, clear; + +select, flag=twiss, column=name,s,betx,bety,alfx,alfy,mux,muy,dx,dpx,dy,dpy, + + x,px,y,py,deltap, + + re11,re12,re13,re14,re15,re16, + + re21,re22,re23,re24,re25,re26, + + re31,re32,re33,re34,re35,re36, + + re41,re42,re43,re44,re45,re46, + + re51,re52,re53,re54,re55,re56, + + re61,re62,re63,re64,re65,re66; + + + +twiss, rmatrix, chrom, save; + +enter Twiss module + +iteration: 1 error: 1.763228E-04 deltap: 1.000000E-06 +orbit: -9.649253E-06 -2.298584E-06 0.000000E+00 0.000000E+00 -2.965939E-06 5.991432E-07 + +iteration: 2 error: 1.051748E-09 deltap: 1.000000E-06 +orbit: -9.649474E-06 -2.298528E-06 0.000000E+00 0.000000E+00 -2.068187E-06 5.991503E-07 + +iteration: 1 error: 0.000000E+00 deltap: 0.000000E+00 +orbit: 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 + +++++++ table: summ + + length orbit5 alfa gammatr + 78.54370266 -0 0.1241075638 2.838578276 + + q1 dq1 betxmax dxmax + 1.820059621 -10.06040197 15.12421277 20.60419792 + + dxrms xcomax xcorms q2 + 9.639963193 0 0 2.71982919 + + dq2 betymax dymax dyrms + -20.79004496 20.07025727 0 0 + + ycomax ycorms deltap synch_1 + 0 0 0 9.747887059 + + synch_2 synch_3 synch_4 synch_5 + 1.526297364 0.3728165258 0.5042000294 4.147872957 + + nflips + 0 + + +plot, haxis=s, vaxis=betx; + +Plot - default table plotted: twiss + + GXPLOT-X11 1.50 initialized + + plot number = 1 + + +plot, haxis=s, vaxis=betx, colour=100, title="sample plot"; + +Plot - default table plotted: twiss + plot number = 2 + + +plot, haxis=s, vaxis=betx,bety, colour=100, title="two variables"; + +Plot - default table plotted: twiss + plot number = 3 + + +title, "two variables with range"; + +plot, haxis=s, vaxis=betx,bety, colour=100, range=CtrS10/CtrS20; + +Plot - default table plotted: twiss + plot number = 4 + + +title, "two variables with range and range_plot"; + +plot, haxis=s, vaxis=betx,bety, colour=100, range_plot, range=CtrS10/CtrS20, noversion; + +Plot - default table plotted: twiss + plot number = 5 + + +title, "two variables on vaxis2"; + +plot, haxis=s, vaxis2=betx,bety, colour=100; ! test a single vaxis but not in order + +Plot - default table plotted: twiss + plot number = 6 + + +title, "two variables and some more options"; + +plot, haxis=s, vaxis=betx,bety, colour=100, notitle, noversion, noline, interpolate; + +Plot - default table plotted: twiss + plot number = 7 + + +title, "two axes; interpolate"; + +plot, haxis=s, vaxis1=betx,bety, vaxis2=mux,muy, colour=100, interpolate, noversion; + +Plot - default table plotted: twiss + plot number = 8 + + +title, "three axes; noversion"; + +plot, haxis=s, vaxis1=betx,bety, vaxis2=mux,muy, vaxis3=alfx,alfy, colour=100, noversion; + +Plot - default table plotted: twiss + plot number = 9 + + +title, "four axes; interpolate, noline, notitle, noversion "; + +plot, haxis=s, vaxis1=betx,bety, vaxis2=mux,muy, vaxis3=alfx,alfy, vaxis4=dx, colour=100, interpolate, noline, notitle, noversion; + +Plot - default table plotted: twiss + plot number = 10 + + +title, "non-s horizontal axis"; + +plot, haxis=mux, vaxis=betx, colour=100; + +Plot - default table plotted: twiss + plot number = 11 + + +title, "should never appear on plots"; + + + +plot, haxis=s, colour=100 ,title="large # of variables on vaxis", noversion, + + vaxis= s,betx,bety,alfx,alfy,mux,muy,dx,dpx; + +Plot - default table plotted: twiss +++++++ warning: PLOT: Array index larger than array limit; label is truncated + plot number = 12 + + +plot, haxis=s, colour=100, title="max # of variables on vaxis1", noversion, + + vaxis1= re11,re12,re13,re14,re15,re16, + + vaxis2= re21,re22,re23,re24; + +Plot - default table plotted: twiss + plot number = 13 + + + + +plot, haxis=s, colour=100, title="overflow in number of variables to be plotted", noversion + + vaxis1= re11,re12,re13,re14,re15,re16, + + vaxis2= re21,re22,re23,re24, + + vaxis3= re31,re32,re33,re34,re35,re36, + + vaxis4= re41,re42,re43,re44,re45,re46; + +Plot - default table plotted: twiss +++++++ warning: PLOT: 6 variables on VAXIS4 would overflow max number(10). all variables ignored. + plot number = 14 + + +twiss, save, deltap=-.015:.02:.005; + +enter Twiss module + +iteration: 1 error: 2.721379E+00 deltap: -1.500000E-02 +orbit: 1.985311E-01 2.082601E-02 0.000000E+00 0.000000E+00 3.227006E-01 -8.918397E-03 + +iteration: 2 error: 1.257068E-01 deltap: -1.500000E-02 +orbit: 1.303440E-01 3.884197E-02 0.000000E+00 0.000000E+00 1.235940E-02 -7.698122E-03 + +iteration: 3 error: 7.955827E-03 deltap: -1.500000E-02 +orbit: 1.360767E-01 3.738751E-02 0.000000E+00 0.000000E+00 3.835326E-02 -7.575514E-03 + +iteration: 4 error: 8.854934E-05 deltap: -1.500000E-02 +orbit: 1.360497E-01 3.739264E-02 0.000000E+00 0.000000E+00 3.845133E-02 -7.575245E-03 + +iteration: 5 error: 1.468511E-08 deltap: -1.500000E-02 +orbit: 1.360497E-01 3.739264E-02 0.000000E+00 0.000000E+00 3.845173E-02 -7.575245E-03 + +iteration: 1 error: 1.797371E+00 deltap: -1.000000E-02 +orbit: 1.179270E-01 1.754522E-02 0.000000E+00 0.000000E+00 1.440441E-01 -5.984767E-03 + +iteration: 2 error: 7.446834E-02 deltap: -1.000000E-02 +orbit: 9.138308E-02 2.449674E-02 0.000000E+00 0.000000E+00 1.850243E-02 -5.369984E-03 + +iteration: 3 error: 7.846781E-04 deltap: -1.000000E-02 +orbit: 9.232377E-02 2.425326E-02 0.000000E+00 0.000000E+00 2.362512E-02 -5.350534E-03 + +iteration: 4 error: 2.316155E-06 deltap: -1.000000E-02 +orbit: 9.232341E-02 2.425330E-02 0.000000E+00 0.000000E+00 2.365486E-02 -5.350527E-03 + +iteration: 5 error: 2.896954E-11 deltap: -1.000000E-02 +orbit: 9.232341E-02 2.425330E-02 0.000000E+00 0.000000E+00 2.365487E-02 -5.350527E-03 + +iteration: 1 error: 8.901846E-01 deltap: -5.000000E-03 +orbit: 5.305864E-02 1.027315E-02 0.000000E+00 0.000000E+00 4.132476E-02 -2.998748E-03 + +iteration: 2 error: 2.277147E-02 deltap: -5.000000E-03 +orbit: 4.707982E-02 1.181408E-02 0.000000E+00 0.000000E+00 1.055489E-02 -2.832456E-03 + +iteration: 3 error: 3.708928E-05 deltap: -5.000000E-03 +orbit: 4.712672E-02 1.180168E-02 0.000000E+00 0.000000E+00 1.102741E-02 -2.831432E-03 + +iteration: 4 error: 5.615388E-09 deltap: -5.000000E-03 +orbit: 4.712672E-02 1.180168E-02 0.000000E+00 0.000000E+00 1.102899E-02 -2.831432E-03 + +iteration: 1 error: 3.058718E-16 deltap: 1.734723E-18 +orbit: -1.673909E-17 -3.987332E-18 0.000000E+00 0.000000E+00 -5.146789E-18 1.039348E-18 + +iteration: 1 error: 8.729740E-01 deltap: 5.000000E-03 +orbit: -4.434521E-02 -1.247473E-02 0.000000E+00 0.000000E+00 8.034403E-03 2.986377E-03 + +iteration: 2 error: 2.917782E-02 deltap: 5.000000E-03 +orbit: -4.957170E-02 -1.119206E-02 0.000000E+00 0.000000E+00 -1.015056E-02 3.169983E-03 + +iteration: 3 error: 3.252443E-05 deltap: 5.000000E-03 +orbit: -4.954169E-02 -1.120039E-02 0.000000E+00 0.000000E+00 -9.732714E-03 3.170822E-03 + +iteration: 4 error: 1.722045E-09 deltap: 5.000000E-03 +orbit: -4.954169E-02 -1.120039E-02 0.000000E+00 0.000000E+00 -9.731489E-03 3.170822E-03 + +iteration: 1 error: 1.728516E+00 deltap: 1.000000E-02 +orbit: -8.239427E-02 -2.651450E-02 0.000000E+00 0.000000E+00 5.562233E-02 5.946366E-03 + +iteration: 2 error: 1.257750E-01 deltap: 1.000000E-02 +orbit: -1.024680E-01 -2.173853E-02 0.000000E+00 0.000000E+00 -2.148097E-02 6.707673E-03 + +iteration: 3 error: 5.043946E-04 deltap: 1.000000E-02 +orbit: -1.020806E-01 -2.184941E-02 0.000000E+00 0.000000E+00 -1.838019E-02 6.720549E-03 + +iteration: 4 error: 4.438018E-07 deltap: 1.000000E-02 +orbit: -1.020806E-01 -2.184942E-02 0.000000E+00 0.000000E+00 -1.836202E-02 6.720551E-03 + +iteration: 1 error: 2.566400E+00 deltap: 1.500000E-02 +orbit: -1.160151E-01 -4.161953E-02 0.000000E+00 0.000000E+00 1.349035E-01 8.874212E-03 + +iteration: 2 error: 2.984785E-01 deltap: 1.500000E-02 +orbit: -1.599449E-01 -3.152454E-02 0.000000E+00 0.000000E+00 -3.722504E-02 1.064218E-02 + +iteration: 3 error: 2.497224E-03 deltap: 1.500000E-02 +orbit: -1.583597E-01 -3.199628E-02 0.000000E+00 0.000000E+00 -2.611002E-02 1.070656E-02 + +iteration: 4 error: 9.476054E-06 deltap: 1.500000E-02 +orbit: -1.583606E-01 -3.199629E-02 0.000000E+00 0.000000E+00 -2.602355E-02 1.070661E-02 + +iteration: 5 error: 6.219778E-10 deltap: 1.500000E-02 +orbit: -1.583606E-01 -3.199629E-02 0.000000E+00 0.000000E+00 -2.602349E-02 1.070661E-02 + +++++++ table: summ + + length orbit5 alfa gammatr + 78.54370266 -0.03845173226 -0.03069227849 -5.708019327 + 78.54370266 -0.02365486776 0.02485970737 6.342376129 + 78.54370266 -0.01102899318 0.07605477483 3.626074791 + 78.54370266 5.146789322e-18 0.1241075638 2.838578276 + 78.54370266 0.009731489001 0.1700447207 2.425037302 + 78.54370266 0.01836202258 0.2147749134 2.157785268 + 78.54370266 0.02602348746 0.2591591798 1.964340187 + + q1 dq1 betxmax dxmax + 1.902855781 -6.580754256 22.93800805 25.13049312 + 1.872765708 -5.418782041 18.74735791 23.37656077 + 1.845673126 -4.778207922 16.50995673 21.88606532 + 1.820059621 -4.353247059 15.12421277 20.60419792 + 1.795188366 -4.039831857 14.20883529 19.49427622 + 1.770599606 -3.791825609 13.54710375 18.52723092 + 1.745935943 -3.585203608 13.05184775 17.67910112 + + dxrms xcomax xcorms q2 + 11.83203234 0.3401578816 0.1582549877 2.895352039 + 10.89943215 0.2261578324 0.1051993142 2.829749094 + 10.18007445 0.1130249915 0.05267193462 2.772963638 + 9.639963193 3.928615934e-17 1.838060313e-17 2.71982919 + 9.249784234 0.113733687 0.05353426198 2.668639487 + 8.984336689 0.2291212616 0.1087242219 2.618496136 + 8.82243864 0.3473147907 0.1664921896 2.568741147 + + dq2 betymax dymax dyrms + -16.16204695 31.60905416 0 0 + -12.16580459 24.05619929 0 0 + -10.52255119 21.42288257 0 0 + -9.482227749 20.07025727 0 0 + -8.701935652 19.27042089 0 0 + -8.064977282 18.77994463 0 0 + -7.518146728 18.49925693 0 0 + + ycomax ycorms deltap synch_1 + 0 0 -0.015 0 + 0 0 -0.01 0 + 0 0 -0.005 0 + 0 0 1.734723476e-18 0 + 0 0 0.005 0 + 0 0 0.01 0 + 0 0 0.015 0 + + synch_2 synch_3 synch_4 synch_5 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + + nflips + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + +plot, table="summ", haxis=deltap,vaxis1=q1,vaxis2=q2, + + hmin=-.02,hmax=.02,vmin=1.5,2.5,vmax=2,3, + + colour=100,symbol=2,style=1,noversion, title="tunes vs deltap"; + + plot number = 15 + + +SELECT,FLAG=ERROR,RANGE=QDN11; + +EALIGN, DY=100.e-6; + +Assigned alignment errors to 1 elements +twiss, rmatrix, chrom, save; + +enter Twiss module + +iteration: 1 error: 9.110727E-04 deltap: 1.000000E-06 +orbit: -1.004379E-05 -2.203183E-06 -3.527545E-04 -1.117392E-04 -4.622496E-06 6.000181E-07 + +iteration: 2 error: 3.168106E-07 deltap: 1.000000E-06 +orbit: -9.832489E-06 -2.248951E-06 -3.527700E-04 -1.117415E-04 -2.891848E-06 6.040746E-07 +++++++ warning: TWISS: Calculation of Wx, Wy etc. could be inaccurate due to coupling! + +iteration: 1 error: 9.110582E-04 deltap: 0.000000E+00 +orbit: -3.945560E-07 9.540872E-08 -3.528008E-04 -1.117479E-04 -1.656671E-06 8.757736E-10 + +iteration: 2 error: 3.177433E-07 deltap: 0.000000E+00 +orbit: -1.830396E-07 4.958385E-08 -3.528003E-04 -1.117477E-04 -8.237753E-07 4.924749E-09 +++++++ warning: TWISS: Calculation of Wx, Wy etc. could be inaccurate due to coupling! + +++++++ table: summ + + length orbit5 alfa gammatr + 78.54370266 8.237753475e-07 0.1241073494 2.838580728 + + q1 dq1 betxmax dxmax + 1.820059925 -10.06050238 15.1242288 20.60418774 + + dxrms xcomax xcorms q2 + 9.639966568 2.951973836e-07 1.617984962e-07 2.719828845 + + dq2 betymax dymax dyrms + -20.78994247 20.07026075 0.03370811154 0.0144928442 + + ycomax ycorms deltap synch_1 + 0.0007500437446 0.0003371120552 0 9.747886825 + + synch_2 synch_3 synch_4 synch_5 + 1.526297364 0.3728165258 0.5042000195 4.147876677 + + nflips + 0 + + +plot, haxis=s, vaxis=y, interpolate, range=QFN12/XFW11, noversion, hmin=10.5,hmax=14.0, + +title="interpolate orbit in drifts"; + +Plot - default table plotted: twiss + plot number = 16 + + +plot, haxis=s, vaxis= s,betx,bety,alfx,alfy,mux,muy,dx,dpx,dy,dpy, + + colour=100, title="overflow number of variables to be plotted", noversion; + +Plot - default table plotted: twiss +++++++ warning: PLOT: 11 variables on VAXIS would overflow max number (10). all variables ignored. +++++++ warning: PLOT: no vertical plot variables, plot skipped + + +stop; + + + Number of warnings: 6 +0 in C and 6 in Fortran + + ++++++++++++++++++++++++++++++++++++++++++++ + + MAD-X finished normally + + ++++++++++++++++++++++++++++++++++++++++++++