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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin479
RA = 332.474, Dec = -50.4702
tmin = 363484801, tmax = 363744001
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='207455', job_status='RUN', time_executed='2021-09-28 06:16:00.592326', time_epoch_executed='1632834960.59' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207455

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207455/ft1_4FGL_J2209.8-5028_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207455/ft2_4FGL_J2209.8-5028_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207455/ft1_4FGL_J2209.8-5028_daily_bin479.fits outfile=/scratch/kocevski/207455/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin479.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=363484801.0 tmax=363744001.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.71
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207455/ft1_filtered_4FGL_J2209.8-5028_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/207455/ft2_4FGL_J2209.8-5028_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/207455/ltcube_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.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/207455/ft2_4FGL_J2209.8-5028_daily_bin479.fits
.....................!
real 11.68
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207455/ft1_filtered_4FGL_J2209.8-5028_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/207455/ft2_4FGL_J2209.8-5028_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/207455/ltcube_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.fits outfile=/scratch/kocevski/207455/expmap_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.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/207455/ltcube_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.fits
.....................!
real 190.02
user 185.44
sys 4.18

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/207455/ft1_filtered_4FGL_J2209.8-5028_daily_bin479.fits scfile=/scratch/kocevski/207455/ft2_4FGL_J2209.8-5028_daily_bin479.fits outfile=/scratch/kocevski/207455/cmap_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207455/ft1_filtered_4FGL_J2209.8-5028_daily_bin479.fits scfile=/scratch/kocevski/207455/ft2_4FGL_J2209.8-5028_daily_bin479.fits outfile=/scratch/kocevski/207455/cmap_HighResolution_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.254       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.294       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.146       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24236       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.138       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1555       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76427       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=   5734.381     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2907 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.242        39.955       -.71823E-05    .53790E-05
   2  Prefactor     .10000E-03    27.410        .29447E-05** at limit **
   3  Prefactor     11.866        9.3940        .65960E-06   -.25171E-04
   4  Prefactor     35.289        28.223        .58333E-08    .15329E-05
   5  Prefactor     24.987        21.689       -.48426E-06    .61679E-04
   6  Prefactor     16.146        6.4154        .11785E-05    .16019E-03
   7  norm          .10000E-03    1.6214        .22591E-07** at limit **
   8  Prefactor     .10000E-03    7.8689       -.22047E-07** at limit **
   9  Prefactor     .10000E-03    21.136        .23843E-05** at limit **
  10  Prefactor     12.159        11.434       -.16427E-04   -.12047E-02
  11  Prefactor     .20647        2.3204       -.15997E-05    .44775E-03
  12  Prefactor     56.251        93.907        .13004E-03    .41938E-04
  13  norm          .10000E-03    2.1889        .81534E-08** at limit **
  14  Prefactor     .10000E-03    1.6465        .30328E-07** at limit **
  15  Prefactor     .10000E-03    21.502        .10625E-05** at limit **
  16  Prefactor     14.855        8.5744       -.18414E-05   -.12831E-02
  17  Prefactor     76.466        41.529        .31106E-05    .26435E-03
  18  Prefactor     .10000E-03    24.747       -.59920E-05** at limit **
  19  Prefactor     .10000E-03    161.67        .77641E-05** at limit **
  20  Prefactor     .10000E-03    2.0237        .31641E-07** at limit **
  21  Prefactor     .10000E-03    17.323       -.73063E-06** at limit **
  22  Prefactor     .10000E-03    12.800        .29958E-07** at limit **
  23  norm          .10000E-03    5.6516        .72670E-08** at limit **
  24  Normalizat    1.1558        .20467       -.21711E-06    .35985E-03
  25  Prefactor     .76419        .15208        .14223E-07    .23332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.2423
  Prefactor  = 0.0001
  Prefactor  = 11.8657
  Prefactor  = 35.2892
  Prefactor  = 24.9867
  Prefactor  = 16.1461
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1588
  Prefactor  = 0.206474
  Prefactor  = 56.2505
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8554
  Prefactor  = 76.4659
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.15577
  Prefactor  = 0.764194
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.381     FROM HESSE     STATUS=OK           421 CALLS     3328 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.242        39.997        .62410E-04   -1.4423    
   2  Prefactor     .10000E-03    27.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.866        9.3926        .11628E-03   -1.5019    
   4  Prefactor     35.289        28.221        .67456E-04   -1.4519    
   5  Prefactor     24.987        21.688        .80141E-04   -1.4708    
   6  Prefactor     16.146        6.4157        .99674E-04   -1.4904    
   7  norm          .10000E-03    1.6313        .94129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.159        11.652        .57446E-03   -1.5010    
  11  Prefactor     .20647        23.689        .21398E-02   -1.5617    
  12  Prefactor     56.251        94.573        .26770E-03   -1.4207    
  13  norm          .10000E-03    2.1891        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6605        .94850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.855        8.6263        .51953E-03   -1.4937    
  17  Prefactor     76.466        41.594        .45922E-04   -1.3957    
  18  Prefactor     .10000E-03    25.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    162.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0257        .10520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.6842        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1558        .24230        .25732E-03   -.87981    
  25  Prefactor     .76419        .17799        .24277E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60198e-09
