aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 50 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 = 7505
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1687
RA = 332.474, Dec = -50.4702
tmin = 676598401, tmax = 676857601
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='700264', job_status='RUN', time_executed='2022-06-14 01:36:56.381906', time_epoch_executed='1655195816.38' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700264/ft1_4FGL_J2209.8-5028_daily_bin1687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700264/ft1_4FGL_J2209.8-5028_daily_bin1687.fits outfile=/scratch/kocevski/700264/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1687.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=676598401.0 tmax=676857601.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.47
user 2.20
sys 0.20

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

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

Number of photons that the gtmktime cut: 660

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700264/ft1_filtered_4FGL_J2209.8-5028_daily_bin1687.fits" evtable="EVENTS" scfile=/scratch/kocevski/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits sctable="SC_DATA" outfile=/scratch/kocevski/700264/ltcube_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.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/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits
.....................!
real 13.39
user 12.95
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700264/ft1_filtered_4FGL_J2209.8-5028_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits sctable="SC_DATA" expcube=/scratch/kocevski/700264/ltcube_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.fits outfile=/scratch/kocevski/700264/expmap_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.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/700264/ltcube_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.fits
.....................!
real 161.96
user 153.53
sys 4.89

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/700264/ft1_filtered_4FGL_J2209.8-5028_daily_bin1687.fits scfile=/scratch/kocevski/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits outfile=/scratch/kocevski/700264/cmap_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.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.56
user 0.31
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700264/ft1_filtered_4FGL_J2209.8-5028_daily_bin1687.fits scfile=/scratch/kocevski/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits outfile=/scratch/kocevski/700264/cmap_HighResolution_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.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.50
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700264/ft1_filtered_4FGL_J2209.8-5028_daily_bin1687.fits evtable="EVENTS" scfile=/scratch/kocevski/700264/ft2_4FGL_J2209.8-5028_daily_bin1687.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700264/Model_4FGL_J2209.8-5028_daily_bin1687.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/700264/ft1_filtered_4FGL_J2209.8-5028_daily_bin1687.fits....................!
real 49.74
user 42.10
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1809       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12135E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76564E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-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.0144       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99215       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=   7279.673     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2937 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    26.067       -.13240E-05** at limit **
   2  Prefactor     14.190        20.741        .75453E-07   -.22647E-05
   3  Prefactor     14.827        8.7770        .52646E-07    .44807E-03
   4  Prefactor     .10001E-03    63.233        .13625E-05** at limit **
   5  Prefactor     .10000E-03    6.1116        .30588E-07** at limit **
   6  Prefactor     5.1812        4.5328       -.14517E-06    .24897E-03
   7  norm          2.4773        3.8193        .50886E-06    .42602E-03
   8  Prefactor     11.639        12.944        .23182E-06    .72375E-04
   9  Prefactor     7.1741        26.957       -.31480E-05    .16671E-04
  10  Prefactor     2.4371        6.1321        .73012E-05    .61412E-03
  11  Prefactor     .10000E-03    1.9654       -.48338E-06** at limit **
  12  Prefactor     .10000E-03    38.612        .58414E-06** at limit **
  13  norm          .10000E-03    4.0751        .20575E-05** at limit **
  14  Prefactor     .10000E-03    1.4620       -.16537E-06** at limit **
  15  Prefactor     19.521        39.177        .65531E-06   -.30993E-05
  16  Prefactor     .10027E-03    4.2216       -.48559E-05** at limit **
  17  Prefactor     .10000E-03    9.3653       -.16506E-07** at limit **
  18  Prefactor     .10000E-03    3.4277       -.68670E-08** at limit **
  19  Prefactor     .10000E-03    27.961       -.10346E-05** at limit **
  20  Prefactor     .10000E-03    1.7756       -.47922E-07** at limit **
  21  Prefactor     .10000E-03    25.368        .33443E-06** at limit **
  22  Prefactor     .10000E-03    4.1070       -.22541E-07** at limit **
  23  norm          .10000E-03    2.1288       -.74818E-08** at limit **
  24  Normalizat    1.0144        .16311       -.30398E-06    .32231E-03
  25  Prefactor     .99209        .13408       -.76378E-06    .63900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100107
  Prefactor  = 14.1896
  Prefactor  = 14.8268
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 5.18115
  norm       = 2.47731
  Prefactor  = 11.6389
  Prefactor  = 7.1741
  Prefactor  = 2.43709
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.521
  Prefactor  = 0.000100273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.0144
  Prefactor  = 0.992088
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.673     FROM HESSE     STATUS=OK           435 CALLS     3372 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    27.827        .12709       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.190        20.745        .10633E-03   -1.4954    
   3  Prefactor     14.827        8.7727        .10401E-03   -1.4938    
   4  Prefactor     .10001E-03    64.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1812        4.5273        .16174E-03   -1.5253    
   7  norm          2.4773        3.8019        .19902E-03   -1.5393    
   8  Prefactor     11.639        12.929        .11742E-03   -1.5026    
   9  Prefactor     7.1741        26.991        .14975E-03   -1.5172    
  10  Prefactor     2.4371        6.3584        .13103E-02   -1.5396    
  11  Prefactor     .10000E-03    4.2249        .23007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.064        .32383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4794        .10064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.521        39.176        .90650E-04   -1.4824    
  16  Prefactor     .10027E-03    28.840        .24774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.3937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4458        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7806        .11102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1231        .16886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.1348        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0144        .18549        .25210E-03   -.92550    
  25  Prefactor     .99209        .15600        .21390E-03   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06802e-08
