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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1230
RA = 179.884, Dec = 29.2448
tmin = 558144001, tmax = 558403201
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='237550', job_status='RUN', time_executed='2021-09-04 19:33:08.289289', time_epoch_executed='1630809188.29' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237550/ft1_4FGL_J1159.5+2914_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237550/ft2_4FGL_J1159.5+2914_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237550/ft1_4FGL_J1159.5+2914_daily_bin1230.fits outfile=/scratch/kocevski/237550/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1230.fits ra=179.884 dec=29.2448 rad=12.0 tmin=558144001.0 tmax=558403201.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.24
user 3.99
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237550/ft1_filtered_4FGL_J1159.5+2914_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/237550/ft2_4FGL_J1159.5+2914_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/237550/ltcube_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.fits outfile=/scratch/kocevski/237550/expmap_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.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/237550/ltcube_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.fits
.....................!
real 192.56
user 186.08
sys 5.01

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/237550/ft1_filtered_4FGL_J1159.5+2914_daily_bin1230.fits scfile=/scratch/kocevski/237550/ft2_4FGL_J1159.5+2914_daily_bin1230.fits outfile=/scratch/kocevski/237550/cmap_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237550/ft1_filtered_4FGL_J1159.5+2914_daily_bin1230.fits scfile=/scratch/kocevski/237550/ft2_4FGL_J1159.5+2914_daily_bin1230.fits outfile=/scratch/kocevski/237550/cmap_HighResolution_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/237550/ft1_filtered_4FGL_J1159.5+2914_daily_bin1230.fits', '/scratch/kocevski/237550/ft2_4FGL_J1159.5+2914_daily_bin1230.fits', expMap='/scratch/kocevski/237550/expmap_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.fits', expCube='/scratch/kocevski/237550/ltcube_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/237550/Model_4FGL_J1159.5+2914_daily_bin1230.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/237550/ft1_filtered_4FGL_J1159.5+2914_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/237550/ft2_4FGL_J1159.5+2914_daily_bin1230.fits
Exposure map: /scratch/kocevski/237550/expmap_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.fits
Exposure cube: /scratch/kocevski/237550/ltcube_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/237550/Model_4FGL_J1159.5+2914_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 705.924187481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 702.854222901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    182.82       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2038       1.0000         .10000E-03   10000.    
     3 'norm      '    .17172E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38076E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13761       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23908E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43642       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7046       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7264       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1470       1.0000         .10000E-03   10000.    
    17 'norm      '    10.937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53862       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5334       1.0000         .10000E-03   10000.    
    21 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22825E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7634       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.135       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0760       1.0000         .10000E-03   10000.    
    27 'norm      '    .12872E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .32809E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .66296       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2802       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .38182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   702.8496     FROM MIGRAD    STATUS=CONVERGED    198 CALLS      464 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     179.17        300.60       -.10986E-03    .21708E-02
   2  norm          9.2038        1.0015         .0000         .0000    
   3  norm          .10004E-03    166.81        .27909E-03** at limit **
   4  Prefactor     .10000E-03    49.063        .93455E-07** at limit **
   5  Prefactor     1.7869        1.0458         .0000         .0000    
   6  Prefactor     7.1795        1.0024         .0000         .0000    
   7  Prefactor     .25551E-03    71.555       -.20499E-03** at limit **
   8  norm          1.6993        1.0516         .0000         .0000    
   9  Prefactor     .10005E-03    162.96       -.41093E-03** at limit **
  10  Prefactor     .10028E-03    1028.5        .12828E-03** at limit **
  11  norm          2.7046        1.0182         .0000         .0000    
  12  Prefactor     5.2051        84.169       -.52094E-04   -.19005E-02
  13  Prefactor     .10000E-03    18.762        .93990E-06** at limit **
  14  Prefactor     24.381        11.485        .45450E-04    .13788E-01
  15  Prefactor     .12155E-03    386.30        .33345E-05** at limit **
  16  Prefactor     8.1470        1.0019         .0000         .0000    
  17  norm          10.944        10.402       -.80005E-06   -.47931E-03
  18  Prefactor     .10000E-03    51.039        .34900E-05** at limit **
  19  Prefactor     .10041E-03    395.48        .13574E-03** at limit **
  20  Prefactor     5.5287        9.8490        .11617E-04    .34895E-03
  21  norm          .10000E-03    6.8435        .52474E-06** at limit **
  22  Prefactor     .10000E-03    60.535        .43393E-06** at limit **
  23  Prefactor     .10000E-03    5.8684        .35070E-06** at limit **
  24  Prefactor     5.7618        7.4406       -.57029E-06    .21004E-03
  25  Prefactor     13.127        18.354        .41797E-04   -.48105E-02
  26  norm          2.0756        .94613        .63247E-06    .31919E-03
  27  norm          .10000E-03    10.582        .54047E-06** at limit **
  28  Prefactor     .10000E-03    17.718        .73333E-06** at limit **
  29  Prefactor     .10000E-03    177.15        .82540E-05** at limit **
  30  Normalizat    1.2810        .84629       -.38589E-04    .11611E-04
  31  Prefactor     .38160        .78402       -.10617E-03    .79632E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 179.166
  norm       = 9.20378
  norm       = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 1.78687
  Prefactor  = 7.17949
  Prefactor  = 0.00025551
  norm       = 1.6993
  Prefactor  = 0.000100055
  Prefactor  = 0.000100275
  norm       = 2.70459
  Prefactor  = 5.20506
  Prefactor  = 0.0001
  Prefactor  = 24.381
  Prefactor  = 0.000121551
  Prefactor  = 8.14703
  norm       = 10.9441
  Prefactor  = 0.0001
  Prefactor  = 0.00010041
  Prefactor  = 5.52869
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.76184
  Prefactor  = 13.1271
  norm       = 2.07565
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28105
  Prefactor  = 0.381597
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   702.8496     FROM HESSE     STATUS=FAILED        15 CALLS      479 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     179.17        311.19        .74644E-03   -1.3023    
   2  norm          496.28        487.05         .0000       -1.5101    
   3  norm          .10004E-03    .20742        .27909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .23899        .93455E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7869        1.0458         .0000       -1.5441    
   6  Prefactor     7.1795        1.0024         .0000       -1.5172    
   7  Prefactor     .25551E-03    .23469       -.20499E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6993        1.0516         .0000       -1.5447    
   9  Prefactor     .10005E-03    .20571       -.41093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10028E-03    .30296        .12828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7046        1.0182         .0000       -1.5379    
  12  Prefactor     5.2051        .95710       -.52094E-04   -1.5252    
  13  Prefactor     .10000E-03    .20571        .93990E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.381        1.0010        .45450E-04   -1.4720    
  15  Prefactor     .12155E-03    .25674        .33345E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1470        1.0019         .0000       -1.5137    
  17  norm          10.944        1.0014       -.80005E-06   -1.5046    
  18  Prefactor     .10000E-03    .20571        .34900E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10041E-03    .32646        .13574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5287        1.0037        .11617E-04   -1.5238    
  21  norm          .10000E-03    .20571        .52474E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20869        .43393E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571        .35070E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.7618        1.0037       -.57029E-06   -1.5228    
  25  Prefactor     13.127        1.0004        .41797E-04   -1.4983    
  26  norm          2.0756        1.0323        .63247E-06   -1.5420    
  27  norm          .10000E-03    .20571        .54047E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .28493        .73333E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .35515        .82540E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2810        1.0841       -.38589E-04   -.84134    
  31  Prefactor     .38160        .71043       -.10617E-03   -1.1776    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.7178e-10
