/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 138 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 = 7346
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin119
RA = 332.474, Dec = -50.4702
tmin = 270172801, tmax = 270432001
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='205851', job_status='RUN', time_executed='2021-09-28 06:13:02.568774', time_epoch_executed='1632834782.57' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205851/ft1_4FGL_J2209.8-5028_daily_bin119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205851/ft2_4FGL_J2209.8-5028_daily_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205851/ft1_4FGL_J2209.8-5028_daily_bin119.fits outfile=/scratch/kocevski/205851/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin119.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=270172801.0 tmax=270432001.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 1.72
user 1.50
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205851/ft1_filtered_4FGL_J2209.8-5028_daily_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/205851/ft2_4FGL_J2209.8-5028_daily_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/205851/ltcube_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.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/205851/ft2_4FGL_J2209.8-5028_daily_bin119.fits
.....................!
real 16.72
user 16.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205851/ft1_filtered_4FGL_J2209.8-5028_daily_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/205851/ft2_4FGL_J2209.8-5028_daily_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/205851/ltcube_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.fits outfile=/scratch/kocevski/205851/expmap_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.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/205851/ltcube_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.fits
.....................!
real 194.65
user 189.95
sys 4.31

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/205851/ft1_filtered_4FGL_J2209.8-5028_daily_bin119.fits scfile=/scratch/kocevski/205851/ft2_4FGL_J2209.8-5028_daily_bin119.fits outfile=/scratch/kocevski/205851/cmap_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5911       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.153       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.924       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11202E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0755       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36505E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0357       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12827E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.4716       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3256       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61910       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=   5043.099     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     2955 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5910        40.320       -.12031E-05   -.15491E-05
   2  Prefactor     53.148        46.896       -.27573E-06    .10432E-04
   3  Prefactor     17.926        10.127       -.57976E-06   -.69973E-05
   4  Prefactor     .10000E-03    8.9759       -.85390E-07** at limit **
   5  Prefactor     .10000E-03    10.463       -.78410E-07** at limit **
   6  Prefactor     .10000E-03    2.4392       -.10165E-06** at limit **
   7  norm          11.157        5.2794       -.59868E-07    .26219E-04
   8  Prefactor     12.594        11.277       -.54863E-07    .14993E-04
   9  Prefactor     .10000E-03    41.892       -.20371E-06** at limit **
  10  Prefactor     .10000E-03    9.0675       -.20190E-06** at limit **
  11  Prefactor     2.4779        4.5256       -.47415E-08    .29733E-04
  12  Prefactor     .10000E-03    107.99        .28669E-05** at limit **
  13  norm          .10000E-03    5.1584       -.10556E-06** at limit **
  14  Prefactor     .10000E-03    1.6023       -.21843E-07** at limit **
  15  Prefactor     .10000E-03    51.813       -.47121E-06** at limit **
  16  Prefactor     1.0902        5.9485       -.10081E-05   -.46019E-04
  17  Prefactor     10.620        28.013        .64406E-06    .15955E-04
  18  Prefactor     .10026E-03    8.5043       -.58099E-06** at limit **
  19  Prefactor     .10000E-03    26.546       -.23911E-06** at limit **
  20  Prefactor     2.0364        5.9044        .19260E-05   -.66249E-04
  21  Prefactor     .10000E-03    32.585        .80134E-07** at limit **
  22  Prefactor     .10000E-03    3.7713       -.32614E-07** at limit **
  23  norm          5.4714        5.5205       -.47090E-06   -.47879E-04
  24  Normalizat    1.3255        .21491        .17360E-05    .39749E-04
  25  Prefactor     .61909        .14878       -.11846E-06    .23526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59099
  Prefactor  = 53.1475
  Prefactor  = 17.9257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.157
  Prefactor  = 12.5945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09021
  Prefactor  = 10.6198
  Prefactor  = 0.000100265
  Prefactor  = 0.0001
  Prefactor  = 2.0364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.47143
  Normalizat = 1.3255
  Prefactor  = 0.619087
 **********
 **   18 **HESSE 
 **********

 FCN=   5043.099     FROM HESSE     STATUS=OK           433 CALLS     3388 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5910        40.458        .21324E-03   -1.5329    
   2  Prefactor     53.148        46.900        .55014E-04   -1.4249    
   3  Prefactor     17.926        10.143        .94602E-04   -1.4861    
   4  Prefactor     .10000E-03    8.9801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4815        .10833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.157        5.2801        .10831E-03   -1.5040    
   8  Prefactor     12.594        11.281        .11283E-03   -1.4998    
   9  Prefactor     .10000E-03    42.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4779        4.5157        .19213E-03   -1.5393    
  12  Prefactor     .10000E-03    107.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1791        .15754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6124        .87743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0902        20.856        .29258E-02   -1.5499    
  17  Prefactor     10.620        29.773        .12260E-03   -1.5056    
  18  Prefactor     .10026E-03    15.235        .61697E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0364        5.9599        .14428E-02   -1.5423    
  21  Prefactor     .10000E-03    32.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7725        .13469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.4714        5.5287        .16384E-03   -1.5240    
  24  Normalizat    1.3255        .24151        .22609E-03   -.82808    
  25  Prefactor     .61909        .17161        .24268E-03   -1.0679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28368e-08
Minuit parameter uncertainties:
  1  24.127
  2  46.9324
  3  10.1441
  4  1.79157e-06
  5  1.37554e-05
  6  6.48868e-06
  7  5.28033
  8  11.2834
  9  9.63534e-05
  10  4.09461e-05
  11  4.5163
  12  9.18464e-05
  13  3.09468e-06
  14  6.03253e-06
  15  0.000103275
  16  9.54017
  17  29.8148
  18  0.00401837
  19  4.7337e-06
  20  5.96162
  21  1.54681e-05
  22  2.08567e-06
  23  5.52919
  24  0.241713
  25  0.171754
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.185e-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:  6.191e-01  1.718e-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.325e+00  2.417e-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: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205851/likelihoodResults_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.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) = 5043.09950491
delta logL = -4.39977184215e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5043.0994612
delta logL = -2.82755536318e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8001       1.0000          .0000       10.000    
     3 'Normalizat'    1.3255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61909       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=   5043.099     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10402E-03    15.358        .18142E-01** at limit **
   2  Index         2.7035        7.3992        .50000        .35996E-05
   3  Normalizat    1.3255        .22300E-02    .22609E-03   -.35027E-04
   4  Prefactor     .61908        .17072E-02    .24267E-03   -.18458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104017
  Index      = 2.70347
  Normalizat = 1.3255
  Prefactor  = 0.619084
 **********
 **   18 **HESSE 
 **********

 FCN=   5043.099     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10402E-03    270.64        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7035        5.6969        .50000       -.47721    
   3  Normalizat    1.3255        .93801E-02    .45219E-04   -.82808    
   4  Prefactor     .61908        .71810E-02    .97070E-05   -1.0679    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.52908e-10
Minuit parameter uncertainties:
  1  0.0662442
  2  566.268
  3  0.00938014
  4  0.007181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205851': 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) = 5043.09946114
delta logL = -2.25921212405e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.040e-04  6.624e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.703e+00  5.663e+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:  6.191e-01  7.181e-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.325e+00  9.380e-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/205851/cmap_HighResolution_270172801_270432001_4FGL_J2209.8-5028_daily_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-28 06:24:01.826852', job_id='205851', GAL2='0.62', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1632835441.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='-2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='119' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:24:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 205851: <4FGL_J2209.8-5028_daily_bin119> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin119 332.474 -50.4702 270172801 270432001 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 :                                   656.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

