/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 70 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_bin1491
RA = 179.884, Dec = 29.2448
tmin = 625795201, tmax = 626054401
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='237942', job_status='RUN', time_executed='2021-09-04 19:32:33.272290', time_epoch_executed='1630809153.27' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237942/ft1_4FGL_J1159.5+2914_daily_bin1491.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237942/ft2_4FGL_J1159.5+2914_daily_bin1491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237942/ft1_4FGL_J1159.5+2914_daily_bin1491.fits outfile=/scratch/kocevski/237942/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1491.fits ra=179.884 dec=29.2448 rad=12.0 tmin=625795201.0 tmax=626054401.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.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237942/ft1_filtered_4FGL_J1159.5+2914_daily_bin1491.fits" evtable="EVENTS" scfile=/scratch/kocevski/237942/ft2_4FGL_J1159.5+2914_daily_bin1491.fits sctable="SC_DATA" outfile=/scratch/kocevski/237942/ltcube_625795201_626054401_4FGL_J1159.5+2914_daily_bin1491.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/237942/ft2_4FGL_J1159.5+2914_daily_bin1491.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237942/ft1_filtered_4FGL_J1159.5+2914_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/237942/ft2_4FGL_J1159.5+2914_daily_bin1491.fits sctable="SC_DATA" expcube=/scratch/kocevski/237942/ltcube_625795201_626054401_4FGL_J1159.5+2914_daily_bin1491.fits outfile=/scratch/kocevski/237942/expmap_625795201_626054401_4FGL_J1159.5+2914_daily_bin1491.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/237942/ltcube_625795201_626054401_4FGL_J1159.5+2914_daily_bin1491.fits
.....................!
real 192.14
user 187.36
sys 4.37

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/237942/ft1_filtered_4FGL_J1159.5+2914_daily_bin1491.fits scfile=/scratch/kocevski/237942/ft2_4FGL_J1159.5+2914_daily_bin1491.fits outfile=/scratch/kocevski/237942/cmap_625795201_626054401_4FGL_J1159.5+2914_daily_bin1491.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73150E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81002       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7657       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6387       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8909       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3907       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .54862       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5087       1.0000         .10000E-03   10000.    
    26 'norm      '    .32727       1.0000         .10000E-03   10000.    
    27 'norm      '    5.6410       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.889       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .94418       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1087       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=   5712.369     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     4201 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1182        .60953E-07** at limit **
   2  norm          .10000E-03    4.5588       -.48972E-06** at limit **
   3  norm          .10000E-03    11.841        .73145E-06** at limit **
   4  Prefactor     12.929        19.353       -.90469E-06   -.17984E-03
   5  Prefactor     .10000E-03    1.7288        .14079E-06** at limit **
   6  Prefactor     44.461        49.045       -.59920E-06   -.13683E-03
   7  Prefactor     .10000E-03    4.5571        .24083E-06** at limit **
   8  norm          .11682        1.8444        .68419E-06   -.93638E-03
   9  Prefactor     .81241        16.680        .50835E-05   -.10331E-03
  10  Prefactor     7.7659        5.7664       -.11706E-06   -.29286E-03
  11  norm          3.5689        1.4059       -.22601E-07   -.52249E-03
  12  Prefactor     .10000E-03    29.510        .15796E-05** at limit **
  13  Prefactor     .10000E-03    4.6867        .16340E-06** at limit **
  14  Prefactor     .10000E-03    1.0501        .74241E-07** at limit **
  15  Prefactor     .10000E-03    13.081        .19322E-06** at limit **
  16  Prefactor     .10000E-03    26.383       -.19638E-05** at limit **
  17  norm          2.7917        1.2532       -.15549E-07   -.34696E-03
  18  Prefactor     .10000E-03    3.3207       -.13006E-07** at limit **
  19  Prefactor     .10000E-03    11.452       -.39331E-06** at limit **
  20  Prefactor     1.6386        2.9243        .38399E-06   -.43837E-04
  21  norm          3.8910        2.4419       -.56677E-07   -.16517E-03
  22  Prefactor     .10000E-03    1.8860        .43045E-07** at limit **
  23  Prefactor     2.3908        1.8736       -.35523E-07   -.17295E-03
  24  Prefactor     .54917        1.5166        .65186E-06   -.19726E-04
  25  Prefactor     1.5095        4.2169        .79429E-06   -.45379E-04
  26  norm          .32729        .18913       -.13818E-08   -.34937E-03
  27  norm          5.6413        4.3568       -.14755E-06   -.19043E-03
  28  Prefactor     .10000E-03    20.130        .11082E-05** at limit **
  29  Prefactor     13.858        80.226       -.45821E-05   -.69134E-04
  30  Normalizat    .94434        .17615        .10016E-06   -.38560E-03
  31  Prefactor     1.1084        .20108       -.90274E-06   -.24024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9291
  Prefactor  = 0.0001
  Prefactor  = 44.461
  Prefactor  = 0.0001
  norm       = 0.116821
  Prefactor  = 0.812413
  Prefactor  = 7.7659
  norm       = 3.56895
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.79174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63856
  norm       = 3.89104
  Prefactor  = 0.0001
  Prefactor  = 2.39077
  Prefactor  = 0.549171
  Prefactor  = 1.50954
  norm       = 0.327289
  norm       = 5.64131
  Prefactor  = 0.0001
  Prefactor  = 13.8582
  Normalizat = 0.94434
  Prefactor  = 1.10836
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.369     FROM HESSE     STATUS=OK           620 CALLS     4821 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1801        .21477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6047        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.929        19.584        .11140E-03   -1.4989    
   5  Prefactor     .10000E-03    1.7475        .19169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.461        51.701        .59972E-04   -1.4373    
   7  Prefactor     .10000E-03    4.5692        .15771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11682        20.468        .16759E-02   -1.5640    
   9  Prefactor     .81241        17.489        .49909E-03   -1.5528    
  10  Prefactor     7.7659        5.7521        .14390E-03   -1.5151    
  11  norm          3.5689        1.4032        .53482E-04   -1.5330    
  12  Prefactor     .10000E-03    30.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7165        .15986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2113        .14954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7917        1.2526        .54256E-04   -1.5374    
  18  Prefactor     .10000E-03    3.4247        .26829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6386        2.9069        .16538E-03   -1.5452    
  21  norm          3.8910        2.4407        .88112E-04   -1.5313    
  22  Prefactor     .10000E-03    1.8896        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3908        1.8710        .86513E-04   -1.5399    
  24  Prefactor     .54917        1.4756        .14561E-03   -1.5560    
  25  Prefactor     1.5095        4.1643        .24213E-03   -1.5462    
  26  norm          .32729        .18660        .24090E-04   -1.5594    
  27  norm          5.6413        4.3323        .12890E-03   -1.5233    
  28  Prefactor     .10000E-03    20.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.858        83.652        .10747E-03   -1.4963    
  30  Normalizat    .94434        .20551        .24170E-03   -.94919    
  31  Prefactor     1.1084        .23630        .26589E-03   -.89200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91298e-09
