/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 147 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 = 7344
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin800
RA = 335.391, Dec = -52.4307
tmin = 446688001, tmax = 446947201
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='265855', job_status='RUN', time_executed='2021-09-28 09:33:33.205874', time_epoch_executed='1632846813.21' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265855/ft1_4FGL_J2221.5-5225_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265855/ft1_4FGL_J2221.5-5225_daily_bin800.fits outfile=/scratch/kocevski/265855/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin800.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=446688001.0 tmax=446947201.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.38
user 3.20
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.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/265855/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin800.fits evtable="EVENTS" outfile="/scratch/kocevski/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/265855/ltcube_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.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/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits
.....................!
real 11.69
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/265855/ltcube_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.fits outfile=/scratch/kocevski/265855/expmap_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.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/265855/ltcube_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.fits
.....................!
real 189.44
user 185.26
sys 3.85

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/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits scfile=/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits outfile=/scratch/kocevski/265855/cmap_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits scfile=/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits outfile=/scratch/kocevski/265855/cmap_HighResolution_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265855/Model_4FGL_J2221.5-5225_daily_bin800.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/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits.....................!
real 50.78
user 49.60
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits', '/scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits', expMap='/scratch/kocevski/265855/expmap_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.fits', expCube='/scratch/kocevski/265855/ltcube_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265855/Model_4FGL_J2221.5-5225_daily_bin800.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/265855/ft1_filtered_4FGL_J2221.5-5225_daily_bin800.fits
Spacecraft file(s): /scratch/kocevski/265855/ft2_4FGL_J2221.5-5225_daily_bin800.fits
Exposure map: /scratch/kocevski/265855/expmap_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.fits
Exposure cube: /scratch/kocevski/265855/ltcube_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265855/Model_4FGL_J2221.5-5225_daily_bin800.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) = 7004.49041767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11316E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8909       1.0000         .10000E-03   10000.    
     8 'Prefactor '    144.70       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4863       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.962       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0875       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2939       1.0000         .10000E-03   10000.    
    23 'norm      '    4.3679       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90415       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99813       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.

 FCN=   7004.479     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3003 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.570       -.16046E-05** at limit **
   2  Prefactor     4.1789        7.8090        .12552E-06    .33459E-05
   3  Prefactor     .10000E-03    8.9822       -.72088E-06** at limit **
   4  Prefactor     .10023E-03    2.0275        .60919E-06** at limit **
   5  Prefactor     74.374        48.340       -.28687E-05   -.15711E-03
   6  Prefactor     .59040        70.222        .75717E-05   -.41449E-04
   7  Prefactor     1.8887        3.2303       -.18140E-06   -.68876E-04
   8  Prefactor     144.07        124.69       -.33734E-05   -.12748E-04
   9  norm          3.4340        4.0260       -.11255E-06    .64540E-05
  10  Prefactor     4.7015        2.9158       -.19440E-06   -.13933E-04
  11  Prefactor     7.4839        31.149       -.13130E-05    .17327E-05
  12  Prefactor     .10000E-03    1.6202       -.49677E-07** at limit **
  13  Prefactor     .10000E-03    8.8538       -.51628E-06** at limit **
  14  Prefactor     13.965        10.171       -.48722E-06   -.22792E-04
  15  Prefactor     .10000E-03    59.611       -.86178E-06** at limit **
  16  Prefactor     .10000E-03    1.3531       -.73289E-07** at limit **
  17  Prefactor     47.307        38.000        .26224E-06    .48918E-04
  18  Prefactor     24.962        18.909        .53683E-07    .79403E-04
  19  norm          .10000E-03    4.6390        .14960E-08** at limit **
  20  norm          .10000E-03    2.2047       -.14165E-08** at limit **
  21  Prefactor     9.0887        8.7457        .17048E-05    .32777E-03
  22  Prefactor     2.2970        59.764       -.95604E-05   -.48981E-04
  23  norm          4.3680        1.6151        .63077E-07    .47914E-03
  24  Normalizat    .90400        .18333       -.23758E-05    .38256E-03
  25  Prefactor     .99819        .15329        .54290E-05    .94805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.1789
  Prefactor  = 0.0001
  Prefactor  = 0.000100229
  Prefactor  = 74.3735
  Prefactor  = 0.590397
  Prefactor  = 1.88875
  Prefactor  = 144.074
  norm       = 3.43402
  Prefactor  = 4.70149
  Prefactor  = 7.4839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.3068
  Prefactor  = 24.9622
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.08872
  Prefactor  = 2.29702
  norm       = 4.36799
  Normalizat = 0.903995
  Prefactor  = 0.998192
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.479     FROM HESSE     STATUS=OK           433 CALLS     3436 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1789        7.7867        .19720E-03   -1.5299    
   3  Prefactor     .10000E-03    9.0111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10023E-03    14.945        .21599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     74.374        50.444        .23263E-03   -1.3981    
   6  Prefactor     .59040        90.385        .43167E-02   -1.5554    
   7  Prefactor     1.8887        3.2089        .18419E-03   -1.5433    
   8  Prefactor     144.07        136.97        .16748E-03   -1.3302    
   9  norm          3.4340        4.0236        .17731E-03   -1.5337    
  10  Prefactor     4.7015        2.9170        .10844E-03   -1.5274    
  11  Prefactor     7.4839        31.165        .14658E-03   -1.5161    
  12  Prefactor     .10000E-03    1.6312        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.965        10.199        .10719E-03   -1.4960    
  15  Prefactor     .10000E-03    59.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3538        .95077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.307        38.007        .58306E-04   -1.4331    
  18  Prefactor     24.962        18.962        .80177E-04   -1.4708    
  19  norm          .10000E-03    4.6479        .17605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2062        .12135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.0887        8.5393        .13295E-03   -1.5105    
  22  Prefactor     2.2970        57.688        .27100E-03   -1.5405    
  23  norm          4.3680        1.6133        .58547E-04   -1.5290    
  24  Normalizat    .90400        .20742        .26770E-03   -.96320    
  25  Prefactor     .99819        .16468        .21693E-03   -.92790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10954e-07