Minuit parameter uncertainties:
  1  314.12
  2  1.00148
  3  0.000191347
  4  3.14612e-07
  5  1.04578
  6  1.00244
  7  0.0120826
  8  1.05161
  9  0.000211822
  10  0.000577551
  11  1.0182
  12  0.957102
  13  7.7792e-07
  14  1.00103
  15  0.00470446
  16  1.00189
  17  1.00135
  18  3.05941e-06
  19  0.000732029
  20  1.00371
  21  8.12809e-08
  22  1.34892e-05
  23  1.13258e-06
  24  1.00367
  25  1.00043
  26  1.03234
  27  1.82913e-07
  28  2.83837e-07
  29  8.14598e-06
  30  1.1042
  31  0.727808
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 702.849574703

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.094e+01  1.001e+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:  3.816e-01  7.278e-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.281e+00  1.104e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.97e-07 +/- 2.72e-08
Energy Flux (Fixed Index): 1.33e-04 +/- 1.22e-05

TS (Fixed Index): 2.40
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 1.12e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237550/likelihoodResults_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.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) = 702.849243122
delta logL = 0.00033158035194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 702.849242808
delta logL = 0.000331894860096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.944       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0804       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38161       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=   702.8492     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      196 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.913        10.499        .30276E-02    .12249E-05
   2  alpha         2.0801        .84782        .20956       -.21008E-05
   3  Normalizat    1.2823        .76569        .68943E-01   -.13643E-06
   4  Prefactor     .38073        .70535        .11154        .50092E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9126
  alpha      = 2.08009
  Normalizat = 1.28231
  Prefactor  = 0.380734
 **********
 **   18 **HESSE 
 **********

 FCN=   702.8492     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.913        10.436        .80748E-04   -1.5047    
   2  alpha         2.0801        .87075        .89717E-02   -.16876    
   3  Normalizat    1.2823        .81432        .30500E-03   -.84096    
   4  Prefactor     .38073        .74499        .49506E-03   -1.1780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93171e-12
Minuit parameter uncertainties:
  1  10.4376
  2  0.889968
  3  0.822655
  4  0.765219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237550': 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) = 702.849237419
delta logL = 0.000337283494218

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.091e+01  1.044e+01  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.080e+00  8.900e-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:  3.807e-01  7.652e-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.282e+00  8.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.08 +/- 0.89
Photon Flux (Free Index): 2.91e-07 +/- 3.55e-07
Energy Flux (Free Index): 1.35e-04 +/- 1.56e-04

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/237550/cmap_HighResolution_558144001_558403201_4FGL_J1159.5+2914_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-04', comment='SUCCESS', photon_flux='2.97e-07', energy_flux2='1.35e-04', photon_flux_error='2.72e-08', dlogl='3.37e-04', energy_flux='1.33e-04', photon_flux2='2.91e-07', job_status='DONE', time_completed='2021-09-04 19:38:56.282171', photon_index_error2='0.89', photon_index2='2.08', ts='2.40', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', photon_flux_upper_limit='1.12e-06', energy_flux_error2='1.56e-04', EG='1.28', time_epoch_completed='1630809536.28', return_code='101', job_id='237550', GAL2='0.38', EG2='1.28', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.55e-07', ts2='2.38', photon_index='2.10' WHERE bin_id='1230' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:38:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 237550: <4FGL_J1159.5+2914_daily_bin1230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1230 179.884 29.2448 558144001 558403201 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 :                                   342.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            513 sec.

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

