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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin762
RA = 332.474, Dec = -50.4702
tmin = 436838401, tmax = 437097601
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='209017', job_status='RUN', time_executed='2021-09-28 06:22:33.294080', time_epoch_executed='1632835353.29' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209017/ft1_4FGL_J2209.8-5028_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209017/ft2_4FGL_J2209.8-5028_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209017/ft1_4FGL_J2209.8-5028_daily_bin762.fits outfile=/scratch/kocevski/209017/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin762.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=436838401.0 tmax=437097601.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.99
user 4.73
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209017/ft1_filtered_4FGL_J2209.8-5028_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/209017/ft2_4FGL_J2209.8-5028_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/209017/ltcube_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.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/209017/ft2_4FGL_J2209.8-5028_daily_bin762.fits
.....................!
real 11.73
user 11.42
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209017/ft1_filtered_4FGL_J2209.8-5028_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/209017/ft2_4FGL_J2209.8-5028_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/209017/ltcube_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.fits outfile=/scratch/kocevski/209017/expmap_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.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/209017/ltcube_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.fits
.....................!
real 190.77
user 186.12
sys 4.33

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/209017/ft1_filtered_4FGL_J2209.8-5028_daily_bin762.fits scfile=/scratch/kocevski/209017/ft2_4FGL_J2209.8-5028_daily_bin762.fits outfile=/scratch/kocevski/209017/cmap_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209017/ft1_filtered_4FGL_J2209.8-5028_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/209017/ft2_4FGL_J2209.8-5028_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209017/Model_4FGL_J2209.8-5028_daily_bin762.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/209017/ft1_filtered_4FGL_J2209.8-5028_daily_bin762.fits.....................!
real 50.18
user 48.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2870       1.0000         .10000E-03   10000.    
     7 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16607E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15603E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.9901       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26202E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31205E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .47803E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.030       1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4168       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77280       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=   6234.759     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3057 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.352        28.573        .35481E-06   -.13998E-05
   2  Prefactor     .10000E-03    22.521        .11745E-05** at limit **
   3  Prefactor     6.4304        6.9887        .16278E-06    .36693E-04
   4  Prefactor     .10000E-03    16.791        .13838E-06** at limit **
   5  Prefactor     .10000E-03    9.1792       -.70668E-08** at limit **
   6  Prefactor     2.2870        5.0541        .13740E-06    .12540E-03
   7  norm          .10000E-03    2.8471        .48746E-07** at limit **
   8  Prefactor     2.8813        9.3429        .68676E-05    .69630E-03
   9  Prefactor     .10000E-03    98.087        .76111E-05** at limit **
  10  Prefactor     .10010E-03    13.124       -.61912E-05** at limit **
  11  Prefactor     .10000E-03    2.4535        .77175E-06** at limit **
  12  Prefactor     .10001E-03    134.11       -.13829E-04** at limit **
  13  norm          8.9893        8.1904        .10517E-06    .41544E-04
  14  Prefactor     .10107E-03    3.2706       -.27345E-05** at limit **
  15  Prefactor     .10000E-03    22.359       -.14916E-05** at limit **
  16  Prefactor     .10001E-03    6.2172        .28234E-05** at limit **
  17  Prefactor     3.6856        90.179       -.13852E-05   -.11611E-04
  18  Prefactor     .10000E-03    10.379        .41983E-06** at limit **
  19  Prefactor     .10000E-03    38.942       -.52974E-05** at limit **
  20  Prefactor     .10000E-03    3.2221       -.47151E-08** at limit **
  21  Prefactor     .10113E-03    27.594       -.45078E-05** at limit **
  22  Prefactor     47.034        31.486        .31221E-06    .18519E-04
  23  norm          .10000E-03    5.1098       -.60500E-08** at limit **
  24  Normalizat    1.4165        .21501       -.12932E-05    .12349E-03
  25  Prefactor     .77301        .14300        .87865E-07    .81885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.3524
  Prefactor  = 0.0001
  Prefactor  = 6.43036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28703
  norm       = 0.0001
  Prefactor  = 2.88127
  Prefactor  = 0.000100003
  Prefactor  = 0.000100096
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  norm       = 8.98932
  Prefactor  = 0.000101069
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.68557
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101131
  Prefactor  = 47.0341
  norm       = 0.0001
  Normalizat = 1.4165
  Prefactor  = 0.773006
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.759     FROM HESSE     STATUS=OK           435 CALLS     3492 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.352        28.524        .72726E-04   -1.4606    
   2  Prefactor     .10000E-03    22.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4304        6.9754        .15829E-03   -1.5201    
   4  Prefactor     .10000E-03    16.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2870        5.0087        .24131E-03   -1.5405    
   7  norm          .10000E-03    2.9036        .13004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8813        10.015        .11968E-02   -1.5368    
   9  Prefactor     .10000E-03    98.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10010E-03    37.152        .40615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.005        .23181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    134.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.9893        8.1788        .13368E-03   -1.5108    
  14  Prefactor     .10107E-03    42.476        .21918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    13.902        .34885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6856        85.365        .20938E-03   -1.5324    
  18  Prefactor     .10000E-03    10.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2257        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10113E-03    25.263        .14187       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.034        31.517        .58468E-04   -1.4335    
  23  norm          .10000E-03    5.1109        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4165        .24768        .25321E-03   -.80153    
  25  Prefactor     .77301        .16906        .23745E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83691e-08
