/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin135
RA = 335.391, Dec = -52.4307
tmin = 274320001, tmax = 274579201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='263086', job_status='RUN', time_executed='2021-09-28 09:21:07.235523', time_epoch_executed='1632846067.24' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263086

Creating custom pfile directory:
/scratch/kocevski/263086/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=274320001.0 && nMetStart<274579201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=274320001.0 && nMetStart<274579201.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263086/ft1_4FGL_J2221.5-5225_daily_bin135.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=274320001.0 && nMetStart<274579201.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263086/ft1_4FGL_J2221.5-5225_daily_bin135.fits outfile=/scratch/kocevski/263086/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin135.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=274320001.0 tmax=274579201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.63
user 3.38
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/263086/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/263086/ltcube_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits
.....................!
real 11.80
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/263086/ltcube_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits outfile=/scratch/kocevski/263086/expmap_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/263086/ltcube_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits
.....................!
real 190.13
user 185.72
sys 4.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.5-5225 @ 335.391 -52.4307

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits scfile=/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits outfile=/scratch/kocevski/263086/cmap_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits scfile=/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits outfile=/scratch/kocevski/263086/cmap_HighResolution_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263086/Model_4FGL_J2221.5-5225_daily_bin135.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits.....................!
real 45.82
user 44.59
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits', '/scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits', expMap='/scratch/kocevski/263086/expmap_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits', expCube='/scratch/kocevski/263086/ltcube_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263086/Model_4FGL_J2221.5-5225_daily_bin135.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.5-5225'

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263086/ft1_filtered_4FGL_J2221.5-5225_daily_bin135.fits
Spacecraft file(s): /scratch/kocevski/263086/ft2_4FGL_J2221.5-5225_daily_bin135.fits
Exposure map: /scratch/kocevski/263086/expmap_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits
Exposure cube: /scratch/kocevski/263086/ltcube_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263086/Model_4FGL_J2221.5-5225_daily_bin135.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5926.71422175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5926.7082197

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    109.68       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    111.27       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13432E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .93618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.280       1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.653       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69281       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15763E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5607       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79035       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5926.708     FROM MIGRAD    STATUS=FAILED      1042 CALLS     3407 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.867        .18142E-02** at limit **
   2  Prefactor     3.0168        7.3325        .23379E-03   -.29469E-04
   3  Prefactor     109.70        37.922        .38405E-04   -.30431E-04
   4  Prefactor     1.6915        4.6942        .26209E-03    .24768E-04
   5  Prefactor     22.759        23.904        .83958E-04   -.22749E-04
   6  Prefactor     .10000E-03    10.417        .18142E-02** at limit **
   7  Prefactor     5.9401        3.9603        .11992E-03   -.55648E-04
   8  Prefactor     111.27        114.32        .38134E-04   -.26056E-04
   9  norm          .10000E-03    2.4206        .11696E-02** at limit **
  10  Prefactor     .10000E-03    7.2173        .25887E-02** at limit **
  11  Prefactor     42.334        72.023        .61587E-04   -.65310E-04
  12  Prefactor     7.0981        8.3596        .15051E-03   -.41243E-04
  13  Prefactor     1.0984        890.29        .76881E-02    .52959E-03
  14  Prefactor     15.242        23.214        .10246E-03   -.37280E-04
  15  Prefactor     85.943        97.160        .21665E-03   -.17632E-04
  16  Prefactor     13.046        10.304        .11090E-03   -.51874E-04
  17  Prefactor     .10000E-03    36.889        .18142E-02** at limit **
  18  Prefactor     .10000E-03    19.917        .18142E-02** at limit **
  19  norm          10.652        10.588        .12275E-03   -.27784E-05
  20  norm          .10000E-03    4.5291        .15971E-02** at limit **
  21  Prefactor     .68524        21.153        .38808E-02    .14769E-03
  22  Prefactor     .10000E-03    232.29        .70417E-02** at limit **
  23  norm          4.5610        1.9787        .66352E-04    .11445E-03
  24  Normalizat    .78956        .26259        .31681E-03   -.10665E-03
  25  Prefactor     1.2529        .20543        .21771E-03   -.13223E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5926.708     FROM SIMPLEX   STATUS=UNCHANGED   1160 CALLS     4567 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.867        .72978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0168        7.3325        .91128E-06   -1.5361    
   3  Prefactor     109.70        37.922        .80655E-06   -1.3609    
   4  Prefactor     1.6915        4.6942        .91514E-06   -1.5448    
   5  Prefactor     22.759        23.904        .87402E-06   -1.4753    
   6  Prefactor     .10000E-03    10.417        .30627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9401        3.9603        .90233E-06   -1.5220    
   8  Prefactor     111.27        114.32        .80641E-06   -1.3594    
   9  norm          .10000E-03    2.4206        .26239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2173        .18327E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.334        72.023        .85437E-06   -1.4406    
  12  Prefactor     7.0981        8.3596        .89897E-06   -1.5175    
  13  Prefactor     1.0984        890.29        .66045E-06   -1.5498    
  14  Prefactor     15.242        23.214        .88364E-06   -1.4927    
  15  Prefactor     85.943        97.160        .81217E-06   -1.3851    
  16  Prefactor     13.046        10.304        .88797E-06   -1.4985    
  17  Prefactor     .10000E-03    36.889        .42256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.917        .45996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.652        10.588        .89324E-06   -1.5055    
  20  norm          .10000E-03    4.5291        .33410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .68524        21.153        .91860E-06   -1.5542    
  22  Prefactor     .10000E-03    232.29        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5610        1.9787        .90703E-06   -1.5281    
  24  Normalizat    .78956        .26259        .59619E-06   -1.0046    
  25  Prefactor     1.2529        .20543        .50288E-06   -.84717    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5926.708     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     4975 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.868        .36285E-03** at limit **
   2  Prefactor     3.0168        7.3304        .93514E-05   -.24314E-06
   3  Prefactor     109.70        37.908        .76811E-05   -.29602E-06
   4  Prefactor     1.6914        4.6919        .10484E-04   -.86753E-06
   5  Prefactor     22.759        23.903        .16792E-04   -.10833E-05
   6  Prefactor     .10000E-03    10.422        .36285E-03** at limit **
   7  Prefactor     5.9401        3.9585        .47969E-05   -.33180E-05
   8  Prefactor     111.27        113.98        .76268E-05   -.14906E-05
   9  norm          .10000E-03    2.4206        .23393E-03** at limit **
  10  Prefactor     .10000E-03    7.2622        .51774E-03** at limit **
  11  Prefactor     42.334        71.958        .12317E-04   -.49841E-05
  12  Prefactor     7.0980        8.0303        .60202E-05   -.12841E-04
  13  Prefactor     1.0984        602.63        .15376E-02    .21010E-04
  14  Prefactor     15.242        19.510        .40986E-05   -.88762E-05
  15  Prefactor     85.943        97.104        .43329E-04   -.83962E-06
  16  Prefactor     13.046        10.303        .44358E-05   -.66636E-05
  17  Prefactor     .10000E-03    36.890        .36285E-03** at limit **
  18  Prefactor     .10000E-03    19.924        .36285E-03** at limit **
  19  norm          10.652        10.587        .49102E-05    .13892E-05
  20  norm          .10000E-03    4.5295        .31941E-03** at limit **
  21  Prefactor     .68521        20.474        .15523E-03    .48336E-05
  22  Prefactor     .10000E-03    235.83        .28167E-03** at limit **
  23  norm          4.5610        1.9681        .26541E-05    .31698E-04
  24  Normalizat    .78956        .25722        .12672E-04   -.93301E-05
  25  Prefactor     1.2529        .20357        .43542E-04   -.10392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.01685
  Prefactor  = 109.696
  Prefactor  = 1.69145
  Prefactor  = 22.759
  Prefactor  = 0.0001
  Prefactor  = 5.94006
  Prefactor  = 111.268
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.3343
  Prefactor  = 7.09805
  Prefactor  = 1.09843
  Prefactor  = 15.2424
  Prefactor  = 85.9428
  Prefactor  = 13.0464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6524
  norm       = 0.0001
  Prefactor  = 0.685206
  Prefactor  = 0.0001
  norm       = 4.56099
  Normalizat = 0.789561
  Prefactor  = 1.25295
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.708     FROM HESSE     STATUS=OK           403 CALLS     5378 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.869        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0168        7.3340        .18703E-05   -1.5361    
   3  Prefactor     109.70        37.903        .15362E-05   -1.3609    
   4  Prefactor     1.6914        4.6920        .20967E-05   -1.5448    
   5  Prefactor     22.759        23.907        .33583E-05   -1.4753    
   6  Prefactor     .10000E-03    10.423        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9401        3.9579        .95938E-06   -1.5220    
   8  Prefactor     111.27        114.08        .15254E-05   -1.3594    
   9  norm          .10000E-03    2.4206        .46786E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2640        .10355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.334        72.058        .24635E-05   -1.4406    
  12  Prefactor     7.0980        7.9885        .12040E-05   -1.5175    
  13  Prefactor     1.0984        563.48        .30752E-03   -1.5498    
  14  Prefactor     15.242        19.033        .81971E-06   -1.4927    
  15  Prefactor     85.943        97.111        .86658E-05   -1.3851    
  16  Prefactor     13.046        10.302        .88717E-06   -1.4985    
  17  Prefactor     .10000E-03    36.890        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.924        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.652        10.600        .98203E-06   -1.5055    
  20  norm          .10000E-03    4.5295        .63883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .68521        20.465        .62094E-05   -1.5542    
  22  Prefactor     .10000E-03    235.85        .56333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5610        1.9678        .53082E-06   -1.5281    
  24  Normalizat    .78956        .25655        .25345E-05   -1.0046    
  25  Prefactor     1.2529        .20334        .87084E-05   -.84717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88666e-12
