/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 130 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin350
RA = 179.884, Dec = 29.2448
tmin = 330048001, tmax = 330307201
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='231816', job_status='RUN', time_executed='2021-09-04 19:13:12.520445', time_epoch_executed='1630807992.52' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231816/ft1_4FGL_J1159.5+2914_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231816/ft2_4FGL_J1159.5+2914_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231816/ft1_4FGL_J1159.5+2914_daily_bin350.fits outfile=/scratch/kocevski/231816/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin350.fits ra=179.884 dec=29.2448 rad=12.0 tmin=330048001.0 tmax=330307201.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 3.45
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231816/ft1_filtered_4FGL_J1159.5+2914_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/231816/ft2_4FGL_J1159.5+2914_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/231816/ltcube_330048001_330307201_4FGL_J1159.5+2914_daily_bin350.fits outfile=/scratch/kocevski/231816/expmap_330048001_330307201_4FGL_J1159.5+2914_daily_bin350.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/231816/ltcube_330048001_330307201_4FGL_J1159.5+2914_daily_bin350.fits
.....................!
real 191.36
user 185.96
sys 5.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231816/ft1_filtered_4FGL_J1159.5+2914_daily_bin350.fits scfile=/scratch/kocevski/231816/ft2_4FGL_J1159.5+2914_daily_bin350.fits outfile=/scratch/kocevski/231816/cmap_HighResolution_330048001_330307201_4FGL_J1159.5+2914_daily_bin350.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12203E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54914E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3027       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3820       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6795       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .91320       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0299       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .86582E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2751       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71395       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=   6024.474     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     3578 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7549       -.44271E-06** at limit **
   2  norm          .10000E-03    28.588       -.29334E-05** at limit **
   3  norm          1.8635        9.7082        .20458E-07   -.11410E-03
   4  Prefactor     .10000E-03    7.2070       -.37395E-06** at limit **
   5  Prefactor     .10013E-03    1.3085        .38373E-07** at limit **
   6  Prefactor     .10000E-03    31.510        .71457E-05** at limit **
   7  Prefactor     .10000E-03    4.1020       -.76398E-08** at limit **
   8  norm          2.1685        2.4283        .19328E-08   -.11319E-03
   9  Prefactor     .10000E-03    3.3905        .83994E-06** at limit **
  10  Prefactor     2.3083        3.5487        .10990E-07   -.35302E-03
  11  norm          4.6567        1.6465        .14643E-08   -.23013E-04
  12  Prefactor     .10000E-03    7.0698        .28333E-06** at limit **
  13  Prefactor     .10000E-03    14.315        .84548E-07** at limit **
  14  Prefactor     5.7993        2.3078        .13223E-07   -.14638E-05
  15  Prefactor     .10000E-03    6.6945        .59841E-07** at limit **
  16  Prefactor     .10000E-03    28.691       -.50493E-05** at limit **
  17  norm          2.2182        1.2517        .37700E-08   -.15932E-04
  18  Prefactor     .10000E-03    1.4705        .16505E-07** at limit **
  19  Prefactor     .10000E-03    21.360        .13678E-05** at limit **
  20  Prefactor     .10000E-03    .82530        .28179E-09** at limit **
  21  norm          5.1890        3.8893       -.40789E-06   -.31234E-04
  22  Prefactor     9.3824        9.7735       -.26693E-07   -.12607E-05
  23  Prefactor     2.6797        2.5060        .18952E-06    .67147E-05
  24  Prefactor     .10000E-03    1.6506        .22351E-07** at limit **
  25  Prefactor     .10000E-03    2.6149       -.25552E-08** at limit **
  26  norm          .91325        .34723       -.60296E-08   -.15173E-04
  27  norm          4.0307        4.0491        .30215E-06    .44657E-06
  28  Prefactor     11.214        14.012       -.18130E-06   -.35371E-05
  29  Prefactor     .10000E-03    136.57       -.18135E-04** at limit **
  30  Normalizat    1.2752        .19216        .11581E-06    .41926E-04
  31  Prefactor     .71380        .20267        .92413E-07    .46017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.8635
  Prefactor  = 0.0001
  Prefactor  = 0.000100127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16853
  Prefactor  = 0.0001
  Prefactor  = 2.30828
  norm       = 4.65674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18896
  Prefactor  = 9.38237
  Prefactor  = 2.67967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.913252
  norm       = 4.03074
  Prefactor  = 11.2139
  Prefactor  = 0.0001
  Normalizat = 1.27517
  Prefactor  = 0.713803
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.474     FROM HESSE     STATUS=OK           632 CALLS     4210 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3921        .19819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    29.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8635        15.140        .15259E-02   -1.5435    
   4  Prefactor     .10000E-03    7.2192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10013E-03    3.9261        .28894E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1040        .15353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1685        2.4260        .12007E-03   -1.5413    
   9  Prefactor     .10000E-03    3.3952        .13959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3083        6.1162        .13521E-02   -1.5404    
  11  norm          4.6567        1.6489        .28222E-03   -1.5276    
  12  Prefactor     .10000E-03    7.0790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7993        2.3118        .71259E-04   -1.5226    
  15  Prefactor     .10000E-03    6.6970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2182        1.2511        .62349E-04   -1.5410    
  18  Prefactor     .10000E-03    1.4884        .91889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .82843        .68852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1890        3.8346        .11720E-03   -1.5252    
  22  Prefactor     9.3824        9.8054        .13084E-03   -1.5095    
  23  Prefactor     2.6797        2.4939        .10699E-03   -1.5381    
  24  Prefactor     .10000E-03    6.0699        .17656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.6226        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .91325        .34648        .26544E-04   -1.5517    
  27  norm          4.0307        4.0310        .15008E-03   -1.5306    
  28  Prefactor     11.214        13.504        .11965E-03   -1.5038    
  29  Prefactor     .10000E-03    137.59        .20854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2752        .23339        .23588E-03   -.84311    
  31  Prefactor     .71380        .23901        .33082E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2992e-10
