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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin34
RA = 179.884, Dec = 29.2448
tmin = 248140801, tmax = 248400001
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='230384', job_status='RUN', time_executed='2021-09-04 19:08:42.723402', time_epoch_executed='1630807722.72' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230384/ft1_4FGL_J1159.5+2914_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230384/ft2_4FGL_J1159.5+2914_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230384/ft1_4FGL_J1159.5+2914_daily_bin34.fits outfile=/scratch/kocevski/230384/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin34.fits ra=179.884 dec=29.2448 rad=12.0 tmin=248140801.0 tmax=248400001.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.40
user 1.21
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230384/ft1_filtered_4FGL_J1159.5+2914_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/230384/ft2_4FGL_J1159.5+2914_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/230384/ltcube_248140801_248400001_4FGL_J1159.5+2914_daily_bin34.fits outfile=/scratch/kocevski/230384/expmap_248140801_248400001_4FGL_J1159.5+2914_daily_bin34.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/230384/ltcube_248140801_248400001_4FGL_J1159.5+2914_daily_bin34.fits
.....................!
real 193.33
user 187.68
sys 5.28

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/230384/ft1_filtered_4FGL_J1159.5+2914_daily_bin34.fits scfile=/scratch/kocevski/230384/ft2_4FGL_J1159.5+2914_daily_bin34.fits outfile=/scratch/kocevski/230384/cmap_248140801_248400001_4FGL_J1159.5+2914_daily_bin34.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230384/ft1_filtered_4FGL_J1159.5+2914_daily_bin34.fits scfile=/scratch/kocevski/230384/ft2_4FGL_J1159.5+2914_daily_bin34.fits outfile=/scratch/kocevski/230384/cmap_HighResolution_248140801_248400001_4FGL_J1159.5+2914_daily_bin34.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4017       1.0000         .10000E-03   10000.    
     2 'norm      '    12.503       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34945E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19546E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3745       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5614       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1678       1.0000         .10000E-03   10000.    
    21 'norm      '    3.0790       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8212       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5050       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .67171E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    4.1633       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96080       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1592       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=   7409.415     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     3634 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4013        3.0815        .27247E-06    .23290E-05
   2  norm          12.501        12.273        .37992E-07   -.37476E-05
   3  norm          .10000E-03    4.5122        .40198E-07** at limit **
   4  Prefactor     .10554E-02    7.2027       -.27476E-06** at limit **
   5  Prefactor     .10000E-03    .65339       -.97266E-08** at limit **
   6  Prefactor     .10000E-03    9.9980        .42171E-08** at limit **
   7  Prefactor     .10000E-03    29.830        .44997E-06** at limit **
   8  norm          .10000E-03    .61725       -.69332E-08** at limit **
   9  Prefactor     3.9228        10.622        .28254E-05   -.23674E-04
  10  Prefactor     .10000E-03    2.9243       -.17735E-06** at limit **
  11  norm          .10000E-03    .29808       -.10928E-07** at limit **
  12  Prefactor     .10000E-03    7.0709        .14221E-07** at limit **
  13  Prefactor     4.3761        8.6110        .55504E-06    .46481E-05
  14  Prefactor     .77003        1.3592        .12774E-06    .25781E-05
  15  Prefactor     9.5631        18.674        .29846E-05    .14417E-04
  16  Prefactor     .10000E-03    14.142       -.11739E-07** at limit **
  17  norm          5.6125        1.4534       -.12551E-07   -.60501E-04
  18  Prefactor     .10000E-03    3.2973       -.34987E-07** at limit **
  19  Prefactor     2.7076        55.254       -.12455E-05   -.19005E-04
  20  Prefactor     4.1685        2.8825        .50066E-07   -.37993E-04
  21  norm          3.0790        1.8632        .83956E-08   -.57104E-05
  22  Prefactor     2.8213        3.5095        .26675E-07   -.26962E-05
  23  Prefactor     .10000E-03    .69729        .21647E-08** at limit **
  24  Prefactor     7.5046        2.4360        .25946E-07   -.23677E-04
  25  Prefactor     .10000E-03    1.4053       -.15385E-08** at limit **
  26  norm          .67124E-01    .17823        .11628E-06   -.88841E-04
  27  norm          4.1630        3.1732        .34730E-07   -.21074E-04
  28  Prefactor     .10000E-03    18.533        .30383E-07** at limit **
  29  Prefactor     .10000E-03    29.319        .47421E-06** at limit **
  30  Normalizat    .96096        .16186       -.38385E-06   -.43349E-05
  31  Prefactor     1.1592        .18331       -.54289E-06   -.28573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40134
  norm       = 12.501
  norm       = 0.0001
  Prefactor  = 0.0010554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.92279
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37611
  Prefactor  = 0.770032
  Prefactor  = 9.56314
  Prefactor  = 0.0001
  norm       = 5.61254
  Prefactor  = 0.0001
  Prefactor  = 2.70759
  Prefactor  = 4.16848
  norm       = 3.07897
  Prefactor  = 2.82129
  Prefactor  = 0.0001
  Prefactor  = 7.50463
  Prefactor  = 0.0001
  norm       = 0.0671236
  norm       = 4.16305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.960959
  Prefactor  = 1.15921
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.415     FROM HESSE     STATUS=OK           634 CALLS     4268 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4013        3.0614        .21411E-03   -1.5471    
   2  norm          12.501        12.267        .11328E-03   -1.5001    
   3  norm          .10000E-03    4.5431        .17853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10554E-02    8.3470        .79415E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .66232        .67912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .62355        .66026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9228        10.666        .10178E-02   -1.5312    
  10  Prefactor     .10000E-03    3.0352        .28751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .30730        .91731E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3761        8.5951        .19257E-03   -1.5290    
  14  Prefactor     .77003        1.3227        .12736E-03   -1.5532    
  15  Prefactor     9.5631        18.702        .12960E-03   -1.5089    
  16  Prefactor     .10000E-03    14.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6125        1.4525        .50417E-04   -1.5234    
  18  Prefactor     .10000E-03    3.4328        .30454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7076        55.171        .24575E-03   -1.5379    
  20  Prefactor     4.1685        2.8686        .11615E-03   -1.5300    
  21  norm          3.0790        1.8612        .88401E-04   -1.5357    
  22  Prefactor     2.8213        3.5032        .17502E-03   -1.5372    
  23  Prefactor     .10000E-03    .70393        .70088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.5046        2.4344        .73062E-04   -1.5160    
  25  Prefactor     .10000E-03    1.4088        .99634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .67124E-01    .19176        .54432E-03   -1.5656    
  27  norm          4.1630        3.1677        .12946E-03   -1.5300    
  28  Prefactor     .10000E-03    19.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    29.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96096        .19029        .25067E-03   -.94350    
  31  Prefactor     1.1592        .21650        .26998E-03   -.87596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90721e-08
