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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin631
RA = 335.391, Dec = -52.4307
tmin = 402883201, tmax = 403142401
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='265579', job_status='RUN', time_executed='2021-09-28 09:32:13.278295', time_epoch_executed='1632846733.28' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265579/ft1_4FGL_J2221.5-5225_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265579/ft1_4FGL_J2221.5-5225_daily_bin631.fits outfile=/scratch/kocevski/265579/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin631.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=402883201.0 tmax=403142401.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.61
user 4.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265579/ft1_filtered_4FGL_J2221.5-5225_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/265579/ltcube_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.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/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits
.....................!
real 11.91
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265579/ft1_filtered_4FGL_J2221.5-5225_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/265579/ltcube_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.fits outfile=/scratch/kocevski/265579/expmap_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.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/265579/ltcube_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.fits
.....................!
real 192.25
user 187.30
sys 4.59

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/265579/ft1_filtered_4FGL_J2221.5-5225_daily_bin631.fits scfile=/scratch/kocevski/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits outfile=/scratch/kocevski/265579/cmap_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265579/ft1_filtered_4FGL_J2221.5-5225_daily_bin631.fits scfile=/scratch/kocevski/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits outfile=/scratch/kocevski/265579/cmap_HighResolution_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265579/ft1_filtered_4FGL_J2221.5-5225_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/265579/ft2_4FGL_J2221.5-5225_daily_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265579/Model_4FGL_J2221.5-5225_daily_bin631.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/265579/ft1_filtered_4FGL_J2221.5-5225_daily_bin631.fits.....................!
real 55.28
user 53.95
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12793E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.155       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    68.931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.442       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-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 '    7.8432       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    47.775       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85141       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99067       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=   7303.645     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2906 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.672        .38628E-08** at limit **
   2  Prefactor     .10000E-03    1.9462       -.71873E-08** at limit **
   3  Prefactor     52.616        27.927        .67942E-07   -.16806E-04
   4  Prefactor     13.378        5.1819        .29589E-07   -.80946E-04
   5  Prefactor     .10000E-03    103.58        .34217E-07** at limit **
   6  Prefactor     13.190        10.066       -.35745E-06   -.35849E-04
   7  Prefactor     5.0107        4.3205        .14333E-06   -.67980E-04
   8  Prefactor     14.187        164.55        .91529E-05    .56880E-04
   9  norm          9.7319        8.4860       -.59498E-07   -.43098E-05
  10  Prefactor     1.6435        4.1484        .85219E-06   -.13933E-03
  11  Prefactor     68.927        57.040       -.12395E-05   -.50672E-04
  12  Prefactor     .10000E-03    6.0650        .72135E-07** at limit **
  13  Prefactor     .10000E-03    33.234        .94001E-07** at limit **
  14  Prefactor     8.7891        13.709       -.61032E-07   -.24920E-04
  15  Prefactor     68.455        81.830        .15725E-05    .67874E-04
  16  Prefactor     6.1404        7.5795        .19249E-05   -.30820E-03
  17  Prefactor     62.358        41.607        .26765E-06    .40571E-04
  18  Prefactor     .10000E-03    21.680        .51412E-07** at limit **
  19  norm          .10000E-03    6.0622       -.24089E-08** at limit **
  20  norm          .10000E-03    2.4581       -.84563E-09** at limit **
  21  Prefactor     7.8425        6.9350        .34435E-07    .33835E-04
  22  Prefactor     .10000E-03    14.351        .25903E-07** at limit **
  23  norm          47.775        4.3053        .20989E-08   -.22107E-04
  24  Normalizat    .85146        .19550       -.46948E-06   -.21958E-04
  25  Prefactor     .99062        .15363       -.18976E-06   -.26185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.6159
  Prefactor  = 13.3785
  Prefactor  = 0.0001
  Prefactor  = 13.1896
  Prefactor  = 5.01068
  Prefactor  = 14.187
  norm       = 9.73193
  Prefactor  = 1.64349
  Prefactor  = 68.9271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.7891
  Prefactor  = 68.455
  Prefactor  = 6.14037
  Prefactor  = 62.3577
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.8425
  Prefactor  = 0.0001
  norm       = 47.7747
  Normalizat = 0.851455
  Prefactor  = 0.99062
 **********
 **   18 **HESSE 
 **********

 FCN=   7303.645     FROM HESSE     STATUS=OK           425 CALLS     3331 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9504        .11643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.616        27.936        .55292E-04   -1.4256    
   4  Prefactor     13.378        5.1824        .10951E-03   -1.4976    
   5  Prefactor     .10000E-03    105.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.190        10.177        .11028E-03   -1.4981    
   7  Prefactor     5.0107        4.3194        .15499E-03   -1.5260    
   8  Prefactor     14.187        183.53        .10646E-03   -1.4954    
   9  norm          9.7319        8.4844        .12845E-03   -1.5084    
  10  Prefactor     1.6435        4.1390        .25211E-03   -1.5452    
  11  Prefactor     68.927        56.913        .48347E-04   -1.4046    
  12  Prefactor     .10000E-03    6.2811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.7891        13.730        .13524E-03   -1.5115    
  15  Prefactor     68.455        82.649        .24259E-03   -1.4051    
  16  Prefactor     6.1404        7.6979        .81005E-03   -1.5212    
  17  Prefactor     62.358        41.649        .25408E-03   -1.4127    
  18  Prefactor     .10000E-03    21.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.0654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.4584        .13086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8425        6.9355        .14318E-03   -1.5148    
  22  Prefactor     .10000E-03    14.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          47.775        4.3108        .51118E-04   -1.4324    
  24  Normalizat    .85146        .23251        .31214E-03   -.98188    
  25  Prefactor     .99062        .18339        .23995E-03   -.93043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22172e-10
