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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin609
RA = 179.884, Dec = 29.2448
tmin = 397180801, tmax = 397440001
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='233253', job_status='RUN', time_executed='2021-09-04 19:15:55.098054', time_epoch_executed='1630808155.1' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233253

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233253/ft1_4FGL_J1159.5+2914_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233253/ft2_4FGL_J1159.5+2914_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233253/ft1_4FGL_J1159.5+2914_daily_bin609.fits outfile=/scratch/kocevski/233253/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin609.fits ra=179.884 dec=29.2448 rad=12.0 tmin=397180801.0 tmax=397440001.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.96
user 3.73
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233253/ft1_filtered_4FGL_J1159.5+2914_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/233253/ft2_4FGL_J1159.5+2914_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/233253/ltcube_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.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/233253/ft2_4FGL_J1159.5+2914_daily_bin609.fits
.....................!
real 10.59
user 10.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233253/ft1_filtered_4FGL_J1159.5+2914_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/233253/ft2_4FGL_J1159.5+2914_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/233253/ltcube_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.fits outfile=/scratch/kocevski/233253/expmap_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.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/233253/ltcube_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.fits
.....................!
real 192.41
user 187.38
sys 4.65

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/233253/ft1_filtered_4FGL_J1159.5+2914_daily_bin609.fits scfile=/scratch/kocevski/233253/ft2_4FGL_J1159.5+2914_daily_bin609.fits outfile=/scratch/kocevski/233253/cmap_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.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.97
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233253/ft1_filtered_4FGL_J1159.5+2914_daily_bin609.fits scfile=/scratch/kocevski/233253/ft2_4FGL_J1159.5+2914_daily_bin609.fits outfile=/scratch/kocevski/233253/cmap_HighResolution_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.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.68
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13379E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .51687E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9350       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13545E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.423       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3170       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6402       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.077       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11560E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    15.331       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1691       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.594       1.0000         .10000E-03   10000.    
    26 'norm      '    3.9920       1.0000         .10000E-03   10000.    
    27 'norm      '    4.8180       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17118E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79897       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=   6271.779     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4155 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0387        .95648E-08** at limit **
   2  norm          .10000E-03    17.547       -.31153E-05** at limit **
   3  norm          .10006E-03    7.4301       -.18022E-06** at limit **
   4  Prefactor     .10000E-03    5.4950        .28218E-07** at limit **
   5  Prefactor     6.9306        3.1539       -.35606E-06   -.25714E-02
   6  Prefactor     .10000E-03    74.089        .73963E-05** at limit **
   7  Prefactor     28.427        16.913        .83564E-08    .44906E-05
   8  norm          .10000E-03    1.5629        .79846E-07** at limit **
   9  Prefactor     .10000E-03    7.0612       -.12779E-06** at limit **
  10  Prefactor     4.3175        5.2545        .43236E-06   -.33703E-03
  11  norm          2.3951        1.2221        .13307E-07   -.17979E-03
  12  Prefactor     .10000E-03    10.460        .23858E-06** at limit **
  13  Prefactor     .10000E-03    19.903        .70974E-05** at limit **
  14  Prefactor     3.6212        1.9862        .16749E-07   -.10062E-03
  15  Prefactor     .10000E-03    13.429       -.32966E-06** at limit **
  16  Prefactor     .10000E-03    18.105       -.45684E-06** at limit **
  17  norm          1.6402        1.0623       -.41335E-07   -.82075E-03
  18  Prefactor     .10000E-03    3.2663        .73958E-07** at limit **
  19  Prefactor     31.070        30.190       -.33810E-05   -.83748E-05
  20  Prefactor     .10001E-03    1.6297       -.19595E-06** at limit **
  21  norm          15.330        4.3679        .65523E-06   -.12445E-03
  22  Prefactor     .10000E-03    3.6415        .24003E-07** at limit **
  23  Prefactor     .10000E-03    .75345       -.96049E-08** at limit **
  24  Prefactor     2.1689        1.9400       -.29847E-06   -.46669E-03
  25  Prefactor     15.594        8.1110        .21395E-06   -.79317E-04
  26  norm          3.9920        .53528       -.24209E-07    .18079E-04
  27  norm          4.8177        4.3297        .37683E-05   -.87366E-04
  28  Prefactor     .10009E-03    4.5150        .13139E-05** at limit **
  29  Prefactor     .10000E-03    23.306       -.94361E-05** at limit **
  30  Normalizat    1.3118        .20003        .10491E-06   -.14489E-03
  31  Prefactor     .79912        .22144       -.67154E-06   -.11480E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 6.93057
  Prefactor  = 0.0001
  Prefactor  = 28.4267
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.31754
  norm       = 2.39514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64016
  Prefactor  = 0.0001
  Prefactor  = 31.0698
  Prefactor  = 0.00010001
  norm       = 15.3304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16886
  Prefactor  = 15.5936
  norm       = 3.99198
  norm       = 4.81773
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Normalizat = 1.3118
  Prefactor  = 0.799116
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.779     FROM HESSE     STATUS=OK           632 CALLS     4787 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9442        .21954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10006E-03    11.439        .67899E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4976        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9306        3.2051        .45744E-03   -1.5181    
   6  Prefactor     .10000E-03    74.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.427        16.907        .75147E-04   -1.4641    
   8  norm          .10000E-03    1.5864        .96513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3175        5.2403        .18899E-03   -1.5292    
  11  norm          2.3951        1.2196        .60409E-04   -1.5398    
  12  Prefactor     .10000E-03    10.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6212        1.9862        .79671E-04   -1.5327    
  15  Prefactor     .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6402        1.0632        .16497E-03   -1.5452    
  18  Prefactor     .10000E-03    3.4010        .27920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.070        30.234        .71874E-04   -1.4593    
  20  Prefactor     .10001E-03    17.562        .19545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          15.330        4.3628        .84558E-04   -1.4925    
  22  Prefactor     .10000E-03    3.6554        .14757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .75540        .67090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.1689        1.9333        .99880E-04   -1.5413    
  25  Prefactor     15.594        8.1054        .10142E-03   -1.4918    
  26  norm          3.9920        .53524        .20273E-04   -1.5308    
  27  norm          4.8177        4.2936        .14819E-03   -1.5269    
  28  Prefactor     .10009E-03    19.868        .32329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3118        .23693        .25438E-03   -.83215    
  31  Prefactor     .79912        .25930        .36205E-03   -.99761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84066e-09
