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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1566
RA = 332.474, Dec = -50.4702
tmin = 645235201, tmax = 645494401
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='211988', job_status='RUN', time_executed='2021-09-28 06:31:15.954835', time_epoch_executed='1632835875.95' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211988/ft1_4FGL_J2209.8-5028_daily_bin1566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211988/ft1_4FGL_J2209.8-5028_daily_bin1566.fits outfile=/scratch/kocevski/211988/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1566.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=645235201.0 tmax=645494401.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.75
user 2.54
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211988/ft1_filtered_4FGL_J2209.8-5028_daily_bin1566.fits" evtable="EVENTS" scfile=/scratch/kocevski/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits sctable="SC_DATA" outfile=/scratch/kocevski/211988/ltcube_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.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/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits
.....................!
real 12.54
user 12.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211988/ft1_filtered_4FGL_J2209.8-5028_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits sctable="SC_DATA" expcube=/scratch/kocevski/211988/ltcube_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.fits outfile=/scratch/kocevski/211988/expmap_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.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/211988/ltcube_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.fits
.....................!
real 191.83
user 185.66
sys 5.74

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/211988/ft1_filtered_4FGL_J2209.8-5028_daily_bin1566.fits scfile=/scratch/kocevski/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits outfile=/scratch/kocevski/211988/cmap_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211988/ft1_filtered_4FGL_J2209.8-5028_daily_bin1566.fits scfile=/scratch/kocevski/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits outfile=/scratch/kocevski/211988/cmap_HighResolution_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.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/211988/ft1_filtered_4FGL_J2209.8-5028_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/211988/ft2_4FGL_J2209.8-5028_daily_bin1566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211988/Model_4FGL_J2209.8-5028_daily_bin1566.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/211988/ft1_filtered_4FGL_J2209.8-5028_daily_bin1566.fits.....................!
real 49.95
user 48.54
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    92.925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17884E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8518       1.0000         .10000E-03   10000.    
     7 'norm      '    .22379E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6095       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.844       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5478       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.5022       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93760       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=   6480.439     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2936 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.290        39.623        .38796E-06    .65931E-05
   2  Prefactor     21.275        62.340       -.59800E-06   -.14368E-04
   3  Prefactor     10.270        11.763       -.44825E-07   -.40657E-04
   4  Prefactor     92.941        46.762       -.42849E-06   -.13357E-04
   5  Prefactor     .10002E-03    74.993        .73542E-05** at limit **
   6  Prefactor     1.8513        5.1131       -.41259E-06   -.19759E-03
   7  norm          .10000E-03    26.515        .66301E-05** at limit **
   8  Prefactor     .10000E-03    4.8362        .17130E-07** at limit **
   9  Prefactor     .10000E-03    100.85        .56072E-07** at limit **
  10  Prefactor     .10000E-03    2.5048        .18183E-07** at limit **
  11  Prefactor     .10006E-03    5.4466        .24664E-05** at limit **
  12  Prefactor     6.6058        66.567        .44969E-07   -.36643E-05
  13  norm          .10000E-03    2.6402       -.65348E-08** at limit **
  14  Prefactor     .10000E-03    2.1232       -.13580E-06** at limit **
  15  Prefactor     .10000E-03    69.276       -.51272E-06** at limit **
  16  Prefactor     .10000E-03    1.8990       -.28320E-07** at limit **
  17  Prefactor     .10000E-03    41.518        .54172E-06** at limit **
  18  Prefactor     17.842        12.168        .24903E-06    .16989E-03
  19  Prefactor     .10000E-03    50.412       -.13264E-07** at limit **
  20  Prefactor     8.5473        8.8052       -.13742E-06   -.33608E-04
  21  Prefactor     .10000E-03    25.139       -.78300E-07** at limit **
  22  Prefactor     .10000E-03    4.1249       -.98694E-08** at limit **
  23  norm          .10000E-03    2.3043       -.39650E-08** at limit **
  24  Normalizat    1.5024        .24383        .25381E-05   -.29254E-03
  25  Prefactor     .93746        .19747       -.28616E-05   -.89823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2905
  Prefactor  = 21.275
  Prefactor  = 10.2696
  Prefactor  = 92.9408
  Prefactor  = 0.000100022
  Prefactor  = 1.85132
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 6.6058
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8424
  Prefactor  = 0.0001
  Prefactor  = 8.54727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.50242
  Prefactor  = 0.937458
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.439     FROM HESSE     STATUS=OK           421 CALLS     3357 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.290        39.623        .69453E-04   -1.4553    
   2  Prefactor     21.275        62.516        .86502E-04   -1.4785    
   3  Prefactor     10.270        11.736        .12504E-03   -1.5067    
   4  Prefactor     92.941        46.614        .41689E-04   -1.3777    
   5  Prefactor     .10002E-03    81.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8513        5.0984        .28641E-03   -1.5436    
   7  norm          .10000E-03    29.593        .35559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8393        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    103.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5086        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    26.282        .22071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6058        66.473        .15609E-03   -1.5194    
  13  norm          .10000E-03    2.6446        .12774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1616        .11460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9110        .10834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.842        12.231        .94815E-04   -1.4863    
  19  Prefactor     .10000E-03    50.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5473        8.7982        .13711E-03   -1.5123    
  21  Prefactor     .10000E-03    25.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1299        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3068        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5024        .25001        .25776E-03   -.77710    
  25  Prefactor     .93746        .20244        .25544E-03   -.94844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8161e-09
