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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin170
RA = 335.391, Dec = -52.4307
tmin = 283392001, tmax = 283651201
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='263138', job_status='RUN', time_executed='2021-09-28 09:21:07.451477', time_epoch_executed='1632846067.45' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263138

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263138/ft1_4FGL_J2221.5-5225_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263138/ft1_4FGL_J2221.5-5225_daily_bin170.fits outfile=/scratch/kocevski/263138/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin170.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=283392001.0 tmax=283651201.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.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/263138/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/263138/ltcube_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.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/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits
.....................!
real 11.48
user 11.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/263138/ltcube_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.fits outfile=/scratch/kocevski/263138/expmap_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.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/263138/ltcube_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.fits
.....................!
real 189.57
user 184.18
sys 5.04

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/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.fits scfile=/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits outfile=/scratch/kocevski/263138/cmap_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=335.391 yref=-52.4307 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.fits scfile=/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits outfile=/scratch/kocevski/263138/cmap_HighResolution_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/263138/ft2_4FGL_J2221.5-5225_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263138/Model_4FGL_J2221.5-5225_daily_bin170.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/263138/ft1_filtered_4FGL_J2221.5-5225_daily_bin170.fits.....................!
real 45.85
user 44.51
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13753E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.746       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3937       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11834E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.382       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9721       1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .49328E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1164       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0935       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90818       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=   5920.609     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2888 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.758        48.536       -.50641E-06   -.30181E-04
   2  Prefactor     8.8691        8.1580        .88798E-07    .21894E-04
   3  Prefactor     .10000E-03    32.269        .14720E-06** at limit **
   4  Prefactor     6.0434        5.0121        .12841E-06    .67300E-04
   5  Prefactor     24.696        29.005       -.17404E-06    .20521E-04
   6  Prefactor     2.8049        4.5660        .47488E-06    .17539E-03
   7  Prefactor     5.7408        4.5379        .62419E-07    .93733E-04
   8  Prefactor     .10000E-03    33.969        .32847E-06** at limit **
   9  norm          5.3932        6.8382        .14224E-06    .50133E-04
  10  Prefactor     .10000E-03    1.9961        .71899E-07** at limit **
  11  Prefactor     15.021        58.586       -.27706E-06   -.34895E-05
  12  Prefactor     12.087        6.8394        .80796E-08    .98090E-04
  13  Prefactor     .10000E-03    14.224       -.31383E-05** at limit **
  14  Prefactor     .10000E-03    6.4016       -.49494E-05** at limit **
  15  Prefactor     23.896        110.15       -.24527E-05   -.15218E-04
  16  Prefactor     .10000E-03    2.0558       -.26939E-07** at limit **
  17  Prefactor     39.450        43.068       -.16972E-06    .25183E-06
  18  Prefactor     2.9640        36.361       -.96190E-06    .60192E-04
  19  norm          .10000E-03    4.4722        .23347E-07** at limit **
  20  norm          .10000E-03    8.1079        .45238E-06** at limit **
  21  Prefactor     .10000E-03    7.3381        .22303E-06** at limit **
  22  Prefactor     .10072E-03    26.639       -.55156E-05** at limit **
  23  norm          2.1153        1.5538       -.55242E-07    .85484E-03
  24  Normalizat    1.0936        .19084        .57203E-06    .13902E-03
  25  Prefactor     .90812        .15069       -.78124E-06    .76787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.758
  Prefactor  = 8.86914
  Prefactor  = 0.0001
  Prefactor  = 6.04344
  Prefactor  = 24.6956
  Prefactor  = 2.80494
  Prefactor  = 5.74077
  Prefactor  = 0.0001
  norm       = 5.39321
  Prefactor  = 0.0001
  Prefactor  = 15.0213
  Prefactor  = 12.0872
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 23.8962
  Prefactor  = 0.0001
  Prefactor  = 39.4496
  Prefactor  = 2.96396
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100718
  norm       = 2.11529
  Normalizat = 1.09363
  Prefactor  = 0.908123
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.609     FROM HESSE     STATUS=OK           433 CALLS     3321 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.758        48.638        .66122E-04   -1.4495    
   2  Prefactor     8.8691        8.1540        .13459E-03   -1.5112    
   3  Prefactor     .10000E-03    32.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0434        5.0044        .14781E-03   -1.5216    
   5  Prefactor     24.696        29.019        .80525E-04   -1.4714    
   6  Prefactor     2.8049        4.5499        .20273E-03   -1.5373    
   7  Prefactor     5.7408        4.5407        .13736E-03   -1.5229    
   8  Prefactor     .10000E-03    33.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3932        6.8342        .17303E-03   -1.5243    
  10  Prefactor     .10000E-03    2.0117        .10602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.021        58.785        .10311E-03   -1.4933    
  12  Prefactor     12.087        6.8651        .11521E-03   -1.5012    
  13  Prefactor     .10000E-03    14.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.896        111.13        .40658E-03   -1.4730    
  16  Prefactor     .10000E-03    2.0563        .10774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.450        43.062        .63871E-04   -1.4451    
  18  Prefactor     2.9640        35.375        .23552E-03   -1.5364    
  19  norm          .10000E-03    4.4735        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.2106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10072E-03    82.618        .60295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1153        1.5158        .72683E-04   -1.5417    
  24  Normalizat    1.0936        .22481        .25216E-03   -.89957    
  25  Prefactor     .90812        .17689        .22607E-03   -.95858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03984e-09
