/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 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7442
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin474
RA = 179.884, Dec = 29.2448
tmin = 362188801, tmax = 362448001
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='233053', job_status='RUN', time_executed='2021-09-04 19:15:44.637002', time_epoch_executed='1630808144.64' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233053/ft1_4FGL_J1159.5+2914_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233053/ft1_4FGL_J1159.5+2914_daily_bin474.fits outfile=/scratch/kocevski/233053/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin474.fits ra=179.884 dec=29.2448 rad=12.0 tmin=362188801.0 tmax=362448001.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 4.14
user 3.93
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233053/ft1_filtered_4FGL_J1159.5+2914_daily_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/233053/ltcube_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.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/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233053/ft1_filtered_4FGL_J1159.5+2914_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/233053/ltcube_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.fits outfile=/scratch/kocevski/233053/expmap_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.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/233053/ltcube_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.fits
.....................!
real 190.10
user 185.44
sys 4.11

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/233053/ft1_filtered_4FGL_J1159.5+2914_daily_bin474.fits scfile=/scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits outfile=/scratch/kocevski/233053/cmap_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233053/ft1_filtered_4FGL_J1159.5+2914_daily_bin474.fits scfile=/scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits outfile=/scratch/kocevski/233053/cmap_HighResolution_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.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 2.71
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233053/ft1_filtered_4FGL_J1159.5+2914_daily_bin474.fits', '/scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits', expMap='/scratch/kocevski/233053/expmap_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.fits', expCube='/scratch/kocevski/233053/ltcube_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233053/Model_4FGL_J1159.5+2914_daily_bin474.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  1.000e-04  1.000e+04 ( 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  0.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/233053/ft1_filtered_4FGL_J1159.5+2914_daily_bin474.fits
Spacecraft file(s): /scratch/kocevski/233053/ft2_4FGL_J1159.5+2914_daily_bin474.fits
Exposure map: /scratch/kocevski/233053/expmap_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.fits
Exposure cube: /scratch/kocevski/233053/ltcube_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233053/Model_4FGL_J1159.5+2914_daily_bin474.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) = 7099.68829317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7917       1.0000         .10000E-03   10000.    
     3 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8009       1.0000         .10000E-03   10000.    
     8 'norm      '    .71548       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6174       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.389       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.127       1.0000         .10000E-03   10000.    
    17 'norm      '    9.5494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25402E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0601       1.0000         .10000E-03   10000.    
    21 'norm      '    6.3396       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2876       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7103       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7005       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3884       1.0000         .10000E-03   10000.    
    26 'norm      '    1.9249       1.0000         .10000E-03   10000.    
    27 'norm      '    .12526E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2846       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80166       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7099.680     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4182 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6821        .21908E-06** at limit **
   2  norm          2.7732        21.782        .18827E-05    .27129E-04
   3  norm          .10000E-03    7.2491        .57666E-06** at limit **
   4  Prefactor     .10000E-03    16.837        .26710E-06** at limit **
   5  Prefactor     2.2690        2.7721        .62751E-07   -.29336E-03
   6  Prefactor     .10000E-03    21.139        .94401E-08** at limit **
   7  Prefactor     9.7900        15.216        .71764E-06    .80916E-05
   8  norm          .71463        2.3874        .15106E-05   -.63923E-04
   9  Prefactor     .10000E-03    10.682        .63297E-06** at limit **
  10  Prefactor     .10000E-03    2.1115       -.11582E-06** at limit **
  11  norm          2.4254        1.4047        .12274E-06   -.31395E-03
  12  Prefactor     3.7767        64.230       -.65761E-05   -.20212E-05
  13  Prefactor     3.6209        10.900        .11926E-04   -.12728E-03
  14  Prefactor     1.2501        2.3579        .15552E-05    .19582E-03
  15  Prefactor     42.449        31.315        .18358E-06   -.18593E-03
  16  Prefactor     17.939        62.318       -.42616E-05   -.17206E-03
  17  norm          9.5497        2.0976        .10555E-06   -.11990E-03
  18  Prefactor     .10000E-03    1.9999       -.71788E-06** at limit **
  19  Prefactor     10.357        23.765        .10710E-06   -.94551E-04
  20  Prefactor     3.0600        2.5675       -.30227E-07    .16075E-03
  21  norm          6.3395        3.1204        .65050E-07   -.29260E-04
  22  Prefactor     4.2877        4.8237        .12171E-06   -.15343E-05
  23  Prefactor     1.7098        1.6278        .64148E-08    .20823E-04
  24  Prefactor     1.7004        1.5699        .50613E-07   -.49190E-05
  25  Prefactor     5.3874        4.6845        .47971E-07   -.10396E-03
  26  norm          1.9250        .38914        .13052E-07   -.64526E-04
  27  norm          .10000E-03    1.9009        .33850E-06** at limit **
  28  Prefactor     .10000E-03    4.0415        .13288E-06** at limit **
  29  Prefactor     .10000E-03    29.748       -.56143E-07** at limit **
  30  Normalizat    1.2842        .19691       -.99350E-06   -.67419E-04
  31  Prefactor     .80213        .20179       -.20707E-05   -.34409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.77323
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26902
  Prefactor  = 0.0001
  Prefactor  = 9.79003
  norm       = 0.714629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4254
  Prefactor  = 3.77665
  Prefactor  = 3.62086
  Prefactor  = 1.25011
  Prefactor  = 42.4494
  Prefactor  = 17.939
  norm       = 9.54967
  Prefactor  = 0.0001
  Prefactor  = 10.3566
  Prefactor  = 3.06
  norm       = 6.33953
  Prefactor  = 4.28774
  Prefactor  = 1.70978
  Prefactor  = 1.70041
  Prefactor  = 5.38743
  norm       = 1.92496
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28419
  Prefactor  = 0.802126
 **********
 **   18 **HESSE 
 **********

 FCN=   7099.680     FROM HESSE     STATUS=OK           632 CALLS     4814 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7103        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7732        21.590        .24351E-03   -1.5375    
   3  norm          .10000E-03    7.3036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2690        2.7014        .14002E-03   -1.5407    
   6  Prefactor     .10000E-03    21.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7900        15.203        .12800E-03   -1.5082    
   8  norm          .71463        2.3351        .21646E-03   -1.5539    
   9  Prefactor     .10000E-03    10.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1208        .11949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4254        1.3978        .68048E-04   -1.5396    
  12  Prefactor     3.7767        60.147        .20654E-03   -1.5319    
  13  Prefactor     3.6209        10.823        .10622E-02   -1.5327    
  14  Prefactor     1.2501        2.2564        .14777E-03   -1.5484    
  15  Prefactor     42.449        31.447        .61572E-04   -1.4404    
  16  Prefactor     17.939        62.851        .94072E-04   -1.4861    
  17  norm          9.5497        2.0928        .53016E-04   -1.5090    
  18  Prefactor     .10000E-03    14.849        .22470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.357        23.761        .12456E-03   -1.5064    
  20  Prefactor     3.0600        2.5485        .11884E-03   -1.5358    
  21  norm          6.3395        3.1160        .98247E-04   -1.5204    
  22  Prefactor     4.2877        4.8210        .19060E-03   -1.5294    
  23  Prefactor     1.7098        1.6406        .99605E-04   -1.5446    
  24  Prefactor     1.7004        1.5816        .97725E-04   -1.5447    
  25  Prefactor     5.3874        4.6539        .16374E-03   -1.5244    
  26  norm          1.9250        .38977        .22466E-04   -1.5430    
  27  norm          .10000E-03    3.7677        .22421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.0497        .16542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    29.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2842        .23577        .25768E-03   -.84039    
  31  Prefactor     .80213        .23815        .34330E-03   -.99650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72443e-10