Minuit parameter uncertainties:
  1  1.12707e-05
  2  3.13732e-05
  3  0.00160415
  4  2.25196e-07
  5  3.20519
  6  0.000189896
  7  16.9094
  8  5.04751e-06
  9  2.20944e-06
  10  5.2409
  11  1.21963
  12  1.95368e-06
  13  7.5894e-05
  14  1.98623
  15  1.87785e-05
  16  1.53753e-06
  17  1.06326
  18  7.97463e-07
  19  30.2488
  20  0.000841878
  21  4.36286
  22  3.92639e-06
  23  2.84571e-06
  24  1.93332
  25  8.10599
  26  0.535238
  27  4.29389
  28  0.00261227
  29  8.52422e-07
  30  0.237124
  31  0.259696
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.640e+00  1.063e+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.991e-01  2.597e-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.312e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.74
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.29e-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) = 6271.76110731
delta logL = 0.0174879389024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6271.7609019
delta logL = 0.0176933471403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6402       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9938       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79599       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=   6271.761     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6400        1.6709        .82485E-03   -.69548E-04
   2  alpha         1.9938        .71170        .40795        .78911E-04
   3  Normalizat    1.3160        .19352        .57452E-01    .24863E-05
   4  Prefactor     .79601        .22205        .81915E-01    .21554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63998
  alpha      = 1.99378
  Normalizat = 1.31601
  Prefactor  = 0.796007
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.761     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6400        1.0771        .32994E-04   -1.5452    
   2  alpha         1.9938        .57056        .14572E-01   -.20390    
   3  Normalizat    1.3160        .22698        .25405E-03   -.83090    
   4  Prefactor     .79601        .25884        .36269E-03   -.99876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10617e-10
Minuit parameter uncertainties:
  1  1.07711
  2  0.575857
  3  0.227153
  4  0.259239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233253': 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) = 6271.76090188
delta logL = 0.0176933680814

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.640e+00  1.077e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.994e+00  5.759e-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.960e-01  2.592e-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.316e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.99 +/- 0.58
Photon Flux (Free Index): 4.12e-08 +/- 3.21e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.97e-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/233253/cmap_HighResolution_397180801_397440001_4FGL_J1159.5+2914_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='2.21e-05', photon_flux_error='2.89e-08', dlogl='1.77e-02', energy_flux='1.99e-05', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-04 19:29:56.655945', photon_index_error2='0.58', photon_index2='1.99', ts='6.74', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.31', time_epoch_completed='1630808996.66', return_code='0', job_id='233253', GAL2='0.80', EG2='1.32', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.21e-08', ts2='6.75', photon_index='2.10' WHERE bin_id='609' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 233253: <4FGL_J1159.5+2914_daily_bin609> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin609> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:45 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:47 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:15:47 2021
Terminated at Sat Sep  4 19:29:57 2021
Results reported at Sat Sep  4 19:29:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin609 179.884 29.2448 397180801 397440001 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 :                                   835.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            852 sec.

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

