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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1283
RA = 332.474, Dec = -50.4702
tmin = 571881601, tmax = 572140801
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='211005', job_status='RUN', time_executed='2021-09-28 06:28:04.342520', time_epoch_executed='1632835684.34' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211005/ft1_4FGL_J2209.8-5028_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211005/ft1_4FGL_J2209.8-5028_daily_bin1283.fits outfile=/scratch/kocevski/211005/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1283.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.58
user 2.35
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.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/211005/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/211005/ltcube_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.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/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits
.....................!
real 12.17
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/211005/ltcube_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.fits outfile=/scratch/kocevski/211005/expmap_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.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/211005/ltcube_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.fits
.....................!
real 191.89
user 186.64
sys 4.89

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits scfile=/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits outfile=/scratch/kocevski/211005/cmap_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.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=332.474 yref=-50.4702 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits scfile=/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits outfile=/scratch/kocevski/211005/cmap_HighResolution_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.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=332.474 yref=-50.4702 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211005/Model_4FGL_J2209.8-5028_daily_bin1283.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/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits....................!
real 22.36
user 21.04
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits', '/scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits', expMap='/scratch/kocevski/211005/expmap_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.fits', expCube='/scratch/kocevski/211005/ltcube_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211005/Model_4FGL_J2209.8-5028_daily_bin1283.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/211005/ft1_filtered_4FGL_J2209.8-5028_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/211005/ft2_4FGL_J2209.8-5028_daily_bin1283.fits
Exposure map: /scratch/kocevski/211005/expmap_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.fits
Exposure cube: /scratch/kocevski/211005/ltcube_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211005/Model_4FGL_J2209.8-5028_daily_bin1283.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) = 1567.64465781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    231.79       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23479E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4408       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36426E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22246E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4627       1.0000         .10000E-03   10000.    
    15 'Prefactor '    181.98       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.855       1.0000         .10000E-03   10000.    
    18 'Prefactor '    85.280       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11619E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.028       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89862       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1567.545     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2867 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     232.24        253.99       -.73477E-05   -.11941E-06
   2  Prefactor     31.772        144.01        .70316E-06   -.14884E-05
   3  Prefactor     4.2784        349.77        .33238E-05   -.43261E-05
   4  Prefactor     .10000E-03    6457.8        .14652E-04** at limit **
   5  Prefactor     .10000E-03    46.806       -.21902E-06** at limit **
   6  Prefactor     1.4402        49.932        .51446E-05    .15727E-05
   7  norm          .10000E-03    21.757       -.12267E-06** at limit **
   8  Prefactor     .10000E-03    116.21       -.11959E-05** at limit **
   9  Prefactor     .10000E-03    493.48        .77859E-06** at limit **
  10  Prefactor     .10000E-03    37.265        .73936E-08** at limit **
  11  Prefactor     .10000E-03    13.674       -.22527E-06** at limit **
  12  Prefactor     .10000E-03    889.34        .24870E-04** at limit **
  13  norm          .10000E-03    11.365       -.71196E-07** at limit **
  14  Prefactor     4.4584        11.029        .23076E-06   -.16330E-05
  15  Prefactor     182.22        197.29       -.43282E-05    .44367E-06
  16  Prefactor     .10000E-03    6.3457       -.37061E-07** at limit **
  17  Prefactor     51.862        99.452       -.73196E-06   -.17370E-05
  18  Prefactor     85.292        53.892       -.14170E-06   -.77382E-06
  19  Prefactor     .10000E-03    222.78       -.43116E-05** at limit **
  20  Prefactor     .10000E-03    12.297        .32740E-07** at limit **
  21  Prefactor     .10000E-03    36.827        .21061E-06** at limit **
  22  Prefactor     .10000E-03    96.426        .93447E-06** at limit **
  23  norm          15.032        17.610       -.47430E-07   -.44482E-05
  24  Normalizat    .89872        .45786        .44337E-05   -.36196E-04
  25  Prefactor     1.3069        .38033       -.25587E-05    .19247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 232.241
  Prefactor  = 31.772
  Prefactor  = 4.27837
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 1.4402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.45837
  Prefactor  = 182.224
  Prefactor  = 0.0001
  Prefactor  = 51.8615
  Prefactor  = 85.2923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0319
  Normalizat = 0.898722
  Prefactor  = 1.30687
 **********
 **   18 **HESSE 
 **********

 FCN=   1567.545     FROM HESSE     STATUS=OK           421 CALLS     3288 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     232.24        255.06        .13292E-03   -1.2648    
   2  Prefactor     31.772        144.63        .71106E-04   -1.4580    
   3  Prefactor     4.2784        352.26        .19437E-03   -1.5294    
   4  Prefactor     .10000E-03    6454.0        .20079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4402        50.152        .17969E-02   -1.5468    
   7  norm          .10000E-03    21.764        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    116.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    496.36        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.878        .14294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    891.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.374        .13039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4584        11.035        .19061E-03   -1.5286    
  15  Prefactor     182.22        197.58        .14963E-03   -1.3000    
  16  Prefactor     .10000E-03    6.3490        .97410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.862        99.734        .55695E-04   -1.4266    
  18  Prefactor     85.292        53.903        .43502E-04   -1.3858    
  19  Prefactor     .10000E-03    222.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.315        .13562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    97.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.032        17.606        .10332E-03   -1.4932    
  24  Normalizat    .89872        .52407        .33525E-03   -.96505    
  25  Prefactor     1.3069        .43628        .24289E-03   -.83103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23127e-11
