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


Performing analysis on: 4FGL_J2118.0+0019_weekly_bin731
RA = 319.505, Dec = 0.3295
tmin = 681091201, tmax = 681696001
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='130354', job_status='RUN', time_executed='2022-08-09 01:04:25.600459', time_epoch_executed='1660032265.6' WHERE source_name='4FGL J2118.0+0019' and cadence='weekly' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/130354

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/130354/ft1_4FGL_J2118.0+0019_weekly_bin731.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/130354/ft1_4FGL_J2118.0+0019_weekly_bin731.fits outfile=/scratch/kocevski/130354/ft1_filteredMKT_4FGL_J2118.0+0019_weekly_bin731.fits ra=319.505 dec=0.3295 rad=12.0 tmin=681091201.0 tmax=681696001.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 5.67
user 5.42
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.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/130354/ft1_filteredMKT_4FGL_J2118.0+0019_weekly_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.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.54
user 0.38
sys 0.14

Number of photons that the gtmktime cut: 361

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/130354/ltcube_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.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/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits
.....................!
real 27.47
user 27.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/130354/ltcube_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.fits outfile=/scratch/kocevski/130354/expmap_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.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/130354/ltcube_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.fits
.....................!
real 191.00
user 186.15
sys 4.46

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2118.0+0019 @ 319.505 0.3295

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits scfile=/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits outfile=/scratch/kocevski/130354/cmap_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.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=319.505 yref=0.3295 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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits scfile=/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits outfile=/scratch/kocevski/130354/cmap_HighResolution_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.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=319.505 yref=0.3295 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/130354/Model_4FGL_J2118.0+0019_weekly_bin731.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/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits.....................!
real 54.70
user 53.37
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits', '/scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits', expMap='/scratch/kocevski/130354/expmap_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.fits', expCube='/scratch/kocevski/130354/ltcube_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/130354/Model_4FGL_J2118.0+0019_weekly_bin731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2118.0+0019'

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.605e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/130354/ft1_filtered_4FGL_J2118.0+0019_weekly_bin731.fits
Spacecraft file(s): /scratch/kocevski/130354/ft2_4FGL_J2118.0+0019_weekly_bin731.fits
Exposure map: /scratch/kocevski/130354/expmap_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.fits
Exposure cube: /scratch/kocevski/130354/ltcube_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/130354/Model_4FGL_J2118.0+0019_weekly_bin731.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) = 4435.82912627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7225       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5004       1.0000         .10000E-03   10000.    
     8 'Prefactor '    126.42       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.849       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1211       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36413E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4842       1.0000         .10000E-03   10000.    
    18 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0095       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.734       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .32295       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99815       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4435.789     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2557 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7297        12.689        .80178E-06   -.27410E-04
   2  Prefactor     .10000E-03    24.378       -.14163E-06** at limit **
   3  Prefactor     .10000E-03    82.969       -.10644E-05** at limit **
   4  Prefactor     .10000E-03    117.06        .92416E-06** at limit **
   5  Prefactor     53.770        37.581        .91760E-06    .84298E-04
   6  Prefactor     .10000E-03    28.395        .41634E-06** at limit **
   7  Prefactor     2.5264        138.32        .21231E-05    .15728E-04
   8  Prefactor     126.38        131.32        .11941E-05   -.45063E-04
   9  Prefactor     .10000E-03    104.45        .26976E-06** at limit **
  10  Prefactor     15.026        31.755        .92771E-06    .21284E-04
  11  Prefactor     .10000E-03    106.19        .12041E-06** at limit **
  12  Prefactor     40.851        37.493        .85952E-07    .69992E-05
  13  Prefactor     4.1233        4.5467        .80602E-06   -.10874E-03
  14  Prefactor     .10000E-03    35.419        .70007E-06** at limit **
  15  Prefactor     .10002E-03    434.72        .11661E-05** at limit **
  16  Prefactor     .10000E-03    28.590       -.27849E-06** at limit **
  17  Prefactor     7.5022        91.671        .12894E-05   -.13657E-05
  18  norm          .10000E-03    1.3396        .31005E-06** at limit **
  19  norm          .10000E-03    81.904        .70856E-06** at limit **
  20  Prefactor     3.0113        5.4660        .15355E-05   -.10744E-03
  21  Prefactor     20.745        17.421        .24976E-06   -.14620E-04
  22  Normalizat    .32257        .35820       -.62554E-05   -.50490E-04
  23  Prefactor     .99819        .15036        .55339E-06   -.24718E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.72967
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 53.7705
  Prefactor  = 0.0001
  Prefactor  = 2.52639
  Prefactor  = 126.381
  Prefactor  = 0.0001
  Prefactor  = 15.026
  Prefactor  = 0.000100001
  Prefactor  = 40.8514
  Prefactor  = 4.12327
  Prefactor  = 0.000100001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 7.50216
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.01134
  Prefactor  = 20.7445
  Normalizat = 0.322568
  Prefactor  = 0.998189
 **********
 **   18 **HESSE 
 **********

 FCN=   4435.789     FROM HESSE     STATUS=OK           368 CALLS     2925 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7297        12.715        .64259E-03   -1.5084    
   2  Prefactor     .10000E-03    24.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    83.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    117.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.770        37.938        .54718E-04   -1.4240    
   6  Prefactor     .10000E-03    28.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5264        138.73        .25845E-03   -1.5390    
   8  Prefactor     126.38        131.94        .17902E-03   -1.3455    
   9  Prefactor     .10000E-03    104.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.026        31.844        .10341E-03   -1.4933    
  11  Prefactor     .10000E-03    106.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.851        37.516        .62718E-04   -1.4429    
  13  Prefactor     4.1233        4.5419        .70773E-03   -1.5302    
  14  Prefactor     .10000E-03    35.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    443.69        .21306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5022        90.940        .14660E-03   -1.5160    
  18  norm          .10000E-03    2.0753        .14814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    84.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0113        5.4712        .98709E-03   -1.5361    
  21  Prefactor     20.745        17.480        .87962E-04   -1.4797    
  22  Normalizat    .32257        .36494        .58266E-03   -1.2152    
  23  Prefactor     .99819        .15144        .15324E-03   -.92790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51478e-10
