/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 236 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 = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin391
RA = 335.391, Dec = -52.4307
tmin = 340675201, tmax = 340934401
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='264507', job_status='RUN', time_executed='2021-09-28 09:29:39.969329', time_epoch_executed='1632846579.97' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264507

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264507/ft1_4FGL_J2221.5-5225_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264507/ft1_4FGL_J2221.5-5225_daily_bin391.fits outfile=/scratch/kocevski/264507/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin391.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.12
user 5.87
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.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/264507/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin391.fits evtable="EVENTS" outfile="/scratch/kocevski/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.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/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/264507/ltcube_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.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/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits
.....................!
real 10.46
user 10.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/264507/ltcube_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.fits outfile=/scratch/kocevski/264507/expmap_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.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/264507/ltcube_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.fits
.....................!
real 190.11
user 185.37
sys 4.41

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/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.fits scfile=/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits outfile=/scratch/kocevski/264507/cmap_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.fits scfile=/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits outfile=/scratch/kocevski/264507/cmap_HighResolution_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/264507/ft2_4FGL_J2221.5-5225_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264507/Model_4FGL_J2221.5-5225_daily_bin391.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/264507/ft1_filtered_4FGL_J2221.5-5225_daily_bin391.fits....................!
real 42.60
user 41.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0226       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.536       1.0000         .10000E-03   10000.    
     9 'norm      '    6.3812       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1758       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.348       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.380       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3200       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.761       1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .77046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11804E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.097       1.0000         .10000E-03   10000.    
    23 'norm      '    11.247       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78317       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87324       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=   5386.667     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3678 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.576        .15746E-05** at limit **
   2  Prefactor     29.190        11.579        .41356E-07    .55344E-04
   3  Prefactor     .10000E-03    8.3781        .65461E-07** at limit **
   4  Prefactor     2.8930        4.3385       -.20234E-06    .41066E-04
   5  Prefactor     9.0193        21.700        .30509E-06    .37931E-04
   6  Prefactor     .10000E-03    2.9072       -.92544E-06** at limit **
   7  Prefactor     .56313        3.4426       -.18028E-05    .13159E-03
   8  Prefactor     75.624        81.424       -.33568E-05   -.90846E-04
   9  norm          6.3837        5.3705        .26601E-07    .46364E-04
  10  Prefactor     2.1771        4.4350       -.50050E-06   -.41741E-06
  11  Prefactor     23.347        35.013        .19694E-06    .13396E-04
  12  Prefactor     3.1341        3.8086       -.32545E-06    .14602E-04
  13  Prefactor     .10000E-03    29.037       -.17892E-06** at limit **
  14  Prefactor     .28487        24.341        .10671E-04    .10558E-03
  15  Prefactor     25.302        97.775       -.50583E-05    .36250E-04
  16  Prefactor     .10000E-03    2.6350        .23109E-07** at limit **
  17  Prefactor     6.3178        16.519       -.23473E-06    .50665E-05
  18  Prefactor     46.761        21.766       -.51584E-08    .10107E-03
  19  norm          .10000E-03    3.8157        .45988E-08** at limit **
  20  norm          .76977        10.303       -.33618E-05   -.93599E-05
  21  Prefactor     .10001E-03    22.625        .10588E-04** at limit **
  22  Prefactor     23.113        22.016       -.20946E-06   -.21600E-03
  23  norm          11.247        2.4389        .12547E-06    .53544E-03
  24  Normalizat    .78301        .18349        .21098E-06    .11320E-03
  25  Prefactor     .87327        .14904        .18985E-06    .23803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 29.1904
  Prefactor  = 0.0001
  Prefactor  = 2.89299
  Prefactor  = 9.01933
  Prefactor  = 0.0001
  Prefactor  = 0.563128
  Prefactor  = 75.6235
  norm       = 6.38369
  Prefactor  = 2.17715
  Prefactor  = 23.3473
  Prefactor  = 3.13408
  Prefactor  = 0.0001
  Prefactor  = 0.284867
  Prefactor  = 25.302
  Prefactor  = 0.0001
  Prefactor  = 6.31785
  Prefactor  = 46.7612
  norm       = 0.0001
  norm       = 0.769768
  Prefactor  = 0.000100007
  Prefactor  = 23.1134
  norm       = 11.2475
  Normalizat = 0.783009
  Prefactor  = 0.873272
 **********
 **   18 **HESSE 
 **********

 FCN=   5386.667     FROM HESSE     STATUS=OK           433 CALLS     4111 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.190        11.572        .74157E-04   -1.4627    
   3  Prefactor     .10000E-03    8.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8930        4.3265        .17750E-03   -1.5368    
   5  Prefactor     9.0193        21.704        .13343E-03   -1.5107    
   6  Prefactor     .10000E-03    2.8895        .12160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .56313        3.4539        .25622E-03   -1.5558    
   8  Prefactor     75.624        81.798        .23100E-03   -1.3967    
   9  norm          6.3837        5.3706        .15210E-03   -1.5203    
  10  Prefactor     2.1771        4.4240        .20228E-03   -1.5413    
  11  Prefactor     23.347        34.956        .82898E-04   -1.4741    
  12  Prefactor     3.1341        3.7955        .15221E-03   -1.5354    
  13  Prefactor     .10000E-03    29.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28487        41.705        .37093E-02   -1.5601    
  15  Prefactor     25.302        97.156        .79515E-04   -1.4702    
  16  Prefactor     .10000E-03    2.6439        .11635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3178        16.509        .15967E-03   -1.5205    
  18  Prefactor     46.761        21.806        .58635E-04   -1.4339    
  19  norm          .10000E-03    3.8165        .14002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .76977        10.427        .44731E-03   -1.5532    
  21  Prefactor     .10001E-03    37.068        .33424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.113        22.597        .83347E-04   -1.4746    
  23  norm          11.247        2.4393        .47368E-04   -1.5037    
  24  Normalizat    .78301        .21232        .26276E-03   -1.0070    
  25  Prefactor     .87327        .17399        .21203E-03   -.97081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31746e-10