Minuit parameter uncertainties:
  1  0.000273537
  2  7.78857
  3  4.47693e-05
  4  0.0037008
  5  50.4734
  6  14.6313
  7  3.20922
  8  137.272
  9  4.02392
  10  2.91706
  11  30.5714
  12  3.15087e-06
  13  1.33693e-05
  14  10.2004
  15  5.68382e-05
  16  1.03221e-06
  17  38.0269
  18  18.9667
  19  4.71619e-06
  20  3.06878e-06
  21  8.54044
  22  23.0469
  23  1.6133
  24  0.207605
  25  0.164764
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.434e+00  4.024e+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

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.982e-01  1.648e-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:  9.040e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 5.73e-09 +/- 6.71e-09
Energy Flux (Fixed Index): 1.16e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/265855/likelihoodResults_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.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) = 7004.46262254
delta logL = 0.0166653245806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7004.46141789
delta logL = 0.0178699703156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2392       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7695       1.0000          .0000       5.0000    
     3 'Normalizat'    .90342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99809       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.

 FCN=   7004.461     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      187 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2392        149.26        .56264E-02    .98594E-03
   2  alpha         1.7695        2.9701        .43627        .35031E-04
   3  Normalizat    .90342        .78426E-01    .44945E-01   -.20543E-03
   4  Prefactor     .99808        .54839E-01    .46243E-01   -.27989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23919
  alpha      = 1.7695
  Normalizat = 0.903418
  Prefactor  = 0.998085
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.461     FROM HESSE     STATUS=OK            29 CALLS      216 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2392        4.1009        .17008E-03   -1.5348    
   2  alpha         1.7695        .85356        .20282E-01   -.29653    
   3  Normalizat    .90342        .18974        .26777E-03   -.96340    
   4  Prefactor     .99808        .16170        .21694E-03   -.92793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34577e-10
Minuit parameter uncertainties:
  1  4.10125
  2  0.872816
  3  0.189881
  4  0.16178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265855': 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) = 7004.46141788
delta logL = 0.0178699817598

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.239e+00  4.101e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.769e+00  8.728e-01  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:  9.981e-01  1.618e-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:  9.034e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.77 +/- 0.87
Photon Flux (Free Index): 6.83e-09 +/- 9.89e-09
Energy Flux (Free Index): 9.33e-06 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/265855/cmap_HighResolution_446688001_446947201_4FGL_J2221.5-5225_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-05', comment='SUCCESS', photon_flux='5.73e-09', energy_flux2='9.33e-06', photon_flux_error='6.71e-09', dlogl='1.79e-02', energy_flux='1.16e-05', photon_flux2='6.83e-09', job_status='DONE', time_completed='2021-09-28 09:46:18.594905', photon_index_error2='0.87', photon_index2='1.77', ts='1.89', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.86e-08', energy_flux_error2='1.55e-05', EG='0.90', time_epoch_completed='1632847578.59', return_code='0', job_id='265855', GAL2='1.00', EG2='0.90', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='9.89e-09', ts2='1.92', photon_index='1.61' WHERE bin_id='800' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:46:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 265855: <4FGL_J2221.5-5225_daily_bin800> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin800> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:58 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:59 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:30:59 2021
Terminated at Tue Sep 28 09:46:19 2021
Results reported at Tue Sep 28 09:46:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin800 335.391 -52.4307 446688001 446947201 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 :                                   764.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