Minuit parameter uncertainties:
  1  12.7188
  2  4.1557e-05
  3  0.000922735
  4  0.00132648
  5  37.9551
  6  8.60463e-05
  7  37.5331
  8  132.247
  9  0.000253883
  10  31.8796
  11  0.000557872
  12  37.5381
  13  4.54228
  14  0.000432055
  15  0.00598375
  16  0.000148333
  17  52.3385
  18  1.8668e-06
  19  0.000803238
  20  5.4721
  21  17.4847
  22  0.367675
  23  0.151505
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.264e+02  1.322e+02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.982e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  3.226e-01  3.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 1.08e-07
Energy Flux (Fixed Index): 2.78e-05 +/- 2.91e-05

TS (Fixed Index): 1.16
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 3.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/130354/likelihoodResults_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.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) = 4435.74551866
delta logL = 0.0431244739666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4435.73325363
delta logL = 0.0553894968371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.57       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8704       1.0000          .0000       10.000    
     3 'Normalizat'    .30362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   4435.733     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.55        142.38        .38956E-04    .37939E-03
   2  Index         2.8706        .98986        .84217E-02    .26404E-03
   3  Normalizat    .30409        .33328        .59943E-03   -.21120E-03
   4  Prefactor     1.0040        .14988        .15284E-03   -.96803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.548
  Index      = 2.8706
  Normalizat = 0.304092
  Prefactor  = 1.004
 **********
 **   18 **HESSE 
 **********

 FCN=   4435.733     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.55        134.04        .77912E-05   -1.3640    
   2  Index         2.8706        .93132        .33687E-03   -.43993    
   3  Normalizat    .30409        .33275        .23977E-04   -1.2259    
   4  Prefactor     1.0040        .14955        .30569E-04   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98412e-09
Minuit parameter uncertainties:
  1  134.428
  2  0.938031
  3  0.334943
  4  0.149608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/130354': 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) = 4435.73325238
delta logL = 0.0553907517133

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.065e+02  1.344e+02  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.871e+00  9.380e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.004e+00  1.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  3.041e-01  3.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.87 +/- 0.94
Photon Flux (Free Index): 1.29e-07 +/- 1.40e-07
Energy Flux (Free Index): 2.75e-05 +/- 2.71e-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/130354/cmap_HighResolution_681091201_681696001_4FGL_J2118.0+0019_weekly_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-02', comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.75e-05', photon_flux_error='1.08e-07', dlogl='5.54e-02', energy_flux='2.78e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2022-08-09 01:14:09.545215', photon_index_error2='0.94', photon_index2='2.87', ts='1.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='3.22e-07', energy_flux_error2='2.71e-05', EG='0.32', time_epoch_completed='1660032849.55', return_code='0', job_id='130354', GAL2='1.00', EG2='0.30', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='1.40e-07', ts2='1.28', photon_index='2.57' WHERE bin_id='731' AND source_name='4FGL J2118.0+0019' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  9 01:14:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 130354: <4FGL_J2118.0+0019_weekly_bin731> in cluster <slac> Done

Job <4FGL_J2118.0+0019_weekly_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug  9 01:00:29 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  9 01:00:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  9 01:00:30 2022
Terminated at Tue Aug  9 01:14:10 2022
Results reported at Tue Aug  9 01:14:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_weekly_bin731 319.505 0.3295 681091201 681696001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2118.0+0019 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.19 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             242.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