Minuit parameter uncertainties:
  1  0.000282316
  2  11.5726
  3  4.54979e-06
  4  4.32701
  5  21.7231
  6  1.91639e-05
  7  2.78927
  8  81.9205
  9  5.37103
  10  4.42465
  11  34.9862
  12  3.79577
  13  7.68803e-05
  14  6.89728
  15  97.772
  16  3.75133e-08
  17  16.5213
  18  21.8096
  19  8.96771e-07
  20  5.66707
  21  0.0010286
  22  22.6051
  23  2.43935
  24  0.212546
  25  0.174097
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.384e+00  5.371e+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:  8.733e-01  1.741e-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.830e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.49
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.07e-08 +/- 8.96e-09
Energy Flux (Fixed Index): 2.16e-05 +/- 1.81e-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) = 5386.41856106
delta logL = 0.248829168002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5386.41656774
delta logL = 0.250822495767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7215       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1974       1.0000          .0000       5.0000    
     3 'Normalizat'    .78521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87280       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=   5386.417     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      195 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 30.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7220        5.0872        .18428E-05   -.17418E-02
   2  alpha         1.1975        .42155       -.12602E-04   -.25732E-03
   3  Normalizat    .78507        .17190       -.35696E-07    .11770E-03
   4  Prefactor     .87301        .14669        .48193E-07    .35321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.72205
  alpha      = 1.19748
  Normalizat = 0.785071
  Prefactor  = 0.873013
 **********
 **   18 **HESSE 
 **********

 FCN=   5386.417     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7220        5.7796        .15477E-03   -1.5189    
   2  alpha         1.1975        .55691        .16774E-01   -.54803    
   3  Normalizat    .78507        .19960        .26245E-03   -1.0062    
   4  Prefactor     .87301        .17047        .21206E-03   -.97091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17113e-09
Minuit parameter uncertainties:
  1  5.78005
  2  0.563433
  3  0.19979
  4  0.170573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264507': 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) = 5386.41656661
delta logL = 0.250823626698

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  6.722e+00  5.780e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.197e+00  5.634e-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:  8.730e-01  1.706e-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.851e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.99
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.20 +/- 0.56
Photon Flux (Free Index): 7.76e-09 +/- 7.22e-09
Energy Flux (Free Index): 4.50e-05 +/- 5.90e-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/264507/cmap_HighResolution_340675201_340934401_4FGL_J2221.5-5225_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-08', energy_flux2='4.50e-05', photon_flux_error='8.96e-09', dlogl='2.51e-01', energy_flux='2.16e-05', photon_flux2='7.76e-09', job_status='DONE', time_completed='2021-09-28 09:40:35.184684', photon_index_error2='0.56', photon_index2='1.20', ts='8.49', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='5.90e-05', EG='0.78', time_epoch_completed='1632847235.18', return_code='0', job_id='264507', GAL2='0.87', EG2='0.79', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='7.22e-09', ts2='8.99', photon_index='1.61' WHERE bin_id='391' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 264507: <4FGL_J2221.5-5225_daily_bin391> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin391> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:35 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25:37 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:25:37 2021
Terminated at Tue Sep 28 09:40:35 2021
Results reported at Tue Sep 28 09:40:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin391 335.391 -52.4307 340675201 340934401 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 :                                   654.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             222.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