Minuit parameter uncertainties:
  1  40.0231
  2  6.21117e-05
  3  9.39379
  4  28.2315
  5  21.6945
  6  6.41599
  7  1.11117e-07
  8  7.55239e-07
  9  5.9503e-05
  10  11.654
  11  4.42393
  12  94.8272
  13  5.49882e-06
  14  1.37877e-06
  15  2.15449e-06
  16  8.627
  17  41.6098
  18  0.000306815
  19  0.00025469
  20  3.0874e-07
  21  1.90281e-06
  22  3.34038e-06
  23  2.22291e-07
  24  0.242535
  25  0.178122
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.625e+01  9.483e+01  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:  7.642e-01  1.781e-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.156e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207455/likelihoodResults_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.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) = 5733.31532992
delta logL = 1.06606699596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5732.95722733
delta logL = 1.42416959164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7255       1.0000          .0000       10.000    
     3 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81286       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=   5732.957     FROM MIGRAD    STATUS=CONVERGED    216 CALLS      632 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26857E-02    .30481E-03** at limit **
   2  Index         8.7256        2.1701        .12665        .33924E-04
   3  Normalizat    1.0691        .56307E-01    .59985E-01    .54627E-04
   4  Prefactor     .81283        .43947E-01    .43884E-01    .30591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.72561
  Normalizat = 1.06909
  Prefactor  = 0.812834
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.957     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      673 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .21236E-01    .12928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7256        7.4741        .53142E-02    .84072    
   3  Normalizat    1.0691        .13222        .26529E-03   -.90751    
   4  Prefactor     .81283        .10364        .23625E-03   -.99257    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61286e-09
Minuit parameter uncertainties:
  1  1.27646e-07
  2  3.62728
  3  0.132264
  4  0.103661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207455': 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) = 5732.95722648
delta logL = 1.42417043881

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.276e-07  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  8.726e+00  3.627e+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:  8.128e-01  1.037e-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.069e+00  1.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 8.73 +/- 3.63
Photon Flux (Free Index): 9.83e-08 +/- 8.62e-07
Energy Flux (Free Index): 1.12e-05 +/- 9.83e-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/207455/cmap_HighResolution_363484801_363744001_4FGL_J2209.8-5028_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.00e-03', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.42e+00', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-28 06:28:06.599461', photon_index_error2='3.63', photon_index2='8.73', ts='0.72', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='9.83e-05', EG='1.16', time_epoch_completed='1632835686.6', return_code='0', job_id='207455', GAL2='0.81', EG2='1.07', return_code2='102', photon_flux_error2='8.62e-07', ts2='3.74', photon_index='2.37' WHERE bin_id='479' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:28:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 207455: <4FGL_J2209.8-5028_daily_bin479> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin479> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:29 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:30 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:15:30 2021
Terminated at Tue Sep 28 06:28:07 2021
Results reported at Tue Sep 28 06:28:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin479 332.474 -50.4702 363484801 363744001 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 :                                   708.18 sec.
    Max Memory :                                 1120 MB
    Average Memory :                             293.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