Minuit parameter uncertainties:
  1  0.0034548
  2  20.7554
  3  8.77342
  4  0.00141252
  5  6.55183e-06
  6  4.52757
  7  3.80225
  8  12.9322
  9  27.037
  10  6.36016
  11  6.50091e-05
  12  0.000480024
  13  0.000229352
  14  1.23296e-05
  15  39.2272
  16  0.00561271
  17  9.24572e-06
  18  1.77834e-06
  19  0.000696937
  20  4.2387e-06
  21  0.000529493
  22  1.33622e-07
  23  4.20855e-07
  24  0.185605
  25  0.156072
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.800e-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.921e-01  1.561e-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.014e+00  1.856e-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: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700264/likelihoodResults_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.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) = 7279.67350262
delta logL = -0.000123044300381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7279.67350261
delta logL = -0.000123036169498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99209       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=   7279.673     FROM MIGRAD    STATUS=FAILED        94 CALLS      235 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10787E-03    134.52        .18143E-01** at limit **
   2  Index         1.8861        7.2685        .50000        .13429E-05
   3  Normalizat    1.0144        .63158E-02    .25210E-03    .81624E-05
   4  Prefactor     .99209        .53328E-02    .21390E-03    .72283E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7279.673     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      347 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10787E-03    134.52        .13811E-02** at limit **
   2  Index         1.8861        7.2685        .37369E-03    .13429E-05
   3  Normalizat    1.0144        .63158E-02    .22724E-05    .81624E-05
   4  Prefactor     .99209        .53328E-02    .13129E-05    .72283E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7279.673     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      380 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-03    938.61        .36285E-02** at limit **
   2  Index         1.9563        8.8981        .50000        .18938E-05
   3  Normalizat    1.0144        .17448E-01    .10084E-04    .85683E-05
   4  Prefactor     .99209        .14732E-01    .85560E-05    .77066E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102701
  Index      = 1.95627
  Normalizat = 1.01439
  Prefactor  = 0.99209
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.673     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      409 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10270E-03    6804.6        .72570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9563        6.7347        .50000       -.65448    
   3  Normalizat    1.0144        .38977E-01    .20168E-05   -.92550    
   4  Prefactor     .99209        .32914E-01    .17112E-05   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33985e-08
Minuit parameter uncertainties:
  1  0.211835
  2  4209.27
  3  0.038978
  4  0.0329151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700264': 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) = 7279.67337923
delta logL = 3.47540662915e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.027e-04  2.118e-01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.956e+00  4.209e+03  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.921e-01  3.292e-02  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.014e+00  3.898e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/700264/cmap_HighResolution_676598401_676857601_4FGL_J2209.8-5028_daily_bin1687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2022-06-14 01:49:00.769833', job_id='700264', GAL2='0.99', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1655196540.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1687' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jun 14 01:49:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 700264: <4FGL_J2209.8-5028_daily_bin1687> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1687> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 14 01:35:21 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 01:35:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 01:35:56 2022
Terminated at Tue Jun 14 01:49:01 2022
Results reported at Tue Jun 14 01:49:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1687 332.474 -50.4702 676598401 676857601 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 :                                   665.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            820 sec.

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

