/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin271
RA = 179.884, Dec = 29.2448
tmin = 309571201, tmax = 309830401
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='231704', job_status='RUN', time_executed='2021-09-04 19:12:04.860104', time_epoch_executed='1630807924.86' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231704/ft1_4FGL_J1159.5+2914_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231704/ft2_4FGL_J1159.5+2914_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231704/ft1_4FGL_J1159.5+2914_daily_bin271.fits outfile=/scratch/kocevski/231704/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin271.fits ra=179.884 dec=29.2448 rad=12.0 tmin=309571201.0 tmax=309830401.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 6.23
user 5.95
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231704/ft1_filtered_4FGL_J1159.5+2914_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/231704/ft2_4FGL_J1159.5+2914_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/231704/ltcube_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.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/231704/ft2_4FGL_J1159.5+2914_daily_bin271.fits
.....................!
real 11.67
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231704/ft1_filtered_4FGL_J1159.5+2914_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/231704/ft2_4FGL_J1159.5+2914_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/231704/ltcube_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.fits outfile=/scratch/kocevski/231704/expmap_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.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/231704/ltcube_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.fits
.....................!
real 189.18
user 184.77
sys 4.07

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/231704/ft1_filtered_4FGL_J1159.5+2914_daily_bin271.fits scfile=/scratch/kocevski/231704/ft2_4FGL_J1159.5+2914_daily_bin271.fits outfile=/scratch/kocevski/231704/cmap_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231704/ft1_filtered_4FGL_J1159.5+2914_daily_bin271.fits scfile=/scratch/kocevski/231704/ft2_4FGL_J1159.5+2914_daily_bin271.fits outfile=/scratch/kocevski/231704/cmap_HighResolution_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0820       1.0000         .10000E-03   10000.    
     2 'norm      '    11.890       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.018       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9959       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8417       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.0141       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.032       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23836E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2922       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.2740       1.0000         .10000E-03   10000.    
    27 'norm      '    10.771       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.874       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77316       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0492       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=   6607.631     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4152 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0822        3.8140       -.55093E-06   -.22288E-02
   2  norm          11.891        12.668       -.51611E-06   -.31699E-03
   3  norm          4.9727        10.534       -.46813E-06   -.90314E-04
   4  Prefactor     12.015        17.446       -.21662E-05    .36958E-04
   5  Prefactor     .10000E-03    1.4079       -.19993E-07** at limit **
   6  Prefactor     .10000E-03    29.053       -.78345E-05** at limit **
   7  Prefactor     2.9928        19.279       -.62982E-05   -.11129E-03
   8  norm          .10000E-03    1.1715       -.95325E-07** at limit **
   9  Prefactor     13.523        16.351        .28576E-05   -.25789E-04
  10  Prefactor     2.8418        3.7674        .53971E-06   -.34128E-03
  11  norm          4.5757        1.4548       -.44076E-07    .13788E-03
  12  Prefactor     .10000E-03    6.2204       -.24228E-05** at limit **
  13  Prefactor     .10000E-03    5.8073        .29713E-05** at limit **
  14  Prefactor     .10000E-03    .97423       -.11465E-06** at limit **
  15  Prefactor     .10000E-03    8.6902        .61712E-05** at limit **
  16  Prefactor     .10000E-03    15.845       -.22999E-05** at limit **
  17  norm          9.0140        1.9026        .53204E-07    .18822E-03
  18  Prefactor     1.4853        3.1031       -.91943E-06   -.66097E-03
  19  Prefactor     13.025        25.897       -.95861E-05    .12516E-03
  20  Prefactor     .10000E-03    .99102       -.24924E-06** at limit **
  21  norm          4.7915        3.4353        .66333E-06    .24888E-03
  22  Prefactor     .10000E-03    6.9145       -.12607E-05** at limit **
  23  Prefactor     .10008E-03    1.2430       -.60133E-06** at limit **
  24  Prefactor     5.2924        3.2751       -.29469E-06    .26106E-03
  25  Prefactor     .10000E-03    2.9228       -.88945E-08** at limit **
  26  norm          7.2740        .65842       -.66240E-08    .46445E-03
  27  norm          10.772        5.6799       -.10361E-06    .23440E-04
  28  Prefactor     14.875        11.319       -.11723E-06    .76712E-04
  29  Prefactor     .10000E-03    21.008        .12680E-04** at limit **
  30  Normalizat    .77303        .19143        .23590E-05    .42785E-04
  31  Prefactor     1.0493        .20578       -.10900E-05    .19443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08218
  norm       = 11.8908
  norm       = 4.97274
  Prefactor  = 12.015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.99279
  norm       = 0.0001
  Prefactor  = 13.5232
  Prefactor  = 2.84185
  norm       = 4.57567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.01404
  Prefactor  = 1.48526
  Prefactor  = 13.0254
  Prefactor  = 0.0001
  norm       = 4.79154
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  Prefactor  = 5.2924
  Prefactor  = 0.0001
  norm       = 7.27403
  norm       = 10.7715
  Prefactor  = 14.8753
  Prefactor  = 0.000100002
  Normalizat = 0.773034
  Prefactor  = 1.04926
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.631     FROM HESSE     STATUS=OK           632 CALLS     4784 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0822        3.9081        .62169E-03   -1.5215    
   2  norm          11.891        12.685        .58087E-03   -1.5018    
   3  norm          4.9727        10.557        .18036E-03   -1.5262    
   4  Prefactor     12.015        17.475        .11556E-03   -1.5015    
   5  Prefactor     .10000E-03    3.0080        .18457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9928        18.858        .23452E-03   -1.5362    
   8  norm          .10000E-03    1.1866        .85811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.523        16.119        .10894E-03   -1.4972    
  10  Prefactor     2.8418        3.7309        .17306E-03   -1.5371    
  11  norm          4.5757        1.4557        .53185E-04   -1.5280    
  12  Prefactor     .10000E-03    6.2218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0218        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.6315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.0140        1.9038        .49193E-04   -1.5107    
  18  Prefactor     1.4853        3.0956        .20048E-03   -1.5464    
  19  Prefactor     13.025        25.872        .11096E-03   -1.4986    
  20  Prefactor     .10000E-03    .99679        .78998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7915        3.3791        .11667E-03   -1.5270    
  22  Prefactor     .10000E-03    7.0192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10008E-03    12.261        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2924        3.2448        .10332E-03   -1.5248    
  25  Prefactor     .10000E-03    2.9315        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.2740        .65937        .18994E-04   -1.5168    
  27  norm          10.772        5.6773        .12208E-03   -1.5051    
  28  Prefactor     14.875        11.316        .10385E-03   -1.4936    
  29  Prefactor     .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .77303        .22630        .30687E-03   -1.0108    
  31  Prefactor     1.0493        .24346        .30893E-03   -.91105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01392e-09
