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


Performing analysis on: 4FGL_J1117.0+2013_weekly_bin763
RA = 169.271, Dec = 20.2294
tmin = 700444801, tmax = 701049601
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='422798', job_status='RUN', time_executed='2023-03-21 01:20:33.663739', time_epoch_executed='1679386833.66' WHERE source_name='4FGL J1117.0+2013' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422798

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422798/ft1_4FGL_J1117.0+2013_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422798/ft1_4FGL_J1117.0+2013_weekly_bin763.fits outfile=/scratch/kocevski/422798/ft1_filteredMKT_4FGL_J1117.0+2013_weekly_bin763.fits ra=169.271 dec=20.2294 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.59
user 9.19
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.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/422798/ft1_filteredMKT_4FGL_J1117.0+2013_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.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.56
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 924

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/422798/ltcube_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.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/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits
.....................!
real 26.58
user 26.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/422798/ltcube_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.fits outfile=/scratch/kocevski/422798/expmap_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.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/422798/ltcube_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.fits
.....................!
real 190.84
user 185.17
sys 5.33

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

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits scfile=/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits outfile=/scratch/kocevski/422798/cmap_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.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.271 yref=20.2294 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits scfile=/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits outfile=/scratch/kocevski/422798/cmap_HighResolution_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.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.271 yref=20.2294 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422798/Model_4FGL_J1117.0+2013_weekly_bin763.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/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits.....................!
real 93.30
user 91.84
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits', '/scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits', expMap='/scratch/kocevski/422798/expmap_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.fits', expCube='/scratch/kocevski/422798/ltcube_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/422798/Model_4FGL_J1117.0+2013_weekly_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/422798/ft1_filtered_4FGL_J1117.0+2013_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/422798/ft2_4FGL_J1117.0+2013_weekly_bin763.fits
Exposure map: /scratch/kocevski/422798/expmap_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.fits
Exposure cube: /scratch/kocevski/422798/ltcube_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/422798/Model_4FGL_J1117.0+2013_weekly_bin763.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) = 10778.992551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .96579E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.9423       1.0000          .0000       .10000E+07
     4 'Prefactor '    11.107       1.0000          .0000       .10000E+07
     5 'Prefactor '    .34056E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.5215       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.736       1.0000          .0000       .10000E+07
     8 'norm      '    .79492E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .69883       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14613E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .29903E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5845       1.0000          .0000       .10000E+07
    13 'Prefactor '    .19228E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .48328E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    30.762       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.6925       1.0000          .0000       .10000E+07
    17 'Prefactor '    .81586       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28422E-07   1.0000          .0000       .10000E+07
    19 'Normalizat'    .93330       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10778.93     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1865 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79270E-07    4.0317       -.55161E-06** at limit **
   2  Prefactor     .11102E-09    6.2747        .21993E-06** at limit **
   3  Prefactor     9.9372        6.2190       -.39021E-06   -.19896E-01
   4  Prefactor     11.111        7.3044        .13421E-07    .11973E-02
   5  Prefactor     .60341E-07    3.3718       -.16035E-06** at limit **
   6  Prefactor     8.5300        6.9018        .59254E-07    .25048E-02
   7  Prefactor     17.738        4.8417        .13884E-06   -.40476E-02
   8  norm           .0000        1.3800       -.63479E-07** at limit **
   9  Prefactor     .69640        2.0285        .31547E-07    .17275E-02
  10  Prefactor     .88651E-07    2.6742        .13373E-06** at limit **
  11  norm          .21372E-07    3.9059       -.20425E-07** at limit **
  12  Prefactor     2.5872        2.0053        .38457E-07    .25650E-02
  13  Prefactor     .38525E-07    2.6879        .33158E-06** at limit **
  14  Prefactor     .11324E-07    46.881        .76848E-06** at limit **
  15  Prefactor     30.755        17.532        .36775E-06   -.19466E-01
  16  Prefactor     4.6941        6.1817       -.90807E-06   -.23701E-01
  17  Prefactor     .81589        1.2381       -.59633E-07    .35973E-03
  18  Prefactor     .77383E-07    1.6297       -.26145E-06** at limit **
  19  Normalizat    .93338        .16483       -.37367E-06   -.15762E-03
  20  Prefactor     1.1049        .16191        .12766E-05   -.14646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.92699e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 9.93723
  Prefactor  = 11.1108
  Prefactor  = 6.03406e-08
  Prefactor  = 8.53003
  Prefactor  = 17.7381
  norm       = 0
  Prefactor  = 0.696401
  Prefactor  = 8.86513e-08
  norm       = 2.13718e-08
  Prefactor  = 2.58719
  Prefactor  = 3.85247e-08
  Prefactor  = 1.13243e-08
  Prefactor  = 30.7546
  Prefactor  = 4.69408
  Prefactor  = 0.815888
  Prefactor  = 7.73825e-08
  Normalizat = 0.933377
  Prefactor  = 1.1049
 **********
 **   18 **HESSE 
 **********

 FCN=   10778.93     FROM HESSE     STATUS=OK           345 CALLS     2210 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79270E-07    7.1489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    .56178        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9372        6.3365        .31755E-03   -1.5645    
   4  Prefactor     11.111        9.1773        .30036E-03   -1.5641    
   5  Prefactor     .60341E-07    5.0617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5300        7.0069        .34316E-03   -1.5650    
   7  Prefactor     17.738        16.961        .23755E-03   -1.5624    
   8  norm           .0000        .53805        .26525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .69640        2.0762        .60803E-03   -1.5691    
  10  Prefactor     .88651E-07    6.0948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .21372E-07    4.2642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5872        9.6930        .63452E-03   -1.5676    
  13  Prefactor     .38525E-07    5.7402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11324E-07    45.316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.755        18.544        .18032E-03   -1.5597    
  16  Prefactor     4.6941        6.6268        .46431E-03   -1.5665    
  17  Prefactor     .81589        1.2650        .51760E-03   -1.5690    
  18  Prefactor     .77383E-07    9.0417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93338        .14336        .45326E-01   -.95297    
  20  Prefactor     1.1049        .13692        .56664E-01   -.89310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39127e-08
