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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin572
RA = 335.391, Dec = -52.4307
tmin = 387590401, tmax = 387849601
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='265484', job_status='RUN', time_executed='2021-09-28 09:34:14.119341', time_epoch_executed='1632846854.12' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265484/ft1_4FGL_J2221.5-5225_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265484/ft1_4FGL_J2221.5-5225_daily_bin572.fits outfile=/scratch/kocevski/265484/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin572.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=387590401.0 tmax=387849601.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.29
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265484/ft1_filtered_4FGL_J2221.5-5225_daily_bin572.fits" evtable="EVENTS" scfile=/scratch/kocevski/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits sctable="SC_DATA" outfile=/scratch/kocevski/265484/ltcube_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.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/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits
.....................!
real 12.12
user 11.79
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265484/ft1_filtered_4FGL_J2221.5-5225_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/265484/ltcube_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.fits outfile=/scratch/kocevski/265484/expmap_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.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/265484/ltcube_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.fits
.....................!
real 191.78
user 186.70
sys 4.71

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/265484/ft1_filtered_4FGL_J2221.5-5225_daily_bin572.fits scfile=/scratch/kocevski/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits outfile=/scratch/kocevski/265484/cmap_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265484/ft1_filtered_4FGL_J2221.5-5225_daily_bin572.fits scfile=/scratch/kocevski/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits outfile=/scratch/kocevski/265484/cmap_HighResolution_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.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/265484/ft1_filtered_4FGL_J2221.5-5225_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/265484/ft2_4FGL_J2221.5-5225_daily_bin572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265484/Model_4FGL_J2221.5-5225_daily_bin572.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/265484/ft1_filtered_4FGL_J2221.5-5225_daily_bin572.fits.....................!
real 36.15
user 34.77
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27609E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8255       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    89.351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7902       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.416       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.809       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1164       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1061       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65190       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=   4100.312     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2920 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.953        55.933        .69527E-05    .14669E-03
   2  Prefactor     9.7832        9.3983        .37404E-06   -.29152E-05
   3  Prefactor     .10000E-03    9.4971        .66057E-07** at limit **
   4  Prefactor     4.9904        5.2027        .37109E-06    .13129E-04
   5  Prefactor     18.482        39.852       -.76933E-05   -.98540E-04
   6  Prefactor     .10000E-03    16.767        .15110E-06** at limit **
   7  Prefactor     4.9983        5.0138       -.12439E-06   -.87410E-04
   8  Prefactor     .10001E-03    256.62       -.23164E-04** at limit **
   9  norm          3.8253        5.6057       -.97571E-07   -.19733E-04
  10  Prefactor     .10000E-03    1.2357       -.93532E-07** at limit **
  11  Prefactor     89.348        54.549       -.11779E-05   -.34007E-04
  12  Prefactor     7.7892        9.1737        .29719E-05   -.17392E-03
  13  Prefactor     21.689        36.137       -.75347E-06   -.12529E-05
  14  Prefactor     .10000E-03    5.1515        .18132E-06** at limit **
  15  Prefactor     .10000E-03    112.95        .86562E-05** at limit **
  16  Prefactor     3.7385        6.8342        .48276E-05   -.25912E-03
  17  Prefactor     .10000E-03    19.988       -.67135E-06** at limit **
  18  Prefactor     20.417        18.280       -.16036E-05   -.77256E-04
  19  norm          .10000E-03    4.3853       -.35442E-07** at limit **
  20  norm          .10000E-03    3.1001       -.11769E-06** at limit **
  21  Prefactor     1.1169        18.298        .36208E-05   -.20753E-03
  22  Prefactor     59.881        40.274        .40385E-05    .45023E-03
  23  norm          2.1164        1.5114       -.49457E-06   -.16872E-03
  24  Normalizat    1.1061        .22068       -.31918E-05    .60218E-04
  25  Prefactor     .65186        .16447        .11013E-05   -.85863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.9526
  Prefactor  = 9.78324
  Prefactor  = 0.0001
  Prefactor  = 4.99037
  Prefactor  = 18.4816
  Prefactor  = 0.000100001
  Prefactor  = 4.99828
  Prefactor  = 0.000100007
  norm       = 3.82533
  Prefactor  = 0.0001
  Prefactor  = 89.3478
  Prefactor  = 7.78921
  Prefactor  = 21.6891
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.73846
  Prefactor  = 0.0001
  Prefactor  = 20.4175
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.11686
  Prefactor  = 59.8811
  norm       = 2.11642
  Normalizat = 1.10613
  Prefactor  = 0.651856
 **********
 **   18 **HESSE 
 **********

 FCN=   4100.312     FROM HESSE     STATUS=OK           427 CALLS     3347 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.953        56.187        .24174E-03   -1.4045    
   2  Prefactor     9.7832        9.3951        .12812E-03   -1.5082    
   3  Prefactor     .10000E-03    9.5065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9904        5.1946        .14079E-03   -1.5261    
   5  Prefactor     18.482        40.005        .93109E-04   -1.4848    
   6  Prefactor     .10000E-03    17.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9983        5.0225        .13502E-03   -1.5261    
   8  Prefactor     .10001E-03    258.37        .21424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8253        5.5969        .17883E-03   -1.5317    
  10  Prefactor     .10000E-03    1.2420        .69491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     89.348        54.596        .42508E-04   -1.3815    
  12  Prefactor     7.7892        9.2686        .71833E-03   -1.5150    
  13  Prefactor     21.689        36.237        .86012E-04   -1.4776    
  14  Prefactor     .10000E-03    5.1596        .14185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    113.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7385        6.9664        .10441E-02   -1.5321    
  17  Prefactor     .10000E-03    19.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.417        18.301        .88643E-04   -1.4804    
  19  norm          .10000E-03    4.3857        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1017        .11010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1169        18.299        .39387E-03   -1.5497    
  22  Prefactor     59.881        41.363        .25940E-03   -1.4159    
  23  norm          2.1164        1.5111        .61745E-04   -1.5417    
  24  Normalizat    1.1061        .25300        .22837E-03   -.89555    
  25  Prefactor     .65186        .18729        .23588E-03   -1.0545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00141e-09
