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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1215
RA = 179.884, Dec = 29.2448
tmin = 554256001, tmax = 554515201
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='237527', job_status='RUN', time_executed='2021-09-04 19:34:27.066066', time_epoch_executed='1630809267.07' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237527/ft1_4FGL_J1159.5+2914_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237527/ft2_4FGL_J1159.5+2914_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237527/ft1_4FGL_J1159.5+2914_daily_bin1215.fits outfile=/scratch/kocevski/237527/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1215.fits ra=179.884 dec=29.2448 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.03
user 3.80
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237527/ft1_filtered_4FGL_J1159.5+2914_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/237527/ft2_4FGL_J1159.5+2914_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/237527/ltcube_554256001_554515201_4FGL_J1159.5+2914_daily_bin1215.fits outfile=/scratch/kocevski/237527/expmap_554256001_554515201_4FGL_J1159.5+2914_daily_bin1215.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/237527/ltcube_554256001_554515201_4FGL_J1159.5+2914_daily_bin1215.fits
.....................!
real 192.99
user 188.11
sys 4.49

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/237527/ft1_filtered_4FGL_J1159.5+2914_daily_bin1215.fits scfile=/scratch/kocevski/237527/ft2_4FGL_J1159.5+2914_daily_bin1215.fits outfile=/scratch/kocevski/237527/cmap_554256001_554515201_4FGL_J1159.5+2914_daily_bin1215.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237527/ft1_filtered_4FGL_J1159.5+2914_daily_bin1215.fits scfile=/scratch/kocevski/237527/ft2_4FGL_J1159.5+2914_daily_bin1215.fits outfile=/scratch/kocevski/237527/cmap_HighResolution_554256001_554515201_4FGL_J1159.5+2914_daily_bin1215.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.355       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3094       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8065       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23407E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7800       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.865       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9819       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.1891       1.0000         .10000E-03   10000.    
    26 'norm      '    2.3264       1.0000         .10000E-03   10000.    
    27 'norm      '    2.1821       1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.066       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .57683       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3645       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=   4373.547     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4194 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5558        .12844E-07** at limit **
   2  norm          .10000E-03    14.233       -.60867E-07** at limit **
   3  norm          29.913        23.499        .60426E-06    .85785E-04
   4  Prefactor     .10000E-03    10.331        .17295E-07** at limit **
   5  Prefactor     .10000E-03    3.5151       -.38893E-07** at limit **
   6  Prefactor     .10000E-03    44.399       -.24073E-05** at limit **
   7  Prefactor     .10000E-03    23.890       -.22343E-05** at limit **
   8  norm          .10000E-03    2.4814       -.26021E-07** at limit **
   9  Prefactor     5.9160        16.713       -.97856E-07   -.19229E-05
  10  Prefactor     11.354        10.843       -.36052E-07   -.18574E-04
  11  norm          3.5225        3.9971        .16759E-05   -.44417E-03
  12  Prefactor     2.2987        201.52       -.14914E-05   -.19755E-04
  13  Prefactor     .10000E-03    16.062       -.18506E-06** at limit **
  14  Prefactor     1.5031        3.6031        .54933E-06   -.22395E-03
  15  Prefactor     .10000E-03    30.018        .26856E-05** at limit **
  16  Prefactor     .10001E-03    337.58       -.37236E-05** at limit **
  17  norm          6.8061        2.4939        .31783E-07   -.13516E-03
  18  Prefactor     .10017E-03    2.5328        .94150E-06** at limit **
  19  Prefactor     .10000E-03    21.976        .16594E-06** at limit **
  20  Prefactor     .10000E-03    1.6525       -.33342E-07** at limit **
  21  norm          2.7798        2.6484       -.12966E-07   -.20063E-05
  22  Prefactor     14.864        12.264        .53660E-07   -.82419E-05
  23  Prefactor     2.9818        2.4771       -.11561E-08   -.70089E-05
  24  Prefactor     .10000E-03    2.1648        .29519E-07** at limit **
  25  Prefactor     9.1890        6.5472        .75993E-06    .75336E-03
  26  norm          2.3263        .40851       -.23431E-09   -.98635E-03
  27  norm          2.1815        4.5917        .12151E-06   -.13433E-03
  28  Prefactor     25.060        18.676        .17370E-06    .64874E-05
  29  Prefactor     .10000E-03    72.105        .16232E-05** at limit **
  30  Normalizat    .57690        .26974       -.14851E-05   -.15960E-03
  31  Prefactor     1.3646        .26559        .37905E-08   -.20789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.9126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 5.91596
  Prefactor  = 11.3537
  norm       = 3.52245
  Prefactor  = 2.29871
  Prefactor  = 0.0001
  Prefactor  = 1.50309
  Prefactor  = 0.000100005
  Prefactor  = 0.000100008
  norm       = 6.8061
  Prefactor  = 0.000100171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77983
  Prefactor  = 14.8637
  Prefactor  = 2.98179
  Prefactor  = 0.0001
  Prefactor  = 9.18895
  norm       = 2.32631
  norm       = 2.18153
  Prefactor  = 25.06
  Prefactor  = 0.000100002
  Normalizat = 0.576902
  Prefactor  = 1.36458
 **********
 **   18 **HESSE 
 **********

 FCN=   4373.547     FROM HESSE     STATUS=OK           620 CALLS     4814 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5685        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.913        23.559        .73248E-04   -1.4614    
   4  Prefactor     .10000E-03    10.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5492        .12106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4835        .10174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9160        16.652        .16507E-03   -1.5221    
  10  Prefactor     11.354        10.830        .11889E-03   -1.5034    
  11  norm          3.5225        4.1373        .70760E-03   -1.5333    
  12  Prefactor     2.2987        165.92        .26999E-03   -1.5405    
  13  Prefactor     .10000E-03    16.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5031        3.2817        .14031E-03   -1.5463    
  15  Prefactor     .10000E-03    31.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    339.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8061        2.4758        .58399E-04   -1.5186    
  18  Prefactor     .10017E-03    23.681        .18549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8042        .16312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7798        2.6536        .10097E-03   -1.5374    
  22  Prefactor     14.864        12.260        .10388E-03   -1.4937    
  23  Prefactor     2.9818        2.4768        .91039E-04   -1.5363    
  24  Prefactor     .10000E-03    2.2313        .18938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.1890        6.7774        .13221E-03   -1.5102    
  26  norm          2.3263        .40917        .16598E-04   -1.5403    
  27  norm          2.1815        4.5715        .19315E-03   -1.5413    
  28  Prefactor     25.060        18.599        .80011E-04   -1.4706    
  29  Prefactor     .10000E-03    72.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .57690        .30457        .36697E-03   -1.0897    
  31  Prefactor     1.3646        .30854        .27101E-03   -.81407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94208e-09