Minuit parameter uncertainties:
  1  0.00150554
  2  1.58003e-05
  3  6.33652
  4  9.17729
  5  0.0011053
  6  7.00695
  7  16.9612
  8  6.87014e-06
  9  2.07617
  10  0.00147027
  11  0.000604006
  12  9.69302
  13  0.000940253
  14  0.00143245
  15  18.5445
  16  6.62678
  17  1.265
  18  0.00167295
  19  0.143416
  20  0.136968
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  8.865e-08  1.470e-03  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.105e+00  1.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.334e-01  1.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422798/likelihoodResults_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.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) = 10777.4394699
delta logL = 1.49442513263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10778.9338952
delta logL = -1.88172634807e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13139E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5442       1.0000          .0000       10.000    
     3 'Normalizat'    .93345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10777.10     FROM MIGRAD    STATUS=FAILED       330 CALLS      598 TOTAL
                     EDM=   .47E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16133E-05    .27007E-04    .74901E-06** at limit **
   2  Index         8.2654        2.5946        .48948E-02    .10317E-02
   3  Normalizat    .83495        .71234E-01    .27402E-03   -.18654E-03
   4  Prefactor     1.1764        .73122E-01    .24394E-03   -.20508E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10777.10     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      682 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16133E-05    .27007E-04    .11401E-06** at limit **
   2  Index         8.2654        2.5946        .81478E-02    .10317E-02
   3  Normalizat    .83495        .71234E-01    .22569E-03   -.18654E-03
   4  Prefactor     1.1764        .73122E-01    .11677E-03   -.20508E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10777.10     FROM MIGRAD    STATUS=FAILED        41 CALLS      723 TOTAL
                     EDM=   .26E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16133E-05    .29706E-04     .0000    ** at limit **
   2  Index         8.2654        2.7036         .0000        .29497E-04
   3  Normalizat    .83495        .93564E-01     .0000       -.12779E-03
   4  Prefactor     1.1764        .95554E-01     .0000       -.15128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61327e-06
  Index      = 8.26543
  Normalizat = 0.834947
  Prefactor  = 1.17642
 **********
 **   18 **HESSE 
 **********

 FCN=   10777.10     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      746 TOTAL
                     EDM=   .52E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16133E-05    .29821E-04    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2654        2.7074        .39158E-04    .71165    
   3  Normalizat    .83495        .95020E-01    .21921E-05   -.98785    
   4  Prefactor     1.1764        .96923E-01    .97575E-05   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.0524256
Minuit parameter uncertainties:
  1  1.38721e-05
  2  3.01653
  3  0.0950388
  4  0.0969373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422798': 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): 1
logL (Free Index) = 10777.1047853
delta logL = 1.82910978119

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.613e-06  1.387e-05  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  8.265e+00  3.017e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.176e+00  9.694e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.349e-01  9.504e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 169.271 20.229
Photon Index (Free Index): 8.27 +/- 3.02
Photon Flux (Free Index): 8.86e-08 +/- 4.86e-08
Energy Flux (Free Index): 1.02e-05 +/- 5.78e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/422798/cmap_HighResolution_700444801_701049601_4FGL_J1117.0+2013_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='1.83e+00', photon_flux2='8.86e-08', job_status='DONE', time_completed='2023-03-21 01:36:20.617556', photon_index_error2='3.02', photon_index2='8.27', ts='-0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='5.78e-06', EG='0.93', time_epoch_completed='1679387780.62', return_code='0', job_id='422798', GAL2='1.18', EG2='0.83', return_code2='1', photon_flux_error2='4.86e-08', ts2='3.99', photon_index='1.96' WHERE bin_id='763' AND source_name='4FGL J1117.0+2013' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:36:20 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 422798: <4FGL_J1117.0+2013_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1117.0+2013_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 01:20:22 2023
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:20:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 01:20:24 2023
Terminated at Tue Mar 21 01:36:21 2023
Results reported at Tue Mar 21 01:36:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_weekly_bin763 169.271 20.2294 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1117.0+2013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   946.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             359.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

