/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 139 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 = 7407
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1000
RA = 179.884, Dec = 29.2448
tmin = 498528001, tmax = 498787201
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='236447', job_status='RUN', time_executed='2021-09-04 19:28:02.632710', time_epoch_executed='1630808882.63' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236447

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236447/ft1_4FGL_J1159.5+2914_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236447/ft1_4FGL_J1159.5+2914_daily_bin1000.fits outfile=/scratch/kocevski/236447/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1000.fits ra=179.884 dec=29.2448 rad=12.0 tmin=498528001.0 tmax=498787201.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 5.09
user 4.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.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/236447/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/236447/ltcube_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.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/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits
.....................!
real 11.98
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/236447/ltcube_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.fits outfile=/scratch/kocevski/236447/expmap_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.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/236447/ltcube_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.fits
.....................!
real 192.22
user 185.68
sys 5.89

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/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.fits scfile=/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits outfile=/scratch/kocevski/236447/cmap_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.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.74
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.fits scfile=/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits outfile=/scratch/kocevski/236447/cmap_HighResolution_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.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.72
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.fits', '/scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits', expMap='/scratch/kocevski/236447/expmap_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.fits', expCube='/scratch/kocevski/236447/ltcube_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236447/Model_4FGL_J1159.5+2914_daily_bin1000.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/236447/ft1_filtered_4FGL_J1159.5+2914_daily_bin1000.fits
Spacecraft file(s): /scratch/kocevski/236447/ft2_4FGL_J1159.5+2914_daily_bin1000.fits
Exposure map: /scratch/kocevski/236447/expmap_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.fits
Exposure cube: /scratch/kocevski/236447/ltcube_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236447/Model_4FGL_J1159.5+2914_daily_bin1000.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) = 4428.34728657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13681E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11191E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7084       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99448E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82382       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.506       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0126       1.0000         .10000E-03   10000.    
    21 'norm      '    10.170       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0729       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1262       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .34644       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1609       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.9763       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85664       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94149       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=   4428.332     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4130 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2310        .25429E-07** at limit **
   2  norm          .10000E-03    7.9003       -.52986E-06** at limit **
   3  norm          .10000E-03    19.138        .58879E-06** at limit **
   4  Prefactor     .10000E-03    7.2860       -.44514E-07** at limit **
   5  Prefactor     .10000E-03    1.8709        .11588E-06** at limit **
   6  Prefactor     .10000E-03    30.929        .48115E-06** at limit **
   7  Prefactor     .10000E-03    20.576       -.18660E-05** at limit **
   8  norm          3.9105        2.5358        .42157E-07   -.12017E-03
   9  Prefactor     30.622        17.370        .41309E-06    .27966E-05
  10  Prefactor     1.7081        3.5874       -.27503E-06   -.45099E-03
  11  norm          1.1543        .87890        .18809E-08   -.16075E-03
  12  Prefactor     .10000E-03    14.039        .28871E-05** at limit **
  13  Prefactor     .10000E-03    8.2739        .46508E-06** at limit **
  14  Prefactor     .82349        1.5295       -.23604E-07   -.59076E-03
  15  Prefactor     21.446        24.790       -.30661E-05   -.22499E-04
  16  Prefactor     .10000E-03    13.278       -.22565E-05** at limit **
  17  norm          1.1481        .97040       -.12075E-06   -.22488E-03
  18  Prefactor     .10000E-03    1.2749        .48227E-07** at limit **
  19  Prefactor     52.524        43.137        .15477E-04   -.92079E-05
  20  Prefactor     4.0124        2.9179        .35935E-07   -.64287E-04
  21  norm          10.171        4.9317       -.78714E-06   -.12642E-03
  22  Prefactor     .10000E-03    7.5450        .45739E-06** at limit **
  23  Prefactor     2.0729        2.0639        .10359E-06    .12492E-03
  24  Prefactor     4.1268        2.9412        .19603E-06   -.16968E-03
  25  Prefactor     .10000E-03    6.2117        .23872E-07** at limit **
  26  norm          .34646        .22613        .27321E-07   -.30677E-03
  27  norm          7.1616        4.8398       -.73557E-06   -.36186E-04
  28  Prefactor     8.9772        8.3056        .40262E-06    .44248E-03
  29  Prefactor     .10000E-03    52.945       -.89296E-06** at limit **
  30  Normalizat    .85632        .19601       -.25892E-05   -.67994E-05
  31  Prefactor     .94171        .21569        .77190E-06   -.12196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.9105
  Prefactor  = 30.6221
  Prefactor  = 1.70809
  norm       = 1.15431
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.823485
  Prefactor  = 21.4464
  Prefactor  = 0.0001
  norm       = 1.14809
  Prefactor  = 0.0001
  Prefactor  = 52.5236
  Prefactor  = 4.01243
  norm       = 10.1709
  Prefactor  = 0.0001
  Prefactor  = 2.07291
  Prefactor  = 4.12684
  Prefactor  = 0.0001
  norm       = 0.346464
  norm       = 7.16163
  Prefactor  = 8.97717
  Prefactor  = 0.0001
  Normalizat = 0.85632
  Prefactor  = 0.941715
 **********
 **   18 **HESSE 
 **********

 FCN=   4428.332     FROM HESSE     STATUS=OK           628 CALLS     4758 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2647        .97043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.9600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2951        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9307        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9105        2.4967        .80867E-04   -1.5312    
   9  Prefactor     30.622        17.361        .72406E-04   -1.4601    
  10  Prefactor     1.7081        3.5423        .17528E-03   -1.5447    
  11  norm          1.1543        .87454        .52584E-04   -1.5493    
  12  Prefactor     .10000E-03    14.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.775        .36970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .82349        1.3170        .10785E-02   -1.5526    
  15  Prefactor     21.446        24.804        .86491E-04   -1.4781    
  16  Prefactor     .10000E-03    13.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1481        .97973        .57912E-04   -1.5494    
  18  Prefactor     .10000E-03    1.2822        .73362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     52.524        42.899        .55350E-04   -1.4257    
  20  Prefactor     4.0124        2.9153        .94160E-04   -1.5307    
  21  norm          10.171        4.9200        .92756E-04   -1.5070    
  22  Prefactor     .10000E-03    7.5994        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0729        2.0706        .89913E-04   -1.5420    
  24  Prefactor     4.1268        2.9336        .88811E-04   -1.5302    
  25  Prefactor     .10000E-03    6.2711        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .34646        .22457        .24647E-04   -1.5590    
  27  norm          7.1616        4.8319        .11594E-03   -1.5173    
  28  Prefactor     8.9772        8.3321        .66889E-03   -1.5109    
  29  Prefactor     .10000E-03    52.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .85632        .22219        .24428E-03   -.98012    
  31  Prefactor     .94171        .24563        .27109E-03   -.94698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37395e-10
