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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin645
RA = 179.884, Dec = 29.2448
tmin = 406512001, tmax = 406771201
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='233308', job_status='RUN', time_executed='2021-09-04 19:16:09.298424', time_epoch_executed='1630808169.3' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233308/ft1_4FGL_J1159.5+2914_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233308/ft2_4FGL_J1159.5+2914_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233308/ft1_4FGL_J1159.5+2914_daily_bin645.fits outfile=/scratch/kocevski/233308/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin645.fits ra=179.884 dec=29.2448 rad=12.0 tmin=406512001.0 tmax=406771201.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.29
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233308/ft1_filtered_4FGL_J1159.5+2914_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/233308/ft2_4FGL_J1159.5+2914_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/233308/ltcube_406512001_406771201_4FGL_J1159.5+2914_daily_bin645.fits outfile=/scratch/kocevski/233308/expmap_406512001_406771201_4FGL_J1159.5+2914_daily_bin645.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/233308/ltcube_406512001_406771201_4FGL_J1159.5+2914_daily_bin645.fits
.....................!
real 190.83
user 186.00
sys 4.36

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/233308/ft1_filtered_4FGL_J1159.5+2914_daily_bin645.fits scfile=/scratch/kocevski/233308/ft2_4FGL_J1159.5+2914_daily_bin645.fits outfile=/scratch/kocevski/233308/cmap_406512001_406771201_4FGL_J1159.5+2914_daily_bin645.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.57
user 0.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    30.210       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.983       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6846       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84124       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67193E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0919       1.0000         .10000E-03   10000.    
    21 'norm      '    10.113       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.753       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5162       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0229       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.9354       1.0000         .10000E-03   10000.    
    27 'norm      '    6.4814       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .82299       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1054       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=   6621.278     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     4186 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0478        .90712E-02** at limit **
   2  norm          30.210        17.778        .18224E-02   -.11831E-03
   3  norm          .10000E-03    8.2684        .90712E-02** at limit **
   4  Prefactor     .10000E-03    7.8934        .90712E-02** at limit **
   5  Prefactor     .10000E-03    .72570        .90712E-02** at limit **
   6  Prefactor     .10000E-03    11.024        .90712E-02** at limit **
   7  Prefactor     27.979        22.088        .18934E-02   -.38423E-03
   8  norm          .10000E-03    .72892        .90712E-02** at limit **
   9  Prefactor     .10000E-03    9.5987        .90712E-02** at limit **
  10  Prefactor     2.6816        5.8665        .62171E-02   -.17749E-02
  11  norm          4.1869        1.2909        .49239E-02    .91434E-04
  12  Prefactor     .10000E-03    8.3572        .90712E-02** at limit **
  13  Prefactor     6.6086        7.0080        .39026E-02    .15885E-03
  14  Prefactor     .84127        1.1745        .12593E-02    .25627E-02
  15  Prefactor     .10000E-03    18.164        .11380    ** at limit **
  16  Prefactor     .10000E-03    25.649        .90712E-02** at limit **
  17  norm          2.1694        1.2416        .69895E-02   -.10873E-03
  18  Prefactor     .10000E-03    .72750        .90712E-02** at limit **
  19  Prefactor     22.934        26.583        .20905E-02    .22309E-03
  20  Prefactor     1.0919        2.2534        .11433E-01    .92137E-03
  21  norm          10.113        3.7029        .31500E-02   -.21139E-03
  22  Prefactor     13.753        8.3134        .27001E-02   -.16821E-03
  23  Prefactor     1.5161        1.4977        .86787E-02   -.28076E-03
  24  Prefactor     5.0226        2.5101        .44856E-02    .65581E-04
  25  Prefactor     .10000E-03    2.6012        .90712E-02** at limit **
  26  norm          2.9354        .43272        .44447E-02   -.61918E-03
  27  norm          6.4812        4.1585        .39410E-02   -.85323E-04
  28  Prefactor     .10001E-03    9.8835        .90712E-02** at limit **
  29  Prefactor     .10000E-03    38.512        .90712E-02** at limit **
  30  Normalizat    .82306        .18119        .63032E-01   -.19250E-03
  31  Prefactor     1.1053        .19832        .64729E-01   -.19046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 30.2102
  norm       = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 27.9795
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68159
  norm       = 4.18688
  Prefactor  = 0.000100004
  Prefactor  = 6.60864
  Prefactor  = 0.841268
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 2.16943
  Prefactor  = 0.0001
  Prefactor  = 22.9342
  Prefactor  = 1.09189
  norm       = 10.1131
  Prefactor  = 13.7529
  Prefactor  = 1.51613
  Prefactor  = 5.02262
  Prefactor  = 0.0001
  norm       = 2.93543
  norm       = 6.48118
  Prefactor  = 0.00010001
  Prefactor  = 0.000100002
  Normalizat = 0.823059
  Prefactor  = 1.10527
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.278     FROM HESSE     STATUS=OK           620 CALLS     4806 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0512        .81333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          30.210        17.777        .72895E-04   -1.4608    
   3  norm          .10000E-03    8.3557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .73030        .67596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.979        22.090        .75735E-04   -1.4650    
   8  norm          .10000E-03    .73470        .67815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6816        5.7638        .24868E-03   -1.5380    
  11  norm          4.1869        1.2914        .49556E-04   -1.5299    
  12  Prefactor     .10000E-03    8.3862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6086        7.0085        .15610E-03   -1.5194    
  14  Prefactor     .84127        1.1743        .25185E-03   -1.5525    
  15  Prefactor     .10000E-03    128.86        .63302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1694        1.2344        .65222E-04   -1.5413    
  18  Prefactor     .10000E-03    .72886        .67771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.934        26.140        .83619E-04   -1.4750    
  20  Prefactor     1.0919        2.2076        .16936E-03   -1.5499    
  21  norm          10.113        3.6951        .88848E-04   -1.5072    
  22  Prefactor     13.753        8.3154        .10801E-03   -1.4966    
  23  Prefactor     1.5161        1.5131        .94615E-04   -1.5462    
  24  Prefactor     5.0226        2.5066        .85977E-04   -1.5260    
  25  Prefactor     .10000E-03    2.6170        .12812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.9354        .43322        .19645E-04   -1.5365    
  27  norm          6.4812        4.1589        .12820E-03   -1.5199    
  28  Prefactor     .10001E-03    9.9856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    38.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .82306        .21488        .27881E-03   -.99219    
  31  Prefactor     1.1053        .23585        .28631E-03   -.89298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03248e-08