Minuit parameter uncertainties:
  1  6.42264e-07
  2  4.70555e-05
  3  8.3373e-05
  4  19.5942
  5  7.27532e-07
  6  51.7529
  7  2.18824e-05
  8  3.09237
  9  7.54082
  10  5.75253
  11  1.4032
  12  0.000256346
  13  1.52295e-05
  14  7.24787e-06
  15  2.17671e-05
  16  0.000447713
  17  1.25257
  18  5.50184e-06
  19  6.37318e-05
  20  2.90715
  21  2.44081
  22  1.77879e-06
  23  1.87106
  24  1.4757
  25  4.16511
  26  0.186601
  27  4.33254
  28  0.000173807
  29  68.2388
  30  0.205685
  31  0.236524
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.792e+00  1.253e+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.108e+00  2.365e-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.443e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.51
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 3.39e-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) = 5711.86698763
delta logL = 0.502328341448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5711.82745693
delta logL = 0.541859043418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3338       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6462       1.0000          .0000       5.0000    
     3 'Normalizat'    .98199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0819       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=   5711.827     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3336        1.1332        .67107E-02    .45106E-04
   2  alpha         1.6461        .31538        .23833       -.45941E-04
   3  Normalizat    .98200        .16772        .45941E-01    .10117E-04
   4  Prefactor     1.0818        .19800        .60747E-01    .85243E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33358
  alpha      = 1.64613
  Normalizat = 0.982
  Prefactor  = 1.08184
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.827     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3336        1.3635        .53333E-04   -1.5402    
   2  alpha         1.6461        .41186        .97141E-02   -.34857    
   3  Normalizat    .98200        .19898        .23760E-03   -.93636    
   4  Prefactor     1.0818        .23403        .26866E-03   -.90049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6765e-12
Minuit parameter uncertainties:
  1  1.3635
  2  0.413998
  3  0.199128
  4  0.234256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237942': 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) = 5711.8274569
delta logL = 0.541859066906

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.334e+00  1.363e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.646e+00  4.140e-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.082e+00  2.343e-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.820e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.59
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.65 +/- 0.41
Photon Flux (Free Index): 4.92e-08 +/- 3.27e-08
Energy Flux (Free Index): 5.60e-05 +/- 4.20e-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/237942/cmap_HighResolution_625795201_626054401_4FGL_J1159.5+2914_daily_bin1491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='5.60e-05', photon_flux_error='3.40e-08', dlogl='5.42e-01', energy_flux='3.39e-05', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-09-04 19:47:05.281213', photon_index_error2='0.41', photon_index2='1.65', ts='17.51', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.20e-05', EG='0.94', time_epoch_completed='1630810025.28', return_code='0', job_id='237942', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.27e-08', ts2='18.59', photon_index='2.10' WHERE bin_id='1491' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:47:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 237942: <4FGL_J1159.5+2914_daily_bin1491> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1491> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:54 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:55 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:55 2021
Terminated at Sat Sep  4 19:47:06 2021
Results reported at Sat Sep  4 19:47:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1491 179.884 29.2448 625795201 626054401 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