Minuit parameter uncertainties:
  1  28.5367
  2  7.011e-05
  3  6.97626
  4  6.09812e-06
  5  3.419e-06
  6  5.00961
  7  7.38662e-07
  8  10.0212
  9  0.00103775
  10  0.00377051
  11  0.000305021
  12  0.00173534
  13  8.17983
  14  0.0134895
  15  7.75454e-05
  16  0.00053666
  17  35.5318
  18  7.31455e-05
  19  0.000394929
  20  1.19147e-06
  21  0.0106955
  22  31.5281
  23  6.32216e-07
  24  0.247887
  25  0.16917
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.735e-03  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:  7.730e-01  1.692e-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.416e+00  2.479e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209017/likelihoodResults_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.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) = 6234.75923375
delta logL = -3.53978657586e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6234.75919812
delta logL = 2.27118107432e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7109       1.0000          .0000       10.000    
     3 'Normalizat'    1.4165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77301       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=   6234.759     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      263 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .49803        .14197    ** at limit **
   2  Index         2.8376        7.7458        .50000       -.35907E-05
   3  Normalizat    1.4165        .41375E-03    .57262E-01    .10174E-03
   4  Prefactor     .77301        .29823E-03    .43365E-01    .10215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.83759
  Normalizat = 1.4165
  Prefactor  = 0.773007
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.759     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      304 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    .34339        .16965       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8376        7.4451        .50000       -.44724    
   3  Normalizat    1.4165        .39511E-03    .25321E-03   -.80153    
   4  Prefactor     .77301        .28480E-03    .23745E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38916e-10
Minuit parameter uncertainties:
  1  8.79158e-05
  2  14.7481
  3  0.000395108
  4  0.000284802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209017': 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) = 6234.75919803
delta logL = 3.26093868352e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.792e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.838e+00  1.475e+01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.730e-01  2.848e-04  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.416e+00  3.951e-04  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/209017/cmap_HighResolution_436838401_437097601_4FGL_J2209.8-5028_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-28 06:34:37.093801', job_id='209017', GAL2='0.77', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632836077.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='762' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 209017: <4FGL_J2209.8-5028_daily_bin762> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin762> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:23 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:26 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:20:26 2021
Terminated at Tue Sep 28 06:34:37 2021
Results reported at Tue Sep 28 06:34:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin762 332.474 -50.4702 436838401 437097601 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

