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 212 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1732
RA = 332.474, Dec = -50.4702
tmin = 688262401, tmax = 688521601
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='647616', job_status='RUN', time_executed='2022-10-27 00:39:22.440928', time_epoch_executed='1666856362.44' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647616/ft1_4FGL_J2209.8-5028_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647616/ft1_4FGL_J2209.8-5028_daily_bin1732.fits outfile=/scratch/kocevski/647616/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1732.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=688262401.0 tmax=688521601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.30
sys 0.19

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

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

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

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

Number of photons that the gtmktime cut: 515

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647616/ft1_filtered_4FGL_J2209.8-5028_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647616/ltcube_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.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/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits
.....................!
real 11.98
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647616/ft1_filtered_4FGL_J2209.8-5028_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647616/ltcube_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits outfile=/scratch/kocevski/647616/expmap_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.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/647616/ltcube_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits
.....................!
real 191.21
user 184.79
sys 6.10

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/647616/ft1_filtered_4FGL_J2209.8-5028_daily_bin1732.fits scfile=/scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits outfile=/scratch/kocevski/647616/cmap_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647616/ft1_filtered_4FGL_J2209.8-5028_daily_bin1732.fits scfile=/scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits outfile=/scratch/kocevski/647616/cmap_HighResolution_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647616/ft1_filtered_4FGL_J2209.8-5028_daily_bin1732.fits', '/scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits', expMap='/scratch/kocevski/647616/expmap_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits', expCube='/scratch/kocevski/647616/ltcube_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647616/Model_4FGL_J2209.8-5028_daily_bin1732.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  0.000e+00  1.000e+06 ( 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/647616/ft1_filtered_4FGL_J2209.8-5028_daily_bin1732.fits
Spacecraft file(s): /scratch/kocevski/647616/ft2_4FGL_J2209.8-5028_daily_bin1732.fits
Exposure map: /scratch/kocevski/647616/expmap_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits
Exposure cube: /scratch/kocevski/647616/ltcube_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647616/Model_4FGL_J2209.8-5028_daily_bin1732.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) = 5618.92495189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.824       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2081       1.0000          .0000       .10000E+07
     3 'Prefactor '    29.057       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.019       1.0000          .0000       .10000E+07
     5 'Prefactor '    .31587E-01   1.0000          .0000       .10000E+07
     6 'norm      '    14.776       1.0000          .0000       .10000E+07
     7 'Prefactor '    .93902       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17853E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .58368       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.0903       1.0000          .0000       .10000E+07
    11 'Prefactor '    129.99       1.0000          .0000       .10000E+07
    12 'norm      '    7.5186       1.0000          .0000       .10000E+07
    13 'Prefactor '    .27650E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .16982E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11524E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .49043E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97644E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    19.796       1.0000          .0000       .10000E+07
    19 'Prefactor '    26.592       1.0000          .0000       .10000E+07
    20 'norm      '    6.0503       1.0000          .0000       .10000E+07
    21 'Normalizat'    .94664       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84963       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5618.919     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     1797 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.749        24.356       -.38618E-06   -.39277E-01
   2  Prefactor     3.2337        9.9233        .25910E-07   -.31405E-03
   3  Prefactor     28.929        21.352       -.11974E-06    .18049E-01
   4  Prefactor     11.021        2.3817       -.11292E-07    .93633E-03
   5  Prefactor     .29643E-01    105.28       -.15129E-06** at limit **
   6  norm          14.790        6.3199        .52670E-07   -.16663E-02
   7  Prefactor     1.0504        31.344       -.91446E-07    .27342E-01
   8  Prefactor      .0000        13.031       -.87406E-07** at limit **
   9  Prefactor     .55553        38.914        .15381E-05    .54264E-03
  10  Prefactor     8.0889        4.2018       -.28735E-07   -.28780E-03
  11  Prefactor     130.83        125.78       -.12086E-05   -.10196E-01
  12  norm          7.5080        6.3861        .25947E-07   -.28234E-03
  13  Prefactor      .0000        2.9674        .56569E-08** at limit **
  14  Prefactor     .27756E-08    18.741       -.35242E-07** at limit **
  15  Prefactor      .0000        9.5639        .84353E-07** at limit **
  16  Prefactor     .37192E-08    16.989       -.43801E-07** at limit **
  17  Prefactor      .0000        2.0798       -.14202E-07** at limit **
  18  Prefactor     19.536        16.768       -.33235E-06    .74495E-01
  19  Prefactor     26.585        2.1502       -.23358E-07   -.21197E-01
  20  norm          6.0172        5.9042       -.38537E-08    .36600E-03
  21  Normalizat    .94669        .20321        .40709E-06   -.22058E-05
  22  Prefactor     .84954        .16156        .21145E-06    .68263E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7488
  Prefactor  = 3.23371
  Prefactor  = 28.9286
  Prefactor  = 11.0207
  Prefactor  = 0.0296426
  norm       = 14.7899
  Prefactor  = 1.0504
  Prefactor  = 0
  Prefactor  = 0.555534
  Prefactor  = 8.08891
  Prefactor  = 130.828
  norm       = 7.50798
  Prefactor  = 0
  Prefactor  = 2.77556e-09
  Prefactor  = 0
  Prefactor  = 3.71925e-09
  Prefactor  = 0
  Prefactor  = 19.536
  Prefactor  = 26.5855
  norm       = 6.0172
  Normalizat = 0.946693
  Prefactor  = 0.849542
 **********
 **   18 **HESSE 
 **********

 FCN=   5618.919     FROM HESSE     STATUS=OK           398 CALLS     2195 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.749        25.880        .24391E-03   -1.5626    
   2  Prefactor     3.2337        10.182        .56540E-03   -1.5672    
   3  Prefactor     28.929        33.824        .18554E-03   -1.5600    
   4  Prefactor     11.021        20.378        .30156E-03   -1.5642    
   5  Prefactor     .29643E-01    1.9032        .75466E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.790        6.5909        .26030E-03   -1.5631    
   7  Prefactor     1.0504        61.004        .43099E-03   -1.5687    
   8  Prefactor      .0000        13.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55553        50.030        .70702E-03   -1.5693    
  10  Prefactor     8.0889        4.2079        .35225E-03   -1.5651    
  11  Prefactor     130.83        144.12        .87716E-04   -1.5479    
  12  norm          7.5080        6.3820        .36551E-03   -1.5653    
  13  Prefactor      .0000        2.9553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27756E-08    18.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        9.4632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .37192E-08    17.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.0795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.536        31.519        .22483E-03   -1.5620    
  19  Prefactor     26.585        18.357        .19396E-03   -1.5605    
  20  norm          6.0172        5.9311        .40795E-03   -1.5659    
  21  Normalizat    .94669        .18056        .45495E-01   -.94838    
  22  Prefactor     .84954        .14164        .44360E-01   -.97927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68254e-07