Minuit parameter uncertainties:
  1  2.97748e-06
  2  15.4831
  3  1.23771e-05
  4  3.73732e-05
  5  2.70152
  6  4.42758e-05
  7  15.209
  8  2.33537
  9  1.24714e-05
  10  1.85973e-06
  11  1.39779
  12  30.1789
  13  10.8286
  14  2.2566
  15  31.4595
  16  63.0846
  17  2.09283
  18  0.00016336
  19  23.7823
  20  2.54861
  21  3.11608
  22  4.8214
  23  1.6406
  24  1.58164
  25  4.65423
  26  0.389766
  27  1.38821e-05
  28  5.26326e-06
  29  8.66148e-05
  30  0.235963
  31  0.238454
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  9.550e+00  2.093e+00  1.000e-04  1.000e+04 ( 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  0.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:  8.021e-01  2.385e-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:  1.284e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 80.72
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.59e-07 +/- 5.68e-08
Energy Flux (Fixed Index): 1.16e-04 +/- 2.54e-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) = 7099.6555209
delta logL = 0.0243815537424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7099.65427692
delta logL = 0.0256255286577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6010       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81023       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=   7099.654     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      203 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6010        2.1342        .32333E-02    .26719E-03
   2  alpha         2.1525        .22044        .15721       -.41253E-04
   3  Normalizat    1.2719        .18681        .58478E-01   -.47074E-05
   4  Prefactor     .81023        .19898        .77189E-01    .51118E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.60101
  alpha      = 2.15251
  Normalizat = 1.27191
  Prefactor  = 0.81023
 **********
 **   18 **HESSE 
 **********

 FCN=   7099.654     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6010        2.0362        .52534E-04   -1.5088    
   2  alpha         2.1525        .21707        .67535E-02   -.13945    
   3  Normalizat    1.2719        .22375        .25861E-03   -.84409    
   4  Prefactor     .81023        .23597        .34168E-03   -.99352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02776e-11
Minuit parameter uncertainties:
  1  2.03625
  2  0.217345
  3  0.223924
  4  0.236264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233053': 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) = 7099.65427692
delta logL = 0.0256255290933

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  9.601e+00  2.036e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.153e+00  2.173e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00  0.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:  8.102e-01  2.363e-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:  1.272e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 80.24
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.15 +/- 0.22
Photon Flux (Free Index): 2.71e-07 +/- 7.57e-08
Energy Flux (Free Index): 1.13e-04 +/- 2.80e-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/233053/cmap_HighResolution_362188801_362448001_4FGL_J1159.5+2914_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.59e-07', energy_flux2='1.13e-04', photon_flux_error='5.68e-08', dlogl='2.56e-02', energy_flux='1.16e-04', photon_flux2='2.71e-07', job_status='DONE', time_completed='2021-09-04 19:30:10.826949', photon_index_error2='0.22', photon_index2='2.15', ts='80.72', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.28', time_epoch_completed='1630809010.83', return_code='0', job_id='233053', GAL2='0.81', EG2='1.27', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='7.57e-08', ts2='80.24', photon_index='2.10' WHERE bin_id='474' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:30:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 233053: <4FGL_J1159.5+2914_daily_bin474> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin474> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:29 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:15:31 2021
Terminated at Sat Sep  4 19:30:11 2021
Results reported at Sat Sep  4 19:30:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin474 179.884 29.2448 362188801 362448001 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 :                                   859.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

