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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin384
RA = 332.474, Dec = -50.4702
tmin = 338860801, tmax = 339120001
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='207292', job_status='RUN', time_executed='2021-09-28 06:17:20.758628', time_epoch_executed='1632835040.76' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207292

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207292/ft1_4FGL_J2209.8-5028_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207292/ft1_4FGL_J2209.8-5028_daily_bin384.fits outfile=/scratch/kocevski/207292/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin384.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=338860801.0 tmax=339120001.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 4.76
user 4.46
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207292/ft1_filtered_4FGL_J2209.8-5028_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/207292/ltcube_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.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/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits
.....................!
real 12.17
user 11.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207292/ft1_filtered_4FGL_J2209.8-5028_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/207292/ltcube_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.fits outfile=/scratch/kocevski/207292/expmap_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.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/207292/ltcube_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.fits
.....................!
real 190.74
user 185.18
sys 4.96

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/207292/ft1_filtered_4FGL_J2209.8-5028_daily_bin384.fits scfile=/scratch/kocevski/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits outfile=/scratch/kocevski/207292/cmap_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207292/ft1_filtered_4FGL_J2209.8-5028_daily_bin384.fits scfile=/scratch/kocevski/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits outfile=/scratch/kocevski/207292/cmap_HighResolution_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.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/207292/ft1_filtered_4FGL_J2209.8-5028_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/207292/ft2_4FGL_J2209.8-5028_daily_bin384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207292/Model_4FGL_J2209.8-5028_daily_bin384.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/207292/ft1_filtered_4FGL_J2209.8-5028_daily_bin384.fits.....................!
real 46.99
user 45.71
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.224       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13111E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7870       1.0000         .10000E-03   10000.    
    23 'norm      '    6.2939       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3160       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85596       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=   5842.155     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2857 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.168        .61055E-05** at limit **
   2  Prefactor     .10000E-03    25.502        .63053E-05** at limit **
   3  Prefactor     1.5541        11.202       -.21164E-05   -.46403E-03
   4  Prefactor     .10000E-03    9.6216        .34997E-06** at limit **
   5  Prefactor     44.621        25.012        .39586E-05   -.82666E-06
   6  Prefactor     13.223        5.7892       -.12038E-05   -.15352E-04
   7  norm          .10000E-03    1.1923        .50657E-08** at limit **
   8  Prefactor     .10000E-03    3.9395        .13662E-07** at limit **
   9  Prefactor     .10000E-03    13.407       -.44619E-05** at limit **
  10  Prefactor     .10000E-03    4.1925       -.19962E-07** at limit **
  11  Prefactor     .10000E-03    1.2667       -.43119E-07** at limit **
  12  Prefactor     .10000E-03    210.17        .12124E-04** at limit **
  13  norm          12.147        8.9868       -.21718E-06    .11145E-03
  14  Prefactor     .10000E-03    3.0153        .51483E-07** at limit **
  15  Prefactor     .10000E-03    14.181        .29534E-05** at limit **
  16  Prefactor     .10006E-03    7.0984       -.42305E-05** at limit **
  17  Prefactor     37.139        35.192        .75476E-05    .56607E-03
  18  Prefactor     .10001E-03    17.171       -.60831E-05** at limit **
  19  Prefactor     42.388        86.546        .44668E-04    .52175E-04
  20  Prefactor     .10000E-03    4.3819        .36973E-07** at limit **
  21  Prefactor     .10000E-03    24.762       -.44016E-05** at limit **
  22  Prefactor     7.7931        23.705       -.94221E-05    .33429E-04
  23  norm          6.2937        7.7791        .43201E-06    .83749E-05
  24  Normalizat    1.3159        .21105       -.24314E-06    .67253E-03
  25  Prefactor     .85618        .15640       -.25914E-06    .46589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55407
  Prefactor  = 0.0001
  Prefactor  = 44.6214
  Prefactor  = 13.2231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 37.1386
  Prefactor  = 0.000100009
  Prefactor  = 42.3878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.79308
  norm       = 6.29371
  Normalizat = 1.31591
  Prefactor  = 0.85618
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.155     FROM HESSE     STATUS=OK           415 CALLS     3272 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5541        11.323        .34092E-03   -1.5459    
   4  Prefactor     .10000E-03    9.6301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     44.621        24.937        .60016E-04   -1.4371    
   6  Prefactor     13.223        5.7891        .11015E-03   -1.4981    
   7  norm          .10000E-03    1.1949        .81504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9435        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2142        .15281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2722        .83995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    210.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.147        8.9881        .11493E-03   -1.5011    
  14  Prefactor     .10000E-03    3.1027        .25901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    27.112        .37303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.139        34.948        .65830E-04   -1.4488    
  18  Prefactor     .10001E-03    17.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.388        85.589        .61603E-04   -1.4405    
  20  Prefactor     .10000E-03    4.4120        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.7931        23.863        .14370E-03   -1.5150    
  23  norm          6.2937        7.7746        .16000E-03   -1.5206    
  24  Normalizat    1.3159        .25117        .25271E-03   -.83093    
  25  Prefactor     .85618        .18637        .23719E-03   -.97690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91727e-09
Minuit parameter uncertainties:
  1  3.34563e-06
  2  1.53623e-05
  3  8.3918
  4  1.03387e-05
  5  24.9433
  6  5.78938
  7  1.19104e-06
  8  1.12791e-06
  9  9.3301e-06
  10  4.41644e-07
  11  2.90616e-06
  12  0.000167822
  13  8.98911
  14  6.41048e-06
  15  1.59445e-06
  16  0.00253143
  17  34.9674
  18  0.000812225
  19  85.8384
  20  2.05205e-06
  21  3.37398e-05
  22  23.892
  23  7.77588
  24  0.251404
  25  0.186511
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.678e-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:  8.562e-01  1.865e-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.316e+00  2.514e-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: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207292/likelihoodResults_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.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) = 5842.15493042
delta logL = -2.24789946515e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5842.15490795
delta logL = -5.21231413586e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11171E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5426       1.0000          .0000       10.000    
     3 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5842.155     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    129.40        .90712E-02** at limit **
   2  Index         2.5500        6.6648        .50000       -.24734E-06
   3  Normalizat    1.3159        .38189E-02    .57147E-01    .10308E-03
   4  Prefactor     .85618        .29780E-02    .44444E-01    .93359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.54998
  Normalizat = 1.3159
  Prefactor  = 0.856182
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.155     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    753.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5500        5.9945        .50000       -.51209    
   3  Normalizat    1.3159        .93038E-02    .25271E-03   -.83093    
   4  Prefactor     .85618        .72564E-02    .23719E-03   -.97689    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.59799e-10
Minuit parameter uncertainties:
  1  0.00238116
  2  362.716
  3  0.00930376
  4  0.00725636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207292': 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) = 5842.15490792
delta logL = 2.15595719055e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.381e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.550e+00  3.627e+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:  8.562e-01  7.256e-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.316e+00  9.304e-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/207292/cmap_HighResolution_338860801_339120001_4FGL_J2209.8-5028_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-28 06:28:57.198811', job_id='207292', GAL2='0.86', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632835737.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='384' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:28:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 207292: <4FGL_J2209.8-5028_daily_bin384> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin384> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:14 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:15:16 2021
Terminated at Tue Sep 28 06:28:57 2021
Results reported at Tue Sep 28 06:28:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin384 332.474 -50.4702 338860801 339120001 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 :                                   694.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

