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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1509
RA = 332.474, Dec = -50.4702
tmin = 630460801, tmax = 630720001
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='211904', job_status='RUN', time_executed='2021-09-28 06:32:14.187551', time_epoch_executed='1632835934.19' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211904/ft1_4FGL_J2209.8-5028_daily_bin1509.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211904/ft1_4FGL_J2209.8-5028_daily_bin1509.fits outfile=/scratch/kocevski/211904/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1509.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=630460801.0 tmax=630720001.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.82
user 2.61
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211904/ft1_filtered_4FGL_J2209.8-5028_daily_bin1509.fits" evtable="EVENTS" scfile=/scratch/kocevski/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits sctable="SC_DATA" outfile=/scratch/kocevski/211904/ltcube_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.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/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits
.....................!
real 12.63
user 12.33
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211904/ft1_filtered_4FGL_J2209.8-5028_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits sctable="SC_DATA" expcube=/scratch/kocevski/211904/ltcube_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.fits outfile=/scratch/kocevski/211904/expmap_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.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/211904/ltcube_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.fits
.....................!
real 191.17
user 185.24
sys 5.60

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/211904/ft1_filtered_4FGL_J2209.8-5028_daily_bin1509.fits scfile=/scratch/kocevski/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits outfile=/scratch/kocevski/211904/cmap_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211904/ft1_filtered_4FGL_J2209.8-5028_daily_bin1509.fits scfile=/scratch/kocevski/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits outfile=/scratch/kocevski/211904/cmap_HighResolution_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211904/ft1_filtered_4FGL_J2209.8-5028_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/211904/ft2_4FGL_J2209.8-5028_daily_bin1509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211904/Model_4FGL_J2209.8-5028_daily_bin1509.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/211904/ft1_filtered_4FGL_J2209.8-5028_daily_bin1509.fits.....................!
real 44.33
user 43.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6513       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.052       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5611       1.0000         .10000E-03   10000.    
     7 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4435       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4179       1.0000         .10000E-03   10000.    
    12 'Prefactor '    168.68       1.0000         .10000E-03   10000.    
    13 'norm      '    7.5011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20809E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.280       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91169       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86174       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=   5690.909     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2900 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.854        .49607E-05** at limit **
   2  Prefactor     20.521        86.378       -.41591E-05    .76159E-05
   3  Prefactor     7.6510        9.7009        .26892E-05   -.12248E-04
   4  Prefactor     41.024        37.749       -.71317E-06    .18528E-05
   5  Prefactor     30.653        34.662        .98777E-06   -.58165E-05
   6  Prefactor     7.5592        6.8127        .19853E-06   -.23284E-04
   7  norm          .10000E-03    2.7638       -.60641E-06** at limit **
   8  Prefactor     21.753        18.179        .37772E-07    .13825E-04
   9  Prefactor     .10000E-03    18.053       -.61143E-06** at limit **
  10  Prefactor     7.4454        8.5853       -.25962E-06    .44761E-06
  11  Prefactor     2.4175        4.4122        .21495E-06   -.31192E-05
  12  Prefactor     168.52        111.87        .34297E-06   -.10458E-04
  13  norm          7.5003        5.9417        .16310E-08   -.34688E-05
  14  Prefactor     .10001E-03    1.1575       -.19712E-06** at limit **
  15  Prefactor     .10000E-03    24.128       -.96719E-07** at limit **
  16  Prefactor     .10000E-03    1.3061       -.21291E-06** at limit **
  17  Prefactor     .10000E-03    5.7123       -.25730E-06** at limit **
  18  Prefactor     .10000E-03    2.6091       -.13272E-06** at limit **
  19  Prefactor     .10000E-03    17.676       -.27091E-07** at limit **
  20  Prefactor     .10000E-03    1.8655       -.14132E-07** at limit **
  21  Prefactor     19.279        24.347        .58568E-07    .33765E-05
  22  Prefactor     .10000E-03    2.9769       -.16248E-07** at limit **
  23  norm          .10000E-03    1.4343       -.15364E-08** at limit **
  24  Normalizat    .91173        .16972        .10997E-05   -.10421E-04
  25  Prefactor     .86170        .14960       -.12095E-05    .10904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.5209
  Prefactor  = 7.65097
  Prefactor  = 41.0241
  Prefactor  = 30.6534
  Prefactor  = 7.55925
  norm       = 0.0001
  Prefactor  = 21.7532
  Prefactor  = 0.0001
  Prefactor  = 7.4454
  Prefactor  = 2.41749
  Prefactor  = 168.518
  norm       = 7.5003
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2789
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.911731
  Prefactor  = 0.861701
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.909     FROM HESSE     STATUS=OK           431 CALLS     3331 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.521        84.987        .44500E-03   -1.4802    
   3  Prefactor     7.6510        9.7228        .72488E-03   -1.5155    
   4  Prefactor     41.024        37.701        .62563E-04   -1.4426    
   5  Prefactor     30.653        34.617        .72338E-04   -1.4600    
   6  Prefactor     7.5592        6.7982        .14584E-03   -1.5158    
   7  norm          .10000E-03    2.7814        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.753        18.173        .85887E-04   -1.4775    
   9  Prefactor     .10000E-03    18.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4454        8.5541        .14700E-03   -1.5162    
  11  Prefactor     2.4175        4.3905        .19785E-03   -1.5397    
  12  Prefactor     168.52        111.58        .15531E-03   -1.3104    
  13  norm          7.5003        5.9412        .14643E-03   -1.5160    
  14  Prefactor     .10001E-03    12.475        .15565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3139        .84181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7219        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6227        .11899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8753        .10062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.279        24.351        .91216E-04   -1.4830    
  22  Prefactor     .10000E-03    2.9837        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.4345        .88236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91173        .19319        .24062E-03   -.96049    
  25  Prefactor     .86170        .17068        .21814E-03   -.97492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88807e-10
