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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin1733
RA = 319.505, Dec = 0.3295
tmin = 688521601, tmax = 688780801
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='708438', job_status='RUN', time_executed='2022-10-30 00:36:43.434510', time_epoch_executed='1667115403.43' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708438/ft1_4FGL_J2118.0+0019_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708438/ft1_4FGL_J2118.0+0019_daily_bin1733.fits outfile=/scratch/kocevski/708438/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1733.fits ra=319.505 dec=0.3295 rad=12.0 tmin=688521601.0 tmax=688780801.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.56
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.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/708438/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.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.55
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 622

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708438/ltcube_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.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/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits
.....................!
real 13.59
user 13.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708438/ltcube_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.fits outfile=/scratch/kocevski/708438/expmap_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.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/708438/ltcube_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.fits
.....................!
real 191.15
user 185.48
sys 5.29

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/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.fits scfile=/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits outfile=/scratch/kocevski/708438/cmap_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.fits scfile=/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits outfile=/scratch/kocevski/708438/cmap_HighResolution_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.fits', '/scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits', expMap='/scratch/kocevski/708438/expmap_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.fits', expCube='/scratch/kocevski/708438/ltcube_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708438/Model_4FGL_J2118.0+0019_daily_bin1733.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  0.000e+00  1.000e+06 ( 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/708438/ft1_filtered_4FGL_J2118.0+0019_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/708438/ft2_4FGL_J2118.0+0019_daily_bin1733.fits
Exposure map: /scratch/kocevski/708438/expmap_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.fits
Exposure cube: /scratch/kocevski/708438/ltcube_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708438/Model_4FGL_J2118.0+0019_daily_bin1733.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6928.07872403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6746       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.2998       1.0000          .0000       .10000E+07
     3 'Prefactor '    .62668E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .35761E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14374E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4822       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13680E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36992E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14510E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20772       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.3165       1.0000          .0000       .10000E+07
    12 'Prefactor '    18.365       1.0000          .0000       .10000E+07
    13 'norm      '    .40681       1.0000          .0000       .10000E+07
    14 'norm      '    .45100E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.8024       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11276E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6926.986     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1120 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9076        11.851        .49419E-06    .44739E-03
   2  Prefactor     5.2306        5.9479       -.23230E-06   -.20611E-03
   3  Prefactor     .22622E-05    42.908        .11165E-05** at limit **
   4  Prefactor     .76666E-06    9.9945        .99914E-06** at limit **
   5  Prefactor     .15462E-05    15.388        .12094E-05** at limit **
   6  Prefactor     3.4290        1.2429       -.28636E-08    .19578E-02
   7  Prefactor     .14665E-05    20.177        .29155E-06** at limit **
   8  Prefactor     .85487E-07    12.931        .71401E-06** at limit **
   9  Prefactor     .88690E-06    6.6288        .67473E-06** at limit **
  10  Prefactor     .22254        4.4038       -.63713E-07** at limit **
  11  Prefactor     .30670E-06    10.074        .91353E-06** at limit **
  12  Prefactor     17.812        19.729       -.21514E-06    .90128E-01
  13  norm          .40586        2.3203        .60495E-06    .11661E-02
  14  norm          .79381E-08    6.7941       -.22889E-07** at limit **
  15  Prefactor     5.7389        6.4813        .75697E-10   -.26577E-02
  16  Prefactor     .14128E-06    11.982        .68160E-06** at limit **
  17  Normalizat    1.0702        .27135        .71128E-05   -.13261E-03
  18  Prefactor     .97043        .12630       -.37499E-05   -.28623E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90756
  Prefactor  = 5.23057
  Prefactor  = 2.26219e-06
  Prefactor  = 7.66665e-07
  Prefactor  = 1.54621e-06
  Prefactor  = 3.42904
  Prefactor  = 1.46655e-06
  Prefactor  = 8.54872e-08
  Prefactor  = 8.86902e-07
  Prefactor  = 0.222544
  Prefactor  = 3.06699e-07
  Prefactor  = 17.8116
  norm       = 0.405857
  norm       = 7.93809e-09
  Prefactor  = 5.73886
  Prefactor  = 1.41276e-07
  Normalizat = 1.0702
  Prefactor  = 0.970425
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.986     FROM HESSE     STATUS=OK           284 CALLS     1404 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9076        11.800        .62286E-03   -1.5674    
   2  Prefactor     5.2306        5.9416        .43634E-03   -1.5662    
   3  Prefactor     .22622E-05    45.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76666E-06    28.748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15462E-05    29.025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4290        45.049        .54162E-03   -1.5671    
   7  Prefactor     .14665E-05    25.803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .85487E-07    15.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .88690E-06    18.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22254        1.8373        .33651E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .30670E-06    144.58        .95940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.812        40.296        .23344E-03   -1.5624    
  13  norm          .40586        2.3337        .88702E-03   -1.5695    
  14  norm          .79381E-08    6.9007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7389        6.6346        .41670E-03   -1.5660    
  16  Prefactor     .14128E-06    13.472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0702        .23351        .77989E-01   -.90715    
  18  Prefactor     .97043        .10536        .45908E-01   -.93722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06194e-06
Minuit parameter uncertainties:
  1  11.7151
  2  5.94163
  3  0.0202759
  4  0.00938948
  5  0.0133983
  6  24.8578
  7  0.0123031
  8  0.00226803
  9  0.00803547
  10  1.27889
  11  0.013318
  12  40.2966
  13  1.94642
  14  0.000468258
  15  6.6346
  16  0.00275913
  17  0.233731
  18  0.105383
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.546e-06  1.340e-02  0.000e+00  1.000e+06 ( 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.704e-01  1.054e-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:  1.070e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708438/likelihoodResults_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.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) = 6926.98635352
delta logL = -0.000548413949218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6926.98580509
delta logL = 1.31558408611e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39369E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.8715       1.0000          .0000       10.000    
     3 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97042       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.

 FCN=   6926.508     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      280 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37562        8.6535        .42118E-03    .52578E-01
   2  Index         6.1478        3.8789        .15071        .31615E-03
   3  Normalizat    .97411        .60322E-01    .81314E-01    .12590E-03
   4  Prefactor     .99820        .28159E-01    .45896E-01    .48429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.375616
  Index      = 6.14783
  Normalizat = 0.974113
  Prefactor  = 0.998195
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.508     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      311 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37562        20.744        .52219E-05   -1.5696    
   2  Index         6.1478        8.0734        .81835E-02    .23163    
   3  Normalizat    .97411        .22827        .36001E-03   -.93903    
   4  Prefactor     .99820        .10445        .16653E-03   -.92790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14087e-09
Minuit parameter uncertainties:
  1  5.58273
  2  8.6703
  3  0.228496
  4  0.104467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708438': 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) = 6926.50752335
delta logL = 0.478281753204

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  3.756e-01  5.583e+00  0.000e+00  1.000e+06 ( 1.000e-13)
309        Index:  6.148e+00  8.670e+00  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:  9.982e-01  1.045e-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:  9.741e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 319.505 0.330
Photon Index (Free Index): 6.15 +/- 8.67
Photon Flux (Free Index): 8.06e-08 +/- 8.57e-08
Energy Flux (Free Index): 9.97e-06 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/708438/cmap_HighResolution_688521601_688780801_4FGL_J2118.0+0019_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', comment='SUCCESS', energy_flux2='9.97e-06', dlogl='4.78e-01', photon_flux2='8.06e-08', job_status='DONE', time_completed='2022-10-30 00:45:54.698737', photon_index_error2='8.67', photon_index2='6.15', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='8.78e-08', energy_flux_error2='1.19e-05', EG='1.07', time_epoch_completed='1667115954.7', return_code='0', job_id='708438', GAL2='1.00', EG2='0.97', return_code2='102', photon_flux_error2='8.57e-08', ts2='1.07', photon_index='2.57' WHERE bin_id='1733' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:45:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 708438: <4FGL_J2118.0+0019_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:26 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:28 2022
Terminated at Sun Oct 30 00:45:55 2022
Results reported at Sun Oct 30 00:45:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin1733 319.505 0.3295 688521601 688780801 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 :                                   553.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

