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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin193
RA = 179.884, Dec = 29.2448
tmin = 289353601, tmax = 289612801
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='231589', job_status='RUN', time_executed='2021-09-04 19:10:45.742412', time_epoch_executed='1630807845.74' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231589/ft1_4FGL_J1159.5+2914_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231589/ft2_4FGL_J1159.5+2914_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231589/ft1_4FGL_J1159.5+2914_daily_bin193.fits outfile=/scratch/kocevski/231589/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin193.fits ra=179.884 dec=29.2448 rad=12.0 tmin=289353601.0 tmax=289612801.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.61
user 3.30
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231589/ft1_filtered_4FGL_J1159.5+2914_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/231589/ft2_4FGL_J1159.5+2914_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/231589/ltcube_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.fits outfile=/scratch/kocevski/231589/expmap_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.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/231589/ltcube_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.fits
.....................!
real 191.27
user 185.89
sys 4.98

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/231589/ft1_filtered_4FGL_J1159.5+2914_daily_bin193.fits scfile=/scratch/kocevski/231589/ft2_4FGL_J1159.5+2914_daily_bin193.fits outfile=/scratch/kocevski/231589/cmap_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.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/231589/ft1_filtered_4FGL_J1159.5+2914_daily_bin193.fits scfile=/scratch/kocevski/231589/ft2_4FGL_J1159.5+2914_daily_bin193.fits outfile=/scratch/kocevski/231589/cmap_HighResolution_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    33.358       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0976       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31490E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.869       1.0000         .10000E-03   10000.    
     8 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14582E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17623E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.421       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4610       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34155E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3168       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0129       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6047       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7754       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.7301       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5684       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.822       1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.890       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2599       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68712       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=   6245.818     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     2411 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4672       -.12699E-06** at limit **
   2  norm          33.371        1.3217        .24930E-06    .90169E-03
   3  norm          2.9863        12.303        .36373E-04   -.78383E-03
   4  Prefactor     .10000E-03    9.4128        .10931E-05** at limit **
   5  Prefactor     .56449        4.0484        .11274E-05   -.29609E-03
   6  Prefactor     .10036E-03    173.95        .12732E-03** at limit **
   7  Prefactor     21.851        2.0553       -.54789E-06    .41378E-02
   8  norm          .10000E-03    3.1474        .21943E-06** at limit **
   9  Prefactor     18.100        3.9423        .47146E-06    .80884E-02
  10  Prefactor     .10000E-03    4.3924       -.55005E-06** at limit **
  11  norm          1.0152        .87534        .19993E-05   -.32476E-03
  12  Prefactor     .10026E-03    73.416       -.25636E-04** at limit **
  13  Prefactor     2.7656        9.7966       -.50686E-04   -.24785E-02
  14  Prefactor     2.1326        1.8116        .68218E-07   -.16100E-02
  15  Prefactor     .10082E-03    15.007       -.17475E-07** at limit **
  16  Prefactor     42.169        46.284       -.88823E-04    .57033E-03
  17  norm          1.4599        1.3428       -.11440E-06   -.32532E-03
  18  Prefactor     .10000E-03    5.2064        .22405E-06** at limit **
  19  Prefactor     .10000E-03    13.373       -.13262E-04** at limit **
  20  Prefactor     1.3158        2.5767        .12532E-06   -.37302E-05
  21  norm          1.0114        2.8215       -.20944E-06    .88388E-04
  22  Prefactor     .10000E-03    2.4731        .16009E-06** at limit **
  23  Prefactor     1.6051        2.1709       -.84112E-07    .10311E-03
  24  Prefactor     4.7753        2.2995       -.17195E-06    .21047E-03
  25  Prefactor     .10000E-03    4.6665       -.12231E-06** at limit **
  26  norm          2.7298        .44981       -.30638E-07   -.63663E-03
  27  norm          3.5669        3.6046        .14752E-06    .31331E-03
  28  Prefactor     15.763        9.1043        .17203E-06   -.14753E-03
  29  Prefactor     21.872        4.8534       -.13462E-04    .14243E-02
  30  Normalizat    1.2604        .22938       -.18063E-05   -.17931E-03
  31  Prefactor     .68721        .24386        .11046E-04    .39288E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 33.3705
  norm       = 2.98633
  Prefactor  = 0.0001
  Prefactor  = 0.56449
  Prefactor  = 0.000100356
  Prefactor  = 21.8508
  norm       = 0.0001
  Prefactor  = 18.1005
  Prefactor  = 0.0001
  norm       = 1.01518
  Prefactor  = 0.000100259
  Prefactor  = 2.76556
  Prefactor  = 2.13256
  Prefactor  = 0.000100822
  Prefactor  = 42.1689
  norm       = 1.45986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31581
  norm       = 1.01138
  Prefactor  = 0.0001
  Prefactor  = 1.60514
  Prefactor  = 4.77534
  Prefactor  = 0.0001
  norm       = 2.72976
  norm       = 3.56685
  Prefactor  = 15.763
  Prefactor  = 21.872
  Normalizat = 1.26036
  Prefactor  = 0.687207
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.818     FROM HESSE     STATUS=OK           708 CALLS     3119 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.371        18.837        .17345E-02   -1.4552    
   3  norm          2.9863        14.077        .57604E-02   -1.5362    
   4  Prefactor     .10000E-03    9.3494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56449        2.7915        .37172E-01   -1.5558    
   6  Prefactor     .10036E-03    174.94        .91794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.851        16.767        .21413E-02   -1.4773    
   8  norm          .10000E-03    1.9582        .35624E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.100        14.167        .23529E-02   -1.4857    
  10  Prefactor     .10000E-03    4.3341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0152        .89682        .12988E-01   -1.5506    
  12  Prefactor     .10026E-03    71.794        .90958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7656        12.547        .60499E-02   -1.5375    
  14  Prefactor     2.1326        1.8117        .70577E-02   -1.5416    
  15  Prefactor     .10082E-03    40.090        .10170E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.169        47.227        .15387E-02   -1.4408    
  17  norm          1.4599        1.3636        .88990E-02   -1.5466    
  18  Prefactor     .10000E-03    5.0139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.348        .10667E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3158        2.6204        .95935E-02   -1.5479    
  21  norm          1.0114        2.8760        .13056E-01   -1.5507    
  22  Prefactor     .10000E-03    2.4691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.6051        2.1548        .83637E-02   -1.5455    
  24  Prefactor     4.7753        2.3126        .46028E-02   -1.5271    
  25  Prefactor     .10000E-03    4.6166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7298        .45023        .46378E-02   -1.5378    
  27  norm          3.5669        3.6115        .53486E-02   -1.5330    
  28  Prefactor     15.763        9.1155        .25173E-02   -1.4914    
  29  Prefactor     21.872        71.353        .21403E-02   -1.4772    
  30  Normalizat    1.2604        .19524        .53478E-01   -.84758    
  31  Prefactor     .68721        .20712        .77635E-01   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78948e-07
