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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1660
RA = 335.391, Dec = -52.4307
tmin = 669600001, tmax = 669859201
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='993277', job_status='RUN', time_executed='2022-03-25 00:37:44.499308', time_epoch_executed='1648193864.5' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993277/ft1_4FGL_J2221.5-5225_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993277/ft1_4FGL_J2221.5-5225_daily_bin1660.fits outfile=/scratch/kocevski/993277/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1660.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=669600001.0 tmax=669859201.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 4.55
user 4.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.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/993277/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1660.fits evtable="EVENTS" outfile="/scratch/kocevski/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.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.32
sys 0.16

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993277/ltcube_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.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/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits
.....................!
real 11.78
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993277/ltcube_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.fits outfile=/scratch/kocevski/993277/expmap_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.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/993277/ltcube_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.fits
.....................!
real 190.47
user 185.66
sys 4.51

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/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.fits scfile=/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits outfile=/scratch/kocevski/993277/cmap_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.fits scfile=/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits outfile=/scratch/kocevski/993277/cmap_HighResolution_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993277/ft2_4FGL_J2221.5-5225_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993277/Model_4FGL_J2221.5-5225_daily_bin1660.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/993277/ft1_filtered_4FGL_J2221.5-5225_daily_bin1660.fits.....................!
real 45.95
user 44.71
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.17       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    160.15       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.422       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4983       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.182       1.0000         .10000E-03   10000.    
    23 'norm      '    .84577       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0012       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=   5909.214     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2946 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.17        70.907        .29929E-06    .82962E-04
   2  Prefactor     4.1737        9.6885        .29950E-05    .84129E-05
   3  Prefactor     .10000E-03    10.540       -.27633E-06** at limit **
   4  Prefactor     8.7105        5.8396        .51938E-06    .57453E-04
   5  Prefactor     160.15        62.720        .17088E-06   -.69309E-04
   6  Prefactor     .10000E-03    4.9457       -.31823E-06** at limit **
   7  Prefactor     .10000E-03    1.7229       -.19760E-07** at limit **
   8  Prefactor     43.414        98.614        .75105E-06   -.29060E-04
   9  norm          6.1893        5.9788        .20016E-07    .17055E-04
  10  Prefactor     .10000E-03    5.0275       -.11284E-06** at limit **
  11  Prefactor     .10000E-03    16.578       -.91465E-07** at limit **
  12  Prefactor     3.3501        6.4364        .43675E-06    .18434E-04
  13  Prefactor     8.4944        22.359        .26910E-07    .13386E-03
  14  Prefactor     6.0168        12.127        .15394E-06    .18872E-03
  15  Prefactor     .10000E-03    247.00        .26871E-05** at limit **
  16  Prefactor     2.2454        11.417        .91191E-05   -.25294E-05
  17  Prefactor     .10000E-03    13.292        .23180E-06** at limit **
  18  Prefactor     .10000E-03    9.7981        .19775E-06** at limit **
  19  norm          .10000E-03    4.4110        .12639E-07** at limit **
  20  norm          .10000E-03    2.7582        .17013E-08** at limit **
  21  Prefactor     .10000E-03    2.9037        .18078E-06** at limit **
  22  Prefactor     19.180        17.708       -.16469E-06    .15117E-03
  23  norm          .84619        1.4097        .17051E-06    .29582E-04
  24  Normalizat    1.2670        .22079       -.20608E-05   -.94847E-06
  25  Prefactor     1.0011        .17521        .45586E-06    .33541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.174
  Prefactor  = 4.17365
  Prefactor  = 0.000100003
  Prefactor  = 8.71054
  Prefactor  = 160.148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.4143
  norm       = 6.18934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35015
  Prefactor  = 8.49438
  Prefactor  = 6.01682
  Prefactor  = 0.000100002
  Prefactor  = 2.24545
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1795
  norm       = 0.84619
  Normalizat = 1.26697
  Prefactor  = 1.00107
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.214     FROM HESSE     STATUS=OK           425 CALLS     3371 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.17        71.017        .36561E-04   -1.3502    
   2  Prefactor     4.1737        9.6914        .98639E-03   -1.5299    
   3  Prefactor     .10000E-03    10.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7105        5.8322        .67908E-03   -1.5118    
   5  Prefactor     160.15        62.852        .31864E-04   -1.3170    
   6  Prefactor     .10000E-03    4.9600        .16685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7380        .98506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.414        98.575        .60838E-04   -1.4389    
   9  norm          6.1893        5.9811        .16136E-03   -1.5210    
  10  Prefactor     .10000E-03    5.2415        .33627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3501        6.4342        .22110E-03   -1.5342    
  13  Prefactor     8.4944        22.294        .13751E-03   -1.5125    
  14  Prefactor     6.0168        12.092        .16364E-03   -1.5217    
  15  Prefactor     .10000E-03    248.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2454        11.430        .13711E-02   -1.5408    
  17  Prefactor     .10000E-03    13.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4115        .15768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7621        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9161        .12792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.180        17.702        .91449E-04   -1.4832    
  23  norm          .84619        1.3044        .11106E-02   -1.5524    
  24  Normalizat    1.2670        .26285        .26821E-03   -.84558    
  25  Prefactor     1.0011        .21010        .24520E-03   -.92694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81629e-10