Minuit parameter uncertainties:
  1  1.09113e-06
  2  17.7799
  3  0.000302369
  4  0.000392459
  5  9.36349e-07
  6  0.000462613
  7  22.0966
  8  3.00015e-07
  9  1.9802e-05
  10  5.76499
  11  1.29144
  12  0.000364995
  13  7.00936
  14  1.17431
  15  0.000742012
  16  0.000229353
  17  1.23437
  18  4.60588e-07
  19  26.153
  20  2.20779
  21  3.69516
  22  8.31605
  23  1.51309
  24  2.50661
  25  3.12142e-07
  26  0.433224
  27  4.15907
  28  0.000632838
  29  0.000507026
  30  0.215101
  31  0.236073
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.169e+00  1.234e+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.105e+00  2.361e-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:  8.231e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.50
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.50e-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) = 6621.22787154
delta logL = 0.0496703348099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6621.22731164
delta logL = 0.0502302370851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1559       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2475       1.0000          .0000       5.0000    
     3 'Normalizat'    .81477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1109       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=   6621.227     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1549        31.710        .70145E-02    .38596E-03
   2  alpha         2.2471        3.2365        .32292        .78883E-05
   3  Normalizat    .81470        .11324        .63314E-01    .21151E-04
   4  Prefactor     1.1111        .17635        .64580E-01    .67533E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15494
  alpha      = 2.2471
  Normalizat = 0.814703
  Prefactor  = 1.11107
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.227     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1549        1.2145        .63265E-04   -1.5414    
   2  alpha         2.2471        .46025        .12852E-01   -.10133    
   3  Normalizat    .81470        .19932        .28006E-03   -.99526    
   4  Prefactor     1.1111        .23317        .28564E-03   -.89114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26837e-13
Minuit parameter uncertainties:
  1  1.21452
  2  0.462917
  3  0.199504
  4  0.23338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233308': 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) = 6621.22731016
delta logL = 0.0502317182363

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.155e+00  1.215e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.247e+00  4.629e-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.111e+00  2.334e-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:  8.147e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.53
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.25 +/- 0.46
Photon Flux (Free Index): 6.56e-08 +/- 4.07e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.52e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/233308/cmap_HighResolution_406512001_406771201_4FGL_J1159.5+2914_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.40e-05', photon_flux_error='3.35e-08', dlogl='5.02e-02', energy_flux='2.64e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-09-04 19:30:42.395860', photon_index_error2='0.46', photon_index2='2.25', ts='5.50', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.82', time_epoch_completed='1630809042.4', return_code='0', job_id='233308', GAL2='1.11', EG2='0.81', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.07e-08', ts2='5.53', photon_index='2.10' WHERE bin_id='645' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:30:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 233308: <4FGL_J1159.5+2914_daily_bin645> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin645> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:49 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:15:52 2021
Terminated at Sat Sep  4 19:30:43 2021
Results reported at Sat Sep  4 19:30:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin645 179.884 29.2448 406512001 406771201 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 :                                   867.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            894 sec.

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