Minuit parameter uncertainties:
  1  25.8804
  2  10.1821
  3  33.824
  4  20.3786
  5  0.475044
  6  6.59092
  7  16.01
  8  3.41687e-05
  9  10.544
  10  4.20788
  11  144.124
  12  6.38203
  13  4.90651e-06
  14  0.000458085
  15  2.56368e-05
  16  0.000505051
  17  3.58393e-07
  18  31.5189
  19  18.3575
  20  5.93111
  21  0.180677
  22  0.141703
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.308e+02  1.441e+02  0.000e+00  1.000e+06 ( 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.495e-01  1.417e-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:  9.467e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.72e-05

TS (Fixed Index): 2.76
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647616/likelihoodResults_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.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) = 5618.91806487
delta logL = 0.00139124156431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5618.91612659
delta logL = 0.00332952111967

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5618.916     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      263 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.68        167.03        .18141E-04    .10512E-02
   2  Index         2.4323        .84371        .65386E-02    .58812E-04
   3  Normalizat    .94393        .20246        .25358E-03   -.14378E-03
   4  Prefactor     .85107        .16184        .21431E-03    .20465E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.682
  Index      = 2.43233
  Normalizat = 0.943932
  Prefactor  = 0.851068
 **********
 **   18 **HESSE 
 **********

 FCN=   5618.916     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.68        148.92        .36281E-05   -1.5487    
   2  Index         2.4323        .75238        .26154E-03   -.53930    
   3  Normalizat    .94393        .20187        .10143E-04   -.94933    
   4  Prefactor     .85107        .16157        .42863E-04   -.97872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35191e-10
Minuit parameter uncertainties:
  1  148.925
  2  0.756293
  3  0.202032
  4  0.161658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647616': 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) = 5618.91612575
delta logL = 0.00333036194297

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.217e+02  1.489e+02  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.432e+00  7.563e-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:  8.511e-01  1.617e-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:  9.439e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.43 +/- 0.76
Photon Flux (Free Index): 4.80e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.35e-05

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/647616/cmap_HighResolution_688262401_688521601_4FGL_J2209.8-5028_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.51e-05', photon_flux_error='5.06e-08', dlogl='3.33e-03', energy_flux='1.57e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2022-10-27 00:49:04.145183', photon_index_error2='0.76', photon_index2='2.43', ts='2.76', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.35e-05', EG='0.95', time_epoch_completed='1666856944.15', return_code='0', job_id='647616', GAL2='0.85', EG2='0.94', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.39e-08', ts2='2.77', photon_index='2.37' WHERE bin_id='1732' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:49:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 647616: <4FGL_J2209.8-5028_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:41 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:42 2022
Terminated at Thu Oct 27 00:49:04 2022
Results reported at Thu Oct 27 00:49:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1732 332.474 -50.4702 688262401 688521601 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