Minuit parameter uncertainties:
  1  3.90829
  2  12.6874
  3  10.5613
  4  17.4822
  5  2.68557e-05
  6  0.000280819
  7  15.0317
  8  2.01272e-07
  9  16.1245
  10  3.73116
  11  1.4557
  12  3.88261e-05
  13  5.18696e-05
  14  7.11392e-07
  15  0.000115155
  16  6.35002e-05
  17  1.90384
  18  3.09593
  19  25.8939
  20  2.37391e-06
  21  3.37923
  22  5.20832e-05
  23  0.00192419
  24  3.24495
  25  8.08219e-07
  26  0.659369
  27  5.67756
  28  11.3173
  29  0.000401452
  30  0.226578
  31  0.243713
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  9.014e+00  1.904e+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.049e+00  2.437e-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.730e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 80.77
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.45e-07 +/- 5.17e-08
Energy Flux (Fixed Index): 1.10e-04 +/- 2.32e-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) = 6607.62380426
delta logL = 0.00739042003897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6607.62314901
delta logL = 0.00804567435443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9711       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1304       1.0000          .0000       5.0000    
     3 'Normalizat'    .76810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0531       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=   6607.623     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      193 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9711        2.2219        .33454E-02   -.91273E-04
   2  alpha         2.1304        .24245        .14856        .96834E-05
   3  Normalizat    .76815        .17947        .69533E-01    .22897E-04
   4  Prefactor     1.0531        .20608        .69721E-01    .96424E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.97106
  alpha      = 2.1304
  Normalizat = 0.768147
  Prefactor  = 1.05305
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.623     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9711        1.9169        .48896E-04   -1.5109    
   2  alpha         2.1304        .21410        .64272E-03   -.14839    
   3  Normalizat    .76815        .21272        .30770E-03   -1.0126    
   4  Prefactor     1.0531        .24380        .30843E-03   -.90981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1606e-13
Minuit parameter uncertainties:
  1  1.91696
  2  0.214372
  3  0.21295
  4  0.244058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231704': 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) = 6607.62314896
delta logL = 0.00804572259494

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  8.971e+00  1.917e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.130e+00  2.144e-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.053e+00  2.441e-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.681e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 79.06
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.13 +/- 0.21
Photon Flux (Free Index): 2.49e-07 +/- 6.04e-08
Energy Flux (Free Index): 1.07e-04 +/- 3.06e-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/231704/cmap_HighResolution_309571201_309830401_4FGL_J1159.5+2914_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-07', energy_flux2='1.07e-04', photon_flux_error='5.17e-08', dlogl='8.05e-03', energy_flux='1.10e-04', photon_flux2='2.49e-07', job_status='DONE', time_completed='2021-09-04 19:26:54.912832', photon_index_error2='0.21', photon_index2='2.13', ts='80.77', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='0.77', time_epoch_completed='1630808814.91', return_code='0', job_id='231704', GAL2='1.05', EG2='0.77', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='6.04e-08', ts2='79.06', photon_index='2.10' WHERE bin_id='271' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:26:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 231704: <4FGL_J1159.5+2914_daily_bin271> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin271> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 19:10:43 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:10:44 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:10:44 2021
Terminated at Sat Sep  4 19:26:55 2021
Results reported at Sat Sep  4 19:26:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin271 179.884 29.2448 309571201 309830401 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

