/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 107 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 = 7677
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin23
RA = 179.884, Dec = 29.2448
tmin = 245289601, tmax = 245548801
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='230366', job_status='RUN', time_executed='2021-09-04 19:08:18.189730', time_epoch_executed='1630807698.19' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230366/ft1_4FGL_J1159.5+2914_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230366/ft1_4FGL_J1159.5+2914_daily_bin23.fits outfile=/scratch/kocevski/230366/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin23.fits ra=179.884 dec=29.2448 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.46
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230366/ft1_filtered_4FGL_J1159.5+2914_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/230366/ltcube_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.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/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits
.....................!
real 12.65
user 12.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230366/ft1_filtered_4FGL_J1159.5+2914_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/230366/ltcube_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.fits outfile=/scratch/kocevski/230366/expmap_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.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/230366/ltcube_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.fits
.....................!
real 190.54
user 185.12
sys 5.03

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/230366/ft1_filtered_4FGL_J1159.5+2914_daily_bin23.fits scfile=/scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits outfile=/scratch/kocevski/230366/cmap_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230366/ft1_filtered_4FGL_J1159.5+2914_daily_bin23.fits scfile=/scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits outfile=/scratch/kocevski/230366/cmap_HighResolution_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.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.53
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230366/ft1_filtered_4FGL_J1159.5+2914_daily_bin23.fits', '/scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits', expMap='/scratch/kocevski/230366/expmap_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.fits', expCube='/scratch/kocevski/230366/ltcube_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230366/Model_4FGL_J1159.5+2914_daily_bin23.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/230366/ft1_filtered_4FGL_J1159.5+2914_daily_bin23.fits
Spacecraft file(s): /scratch/kocevski/230366/ft2_4FGL_J1159.5+2914_daily_bin23.fits
Exposure map: /scratch/kocevski/230366/expmap_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.fits
Exposure cube: /scratch/kocevski/230366/ltcube_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230366/Model_4FGL_J1159.5+2914_daily_bin23.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6140.90866479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    25.699       1.0000         .10000E-03   10000.    
     3 'norm      '    .21541E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61551E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65846E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.275       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21135E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .71702       1.0000         .10000E-03   10000.    
    11 'norm      '    .38085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6867       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94765E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3961       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1997       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    68.754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6976       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18617E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5558       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8433       1.0000         .10000E-03   10000.    
    26 'norm      '    .25821       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9923       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.109       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .52385       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3245       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=   6140.806     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2411 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8635        .36478E-07** at limit **
   2  norm          25.903        6.5253       -.43460E-06    .99483E-02
   3  norm          .10000E-03    17.707       -.44670E-06** at limit **
   4  Prefactor     .10000E-03    6.0027       -.14932E-07** at limit **
   5  Prefactor     .10000E-03    1.9560        .63022E-07** at limit **
   6  Prefactor     .12148E-03    45.746       -.15329E-05** at limit **
   7  Prefactor     57.930        17.993        .85500E-07    .13599E-01
   8  norm          1.0399        2.4437       -.36216E-06   -.12190E-03
   9  Prefactor     .10000E-03    11.339        .30387E-06** at limit **
  10  Prefactor     .71679        9.2497        .24165E-05    .68903E-04
  11  norm          .38896        1.3537       -.10731E-06    .16752E-04
  12  Prefactor     2.1163        3.3568        .91746E-06    .27883E-02
  13  Prefactor     .10000E-03    2.2885       -.17836E-06** at limit **
  14  Prefactor     .10000E-03    1.3565       -.30600E-07** at limit **
  15  Prefactor     7.7993        3.0420       -.35296E-07    .23110E-02
  16  Prefactor     .10045E-03    67.936        .16303E-05** at limit **
  17  norm          2.3972        1.2616       -.33070E-07   -.31859E-04
  18  Prefactor     1.8911        2.7195       -.48702E-09    .75225E-04
  19  Prefactor     8.2303        1.6516        .51444E-08    .12370E-02
  20  Prefactor     .10000E-03    .97401        .35554E-07** at limit **
  21  norm          68.636        8.6453        .24636E-06    .79001E-03
  22  Prefactor     3.7115        5.1336        .17934E-06    .58290E-03
  23  Prefactor     .91920E-01    30.577       -.93729E-05   -.11533E-03
  24  Prefactor     2.5614        2.2625       -.49183E-07   -.12138E-03
  25  Prefactor     1.8405        5.6090       -.31082E-06    .11545E-03
  26  norm          .25913        .22403        .60403E-08    .10767E-03
  27  norm          3.9959        3.9968       -.22623E-06   -.16264E-03
  28  Prefactor     .10000E-03    2.5141        .49822E-07** at limit **
  29  Prefactor     22.624        49.544       -.22164E-05   -.73560E-03
  30  Normalizat    .52212        .20500        .13937E-06    .47450E-04
  31  Prefactor     1.3245        .23275        .19481E-06    .61088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 25.9026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00012148
  Prefactor  = 57.9299
  norm       = 1.03986
  Prefactor  = 0.0001
  Prefactor  = 0.716794
  norm       = 0.388958
  Prefactor  = 2.11635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.79926
  Prefactor  = 0.000100448
  norm       = 2.39721
  Prefactor  = 1.89114
  Prefactor  = 8.23033
  Prefactor  = 0.0001
  norm       = 68.6359
  Prefactor  = 3.71149
  Prefactor  = 0.0919199
  Prefactor  = 2.56145
  Prefactor  = 1.84045
  norm       = 0.259131
  norm       = 3.99594
  Prefactor  = 0.0001
  Prefactor  = 22.6236
  Normalizat = 0.52212
  Prefactor  = 1.32445
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.806     FROM HESSE     STATUS=OK           722 CALLS     3133 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.903        18.013        .19755E-02   -1.4690    
   3  norm          .10000E-03    17.000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9861        .10525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2881        .33983E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12148E-03    105.21        .93471E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.930        23.833        .13252E-02   -1.4184    
   8  norm          1.0399        2.5893        .12349E-01   -1.5504    
   9  Prefactor     .10000E-03    11.289        .10089E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .71679        3.5145        .70098E-01   -1.5539    
  11  norm          .38896        1.0681        .33902E-01   -1.5583    
  12  Prefactor     2.1163        23.796        .71122E-02   -1.5417    
  13  Prefactor     .10000E-03    2.2840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .86681        .28124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7993        30.067        .36160E-02   -1.5149    
  16  Prefactor     .10045E-03    78.616        .94863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3972        1.2749        .66138E-02   -1.5398    
  18  Prefactor     1.8911        2.7577        .75845E-02   -1.5433    
  19  Prefactor     8.2303        29.824        .35002E-02   -1.5134    
  20  Prefactor     .10000E-03    .96940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          68.636        8.7081        .12102E-02   -1.4049    
  22  Prefactor     3.7115        5.1579        .52506E-02   -1.5323    
  23  Prefactor     .91920E-01    2.0561        .64215E-01   -1.5647    
  24  Prefactor     2.5614        2.2747        .63845E-02   -1.5388    
  25  Prefactor     1.8405        5.6960        .76799E-02   -1.5437    
  26  norm          .25913        .23644        .73521E-02   -1.5606    
  27  norm          3.9959        4.0354        .50462E-02   -1.5308    
  28  Prefactor     .10000E-03    2.5085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.624        49.420        .22329E-02   -1.4756    
  30  Normalizat    .52212        .19216        .74003E-01   -1.1140    
  31  Prefactor     1.3245        .20195        .57483E-01   -.82583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74342e-07
