/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 86 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin188
RA = 332.474, Dec = -50.4702
tmin = 288057601, tmax = 288316801
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='205959', job_status='RUN', time_executed='2021-09-28 06:12:21.652725', time_epoch_executed='1632834741.65' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205959/ft1_4FGL_J2209.8-5028_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205959/ft1_4FGL_J2209.8-5028_daily_bin188.fits outfile=/scratch/kocevski/205959/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin188.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=288057601.0 tmax=288316801.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.59
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205959/ft1_filtered_4FGL_J2209.8-5028_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/205959/ltcube_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.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/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits
.....................!
real 11.93
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205959/ft1_filtered_4FGL_J2209.8-5028_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/205959/ltcube_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.fits outfile=/scratch/kocevski/205959/expmap_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.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/205959/ltcube_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.fits
.....................!
real 190.29
user 185.49
sys 4.48

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/205959/ft1_filtered_4FGL_J2209.8-5028_daily_bin188.fits scfile=/scratch/kocevski/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits outfile=/scratch/kocevski/205959/cmap_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205959/ft1_filtered_4FGL_J2209.8-5028_daily_bin188.fits scfile=/scratch/kocevski/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits outfile=/scratch/kocevski/205959/cmap_HighResolution_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205959/ft1_filtered_4FGL_J2209.8-5028_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/205959/ft2_4FGL_J2209.8-5028_daily_bin188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205959/Model_4FGL_J2209.8-5028_daily_bin188.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/205959/ft1_filtered_4FGL_J2209.8-5028_daily_bin188.fits.....................!
real 49.49
user 48.19
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.149       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0627       1.0000         .10000E-03   10000.    
     7 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.349       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.618       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7438       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.238       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.495       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0750       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1275       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0457       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=   6354.875     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2907 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.286        19.478        .25154E-06   -.56482E-05
   2  Prefactor     .10000E-03    18.136       -.36902E-07** at limit **
   3  Prefactor     18.146        9.6335        .18342E-06   -.41745E-04
   4  Prefactor     .10000E-03    7.9486        .12291E-07** at limit **
   5  Prefactor     .10000E-03    27.155       -.30993E-06** at limit **
   6  Prefactor     5.0630        4.1456        .11786E-06   -.43909E-04
   7  norm          .10000E-03    2.6531        .32259E-07** at limit **
   8  Prefactor     20.352        14.342        .14535E-06   -.20659E-04
   9  Prefactor     10.628        26.243       -.15860E-06   -.34641E-05
  10  Prefactor     .96367E-01    5.8252        .44073E-06   -.71595E-04
  11  Prefactor     4.7448        4.3757        .20238E-06   -.83133E-04
  12  Prefactor     .10000E-03    31.195        .53315E-07** at limit **
  13  norm          4.5306        4.6033       -.92581E-07   -.91579E-05
  14  Prefactor     .10000E-03    2.6631        .11007E-05** at limit **
  15  Prefactor     50.287        61.620       -.30481E-05   -.69901E-04
  16  Prefactor     14.495        8.3108       -.23722E-06   -.27779E-03
  17  Prefactor     5.0767        20.907        .79240E-06   -.14945E-04
  18  Prefactor     .10000E-03    3.5470       -.31382E-07** at limit **
  19  Prefactor     .10000E-03    28.982       -.28126E-07** at limit **
  20  Prefactor     .10000E-03    2.6133        .21730E-06** at limit **
  21  Prefactor     .10000E-03    11.145       -.29862E-08** at limit **
  22  Prefactor     .10000E-03    6.7168       -.39641E-07** at limit **
  23  norm          .10000E-03    8.3377       -.65485E-07** at limit **
  24  Normalizat    1.1278        .21658       -.26611E-05   -.19467E-03
  25  Prefactor     1.0456        .16010        .10211E-05   -.33459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2858
  Prefactor  = 0.0001
  Prefactor  = 18.1463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.06302
  norm       = 0.0001
  Prefactor  = 20.3516
  Prefactor  = 10.6281
  Prefactor  = 0.096367
  Prefactor  = 4.74477
  Prefactor  = 0.0001
  norm       = 4.53056
  Prefactor  = 0.000100004
  Prefactor  = 50.2875
  Prefactor  = 14.495
  Prefactor  = 5.07675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.12777
  Prefactor  = 1.04556
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.875     FROM HESSE     STATUS=OK           435 CALLS     3342 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.286        19.483        .11924E-03   -1.5036    
   2  Prefactor     .10000E-03    18.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.146        9.6301        .94013E-04   -1.4856    
   4  Prefactor     .10000E-03    7.9511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0630        4.1384        .14018E-03   -1.5258    
   7  norm          .10000E-03    5.7836        .25150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.352        14.312        .88790E-04   -1.4805    
   9  Prefactor     10.628        26.136        .12296E-03   -1.5056    
  10  Prefactor     .96367E-01    6.5831        .57342E-01   -1.5646    
  11  Prefactor     4.7448        4.3647        .15125E-03   -1.5272    
  12  Prefactor     .10000E-03    31.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5306        4.6072        .16823E-03   -1.5282    
  14  Prefactor     .10000E-03    8.6289        .22799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.287        62.466        .56580E-04   -1.4288    
  16  Prefactor     14.495        8.3938        .10520E-03   -1.4946    
  17  Prefactor     5.0767        20.838        .17848E-03   -1.5257    
  18  Prefactor     .10000E-03    3.5512        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6201        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.4828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1278        .23891        .27630E-03   -.88865    
  25  Prefactor     1.0456        .17928        .22569E-03   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84606e-10