Minuit parameter uncertainties:
  1  2.93271e-06
  2  83.7281
  3  9.72484
  4  37.7225
  5  34.6396
  6  6.79886
  7  1.62487e-06
  8  18.1772
  9  1.98112e-06
  10  8.55549
  11  4.39104
  12  111.718
  13  5.94171
  14  0.00069593
  15  1.69569e-06
  16  6.03103e-08
  17  9.32509e-07
  18  2.96383e-07
  19  2.65803e-06
  20  2.23462e-07
  21  24.3633
  22  3.19406e-07
  23  2.9867e-09
  24  0.193341
  25  0.170788
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.685e+02  1.117e+02  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:  8.617e-01  1.708e-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:  9.117e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.92e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.34e-05

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) = 5690.87249798
delta logL = 0.0369501174555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5690.8681291
delta logL = 0.0413189991395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    198.61       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2332       1.0000          .0000       10.000    
     3 'Normalizat'    .91732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85860       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=   5690.868     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      292 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     198.72        163.78        .14335E-03    .35197E-04
   2  Index         2.2329        .48908        .53074E-02    .33883E-03
   3  Normalizat    .91741        .19114        .23999E-03   -.65942E-04
   4  Prefactor     .85857        .16886        .21849E-03    .47453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 198.723
  Index      = 2.23293
  Normalizat = 0.917406
  Prefactor  = 0.858566
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.868     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     198.72        158.96        .28669E-04   -1.2879    
   2  Index         2.2329        .47450        .10615E-02   -.58646    
   3  Normalizat    .91741        .19124        .95995E-05   -.95851    
   4  Prefactor     .85857        .16897        .87397E-05   -.97604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40633e-11
Minuit parameter uncertainties:
  1  159.305
  2  0.475538
  3  0.191382
  4  0.169073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211904': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5690.86812865
delta logL = 0.0413194490939

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.987e+02  1.593e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.233e+00  4.755e-01  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.586e-01  1.691e-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:  9.174e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.75
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.23 +/- 0.48
Photon Flux (Free Index): 5.41e-08 +/- 3.91e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.81e-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/211904/cmap_HighResolution_630460801_630720001_4FGL_J2209.8-5028_daily_bin1509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.92e-08', energy_flux2='2.29e-05', photon_flux_error='3.92e-08', dlogl='4.13e-02', energy_flux='2.02e-05', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-09-28 06:42:51.710121', photon_index_error2='0.48', photon_index2='2.23', ts='4.66', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.91', time_epoch_completed='1632836571.71', return_code='0', job_id='211904', GAL2='0.86', EG2='0.92', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.91e-08', ts2='4.75', photon_index='2.37' WHERE bin_id='1509' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 211904: <4FGL_J2209.8-5028_daily_bin1509> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1509> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:36 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:38 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:30:38 2021
Terminated at Tue Sep 28 06:42:52 2021
Results reported at Tue Sep 28 06:42:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1509 332.474 -50.4702 630460801 630720001 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 :                                   613.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