Minuit parameter uncertainties:
  1  1.0016e-06
  2  18.0167
  3  7.89844e-05
  4  2.63962e-06
  5  1.47823e-06
  6  0.0952442
  7  23.8371
  8  2.58959
  9  2.43601e-05
  10  3.17447
  11  1.06819
  12  14.1997
  13  6.19999e-06
  14  7.46243e-07
  15  30.1251
  16  0.0118813
  17  1.27489
  18  2.7579
  19  29.8784
  20  7.55258e-07
  21  8.70829
  22  5.15854
  23  0.86904
  24  2.27477
  25  5.69769
  26  0.236445
  27  4.03571
  28  1.83339e-06
  29  49.5091
  30  0.192402
  31  0.202068
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.397e+00  1.275e+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:  1.324e+00  2.021e-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:  5.221e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.72
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.51e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.55e-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) = 6140.79290689
delta logL = 0.0126922874178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6140.79177892
delta logL = 0.0138202585686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3459       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0206       1.0000          .0000       5.0000    
     3 'Normalizat'    .52778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3207       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=   6140.792     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3464        1.4917        .66914E-02    .18418E-04
   2  alpha         2.0205        .48966        .32943       -.62819E-06
   3  Normalizat    .52777        .17010        .73643E-01    .21259E-03
   4  Prefactor     1.3207        .20134        .57558E-01    .20684E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34645
  alpha      = 2.02053
  Normalizat = 0.527768
  Prefactor  = 1.32069
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.792     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3464        1.2967        .61579E-04   -1.5402    
   2  alpha         2.0205        .48927        .12639E-01   -.19298    
   3  Normalizat    .52777        .19631        .32607E-03   -1.1115    
   4  Prefactor     1.3207        .23191        .25449E-03   -.82694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55783e-11
Minuit parameter uncertainties:
  1  1.29672
  2  0.492574
  3  0.196566
  4  0.23209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230366': 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) = 6140.79177876
delta logL = 0.0138204134628

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.346e+00  1.297e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.021e+00  4.926e-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:  1.321e+00  2.321e-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:  5.278e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.75
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.02 +/- 0.49
Photon Flux (Free Index): 6.00e-08 +/- 4.34e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.97e-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/230366/cmap_HighResolution_245289601_245548801_4FGL_J1159.5+2914_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.51e-08', energy_flux2='3.08e-05', photon_flux_error='3.46e-08', dlogl='1.38e-02', energy_flux='2.91e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-04 19:19:18.733623', photon_index_error2='0.49', photon_index2='2.02', ts='8.72', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='0.52', time_epoch_completed='1630808358.73', return_code='0', job_id='230366', GAL2='1.32', EG2='0.53', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.34e-08', ts2='8.75', photon_index='2.10' WHERE bin_id='23' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:19:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 230366: <4FGL_J1159.5+2914_daily_bin23> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin23> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:18 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:20 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:06:20 2021
Terminated at Sat Sep  4 19:19:19 2021
Results reported at Sat Sep  4 19:19:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin23 179.884 29.2448 245289601 245548801 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 :                                   660.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