Minuit parameter uncertainties:
  1  3.76145e-06
  2  1.71064e-07
  3  27.9425
  4  5.18261
  5  6.48915e-05
  6  10.1784
  7  4.31965
  8  102.441
  9  8.48549
  10  4.13968
  11  56.9575
  12  1.42337e-05
  13  2.80671e-05
  14  13.7348
  15  82.7879
  16  7.69914
  17  41.6681
  18  5.40659e-06
  19  2.36569e-07
  20  1.1501e-07
  21  6.93618
  22  9.17689e-07
  23  4.31084
  24  0.232787
  25  0.183504
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  9.732e+00  8.485e+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.906e-01  1.835e-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:  8.515e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.48
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.62e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 2.87e-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) = 7303.12518995
delta logL = 0.519648018504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7302.10309506
delta logL = 1.54174290058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86990       1.0000         .10000E-03   10000.    
     2 'alpha     '    .58221E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    .85405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99764       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=   7302.103     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87025        1.6001        .12698E-01   -.69163E-03
   2  alpha         .11036E-09    3.5203        .46269    ** at limit **
   3  Normalizat    .85418        .18380        .70477E-01    .22534E-04
   4  Prefactor     .99773        .15219        .46238E-01    .64220E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.870253
  alpha      = 1.10362e-10
  Normalizat = 0.854179
  Prefactor  = 0.997726
 **********
 **   18 **HESSE 
 **********

 FCN=   7302.103     FROM HESSE     STATUS=OK            37 CALLS      284 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87025        1.1431        .70699E-03   -1.5521    
   2  alpha         .11036E-09    .89788        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .85418        .21800        .31185E-03   -.98089    
   4  Prefactor     .99773        .18078        .23934E-03   -.92805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62558e-12
Minuit parameter uncertainties:
  1  1.14317
  2  2.05589e-05
  3  0.218224
  4  0.180886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265579': 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) = 7302.10308606
delta logL = 1.54175190869

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  8.703e-01  1.143e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.104e-10  2.056e-05  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.977e-01  1.809e-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:  8.542e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.56
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.89e-09 +/- 5.12e-09
Energy Flux (Free Index): 1.47e-04 +/- 1.93e-04

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/265579/cmap_HighResolution_402883201_403142401_4FGL_J2221.5-5225_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-08', energy_flux2='1.47e-04', photon_flux_error='1.42e-08', dlogl='1.54e+00', energy_flux='3.29e-05', photon_flux2='3.89e-09', job_status='DONE', time_completed='2021-09-28 09:44:17.274087', photon_index_error2='0.00', photon_index2='0.00', ts='14.48', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.93e-04', EG='0.85', time_epoch_completed='1632847457.27', return_code='0', job_id='265579', GAL2='1.00', EG2='0.85', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='5.12e-09', ts2='17.56', photon_index='1.61' WHERE bin_id='631' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:44:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 265579: <4FGL_J2221.5-5225_daily_bin631> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin631> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:30:32 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:30:33 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:33 2021
Terminated at Tue Sep 28 09:44:18 2021
Results reported at Tue Sep 28 09:44:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin631 335.391 -52.4307 402883201 403142401 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 :                                   724.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

