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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1092
RA = 335.391, Dec = -52.4307
tmin = 522374401, tmax = 522633601
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='267210', job_status='RUN', time_executed='2021-09-28 09:38:41.088628', time_epoch_executed='1632847121.09' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267210

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267210/ft1_4FGL_J2221.5-5225_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267210/ft1_4FGL_J2221.5-5225_daily_bin1092.fits outfile=/scratch/kocevski/267210/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1092.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=522374401.0 tmax=522633601.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.68
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.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/267210/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/267210/ft1_filtered_4FGL_J2221.5-5225_daily_bin1092.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/267210/ft1_filtered_4FGL_J2221.5-5225_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/267210/ltcube_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.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/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267210/ft1_filtered_4FGL_J2221.5-5225_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/267210/ltcube_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.fits outfile=/scratch/kocevski/267210/expmap_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.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/267210/ltcube_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.fits
.....................!
real 190.34
user 185.36
sys 4.66

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/267210/ft1_filtered_4FGL_J2221.5-5225_daily_bin1092.fits scfile=/scratch/kocevski/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.fits outfile=/scratch/kocevski/267210/cmap_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.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/267210/ft1_filtered_4FGL_J2221.5-5225_daily_bin1092.fits scfile=/scratch/kocevski/267210/ft2_4FGL_J2221.5-5225_daily_bin1092.fits outfile=/scratch/kocevski/267210/cmap_HighResolution_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51435E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.8841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .74035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5231       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .30851       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91530       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0398       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=   5773.794     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2881 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.793        .11705E-05** at limit **
   2  Prefactor     .10000E-03    5.3255        .16098E-06** at limit **
   3  Prefactor     43.056        25.978       -.21912E-05   -.14869E-04
   4  Prefactor     .35561        3.8920        .10168E-06   -.16214E-03
   5  Prefactor     52.089        32.759        .43039E-06    .28199E-05
   6  Prefactor     .10000E-03    2.3332       -.18726E-07** at limit **
   7  Prefactor     12.565        5.1240       -.39361E-07    .18777E-05
   8  Prefactor     .10000E-03    22.979       -.49592E-05** at limit **
   9  norm          8.8835        7.7501       -.28069E-07    .42350E-04
  10  Prefactor     4.7767        4.1727        .16275E-07   -.23454E-04
  11  Prefactor     .10000E-03    26.577        .40276E-05** at limit **
  12  Prefactor     8.9272        7.3267        .14231E-06   -.26110E-03
  13  Prefactor     22.531        43.635       -.20830E-05   -.15650E-05
  14  Prefactor     15.301        17.874        .80196E-06    .78236E-05
  15  Prefactor     .10000E-03    48.800       -.59711E-06** at limit **
  16  Prefactor     3.2615        3.8657        .59751E-07   -.55921E-03
  17  Prefactor     .10000E-03    12.367       -.16648E-06** at limit **
  18  Prefactor     .10000E-03    6.8967        .10421E-06** at limit **
  19  norm          .10000E-03    5.5259        .14615E-06** at limit **
  20  norm          .10000E-03    6.0370       -.29852E-07** at limit **
  21  Prefactor     6.5203        6.1535       -.38707E-08    .69744E-06
  22  Prefactor     .10000E-03    18.843        .61178E-06** at limit **
  23  norm          .30745        1.1206       -.98948E-07   -.19754E-03
  24  Normalizat    .91521        .20480        .60174E-06   -.18505E-04
  25  Prefactor     1.0399        .16150       -.29924E-07   -.10014E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 43.0561
  Prefactor  = 0.35561
  Prefactor  = 52.089
  Prefactor  = 0.0001
  Prefactor  = 12.5648
  Prefactor  = 0.0001
  norm       = 8.88353
  Prefactor  = 4.77671
  Prefactor  = 0.0001
  Prefactor  = 8.92718
  Prefactor  = 22.5306
  Prefactor  = 15.3011
  Prefactor  = 0.0001
  Prefactor  = 3.26146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.52035
  Prefactor  = 0.0001
  norm       = 0.307453
  Normalizat = 0.915208
  Prefactor  = 1.03994
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.794     FROM HESSE     STATUS=OK           433 CALLS     3314 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.834        .33933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.056        26.008        .61092E-04   -1.4395    
   4  Prefactor     .35561        4.3508        .29829E-02   -1.5589    
   5  Prefactor     52.089        32.775        .55570E-04   -1.4263    
   6  Prefactor     .10000E-03    2.3392        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.565        5.1263        .10472E-03   -1.4999    
   8  Prefactor     .10000E-03    22.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.8835        7.7556        .67237E-03   -1.5112    
  10  Prefactor     4.7767        4.1862        .13823E-03   -1.5271    
  11  Prefactor     .10000E-03    26.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9272        7.5647        .67076E-03   -1.5110    
  13  Prefactor     22.531        43.581        .84381E-04   -1.4758    
  14  Prefactor     15.301        17.791        .10237E-03   -1.4925    
  15  Prefactor     .10000E-03    48.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2615        8.0572        .11212E-02   -1.5347    
  17  Prefactor     .10000E-03    12.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.5303        .17445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    25.384        .34635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5203        6.0646        .15713E-03   -1.5197    
  22  Prefactor     .10000E-03    18.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .30745        1.0931        .13802E-03   -1.5597    
  24  Normalizat    .91521        .23867        .27677E-03   -.95928    
  25  Prefactor     1.0399        .18762        .21662E-03   -.91410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40602e-08
