/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 19 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin210
RA = 332.474, Dec = -50.4702
tmin = 293760001, tmax = 294019201
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='205992', job_status='RUN', time_executed='2021-09-28 06:11:24.544589', time_epoch_executed='1632834684.54' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205992/ft1_4FGL_J2209.8-5028_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205992/ft1_4FGL_J2209.8-5028_daily_bin210.fits outfile=/scratch/kocevski/205992/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin210.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=293760001.0 tmax=294019201.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.57
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.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/205992/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin210.fits evtable="EVENTS" outfile="/scratch/kocevski/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/205992/ltcube_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.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/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/205992/ltcube_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.fits outfile=/scratch/kocevski/205992/expmap_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.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/205992/ltcube_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.fits
.....................!
real 191.82
user 186.65
sys 4.78

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/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits scfile=/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits outfile=/scratch/kocevski/205992/cmap_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits scfile=/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits outfile=/scratch/kocevski/205992/cmap_HighResolution_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/205992/ft2_4FGL_J2209.8-5028_daily_bin210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205992/Model_4FGL_J2209.8-5028_daily_bin210.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/205992/ft1_filtered_4FGL_J2209.8-5028_daily_bin210.fits.....................!
real 45.39
user 44.02
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.653       1.0000         .10000E-03   10000.    
     7 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8172       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43214E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.340       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.834       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.084       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1195       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3087       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95171       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=   5557.959     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2915 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.298       -.46940E-06** at limit **
   2  Prefactor     .10000E-03    53.763        .12585E-05** at limit **
   3  Prefactor     6.8684        9.4616        .14143E-06    .11579E-04
   4  Prefactor     .10000E-03    31.222       -.74916E-07** at limit **
   5  Prefactor     .10000E-03    20.035        .11280E-05** at limit **
   6  Prefactor     15.653        6.6904       -.23694E-06   -.49740E-03
   7  norm          .10000E-03    3.6728        .46002E-06** at limit **
   8  Prefactor     5.8192        18.571        .20837E-06    .56036E-06
   9  Prefactor     35.731        40.700        .75338E-06    .72261E-04
  10  Prefactor     2.5772        10.161        .38871E-05   -.27722E-03
  11  Prefactor     .10000E-03    1.5442        .56495E-07** at limit **
  12  Prefactor     .10000E-03    48.031       -.61722E-06** at limit **
  13  norm          .58366        9.4601        .34423E-05   -.58259E-04
  14  Prefactor     .50817        4.1890        .13543E-06   -.37880E-04
  15  Prefactor     .10000E-03    33.622       -.68066E-06** at limit **
  16  Prefactor     .10000E-03    7.6314       -.32559E-05** at limit **
  17  Prefactor     22.686        26.679        .35226E-06    .23952E-03
  18  Prefactor     .10000E-03    10.012       -.18345E-06** at limit **
  19  Prefactor     71.341        82.492        .30466E-07    .10475E-04
  20  Prefactor     6.7947        7.9473        .53613E-07    .83907E-04
  21  Prefactor     16.835        25.464        .16591E-06    .41501E-04
  22  Prefactor     13.082        23.889       -.46818E-05   -.84139E-04
  23  norm          1.1388        37.693        .27426E-04   -.50991E-04
  24  Normalizat    1.3085        .22698        .33403E-05    .27635E-03
  25  Prefactor     .95175        .16965       -.38258E-05   -.19143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.86843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6533
  norm       = 0.0001
  Prefactor  = 5.81915
  Prefactor  = 35.7313
  Prefactor  = 2.57719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.583664
  Prefactor  = 0.508169
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 22.6859
  Prefactor  = 0.0001
  Prefactor  = 71.3407
  Prefactor  = 6.79473
  Prefactor  = 16.8346
  Prefactor  = 13.0817
  norm       = 1.13883
  Normalizat = 1.30852
  Prefactor  = 0.95175
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.959     FROM HESSE     STATUS=OK           429 CALLS     3344 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    53.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8684        9.4431        .15311E-03   -1.5184    
   4  Prefactor     .10000E-03    31.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.653        6.6924        .10123E-03   -1.4916    
   7  norm          .10000E-03    7.6153        .27416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8192        18.405        .16652E-03   -1.5225    
   9  Prefactor     35.731        40.741        .67021E-04   -1.4512    
  10  Prefactor     2.5772        10.217        .12735E-02   -1.5387    
  11  Prefactor     .10000E-03    1.5519        .90437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .58366        42.288        .42838E-02   -1.5555    
  14  Prefactor     .50817        8.1923        .28287E-02   -1.5565    
  15  Prefactor     .10000E-03    33.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.389        .37410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.686        26.269        .84093E-04   -1.4755    
  18  Prefactor     .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     71.341        82.476        .47529E-04   -1.4017    
  20  Prefactor     6.7947        7.9373        .15394E-03   -1.5187    
  21  Prefactor     16.835        25.447        .97616E-04   -1.4887    
  22  Prefactor     13.082        23.980        .11074E-03   -1.4984    
  23  norm          1.1388        38.745        .22207E-02   -1.5495    
  24  Normalizat    1.3085        .26715        .26728E-03   -.83312    
  25  Prefactor     .95175        .20053        .24084E-03   -.94356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46028e-08
Minuit parameter uncertainties:
  1  0.000101578
  2  1.03934e-05
  3  9.44516
  4  0.000109017
  5  3.96097e-05
  6  6.69269
  7  7.92546e-05
  8  18.4228
  9  40.7729
  10  10.2235
  11  5.01955e-06
  12  0.000146885
  13  9.94263
  14  4.08099
  15  8.09347e-05
  16  0.000605448
  17  26.2827
  18  5.56576e-05
  19  82.6087
  20  7.93849
  21  25.4636
  22  23.998
  23  13.2939
  24  0.267435
  25  0.200682
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.469e-04  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:  9.518e-01  2.007e-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.309e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205992/likelihoodResults_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.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) = 5557.95925918
delta logL = -9.90461476249e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5557.95916088
delta logL = -7.45546458347e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12240E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6274       1.0000          .0000       10.000    
     3 'Normalizat'    1.3085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95176       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=   5557.959     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      280 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-03    19.866        .18142E-01** at limit **
   2  Index         2.5519        7.4039        .50000        .82827E-05
   3  Normalizat    1.3085        .39723E-02    .26728E-03    .26797E-05
   4  Prefactor     .95176        .31277E-02    .24084E-03    .42956E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102697
  Index      = 2.55193
  Normalizat = 1.30851
  Prefactor  = 0.951756
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.959     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     .10270E-03    113.81        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5519        6.2258        .50000       -.51165    
   3  Normalizat    1.3085        .95403E-02    .10691E-04   -.83313    
   4  Prefactor     .95176        .75118E-02    .96336E-05   -.94355    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.48949e-10
Minuit parameter uncertainties:
  1  0.0351084
  2  252.027
  3  0.00954029
  4  0.00751183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205992': 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) = 5557.95916044
delta logL = -3.01981344819e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.027e-04  3.511e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.552e+00  2.520e+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:  9.518e-01  7.512e-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.309e+00  9.540e-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/205992/cmap_HighResolution_293760001_294019201_4FGL_J2209.8-5028_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-28 06:22:48.547710', job_id='205992', GAL2='0.95', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1632835368.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='210' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 205992: <4FGL_J2209.8-5028_daily_bin210> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin210> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:43 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:45 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:45 2021
Terminated at Tue Sep 28 06:22:49 2021
Results reported at Tue Sep 28 06:22:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin210 332.474 -50.4702 293760001 294019201 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 :                                   678.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

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

