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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin5
RA = 179.884, Dec = 29.2448
tmin = 240624001, tmax = 240883201
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='230254', job_status='RUN', time_executed='2021-09-04 19:06:15.937529', time_epoch_executed='1630807575.94' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230254

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230254/ft1_4FGL_J1159.5+2914_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230254/ft2_4FGL_J1159.5+2914_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230254/ft1_4FGL_J1159.5+2914_daily_bin5.fits outfile=/scratch/kocevski/230254/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin5.fits ra=179.884 dec=29.2448 rad=12.0 tmin=240624001.0 tmax=240883201.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.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230254/ft2_4FGL_J1159.5+2914_daily_bin5.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/230254/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/230254/ft1_filtered_4FGL_J1159.5+2914_daily_bin5.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230254/ft1_filtered_4FGL_J1159.5+2914_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/230254/ft2_4FGL_J1159.5+2914_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/230254/ltcube_240624001_240883201_4FGL_J1159.5+2914_daily_bin5.fits outfile=/scratch/kocevski/230254/expmap_240624001_240883201_4FGL_J1159.5+2914_daily_bin5.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/230254/ltcube_240624001_240883201_4FGL_J1159.5+2914_daily_bin5.fits
.....................!
real 190.38
user 185.58
sys 4.34

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/230254/ft1_filtered_4FGL_J1159.5+2914_daily_bin5.fits scfile=/scratch/kocevski/230254/ft2_4FGL_J1159.5+2914_daily_bin5.fits outfile=/scratch/kocevski/230254/cmap_240624001_240883201_4FGL_J1159.5+2914_daily_bin5.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.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0191       1.0000         .10000E-03   10000.    
     2 'norm      '    28.365       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.260       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9729       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9812       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0677       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7290       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7252       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5900       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5474       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .42729       1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .84111       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3266       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=   5433.524     FROM MIGRAD    STATUS=CONVERGED    803 CALLS     4149 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0187        4.1202        .28705E-07    .78530E-05
   2  norm          28.356        20.437        .24860E-06    .33426E-04
   3  norm          .10000E-03    3.6902       -.16278E-07** at limit **
   4  Prefactor     4.8547        14.474        .71984E-06   -.39111E-05
   5  Prefactor     .10000E-03    .69406       -.13338E-07** at limit **
   6  Prefactor     .10000E-03    10.589       -.53804E-06** at limit **
   7  Prefactor     10.579        20.984        .27388E-05    .10334E-04
   8  norm          .10000E-03    .78158       -.71325E-08** at limit **
   9  Prefactor     .10000E-03    12.689       -.18831E-05** at limit **
  10  Prefactor     .10000E-03    3.2554       -.76428E-07** at limit **
  11  norm          .10000E-03    .29434        .73927E-08** at limit **
  12  Prefactor     2.6184        33.051        .28688E-05   -.92367E-05
  13  Prefactor     .10000E-03    11.018       -.40235E-06** at limit **
  14  Prefactor     .10000E-03    1.1621       -.49830E-08** at limit **
  15  Prefactor     .10000E-03    21.649       -.10540E-05** at limit **
  16  Prefactor     24.242        50.068        .17133E-05    .31980E-04
  17  norm          1.9728        1.3136        .16305E-07    .55684E-04
  18  Prefactor     2.9814        4.3461        .75590E-06   -.35254E-04
  19  Prefactor     .10000E-03    14.201        .86499E-06** at limit **
  20  Prefactor     2.0678        2.7189       -.56172E-07    .22451E-04
  21  norm          2.7278        4.2028        .14945E-08   -.21621E-04
  22  Prefactor     4.7253        5.9641        .53329E-07   -.70919E-05
  23  Prefactor     3.5905        3.6429        .33960E-07   -.58649E-05
  24  Prefactor     6.5478        3.2942        .13432E-07    .16327E-04
  25  Prefactor     .10000E-03    6.3032       -.10563E-06** at limit **
  26  norm          .42730        .21125       -.44815E-09    .85964E-04
  27  norm          .10000E-03    4.0986       -.68307E-06** at limit **
  28  Prefactor     .10000E-03    9.0452        .68514E-07** at limit **
  29  Prefactor     .10000E-03    19.089        .43374E-06** at limit **
  30  Normalizat    .84096        .19767       -.59501E-06    .58390E-04
  31  Prefactor     1.3268        .21655       -.19908E-07    .67844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01873
  norm       = 28.356
  norm       = 0.0001
  Prefactor  = 4.85471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5793
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2423
  norm       = 1.97282
  Prefactor  = 2.98139
  Prefactor  = 0.0001
  Prefactor  = 2.06775
  norm       = 2.72775
  Prefactor  = 4.72534
  Prefactor  = 3.5905
  Prefactor  = 6.54783
  Prefactor  = 0.0001
  norm       = 0.4273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.84096
  Prefactor  = 1.32678
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.524     FROM HESSE     STATUS=OK           624 CALLS     4773 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0187        4.1128        .14608E-03   -1.5307    
   2  norm          28.356        20.442        .75224E-04   -1.4642    
   3  norm          .10000E-03    3.6999        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8547        14.483        .91269E-03   -1.5267    
   5  Prefactor     .10000E-03    .69794        .59961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.579        21.697        .12322E-03   -1.5057    
   8  norm          .10000E-03    .78801        .63635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.651        .45590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3057        .12986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .29971        .39105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6184        33.236        .12605E-02   -1.5384    
  13  Prefactor     .10000E-03    11.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1979        .15466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.242        50.077        .81327E-04   -1.4723    
  17  norm          1.9728        1.3033        .65303E-04   -1.5427    
  18  Prefactor     2.9814        4.4130        .88184E-03   -1.5363    
  19  Prefactor     .10000E-03    14.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0678        2.6982        .13253E-03   -1.5420    
  21  norm          2.7278        4.1767        .14835E-03   -1.5378    
  22  Prefactor     4.7253        5.9601        .18511E-03   -1.5273    
  23  Prefactor     3.5905        3.6373        .11238E-03   -1.5329    
  24  Prefactor     6.5478        3.2798        .85511E-04   -1.5196    
  25  Prefactor     .10000E-03    6.4005        .18033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .42730        .21026        .22945E-04   -1.5577    
  27  norm          .10000E-03    8.7955        .26842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.0957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    19.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .84096        .22981        .26695E-03   -.98567    
  31  Prefactor     1.3268        .25485        .25822E-03   -.82514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48694e-10