Minuit parameter uncertainties:
  1  1.27082e-05
  2  0.000229337
  3  26.0146
  4  2.48761
  5  32.7866
  6  4.09841e-07
  7  5.12648
  8  2.13222e-05
  9  7.75645
  10  4.18644
  11  1.25313e-05
  12  7.56548
  13  43.6426
  14  17.7975
  15  5.74831e-06
  16  8.05986
  17  2.87343e-07
  18  1.44604e-07
  19  1.5006e-07
  20  0.000147935
  21  6.06518
  22  1.77648e-06
  23  1.0932
  24  0.238942
  25  0.187738
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  8.884e+00  7.756e+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.040e+00  1.877e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.152e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.71
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.29e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.62e-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) = 5773.6141376
delta logL = 0.179905723359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5773.61263029
delta logL = 0.181413035247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7400       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0198       1.0000          .0000       5.0000    
     3 'Normalizat'    .90879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0403       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=   5773.613     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7318        205.74        .36034E-02    .25625E-03
   2  alpha         2.0184        2.8221        .25175        .82544E-04
   3  Normalizat    .90876        .12420        .45014E-01    .10529E-04
   4  Prefactor     1.0404        .73767E-01    .40517E-01   -.23804E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.7318
  alpha      = 2.01839
  Normalizat = 0.908765
  Prefactor  = 1.04041
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.613     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7318        7.5796        .14414E-03   -1.5152    
   2  alpha         2.0184        .68711        .14123E-01   -.19385    
   3  Normalizat    .90876        .21833        .27749E-03   -.96153    
   4  Prefactor     1.0404        .18161        .21645E-03   -.91394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03897e-10
Minuit parameter uncertainties:
  1  7.58058
  2  0.696428
  3  0.218546
  4  0.181721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267210': 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) = 5773.61262369
delta logL = 0.181419630406

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  7.732e+00  7.581e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.018e+00  6.964e-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.040e+00  1.817e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.088e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 2.02 +/- 0.70
Photon Flux (Free Index): 2.52e-08 +/- 2.79e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.03e-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/267210/cmap_HighResolution_522374401_522633601_4FGL_J2221.5-5225_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='2.00e-05', photon_flux_error='1.29e-08', dlogl='1.81e-01', energy_flux='3.00e-05', photon_flux2='2.52e-08', job_status='DONE', time_completed='2021-09-28 09:48:51.747201', photon_index_error2='0.70', photon_index2='2.02', ts='5.71', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.92', time_epoch_completed='1632847731.75', return_code='0', job_id='267210', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='2.79e-08', ts2='6.07', photon_index='1.61' WHERE bin_id='1092' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 267210: <4FGL_J2221.5-5225_daily_bin1092> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1092 335.391 -52.4307 522374401 522633601 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 :                                   611.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            801 sec.

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