Minuit parameter uncertainties:
  1  256.298
  2  136.126
  3  78.122
  4  0.00719078
  5  9.99946e-06
  6  17.0125
  7  1.12218e-05
  8  1.27552e-05
  9  0.000848504
  10  6.0337e-05
  11  2.14359e-05
  12  0.00108356
  13  1.1118e-06
  14  11.0401
  15  198.302
  16  2.71474e-06
  17  100.058
  18  53.9339
  19  4.78248e-05
  20  5.2621e-06
  21  5.3938e-06
  22  0.000169272
  23  17.6118
  24  0.527086
  25  0.437509
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.084e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.307e+00  4.375e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.987e-01  5.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 3.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211005/likelihoodResults_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.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): 102
logL (Free Index) = 1567.54530105
delta logL = -5.18385309078e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1567.54530105
delta logL = -5.18373872183e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .89873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3069       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1567.545     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      219 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10136E-03    2230.6        .90712E-02** at limit **
   2  Index         2.2176        8.8654        .50000        .10202E-05
   3  Normalizat    .89872        .75302E-02    .75748E-01   -.20512E-03
   4  Prefactor     1.3069        .64660E-02    .54938E-01   -.17157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101359
  Index      = 2.21759
  Normalizat = 0.898718
  Prefactor  = 1.30687
 **********
 **   18 **HESSE 
 **********

 FCN=   1567.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      248 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10136E-03    9095.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2176        6.1636        .50000       -.59015    
   3  Normalizat    .89872        .17248E-01    .33525E-03   -.96505    
   4  Prefactor     1.3069        .14834E-01    .24290E-03   -.83103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.52644e-08
Minuit parameter uncertainties:
  1  0.263833
  2  937.607
  3  0.0172479
  4  0.0148337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211005': 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): 102
logL (Free Index) = 1567.54529583
delta logL = 4.44815668743e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.014e-04  2.638e-01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.218e+00  9.376e+02  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.307e+00  1.483e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.987e-01  1.725e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

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/211005/cmap_HighResolution_571881601_572140801_4FGL_J2209.8-5028_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-02', job_status='DONE', photon_flux_upper_limit='3.07e-07', time_completed='2021-09-28 06:35:00.945608', job_id='211005', GAL2='1.31', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632836100.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='4.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1283' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:35:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 211005: <4FGL_J2209.8-5028_daily_bin1283> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1283> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:26:02 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:26:04 2021
Terminated at Tue Sep 28 06:35:01 2021
Results reported at Tue Sep 28 06:35:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1283 332.474 -50.4702 571881601 572140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   412.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            539 sec.

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

