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


Performing analysis on: 4FGL_J1118.2-0415_daily_bin1778
RA = 169.575, Dec = -4.2539
tmin = 700185601, tmax = 700444801
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='959722', job_status='RUN', time_executed='2023-03-14 00:46:21.733672', time_epoch_executed='1678779981.73' WHERE source_name='4FGL J1118.2-0415' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959722/ft1_4FGL_J1118.2-0415_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959722/ft1_4FGL_J1118.2-0415_daily_bin1778.fits outfile=/scratch/kocevski/959722/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1778.fits ra=169.575 dec=-4.2539 rad=12.0 tmin=700185601.0 tmax=700444801.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.99
user 3.72
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.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/959722/ft1_filteredMKT_4FGL_J1118.2-0415_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 625

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/959722/ltcube_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.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/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits
.....................!
real 13.12
user 12.74
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/959722/ltcube_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.fits outfile=/scratch/kocevski/959722/expmap_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.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/959722/ltcube_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.fits
.....................!
real 190.51
user 185.32
sys 4.39

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

Setting source of interest to:
4FGL J1118.2-0415 @ 169.575 -4.2539

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits scfile=/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits outfile=/scratch/kocevski/959722/cmap_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.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=169.575 yref=-4.2539 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits scfile=/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits outfile=/scratch/kocevski/959722/cmap_HighResolution_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.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=169.575 yref=-4.2539 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/959722/Model_4FGL_J1118.2-0415_daily_bin1778.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/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits.....................!
real 64.77
user 63.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits', '/scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits', expMap='/scratch/kocevski/959722/expmap_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.fits', expCube='/scratch/kocevski/959722/ltcube_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/959722/Model_4FGL_J1118.2-0415_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1118.2-0415'

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.706e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/959722/ft1_filtered_4FGL_J1118.2-0415_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/959722/ft2_4FGL_J1118.2-0415_daily_bin1778.fits
Exposure map: /scratch/kocevski/959722/expmap_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.fits
Exposure cube: /scratch/kocevski/959722/ltcube_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/959722/Model_4FGL_J1118.2-0415_daily_bin1778.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) = 6893.36386641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32895E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
     3 'norm      '    .45086E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .37254E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.6812       1.0000          .0000       .10000E+07
     6 'Prefactor '    58.511       1.0000          .0000       .10000E+07
     7 'norm      '    .12551E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11673E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    55.187       1.0000          .0000       .10000E+07
    10 'norm      '    .80819E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.1810       1.0000          .0000       .10000E+07
    12 'Prefactor '    .62374E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    32.657       1.0000          .0000       .10000E+07
    14 'norm      '    3.2170       1.0000          .0000       .10000E+07
    15 'Prefactor '    .35303E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    19.974       1.0000          .0000       .10000E+07
    17 'Prefactor '    .30244E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .18263       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93032       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6893.277     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1616 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69827E-06    8.0408       -.31037E-07** at limit **
   2  norm           .0000        .92380        .40037E-07** at limit **
   3  norm          .55511E-10    2.5910        .53493E-07** at limit **
   4  Prefactor     .76772E-06    6.7273       -.33035E-07** at limit **
   5  Prefactor     1.6732        4.3795        .58619E-07    .31283E-04
   6  Prefactor     59.311        47.425       -.19370E-07   -.73448E-02
   7  norm          .74940E-08    45.276       -.11888E-07** at limit **
   8  Prefactor     .23981E-07    23.490       -.19217E-07** at limit **
   9  Prefactor     55.215        11.452       -.55952E-08   -.10799    
  10  norm          .10325E-07    10.144        .20064E-06** at limit **
  11  Prefactor     4.1819        2.5654        .32129E-07    .24897E-02
  12  Prefactor      .0000        24.570        .61005E-07** at limit **
  13  Prefactor     32.785        1.4498        .14960E-08   -.24118E-01
  14  norm          3.2269        4.7288        .78231E-07    .13969E-02
  15  Prefactor     .81601E-08    5.5065       -.21687E-07** at limit **
  16  Prefactor     19.983        3.1730        .18277E-07   -.93491E-02
  17  Prefactor     .44964E-08    4.4584       -.51036E-07** at limit **
  18  Prefactor     .10547E-08    34.351       -.13302E-06** at limit **
  19  Normalizat    1.1717        .23046       -.29462E-05   -.83341E-04
  20  Prefactor     .93014        .17072        .18126E-05    .78856E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.98275e-07
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 7.67719e-07
  Prefactor  = 1.67316
  Prefactor  = 59.3108
  norm       = 7.49401e-09
  Prefactor  = 2.39808e-08
  Prefactor  = 55.2148
  norm       = 1.03251e-08
  Prefactor  = 4.18186
  Prefactor  = 0
  Prefactor  = 32.7845
  norm       = 3.22693
  Prefactor  = 8.16014e-09
  Prefactor  = 19.9834
  Prefactor  = 4.4964e-09
  Prefactor  = 1.05471e-09
  Normalizat = 1.17166
  Prefactor  = 0.930145
 **********
 **   18 **HESSE 
 **********

 FCN=   6893.277     FROM HESSE     STATUS=OK           345 CALLS     1961 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69827E-06    12.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .22257        .20350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    2.5902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76772E-06    11.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6732        4.5337        .81210E-03   -1.5682    
   6  Prefactor     59.311        47.660        .13074E-03   -1.5554    
   7  norm          .74940E-08    44.573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23981E-07    3.6639        .50368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     55.215        12.907        .13462E-03   -1.5559    
  10  norm          .10325E-07    10.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1819        2.5657        .49265E-03   -1.5667    
  12  Prefactor      .0000        24.317        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.785        27.284        .17501E-03   -1.5593    
  14  norm          3.2269        4.7605        .56458E-03   -1.5672    
  15  Prefactor     .81601E-08    5.4547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.983        15.804        .22383E-03   -1.5619    
  17  Prefactor     .44964E-08    4.4853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10547E-08    34.233        .12094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1717        .19596        .62050E-01   -.87483    
  20  Prefactor     .93014        .14385        .45390E-01   -.95096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7455e-07
