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


Performing analysis on: 4FGL_J1159.5+2914_weekly_bin759
RA = 179.884, Dec = 29.2448
tmin = 698025601, tmax = 698630401
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='589674', job_status='RUN', time_executed='2023-02-21 03:34:06.551560', time_epoch_executed='1676979246.55' WHERE source_name='4FGL J1159.5+2914' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589674

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589674/ft1_4FGL_J1159.5+2914_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589674/ft1_4FGL_J1159.5+2914_weekly_bin759.fits outfile=/scratch/kocevski/589674/ft1_filteredMKT_4FGL_J1159.5+2914_weekly_bin759.fits ra=179.884 dec=29.2448 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.56
user 8.23
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.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/589674/ft1_filteredMKT_4FGL_J1159.5+2914_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.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.37
sys 0.16

Number of photons that the gtmktime cut: 812

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/589674/ltcube_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.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/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits
.....................!
real 27.38
user 26.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/589674/ltcube_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.fits outfile=/scratch/kocevski/589674/expmap_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.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/589674/ltcube_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.fits
.....................!
real 190.94
user 185.05
sys 5.52

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

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits scfile=/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits outfile=/scratch/kocevski/589674/cmap_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.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=179.884 yref=29.2448 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.62
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits scfile=/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits outfile=/scratch/kocevski/589674/cmap_HighResolution_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.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=179.884 yref=29.2448 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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589674/Model_4FGL_J1159.5+2914_weekly_bin759.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/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits.....................!
real 72.82
user 71.48
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits', '/scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits', expMap='/scratch/kocevski/589674/expmap_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.fits', expCube='/scratch/kocevski/589674/ltcube_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/589674/Model_4FGL_J1159.5+2914_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/589674/ft1_filtered_4FGL_J1159.5+2914_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/589674/ft2_4FGL_J1159.5+2914_weekly_bin759.fits
Exposure map: /scratch/kocevski/589674/expmap_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.fits
Exposure cube: /scratch/kocevski/589674/ltcube_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/589674/Model_4FGL_J1159.5+2914_weekly_bin759.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) = 8259.9286981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25379E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .21942E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.881       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.3097       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17038E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.412       1.0000          .0000       .10000E+07
     7 'norm      '    6.8736       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.6821       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.014       1.0000          .0000       .10000E+07
    10 'norm      '    .10895       1.0000          .0000       .10000E+07
    11 'Prefactor '    .47801E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17412E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41707       1.0000          .0000       .10000E+07
    14 'Prefactor '    .96190E-06   1.0000          .0000       .10000E+07
    15 'norm      '    53.654       1.0000          .0000       .10000E+07
    16 'Prefactor '    .75907E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34045E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .17014E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .13135E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.4926       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.3075       1.0000          .0000       .10000E+07
    22 'Prefactor '    .62205E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .43437E-01   1.0000          .0000       .10000E+07
    24 'norm      '    12.809       1.0000          .0000       .10000E+07
    25 'Prefactor '    11.280       1.0000          .0000       .10000E+07
    26 'Normalizat'    .91729       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1307       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8256.985     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1499 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0319       -.15408E-06** at limit **
   2  norm           .0000        6.9397        .90706E-07** at limit **
   3  Prefactor     16.898        1.0372       -.65088E-08    .27630E-02
   4  Prefactor     1.3052        2.4351        .21780E-06   -.12847E-02
   5  Prefactor     .16653E-09    22.039       -.28534E-06** at limit **
   6  Prefactor     10.422        1.2769        .66141E-07   -.27334E-02
   7  norm          6.8770        2.8663       -.50651E-08   -.89206E-03
   8  Prefactor     7.6987        2.6166        .23759E-06   -.94869E-02
   9  Prefactor     10.005        5.5547        .90011E-09    .53664E-03
  10  norm          .10861        .73333       -.13704E-06** at limit **
  11  Prefactor     .55511E-10    10.005        .31199E-06** at limit **
  12  Prefactor     .44409E-09    2.2867       -.92906E-07** at limit **
  13  Prefactor     .40906        2.3467       -.91110E-07    .24780E-03
  14  Prefactor      .0000        19.253        .87785E-06** at limit **
  15  norm          53.692        3.8698        .84381E-08    .76155E-02
  16  Prefactor     .83123E-01    16.700        .10876E-05** at limit **
  17  Prefactor     .55511E-10    2.3316       -.18702E-06** at limit **
  18  norm           .0000        1.7641       -.20133E-06** at limit **
  19  Prefactor     .38858E-09    2.2590        .63973E-06** at limit **
  20  Prefactor     1.4906        1.5218       -.90496E-07    .44463E-02
  21  Prefactor     1.3086        1.5017       -.11049E-06    .40724E-02
  22  Prefactor      .0000        2.6991       -.44181E-06** at limit **
  23  norm          .43661E-01    .15685        .27250E-07** at limit **
  24  norm          12.779        5.3696       -.14015E-07   -.27147E-03
  25  Prefactor     11.267        3.4843        .27507E-06    .16446E-01
  26  Normalizat    .91743        .21052        .96744E-05    .10244E-03
  27  Prefactor     1.1305        .24216       -.14369E-04    .13534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.8978
  Prefactor  = 1.30518
  Prefactor  = 1.66533e-10
  Prefactor  = 10.4217
  norm       = 6.87704
  Prefactor  = 7.69873
  Prefactor  = 10.0047
  norm       = 0.108607
  Prefactor  = 5.55112e-11
  Prefactor  = 4.44089e-10
  Prefactor  = 0.409056
  Prefactor  = 0
  norm       = 53.6916
  Prefactor  = 0.0831226
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 1.49059
  Prefactor  = 1.30861
  Prefactor  = 0
  norm       = 0.0436606
  norm       = 12.7786
  Prefactor  = 11.2674
  Normalizat = 0.917428
  Prefactor  = 1.13054
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.985     FROM HESSE     STATUS=OK           560 CALLS     2059 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        6.9327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.898        16.345        .24350E-03   -1.5626    
   4  Prefactor     1.3052        2.4763        .96329E-03   -1.5685    
   5  Prefactor     .16653E-09    22.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.422        11.262        .31027E-03   -1.5643    
   7  norm          6.8770        2.8913        .38244E-03   -1.5656    
   8  Prefactor     7.6987        9.2892        .36156E-03   -1.5652    
   9  Prefactor     10.005        5.6025        .31641E-03   -1.5645    
  10  norm          .10861        .42765        .23177E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    9.9889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44409E-09    3.2287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .40906        2.3245        .87535E-03   -1.5695    
  14  Prefactor      .0000        19.248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          53.692        3.8736        .13653E-03   -1.5561    
  16  Prefactor     .83123E-01    1.4268        .82790E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    2.3106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.7599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38858E-09    3.1072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4906        1.5197        .87693E-03   -1.5684    
  21  Prefactor     1.3086        1.5429        .96451E-03   -1.5685    
  22  Prefactor      .0000        2.9753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43661E-01    .12878        .11037E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.779        5.3897        .27963E-03   -1.5636    
  25  Prefactor     11.267        7.8408        .29804E-03   -1.5641    
  26  Normalizat    .91743        .17706        .69886E-01   -.95850    
  27  Prefactor     1.1305        .20031        .73369E-01   -.88496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28186e-08