Minuit parameter uncertainties:
  1  4.11309
  2  20.447
  3  1.90256e-07
  4  14.4932
  5  9.59592e-07
  6  3.27904e-05
  7  21.7131
  8  7.54932e-07
  9  0.000112199
  10  2.20387e-06
  11  4.2838e-06
  12  18.6699
  13  2.00121e-07
  14  8.7249e-07
  15  8.02836e-05
  16  50.1643
  17  1.30334
  18  4.41347
  19  5.57747e-05
  20  2.69833
  21  4.17718
  22  5.96089
  23  3.63754
  24  3.27987
  25  1.75584e-06
  26  0.210259
  27  6.33689e-05
  28  3.67766e-06
  29  3.37212e-05
  30  0.230072
  31  0.25509
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.973e+00  1.303e+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.327e+00  2.551e-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.410e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.58e-05

TS (Fixed Index): 4.00
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230254/likelihoodResults_240624001_240883201_4FGL_J1159.5+2914_daily_bin5.txt

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) = 5432.3904133
delta logL = 1.13365453544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5432.38692412
delta logL = 1.13714372128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3863       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1467       1.0000          .0000       5.0000    
     3 'Normalizat'    .76328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3884       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=   5432.387     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      241 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3855        11.435        .92335E-02    .38464E-03
   2  alpha         3.1468        4.0638        .29335        .41633E-04
   3  Normalizat    .76318        .68288E-01    .63031E-01    .19374E-04
   4  Prefactor     1.3886        .79229E-01    .57280E-01    .17506E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38549
  alpha      = 3.14677
  Normalizat = 0.763177
  Prefactor  = 1.38859
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.387     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3855        1.4456        .42440E-04   -1.5473    
   2  alpha         3.1468        .90673        .12260E-01    .26168    
   3  Normalizat    .76318        .22158        .27882E-03   -1.0145    
   4  Prefactor     1.3886        .25890        .25328E-03   -.80709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11498e-09
Minuit parameter uncertainties:
  1  1.44568
  2  0.929507
  3  0.221843
  4  0.259143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230254': 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) = 5432.38692329
delta logL = 1.13714455075

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.385e+00  1.446e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  3.147e+00  9.295e-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.389e+00  2.591e-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.632e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.42
Ra Dec: 179.884 29.245
Photon Index (Free Index): 3.15 +/- 0.93
Photon Flux (Free Index): 1.07e-07 +/- 5.82e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.11e-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/230254/cmap_HighResolution_240624001_240883201_4FGL_J1159.5+2914_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='2.04e-05', photon_flux_error='3.54e-08', dlogl='1.14e+00', energy_flux='2.40e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-04 19:20:23.927307', photon_index_error2='0.93', photon_index2='3.15', ts='4.00', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.11e-05', EG='0.84', time_epoch_completed='1630808423.93', return_code='0', job_id='230254', GAL2='1.39', EG2='0.76', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.82e-08', ts2='6.42', photon_index='2.10' WHERE bin_id='5' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 230254: <4FGL_J1159.5+2914_daily_bin5> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin5 179.884 29.2448 240624001 240883201 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 :                                   845.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

