aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 54 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 = 7441
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1682
RA = 332.474, Dec = -50.4702
tmin = 675302401, tmax = 675561601
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='900159', job_status='RUN', time_executed='2022-05-30 01:08:59.392730', time_epoch_executed='1653898139.39' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/900159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/900159/ft1_4FGL_J2209.8-5028_daily_bin1682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/900159/ft1_4FGL_J2209.8-5028_daily_bin1682.fits outfile=/scratch/kocevski/900159/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1682.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=675302401.0 tmax=675561601.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.50
user 3.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.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/900159/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1682.fits evtable="EVENTS" outfile="/scratch/kocevski/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.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.15

Number of photons that the gtmktime cut: 647

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits" evtable="EVENTS" scfile=/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits sctable="SC_DATA" outfile=/scratch/kocevski/900159/ltcube_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.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/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits
.....................!
real 13.11
user 12.66
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits evtable="EVENTS" scfile=/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits sctable="SC_DATA" expcube=/scratch/kocevski/900159/ltcube_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.fits outfile=/scratch/kocevski/900159/expmap_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.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/900159/ltcube_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.fits
.....................!
real 192.56
user 186.70
sys 5.26

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/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits scfile=/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits outfile=/scratch/kocevski/900159/cmap_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits scfile=/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits outfile=/scratch/kocevski/900159/cmap_HighResolution_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits evtable="EVENTS" scfile=/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/900159/Model_4FGL_J2209.8-5028_daily_bin1682.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/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits.....................!
real 52.20
user 50.75
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits', '/scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits', expMap='/scratch/kocevski/900159/expmap_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.fits', expCube='/scratch/kocevski/900159/ltcube_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/900159/Model_4FGL_J2209.8-5028_daily_bin1682.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/900159/ft1_filtered_4FGL_J2209.8-5028_daily_bin1682.fits
Spacecraft file(s): /scratch/kocevski/900159/ft2_4FGL_J2209.8-5028_daily_bin1682.fits
Exposure map: /scratch/kocevski/900159/expmap_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.fits
Exposure cube: /scratch/kocevski/900159/ltcube_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/900159/Model_4FGL_J2209.8-5028_daily_bin1682.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) = 7040.9612217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .63090       1.0000         .10000E-03   10000.    
     7 'norm      '    13.991       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59608E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.946       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37151E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.9882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32853E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.953       1.0000         .10000E-03   10000.    
    23 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83030       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0338       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=   7040.913     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2930 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9745        .72906E-07** at limit **
   2  Prefactor     .10000E-03    17.832        .36986E-07** at limit **
   3  Prefactor     6.2622        7.2272        .85496E-07   -.70723E-04
   4  Prefactor     13.024        22.448        .33757E-06    .67776E-04
   5  Prefactor     .10000E-03    17.319        .12664E-06** at limit **
   6  Prefactor     .63035        2.8211        .18471E-05   -.85581E-04
   7  norm          13.992        5.3293       -.77706E-08   -.10762E-03
   8  Prefactor     .10000E-03    3.9854        .93872E-08** at limit **
   9  Prefactor     .10018E-03    17.191       -.12351E-06** at limit **
  10  Prefactor     12.979        8.6908       -.77540E-06   -.65088E-04
  11  Prefactor     .10000E-03    1.8782        .15483E-06** at limit **
  12  Prefactor     .10000E-03    713.58       -.45630E-05** at limit **
  13  norm          7.9901        5.8494       -.18144E-07    .44930E-04
  14  Prefactor     .10000E-03    1.9186        .19607E-06** at limit **
  15  Prefactor     .10000E-03    19.837       -.26121E-06** at limit **
  16  Prefactor     .10000E-03    1.4113        .46251E-09** at limit **
  17  Prefactor     .10000E-03    11.592       -.20028E-06** at limit **
  18  Prefactor     .10000E-03    4.8710       -.33413E-08** at limit **
  19  Prefactor     .10000E-03    24.372        .11801E-06** at limit **
  20  Prefactor     .10000E-03    4.2880        .35608E-06** at limit **
  21  Prefactor     .10000E-03    13.185        .13376E-06** at limit **
  22  Prefactor     15.954        16.014        .83777E-07   -.36726E-04
  23  norm          .10000E-03    2.7945       -.37123E-07** at limit **
  24  Normalizat    .83038        .16233       -.31741E-06   -.16803E-03
  25  Prefactor     1.0339        .13119       -.19205E-06   -.17846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.26223
  Prefactor  = 13.0241
  Prefactor  = 0.0001
  Prefactor  = 0.630354
  norm       = 13.9923
  Prefactor  = 0.0001
  Prefactor  = 0.00010018
  Prefactor  = 12.9793
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 7.99011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 15.9539
  norm       = 0.0001
  Normalizat = 0.830383
  Prefactor  = 1.03389
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.913     FROM HESSE     STATUS=OK           433 CALLS     3363 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2622        7.2075        .16040E-03   -1.5207    
   4  Prefactor     13.024        22.519        .11094E-03   -1.4986    
   5  Prefactor     .10000E-03    17.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .63035        2.7972        .26757E-03   -1.5549    
   7  norm          13.992        5.3292        .10708E-03   -1.4960    
   8  Prefactor     .10000E-03    3.9931        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10018E-03    19.295        .11536       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.979        8.6595        .11133E-03   -1.4987    
  11  Prefactor     .10000E-03    7.9991        .21687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    713.85        .21297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.9901        5.8454        .14186E-03   -1.5143    
  14  Prefactor     .10000E-03    3.9758        .22252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4184        .97329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9108        .18083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.725        .33421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.954        16.023        .10028E-03   -1.4909    
  23  norm          .10000E-03    2.7963        .13697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83038        .18382        .26614E-03   -.98951    
  25  Prefactor     1.0339        .15090        .20108E-03   -.91608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93483e-10