Minuit parameter uncertainties:
  1  56.2298
  2  9.39649
  3  3.87627e-06
  4  5.19502
  5  40.0633
  6  0.000296812
  7  5.02295
  8  0.00261267
  9  5.59763
  10  1.34023e-06
  11  54.6263
  12  9.27031
  13  36.2742
  14  6.58263e-06
  15  0.000938508
  16  6.96795
  17  4.39394e-05
  18  18.3062
  19  5.24257e-06
  20  1.01685e-06
  21  9.04451
  22  41.3829
  23  1.51117
  24  0.253281
  25  0.187466
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.825e+00  5.598e+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:  6.519e-01  1.875e-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.106e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265484/likelihoodResults_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.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) = 4100.25763587
delta logL = 0.0544943351206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4100.25116076
delta logL = 0.0609694419181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2063       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0711       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65267       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=   4100.251     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2020        149.79        .56566E-02    .35880E-04
   2  alpha         2.0717        2.8587        .41944        .91779E-05
   3  Normalizat    1.1017        .96998E-01    .37930E-01    .75545E-06
   4  Prefactor     .65269        .55640E-01    .41768E-01    .95196E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20199
  alpha      = 2.07167
  Normalizat = 1.10169
  Prefactor  = 0.652691
 **********
 **   18 **HESSE 
 **********

 FCN=   4100.251     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2020        5.7856        .15418E-03   -1.5350    
   2  alpha         2.0717        1.4392        .19278E-01   -.17218    
   3  Normalizat    1.1017        .22228        .22874E-03   -.89698    
   4  Prefactor     .65269        .18051        .23569E-03   -1.0541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29858e-10
Minuit parameter uncertainties:
  1  5.78661
  2  1.53706
  3  0.222465
  4  0.180671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265484': 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) = 4100.25116041
delta logL = 0.0609697916034

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  3.202e+00  5.787e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.072e+00  1.537e+00  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:  6.527e-01  1.807e-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.102e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 2.07 +/- 1.54
Photon Flux (Free Index): 1.16e-08 +/- 2.66e-08
Energy Flux (Free Index): 8.29e-06 +/- 1.44e-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/265484/cmap_HighResolution_387590401_387849601_4FGL_J2221.5-5225_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-05', comment='SUCCESS', energy_flux2='8.29e-06', dlogl='6.10e-02', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-28 09:43:54.639313', photon_index_error2='1.54', photon_index2='2.07', ts='0.92', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='4.02e-08', energy_flux_error2='1.44e-05', EG='1.11', time_epoch_completed='1632847434.64', return_code='0', job_id='265484', GAL2='0.65', EG2='1.10', return_code2='0', photon_flux_error2='2.66e-08', ts2='1.04', photon_index='1.61' WHERE bin_id='572' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:43:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 265484: <4FGL_J2221.5-5225_daily_bin572> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin572> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:22 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:25 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:25 2021
Terminated at Tue Sep 28 09:43:55 2021
Results reported at Tue Sep 28 09:43:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin572 335.391 -52.4307 387590401 387849601 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 :                                   581.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            813 sec.

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