Minuit parameter uncertainties:
  1  5.02673e-06
  2  7.41768e-06
  3  4.49958e-05
  4  3.83774e-06
  5  2.84825e-05
  6  1.289e-05
  7  1.72683e-05
  8  2.49673
  9  17.364
  10  3.54277
  11  0.874548
  12  1.13718e-05
  13  0.000428701
  14  1.31706
  15  24.8154
  16  6.15619e-07
  17  0.979741
  18  1.4597e-06
  19  42.9239
  20  2.91539
  21  4.92017
  22  7.02452e-05
  23  2.07063
  24  2.93375
  25  3.7345e-05
  26  0.224575
  27  4.83213
  28  8.33321
  29  2.08357e-05
  30  0.222426
  31  0.245917
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.148e+00  9.797e-01  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:  9.417e-01  2.459e-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:  8.563e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.19e-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) = 4428.01409049
delta logL = 0.317414337068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4427.98388317
delta logL = 0.347621656345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2470       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1135       1.0000          .0000       5.0000    
     3 'Normalizat'    .78127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99273       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=   4427.984     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2472        10.693        .92530E-02    .25637E-03
   2  alpha         3.1134        3.8927        .40516        .38002E-04
   3  Normalizat    .78130        .67952E-01    .43365E-01    .12926E-04
   4  Prefactor     .99271        .66418E-01    .46176E-01    .66248E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.24716
  alpha      = 3.11339
  Normalizat = 0.781301
  Prefactor  = 0.992709
 **********
 **   18 **HESSE 
 **********

 FCN=   4427.984     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2472        1.0947        .41231E-04   -1.5485    
   2  alpha         3.1134        1.0720        .14678E-01    .24789    
   3  Normalizat    .78130        .22782        .25380E-03   -1.0077    
   4  Prefactor     .99271        .25344        .26462E-03   -.92973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84838e-09
Minuit parameter uncertainties:
  1  1.09476
  2  1.1104
  3  0.228094
  4  0.25374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236447': 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) = 4427.98388314
delta logL = 0.347621690978

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.247e+00  1.095e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  3.113e+00  1.110e+00  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:  9.927e-01  2.537e-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:  7.813e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.33
Ra Dec: 179.884 29.245
Photon Index (Free Index): 3.11 +/- 1.11
Photon Flux (Free Index): 9.26e-08 +/- 7.98e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/236447/cmap_HighResolution_498528001_498787201_4FGL_J1159.5+2914_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='1.79e-05', photon_flux_error='2.66e-08', dlogl='3.48e-01', energy_flux='1.40e-05', photon_flux2='9.26e-08', job_status='DONE', time_completed='2021-09-04 19:39:29.901954', photon_index_error2='1.11', photon_index2='3.11', ts='5.54', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.86', time_epoch_completed='1630809569.9', return_code='0', job_id='236447', GAL2='0.99', EG2='0.78', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='7.98e-08', ts2='6.33', photon_index='2.10' WHERE bin_id='1000' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:39:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 236447: <4FGL_J1159.5+2914_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1000> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 19:25:30 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:25:32 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:25:32 2021
Terminated at Sat Sep  4 19:39:30 2021
Results reported at Sat Sep  4 19:39:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1000 179.884 29.2448 498528001 498787201 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 :                                   678.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