Minuit parameter uncertainties:
  1  48.6902
  2  8.15506
  3  1.46423e-05
  4  5.00472
  5  29.0353
  6  4.55043
  7  4.54094
  8  6.4004e-05
  9  6.83517
  10  3.06059e-06
  11  59.0126
  12  6.86554
  13  0.000287431
  14  0.000310363
  15  103.381
  16  8.16658e-07
  17  43.0958
  18  20.4942
  19  2.4834e-06
  20  5.34342e-05
  21  7.64625e-05
  22  0.015427
  23  1.51585
  24  0.225011
  25  0.176997
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  5.393e+00  6.835e+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.081e-01  1.770e-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.094e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263138/likelihoodResults_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.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) = 5920.47834362
delta logL = 0.130643183542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5920.47016865
delta logL = 0.138818153635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5636       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0818       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5920.470     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      275 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5642        6.7357        .17771E-03   -.25621E-03
   2  alpha         2.0818        .97312        .17066E-01   -.25244E-04
   3  Normalizat    1.0876        .20928        .25272E-03    .17986E-03
   4  Prefactor     .90889        .17306        .22591E-03    .27978E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.56416
  alpha      = 2.08178
  Normalizat = 1.08756
  Prefactor  = 0.908887
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.470     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5642        6.3250        .71084E-05   -1.5281    
   2  alpha         2.0818        .91666        .68264E-03   -.16808    
   3  Normalizat    1.0876        .20919        .50543E-04   -.90152    
   4  Prefactor     .90889        .17311        .45181E-04   -.95831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85486e-10
Minuit parameter uncertainties:
  1  6.3259
  2  0.939226
  3  0.209353
  4  0.173217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263138': 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) = 5920.47016746
delta logL = 0.138819349214

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  4.564e+00  6.326e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.082e+00  9.392e-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:  9.089e-01  1.732e-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.088e+00  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 2.08 +/- 0.94
Photon Flux (Free Index): 1.68e-08 +/- 2.54e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.58e-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/263138/cmap_HighResolution_283392001_283651201_4FGL_J2221.5-5225_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-05', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.39e-01', photon_flux2='1.68e-08', job_status='DONE', time_completed='2021-09-28 09:32:36.184006', photon_index_error2='0.94', photon_index2='2.08', ts='0.96', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.07e-08', energy_flux_error2='1.58e-05', EG='1.09', time_epoch_completed='1632846756.18', return_code='0', job_id='263138', GAL2='0.91', EG2='1.09', return_code2='0', photon_flux_error2='2.54e-08', ts2='1.24', photon_index='1.61' WHERE bin_id='170' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:32:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 263138: <4FGL_J2221.5-5225_daily_bin170> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:57 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:58 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:20:58 2021
Terminated at Tue Sep 28 09:32:36 2021
Results reported at Tue Sep 28 09:32:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin170 335.391 -52.4307 283392001 283651201 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            699 sec.

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