Minuit parameter uncertainties:
  1  3.06175
  2  12.27
  3  1.9466e-06
  4  0.178628
  5  3.03833e-07
  6  4.30752e-07
  7  1.71122e-05
  8  1.83934e-08
  9  10.6717
  10  1.3177e-05
  11  4.87053e-08
  12  5.91551e-07
  13  8.59749
  14  1.32277
  15  18.7138
  16  8.69477e-08
  17  1.45255
  18  1.60347e-06
  19  24.4697
  20  2.86873
  21  1.86121
  22  3.50347
  23  1.11246e-07
  24  2.43448
  25  1.03604e-08
  26  0.191763
  27  3.16784
  28  1.73399e-05
  29  5.93231e-06
  30  0.190422
  31  0.216662
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.613e+00  1.453e+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.159e+00  2.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.610e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.50
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.52e-07 +/- 3.94e-08
Energy Flux (Fixed Index): 6.82e-05 +/- 1.77e-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) = 7409.0799662
delta logL = 0.335464930396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7409.07981534
delta logL = 0.335615788124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6670       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9223       1.0000          .0000       5.0000    
     3 'Normalizat'    .98135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1425       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=   7409.080     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6670        1.5238        .42185E-02    .11463E-02
   2  alpha         1.9223        .21438        .16593       -.85089E-04
   3  Normalizat    .98136        .15490        .45933E-01    .12760E-03
   4  Prefactor     1.1425        .18149        .61417E-01    .61955E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.66695
  alpha      = 1.9223
  Normalizat = 0.981359
  Prefactor  = 1.14249
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.080     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6670        1.4813        .51368E-04   -1.5232    
   2  alpha         1.9223        .21494        .71232E-02   -.23319    
   3  Normalizat    .98136        .18374        .24848E-03   -.93658    
   4  Prefactor     1.1425        .21487        .27163E-03   -.88120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39974e-11
Minuit parameter uncertainties:
  1  1.48129
  2  0.21522
  3  0.183858
  4  0.215034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230384': 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) = 7409.07981534
delta logL = 0.335615789022

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.667e+00  1.481e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.922e+00  2.152e-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.142e+00  2.150e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.814e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.18
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.92 +/- 0.22
Photon Flux (Free Index): 1.36e-07 +/- 4.09e-08
Energy Flux (Free Index): 8.34e-05 +/- 3.10e-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/230384/cmap_HighResolution_248140801_248400001_4FGL_J1159.5+2914_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.52e-07', energy_flux2='8.34e-05', photon_flux_error='3.94e-08', dlogl='3.36e-01', energy_flux='6.82e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-04 19:22:39.404727', photon_index_error2='0.22', photon_index2='1.92', ts='38.50', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='3.10e-05', EG='0.96', time_epoch_completed='1630808559.4', return_code='0', job_id='230384', GAL2='1.14', EG2='0.98', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='4.09e-08', ts2='39.18', photon_index='2.10' WHERE bin_id='34' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:22:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 230384: <4FGL_J1159.5+2914_daily_bin34> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin34 179.884 29.2448 248140801 248400001 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 :                                   835.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