Minuit parameter uncertainties:
  1  4.05567e-07
  2  9.74425e-06
  3  23.5663
  4  4.56372e-06
  5  1.10206e-06
  6  0.000810207
  7  0.000541951
  8  1.34771e-06
  9  16.665
  10  10.8318
  11  4.1376
  12  39.1719
  13  3.15408e-05
  14  3.28207
  15  0.000755635
  16  0.00339488
  17  2.47584
  18  0.00402619
  19  4.20176e-05
  20  5.77464e-06
  21  2.65376
  22  12.2618
  23  2.4769
  24  6.67796e-07
  25  6.77801
  26  0.409167
  27  4.57223
  28  18.6031
  29  0.000715071
  30  0.30546
  31  0.308961
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.806e+00  2.476e+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.365e+00  3.090e-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.769e-01  3.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.74
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 6.72e-08
Energy Flux (Fixed Index): 8.28e-05 +/- 3.01e-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) = 4373.54681374
delta logL = 0.000255168861258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4373.54680231
delta logL = 0.000266597635346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8058       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0959       1.0000          .0000       5.0000    
     3 'Normalizat'    .57813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3637       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=   4373.547     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7965        2.4916        .38450E-02    .52209E-04
   2  alpha         2.0957        .31649        .18524       -.90522E-05
   3  Normalizat    .57823        .24468        .82759E-01    .25351E-04
   4  Prefactor     1.3638        .26460        .61302E-01    .41100E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.79652
  alpha      = 2.09569
  Normalizat = 0.578231
  Prefactor  = 1.36376
 **********
 **   18 **HESSE 
 **********

 FCN=   4373.547     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7965        2.4579        .58453E-04   -1.5187    
   2  alpha         2.0957        .32325        .79001E-02   -.16244    
   3  Normalizat    .57823        .28363        .36658E-03   -1.0892    
   4  Prefactor     1.3638        .30656        .27108E-03   -.81430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90542e-11
Minuit parameter uncertainties:
  1  2.45798
  2  0.324181
  3  0.284345
  4  0.306974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237527': 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) = 4373.54679515
delta logL = 0.000273752829344

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.797e+00  2.458e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.096e+00  3.242e-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.364e+00  3.070e-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.782e-01  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.38
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.10 +/- 0.32
Photon Flux (Free Index): 1.84e-07 +/- 8.54e-08
Energy Flux (Free Index): 8.31e-05 +/- 3.43e-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/237527/cmap_HighResolution_554256001_554515201_4FGL_J1159.5+2914_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='8.31e-05', photon_flux_error='6.72e-08', dlogl='2.74e-04', energy_flux='8.28e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-04 19:45:28.074411', photon_index_error2='0.32', photon_index2='2.10', ts='26.74', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='3.43e-05', EG='0.58', time_epoch_completed='1630809928.07', return_code='0', job_id='237527', GAL2='1.36', EG2='0.58', return_code2='0', energy_flux_error='3.01e-05', photon_flux_error2='8.54e-08', ts2='26.38', photon_index='2.10' WHERE bin_id='1215' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 237527: <4FGL_J1159.5+2914_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1215> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:22 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:24 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:30:24 2021
Terminated at Sat Sep  4 19:45:28 2021
Results reported at Sat Sep  4 19:45:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1215 179.884 29.2448 554256001 554515201 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 :                                   658.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