Minuit parameter uncertainties:
  1  7.67178e-05
  2  3.62498e-05
  3  10.6267
  4  5.79197e-07
  5  0.00141426
  6  1.44179e-05
  7  2.55146e-07
  8  2.42608
  9  3.88475e-07
  10  6.1179
  11  1.64893
  12  1.02145e-06
  13  5.49946e-06
  14  2.31184
  15  3.11238e-07
  16  1.48173e-06
  17  1.25116
  18  4.4554e-07
  19  1.67166e-06
  20  1.22052e-07
  21  3.8348
  22  9.8071
  23  2.49399
  24  5.26543e-05
  25  1.64067e-06
  26  0.346476
  27  4.03123
  28  13.5078
  29  0.000343509
  30  0.233584
  31  0.239355
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.218e+00  1.251e+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:  7.138e-01  2.394e-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:  1.275e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.86
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.52e-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) = 6024.2513252
delta logL = 0.222341605111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6024.16904028
delta logL = 0.304626520142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6597       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6932       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70302       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=   6024.169     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6596        1.0773        .81875E-03    .33619E-02
   2  alpha         1.6932        .36215        .27924        .22813E-04
   3  Normalizat    1.2994        .18616        .52946E-01    .10816E-04
   4  Prefactor     .70305        .20198        .75308E-01    .15607E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65964
  alpha      = 1.69318
  Normalizat = 1.2994
  Prefactor  = 0.703049
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.169     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6596        1.4510        .32750E-04   -1.5450    
   2  alpha         1.6932        .53484        .11225E-01   -.32861    
   3  Normalizat    1.2994        .22145        .23409E-03   -.83584    
   4  Prefactor     .70305        .23881        .33337E-03   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23904e-09
Minuit parameter uncertainties:
  1  1.45101
  2  0.539504
  3  0.221607
  4  0.239157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231816': 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) = 6024.16904027
delta logL = 0.304626533698

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.660e+00  1.451e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.693e+00  5.395e-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:  7.030e-01  2.392e-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:  1.299e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.44
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.69 +/- 0.54
Photon Flux (Free Index): 3.56e-08 +/- 3.63e-08
Energy Flux (Free Index): 3.60e-05 +/- 2.90e-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/231816/cmap_HighResolution_330048001_330307201_4FGL_J1159.5+2914_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='3.60e-05', photon_flux_error='3.40e-08', dlogl='3.05e-01', energy_flux='2.70e-05', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-04 19:25:22.457663', photon_index_error2='0.54', photon_index2='1.69', ts='11.86', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.90e-05', EG='1.28', time_epoch_completed='1630808722.46', return_code='0', job_id='231816', GAL2='0.70', EG2='1.30', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.63e-08', ts2='12.44', photon_index='2.10' WHERE bin_id='350' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:25:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 231816: <4FGL_J1159.5+2914_daily_bin350> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin350> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 19:10:50 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:10:52 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:52 2021
Terminated at Sat Sep  4 19:25:23 2021
Results reported at Sat Sep  4 19:25:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin350 179.884 29.2448 330048001 330307201 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 :                                   728.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