Minuit parameter uncertainties:
  1  1.67774e-07
  2  7.33622
  3  37.9112
  4  4.69307
  5  23.9167
  6  1.3658e-06
  7  3.95809
  8  114.307
  9  1.96934e-08
  10  5.22403e-06
  11  72.2068
  12  7.98971
  13  50.2373
  14  19.0403
  15  97.2909
  16  10.3035
  17  7.35334e-07
  18  2.85e-08
  19  10.6023
  20  1.84944e-07
  21  7.49166
  22  0.000437399
  23  1.9678
  24  0.256943
  25  0.203472
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5926.70817308

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.969e-08  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.253e+00  2.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.896e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 2.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263086/likelihoodResults_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5926.70975998
delta logL = -0.00158690245007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5926.70817314
delta logL = -6.21312210569e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6055       1.0000          .0000       5.0000    
     3 'Normalizat'    .78951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5926.708     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      238 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.666        .11703E-02** at limit **
   2  alpha         1.4788        4.2573        .18043       -.37805E-08
   3  Normalizat    .78956        .23254        .31681E-03    .53468E-04
   4  Prefactor     1.2529        .19788        .21771E-03   -.67561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.47878
  Normalizat = 0.789563
  Prefactor  = 1.25295
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.708     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4465        .23406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4788        3.5246        .72173E-02   -.42080    
   3  Normalizat    .78956        .23272        .12672E-04   -1.0046    
   4  Prefactor     1.2529        .19803        .43542E-04   -.84717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0977e-11
Minuit parameter uncertainties:
  1  7.43196e-07
  2  193.565
  3  0.233016
  4  0.198148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263086': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5926.70817286
delta logL = 2.17042725126e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  7.432e-07  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.479e+00  1.936e+02  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.253e+00  1.981e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  7.896e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/263086/cmap_HighResolution_274320001_274579201_4FGL_J2221.5-5225_daily_bin135.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/263086

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', job_status='DONE', photon_flux_upper_limit='2.36e-08', time_completed='2021-09-28 09:34:59.497042', job_id='263086', GAL2='1.25', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632846899.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='2.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='135' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:34:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 263086: <4FGL_J2221.5-5225_daily_bin135> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin135> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:51 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:20:54 2021
Terminated at Tue Sep 28 09:35:00 2021
Results reported at Tue Sep 28 09:35:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin135 335.391 -52.4307 274320001 274579201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.5-5225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            849 sec.

The output (if any) is above this job summary.