Minuit parameter uncertainties:
  1  0.00584088
  2  2.99741e-06
  3  2.77713e-05
  4  0.00596318
  5  4.5337
  6  47.6606
  7  0.00115719
  8  0.000593049
  9  12.9075
  10  0.000653924
  11  2.56565
  12  2.21253e-05
  13  27.2843
  14  4.76047
  15  0.000422592
  16  15.8036
  17  0.000283951
  18  0.00037644
  19  0.196079
  20  0.143907
Done.

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

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  1.673e+00  4.534e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.301e-01  1.439e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.172e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 169.575 -4.254
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959722/likelihoodResults_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.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) = 6893.26757457
delta logL = 0.00893607185571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6893.25608956
delta logL = 0.0204210866432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68071       1.0000          .0000       .10000E+07
     2 'Index     '    3.5144       1.0000          .0000       10.000    
     3 'Normalizat'    1.1579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   6893.256     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      278 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66377        163.90        .14639E-04   -.40383E-03
   2  Index         3.5297        8.2166        .83387E-02   -.51440E-05
   3  Normalizat    1.1583        .21404        .27583E-03   -.43071E-04
   4  Prefactor     .93854        .16235        .22723E-03   -.38724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.663768
  Index      = 3.52969
  Normalizat = 1.15829
  Prefactor  = 0.93854
 **********
 **   18 **HESSE 
 **********

 FCN=   6893.256     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66377        16.927        .58557E-06   -1.5692    
   2  Index         3.5297        6.7193        .33355E-03   -.29847    
   3  Normalizat    1.1583        .23999        .11033E-04   -.87902    
   4  Prefactor     .93854        .17757        .90892E-05   -.94807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90675e-11
Minuit parameter uncertainties:
  1  6.70388
  2  6.99402
  3  0.240222
  4  0.177677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959722': 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) = 6893.25608374
delta logL = 0.0204269062924

Extracting fit parameters...

4FGL J1118.2-0415
   Spectrum: PowerLaw
282    Prefactor:  6.638e-01  6.704e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  3.530e+00  6.994e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.866e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.385e-01  1.777e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.158e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 169.575 -4.254

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/959722/cmap_HighResolution_700185601_700444801_4FGL_J1118.2-0415_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2023-03-14 00:56:59.697133', job_id='959722', GAL2='0.94', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1678780619.7', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.04e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1778' AND source_name='4FGL J1118.2-0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:56:59 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 959722: <4FGL_J1118.2-0415_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1118.2-0415_daily_bin1778> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Mar 14 00:45:14 2023
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:45:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:45:15 2023
Terminated at Tue Mar 14 00:57:00 2023
Results reported at Tue Mar 14 00:57:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1118.2-0415_daily_bin1778 169.575 -4.2539 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1118.2-0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