Minuit parameter uncertainties:
  1  19.4937
  2  1.31807e-05
  3  9.63089
  4  8.37359e-06
  5  1.3908e-06
  6  4.13866
  7  1.96776e-05
  8  14.3149
  9  26.1642
  10  1.59234
  11  4.36504
  12  3.35172e-05
  13  4.60754
  14  0.000356695
  15  62.5472
  16  8.39446
  17  20.5828
  18  2.29958e-06
  19  4.92075e-06
  20  3.30454e-06
  21  3.32806e-06
  22  4.40841e-06
  23  2.46886e-06
  24  0.239136
  25  0.179383
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.352e-05  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.046e+00  1.794e-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:  1.128e+00  2.391e-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: 5.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205959/likelihoodResults_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.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) = 6354.87526552
delta logL = -0.000151720166286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6354.87511495
delta logL = -1.15415605251e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11889E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7021       1.0000          .0000       10.000    
     3 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6354.875     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10271E-03    11.920        .18142E-01** at limit **
   2  Index         2.6256        7.6362        .50000        .11252E-04
   3  Normalizat    1.1278        .35266E-02    .27630E-03   -.66040E-04
   4  Prefactor     1.0456        .28012E-02    .22569E-03   -.10604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010271
  Index      = 2.62563
  Normalizat = 1.12777
  Prefactor  = 1.04556
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.875     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10271E-03    82.583        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6256        5.8891        .50000       -.49482    
   3  Normalizat    1.1278        .93112E-02    .11052E-04   -.88865    
   4  Prefactor     1.0456        .73961E-02    .90274E-05   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67314e-09
Minuit parameter uncertainties:
  1  0.0299589
  2  256.163
  3  0.00931124
  4  0.00739606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205959': 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) = 6354.87511434
delta logL = -5.44255271961e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.027e-04  2.996e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.626e+00  2.562e+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.046e+00  7.396e-03  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:  1.128e+00  9.311e-03  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/205959/cmap_HighResolution_288057601_288316801_4FGL_J2209.8-5028_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-09-28 06:24:47.532803', job_id='205959', GAL2='1.05', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632835487.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-5.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='188' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 205959: <4FGL_J2209.8-5028_daily_bin188> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin188> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:39 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:41 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:10:41 2021
Terminated at Tue Sep 28 06:24:48 2021
Results reported at Tue Sep 28 06:24:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin188 332.474 -50.4702 288057601 288316801 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 :                                   736.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            849 sec.

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