Minuit parameter uncertainties:
  1  2.18809e-05
  2  1.68127e-05
  3  7.20848
  4  22.5336
  5  3.84171e-05
  6  2.65572
  7  5.32942
  8  1.5412e-06
  9  0.00372471
  10  8.66034
  11  0.00016208
  12  0.00351504
  13  5.84584
  14  1.05693e-05
  15  0.000119395
  16  1.39566e-06
  17  5.05774e-05
  18  4.42729e-06
  19  6.05774e-05
  20  0.000420631
  21  4.98577e-05
  22  16.0278
  23  2.18243e-07
  24  0.183962
  25  0.150963
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.515e-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.034e+00  1.510e-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.304e-01  1.840e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/900159/likelihoodResults_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.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) = 7040.91271558
delta logL = -6.5205804276e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7040.91271558
delta logL = -6.52034941595e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .83038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0339       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=   7040.145     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      274 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28700        3.4924        .83207E-02    .10249E-02
   2  Index         5.2720        2.2403        .93345E-01    .15823E-03
   3  Normalizat    .75601        .35001E-01    .44006E-01    .31418E-03
   4  Prefactor     1.0697        .29365E-01    .40963E-01    .46617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.287004
  Index      = 5.272
  Normalizat = 0.756013
  Prefactor  = 1.0697
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.145     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28700        10.037        .37803E-03   -1.5601    
   2  Index         5.2720        4.1501        .47058E-02    .54427E-01
   3  Normalizat    .75601        .13121        .27738E-03   -1.0172    
   4  Prefactor     1.0697        .10775        .19795E-03   -.90441    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.50614e-07
Minuit parameter uncertainties:
  1  3.39445
  2  4.89945
  3  0.131262
  4  0.10777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/900159': 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) = 7040.14503757
delta logL = 0.767671486792

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.870e-01  3.394e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  5.272e+00  4.899e+00  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.070e+00  1.078e-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:  7.560e-01  1.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 5.27 +/- 4.90
Photon Flux (Free Index): 6.22e-08 +/- 5.17e-08
Energy Flux (Free Index): 8.10e-06 +/- 7.87e-06

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/900159/cmap_HighResolution_675302401_675561601_4FGL_J2209.8-5028_daily_bin1682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', comment='SUCCESS', energy_flux2='8.10e-06', dlogl='7.68e-01', photon_flux2='6.22e-08', job_status='DONE', time_completed='2022-05-30 01:22:04.279840', photon_index_error2='4.90', photon_index2='5.27', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.96e-08', energy_flux_error2='7.87e-06', EG='0.83', time_epoch_completed='1653898924.28', return_code='0', job_id='900159', GAL2='1.07', EG2='0.76', return_code2='102', photon_flux_error2='5.17e-08', ts2='1.68', photon_index='2.37' WHERE bin_id='1682' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May 30 01:22:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 900159: <4FGL_J2209.8-5028_daily_bin1682> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1682> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon May 30 01:05:38 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May 30 01:07:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May 30 01:07:56 2022
Terminated at Mon May 30 01:22:05 2022
Results reported at Mon May 30 01:22:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1682 332.474 -50.4702 675302401 675561601 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 :                                   785.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            987 sec.

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