Minuit parameter uncertainties:
  1  3.89506e-06
  2  18.8406
  3  12.9724
  4  1.45707e-05
  5  2.51058
  6  0.015835
  7  16.7709
  8  6.91475e-06
  9  14.1697
  10  5.35481e-05
  11  0.896831
  12  0.00863946
  13  11.7853
  14  1.81176
  15  0.0114885
  16  47.269
  17  1.36367
  18  7.7355e-05
  19  0.000155508
  20  2.62063
  21  2.87635
  22  3.88214e-06
  23  2.15488
  24  2.31268
  25  7.58649e-05
  26  0.450233
  27  3.61177
  28  9.11629
  29  71.6338
  30  0.195356
  31  0.207356
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.460e+00  1.364e+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:  6.872e-01  2.074e-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.260e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/231589/likelihoodResults_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.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) = 6244.20536068
delta logL = 1.61284515938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6244.20248665
delta logL = 1.61571919745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1399       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3218       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75359       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=   6244.202     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      237 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1399        9.8951        .97529E-02    .15520E-02
   2  alpha         3.3218        4.1609        .31489        .50710E-04
   3  Normalizat    1.1694        .60989E-01    .55118E-01   -.19933E-04
   4  Prefactor     .75361        .69361E-01    .74358E-01    .45211E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13994
  alpha      = 3.32182
  Normalizat = 1.16942
  Prefactor  = 0.753606
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.202     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1399        1.1665        .43919E-04   -1.5494    
   2  alpha         3.3218        .81615        .13294E-01    .33496    
   3  Normalizat    1.1694        .22616        .24372E-03   -.87553    
   4  Prefactor     .75361        .24618        .32912E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00223e-11
Minuit parameter uncertainties:
  1  1.1665
  2  0.83334
  3  0.226346
  4  0.246534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231589': 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) = 6244.20248663
delta logL = 1.61571920934

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.140e+00  1.167e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  3.322e+00  8.333e-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.536e-01  2.465e-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.169e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.94
Ra Dec: 179.884 29.245
Photon Index (Free Index): 3.32 +/- 0.83
Photon Flux (Free Index): 1.08e-07 +/- 6.13e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.09e-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/231589/cmap_HighResolution_289353601_289612801_4FGL_J1159.5+2914_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-05', comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='1.94e-05', photon_flux_error='3.70e-08', dlogl='1.62e+00', energy_flux='1.78e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-04 19:24:05.181992', photon_index_error2='0.83', photon_index2='3.32', ts='1.57', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.09e-05', EG='1.26', time_epoch_completed='1630808645.18', return_code='0', job_id='231589', GAL2='0.75', EG2='1.17', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.13e-08', ts2='4.94', photon_index='2.10' WHERE bin_id='193' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:24:05 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin193 179.884 29.2448 289353601 289612801 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 :                                   796.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