Minuit parameter uncertainties:
  1  39.6544
  2  62.7098
  3  11.7386
  4  46.6327
  5  0.00265324
  6  5.09963
  7  0.00074388
  8  9.56175e-07
  9  2.86565e-05
  10  1.04771e-06
  11  0.00245465
  12  41.9699
  13  8.221e-07
  14  1.26243e-05
  15  0.000275441
  16  3.43223e-06
  17  5.08076e-05
  18  12.2329
  19  1.61533e-06
  20  8.79956
  21  1.86698e-05
  22  4.1551e-06
  23  3.5929e-07
  24  0.250211
  25  0.202599
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.606e+00  4.197e+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:  9.375e-01  2.026e-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.502e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211988/likelihoodResults_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.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) = 6480.43673785
delta logL = 0.00188586309014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6480.43586868
delta logL = 0.00275503082594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8459       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2029       1.0000          .0000       10.000    
     3 'Normalizat'    1.5028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93744       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6480.436     FROM MIGRAD    STATUS=FAILED        92 CALLS      273 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9507        97.710        .13477E-03    .38662E-03
   2  Index         2.1806        2.3582        .10851E-01    .49323E-03
   3  Normalizat    1.5028        .24489        .25774E-03   -.77625E-03
   4  Prefactor     .93714        .19869        .25547E-03   -.48904E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6480.436     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      351 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9507        97.710        .98543E-03   -1.5110    
   2  Index         2.1806        2.3582        .22508E-02   -.59908    
   3  Normalizat    1.5028        .24489        .41885E-03   -.77700    
   4  Prefactor     .93714        .19869        .38479E-03   -.94855    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6480.436     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      379 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9545        89.798        .26953E-04    .14155E-03
   2  Index         2.1799        2.2730        .43404E-03   -.10477E-04
   3  Normalizat    1.5028        .24510        .51547E-04    .19320E-04
   4  Prefactor     .93714        .19885        .51093E-04    .14730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.95453
  Index      = 2.17994
  Normalizat = 1.50279
  Prefactor  = 0.937139
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.436     FROM HESSE     STATUS=OK            23 CALLS      402 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9545        89.656        .53907E-05   -1.5109    
   2  Index         2.1799        2.2716        .17361E-04   -.59924    
   3  Normalizat    1.5028        .24515        .10309E-04   -.77700    
   4  Prefactor     .93714        .19889        .10219E-04   -.94855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89596e-10
Minuit parameter uncertainties:
  1  56.7788
  2  2.40533
  3  0.245343
  4  0.199045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211988': 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) = 6480.43581527
delta logL = 0.00280844477038

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.955e+00  5.678e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.180e+00  2.405e+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:  9.371e-01  1.990e-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.503e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/211988/cmap_HighResolution_645235201_645494401_4FGL_J2209.8-5028_daily_bin1566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-09-28 06:43:40.284235', job_id='211988', GAL2='0.94', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632836620.28', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.81e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1566' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 211988: <4FGL_J2209.8-5028_daily_bin1566> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1566> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:44 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30: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:30:45 2021
Terminated at Tue Sep 28 06:43:41 2021
Results reported at Tue Sep 28 06:43:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1566 332.474 -50.4702 645235201 645494401 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 :                                   741.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