Minuit parameter uncertainties:
  1  71.0666
  2  9.69504
  3  0.000329452
  4  5.83256
  5  62.878
  6  5.5462e-05
  7  8.73497e-07
  8  98.9485
  9  5.98164
  10  4.01622e-06
  11  8.9673e-05
  12  6.43551
  13  22.3159
  14  12.0965
  15  0.00125844
  16  10.1349
  17  0.000209028
  18  0.000189091
  19  4.12875e-06
  20  6.04693e-07
  21  1.81912e-05
  22  17.7066
  23  1.30443
  24  0.263127
  25  0.21027
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.189e+00  5.982e+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:  1.001e+00  2.103e-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:  1.267e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.03e-08 +/- 9.98e-09
Energy Flux (Fixed Index): 2.09e-05 +/- 2.02e-05

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) = 5909.1681585
delta logL = 0.0461391658864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5909.16758241
delta logL = 0.0467152485407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0002       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3635       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0017       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=   5909.168     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0014        6.1023        .16392E-03    .41613E-05
   2  alpha         1.3638        .77540        .21105E-01   -.16397E-05
   3  Normalizat    1.2682        .24883        .26811E-03   -.22982E-04
   4  Prefactor     1.0017        .20625        .24514E-03    .23280E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00136
  alpha      = 1.3638
  Normalizat = 1.26817
  Prefactor  = 1.00174
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.168     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0014        6.1542        .65568E-05   -1.5218    
   2  alpha         1.3638        .78193        .84419E-03   -.47179    
   3  Normalizat    1.2682        .24908        .10724E-04   -.84522    
   4  Prefactor     1.0017        .20646        .98058E-05   -.92672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04844e-11
Minuit parameter uncertainties:
  1  6.15487
  2  0.798965
  3  0.249319
  4  0.206624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993277': 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) = 5909.16758228
delta logL = 0.0467153819218

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.001e+00  6.155e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.364e+00  7.990e-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:  1.002e+00  2.066e-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:  1.268e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.36 +/- 0.80
Photon Flux (Free Index): 7.68e-09 +/- 1.04e-08
Energy Flux (Free Index): 2.92e-05 +/- 4.37e-05

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/993277/cmap_HighResolution_669600001_669859201_4FGL_J2221.5-5225_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-08', energy_flux2='2.92e-05', photon_flux_error='9.98e-09', dlogl='4.67e-02', energy_flux='2.09e-05', photon_flux2='7.68e-09', job_status='DONE', time_completed='2022-03-25 00:48:11.652644', photon_index_error2='0.80', photon_index2='1.36', ts='5.09', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='1.27', time_epoch_completed='1648194491.65', return_code='0', job_id='993277', GAL2='1.00', EG2='1.27', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='1.04e-08', ts2='5.18', photon_index='1.61' WHERE bin_id='1660' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:48:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 993277: <4FGL_J2221.5-5225_daily_bin1660> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:44 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:46 2022
Terminated at Fri Mar 25 00:48:14 2022
Results reported at Fri Mar 25 00:48:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1660 335.391 -52.4307 669600001 669859201 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 :                                   629.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            750 sec.

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