Minuit parameter uncertainties:
  1  7.72947e-06
  2  2.031e-05
  3  16.345
  4  2.47629
  5  0.000119047
  6  11.262
  7  2.8913
  8  9.2892
  9  5.60247
  10  0.427649
  11  3.74963e-05
  12  7.67648e-05
  13  1.95023
  14  2.05439e-05
  15  3.87358
  16  0.688775
  17  2.03397e-05
  18  1.25958e-05
  19  7.05654e-05
  20  1.5197
  21  1.54286
  22  7.67031e-06
  23  0.128776
  24  5.38972
  25  7.84083
  26  0.177173
  27  0.200442
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.369e+01  3.874e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.131e+00  2.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.174e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 834.40
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.46e-06 +/- 1.05e-07
Energy Flux (Fixed Index): 6.53e-04 +/- 4.71e-05

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) = 8256.95312237
delta logL = 0.031504216653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8256.94966854
delta logL = 0.0349580542515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.985       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0841       1.0000          .0000       5.0000    
     3 'Normalizat'    .92776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8256.950     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.986        4.1476        .13611E-03   -.13160E-02
   2  alpha         2.0841        .73756E-01    .41895E-01    .82487E-05
   3  Normalizat    .92764        .17491        .69587E-01    .23489E-04
   4  Prefactor     1.1226        .19906        .73600E-01    .20607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 53.9862
  alpha      = 2.08415
  Normalizat = 0.927636
  Prefactor  = 1.12262
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.950     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.986        4.0377        .45773E-05   -1.5561    
   2  alpha         2.0841        .72222E-01    .24268E-03   -.16712    
   3  Normalizat    .92764        .21090        .30787E-03   -.95496    
   4  Prefactor     1.1226        .23958        .32567E-03   -.88747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8342e-13
Minuit parameter uncertainties:
  1  4.0377
  2  0.072232
  3  0.211086
  4  0.239813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589674': 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) = 8256.94966757
delta logL = 0.0349590231326

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.399e+01  4.038e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.084e+00  7.223e-02  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.123e+00  2.398e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.276e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 819.93
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.08 +/- 0.07
Photon Flux (Free Index): 1.45e-06 +/- 1.15e-07
Energy Flux (Free Index): 6.67e-04 +/- 7.22e-05

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/589674/cmap_HighResolution_698025601_698630401_4FGL_J1159.5+2914_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-06', energy_flux2='6.67e-04', photon_flux_error='1.05e-07', dlogl='3.50e-02', energy_flux='6.53e-04', photon_flux2='1.45e-06', job_status='DONE', time_completed='2023-02-21 03:46:14.902883', photon_index_error2='0.07', photon_index2='2.08', ts='834.40', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='7.22e-05', EG='0.92', time_epoch_completed='1676979974.9', return_code='0', job_id='589674', GAL2='1.12', EG2='0.93', return_code2='0', energy_flux_error='4.71e-05', photon_flux_error2='1.15e-07', ts2='819.93', photon_index='2.10' WHERE bin_id='759' AND source_name='4FGL J1159.5+2914' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:46:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 589674: <4FGL_J1159.5+2914_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1159.5+2914_weekly_bin759> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 03:30:20 2023
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:30:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:30:20 2023
Terminated at Tue Feb 21 03:46:15 2023
Results reported at Tue Feb 21 03:46:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_weekly_bin759 179.884 29.2448 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             271.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            955 sec.

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

