/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 3 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_bin799
RA = 179.884, Dec = 29.2448
tmin = 446428801, tmax = 446688001
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='234938', job_status='RUN', time_executed='2021-09-04 19:20:46.185667', time_epoch_executed='1630808446.19' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234938/ft1_4FGL_J1159.5+2914_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234938/ft2_4FGL_J1159.5+2914_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234938/ft1_4FGL_J1159.5+2914_daily_bin799.fits outfile=/scratch/kocevski/234938/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin799.fits ra=179.884 dec=29.2448 rad=12.0 tmin=446428801.0 tmax=446688001.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.43
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/234938/ft2_4FGL_J1159.5+2914_daily_bin799.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/234938/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin799.fits evtable="EVENTS" outfile="/scratch/kocevski/234938/ft1_filtered_4FGL_J1159.5+2914_daily_bin799.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.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234938/ft1_filtered_4FGL_J1159.5+2914_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/234938/ft2_4FGL_J1159.5+2914_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/234938/ltcube_446428801_446688001_4FGL_J1159.5+2914_daily_bin799.fits outfile=/scratch/kocevski/234938/expmap_446428801_446688001_4FGL_J1159.5+2914_daily_bin799.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/234938/ltcube_446428801_446688001_4FGL_J1159.5+2914_daily_bin799.fits
.....................!
real 190.26
user 185.52
sys 4.43

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/234938/ft1_filtered_4FGL_J1159.5+2914_daily_bin799.fits scfile=/scratch/kocevski/234938/ft2_4FGL_J1159.5+2914_daily_bin799.fits outfile=/scratch/kocevski/234938/cmap_446428801_446688001_4FGL_J1159.5+2914_daily_bin799.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234938/ft1_filtered_4FGL_J1159.5+2914_daily_bin799.fits scfile=/scratch/kocevski/234938/ft2_4FGL_J1159.5+2914_daily_bin799.fits outfile=/scratch/kocevski/234938/cmap_HighResolution_446428801_446688001_4FGL_J1159.5+2914_daily_bin799.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46083E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.491       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.928       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.573       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3409       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7569       1.0000         .10000E-03   10000.    
    21 'norm      '    11.376       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4714       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3963       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8495       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .43409       1.0000         .10000E-03   10000.    
    26 'norm      '    1.0673       1.0000         .10000E-03   10000.    
    27 'norm      '    22.800       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.079       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4252       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .31660       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6525.187     FROM MIGRAD    STATUS=CONVERGED   1453 CALLS     4263 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0166        .79398E-03** at limit **
   2  norm          .10000E-03    28.229        .18142E-02** at limit **
   3  norm          .10000E-03    4.4671        .16645E-02** at limit **
   4  Prefactor     .10000E-03    17.031        .90141E-01** at limit **
   5  Prefactor     .72155        1.3281        .14402E-02    .65953E-03
   6  Prefactor     29.497        27.266        .36888E-03    .11011E-03
   7  Prefactor     .10000E-03    19.851        .18142E-02** at limit **
   8  norm          5.4000        2.4927        .82000E-04    .13005E-03
   9  Prefactor     15.903        11.531        .10035E-03   -.56303E-04
  10  Prefactor     .10001E-03    6.7252        .27113E-02** at limit **
  11  norm          2.3432        1.0311        .26783E-04    .22293E-03
  12  Prefactor     .10000E-03    4.8033        .17278E-02** at limit **
  13  Prefactor     23.853        13.583        .82016E-04    .49901E-05
  14  Prefactor     .99409        1.0144        .79052E-04    .16553E-03
  15  Prefactor     4.9081        22.902        .18145E-03    .10213E-04
  16  Prefactor     29.572        37.631        .73674E-04    .15431E-05
  17  norm          3.3691        1.2945        .54452E-04    .87897E-04
  18  Prefactor     .10000E-03    1.1719        .85228E-03** at limit **
  19  Prefactor     6.3411        13.097        .15940E-03    .39940E-05
  20  Prefactor     5.7570        3.3017        .10716E-03    .91135E-04
  21  norm          11.376        3.5633        .80221E-04   -.13080E-03
  22  Prefactor     5.4715        7.2172        .85889E-03   -.10405E-03
  23  Prefactor     1.3963        1.3678        .88977E-04    .97745E-04
  24  Prefactor     1.8495        1.8513        .52303E-03   -.25727E-03
  25  Prefactor     .42949        9.4907        .30498E-02    .51258E-03
  26  norm          1.0673        .29787        .22296E-04   -.19019E-03
  27  norm          22.806        6.5868        .83886E-04    .60986E-04
  28  Prefactor     10.079        7.7652        .12622E-03    .39812E-04
  29  Prefactor     .10000E-03    29.154        .18142E-02** at limit **
  30  Normalizat    1.4252        .21029        .21204E-03   -.23130E-03
  31  Prefactor     .31667        .21822        .46541E-03   -.61141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.72155
  Prefactor  = 29.4965
  Prefactor  = 0.000100001
  norm       = 5.40004
  Prefactor  = 15.9026
  Prefactor  = 0.000100007
  norm       = 2.3432
  Prefactor  = 0.0001
  Prefactor  = 23.8531
  Prefactor  = 0.994093
  Prefactor  = 4.90812
  Prefactor  = 29.5718
  norm       = 3.36914
  Prefactor  = 0.0001
  Prefactor  = 6.34114
  Prefactor  = 5.75695
  norm       = 11.3757
  Prefactor  = 5.47152
  Prefactor  = 1.39628
  Prefactor  = 1.84951
  Prefactor  = 0.429485
  norm       = 1.06734
  norm       = 22.8057
  Prefactor  = 10.0786
  Prefactor  = 0.0001
  Normalizat = 1.4252
  Prefactor  = 0.31667
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.187     FROM HESSE     STATUS=OK           608 CALLS     4871 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0166        .15880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4676        .33290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.543        .91938E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72155        1.3261        .57610E-04   -1.5538    
   6  Prefactor     29.497        27.256        .73777E-04   -1.4621    
   7  Prefactor     .10000E-03    19.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.4000        2.4923        .32800E-05   -1.5243    
   9  Prefactor     15.903        11.529        .40142E-05   -1.4910    
  10  Prefactor     .10001E-03    6.7620        .54226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3432        1.0311        .53566E-05   -1.5402    
  12  Prefactor     .10000E-03    4.8035        .34556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.853        13.582        .32807E-05   -1.4731    
  14  Prefactor     .99409        1.0144        .31621E-05   -1.5509    
  15  Prefactor     4.9081        22.901        .72580E-05   -1.5265    
  16  Prefactor     29.572        37.634        .29470E-05   -1.4620    
  17  norm          3.3691        1.2945        .21781E-05   -1.5341    
  18  Prefactor     .10000E-03    1.1719        .17046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3411        13.097        .63760E-05   -1.5204    
  20  Prefactor     5.7570        3.3017        .42863E-05   -1.5228    
  21  norm          11.376        3.5630        .32088E-05   -1.5033    
  22  Prefactor     5.4715        7.2153        .34356E-04   -1.5240    
  23  Prefactor     1.3963        1.3678        .35591E-05   -1.5472    
  24  Prefactor     1.8495        1.8508        .20921E-04   -1.5436    
  25  Prefactor     .42949        9.4142        .12199E-03   -1.5577    
  26  norm          1.0673        .29782        .89183E-06   -1.5501    
  27  norm          22.806        6.5551        .33554E-05   -1.4752    
  28  Prefactor     10.079        7.7649        .50486E-05   -1.5073    
  29  Prefactor     .10000E-03    29.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4252        .21023        .42408E-04   -.79903    
  31  Prefactor     .31667        .21814        .18616E-04   -1.2130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86494e-09
Minuit parameter uncertainties:
  1  1.7751e-06
  2  0.000378021
  3  1.87655e-05
  4  0.000342159
  5  1.32612
  6  27.2673
  7  0.000231741
  8  2.49234
  9  11.5308
  10  0.000439436
  11  1.03109
  12  1.42125e-05
  13  13.5841
  14  1.01437
  15  21.2169
  16  37.6643
  17  1.29454
  18  6.21068e-06
  19  13.1029
  20  3.30176
  21  3.56311
  22  7.21641
  23  1.36779
  24  1.85086
  25  4.02181
  26  0.297823
  27  6.55531
  28  7.76572
  29  1.3768e-05
  30  0.21036
  31  0.218708
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.369e+00  1.295e+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.167e-01  2.187e-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.425e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.40
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 4.10e-05 +/- 1.57e-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) = 6525.1196057
delta logL = 0.0678714062378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6525.11758896
delta logL = 0.0698881467642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3522       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9748       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30789       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=   6525.118     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3516        1.4690        .55260E-02    .12023E-03
   2  alpha         1.9752        .35033        .24217       -.19196E-04
   3  Normalizat    1.4366        .19490        .47823E-01   -.12036E-04
   4  Prefactor     .30804        .21445        .10637        .59559E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35162
  alpha      = 1.97518
  Normalizat = 1.43657
  Prefactor  = 0.308036
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.118     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3516        1.3182        .55500E-04   -1.5342    
   2  alpha         1.9752        .33739        .99922E-02   -.21150    
   3  Normalizat    1.4366        .19946        .21140E-03   -.79577    
   4  Prefactor     .30804        .21712        .47154E-03   -1.2179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2137e-13
Minuit parameter uncertainties:
  1  1.31819
  2  0.338469
  3  0.19957
  4  0.217696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234938': 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) = 6525.1175879
delta logL = 0.0698892007449

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.352e+00  1.318e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.975e+00  3.385e-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.080e-01  2.177e-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.437e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.42
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.98 +/- 0.34
Photon Flux (Free Index): 8.32e-08 +/- 3.94e-08
Energy Flux (Free Index): 4.62e-05 +/- 2.41e-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/234938/cmap_HighResolution_446428801_446688001_4FGL_J1159.5+2914_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='4.62e-05', photon_flux_error='3.51e-08', dlogl='6.99e-02', energy_flux='4.10e-05', photon_flux2='8.32e-08', job_status='DONE', time_completed='2021-09-04 19:35:07.357096', photon_index_error2='0.34', photon_index2='1.98', ts='16.40', fit_tolerance='1e-08', GAL='0.32', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='1.43', time_epoch_completed='1630809307.36', return_code='0', job_id='234938', GAL2='0.31', EG2='1.44', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='3.94e-08', ts2='16.42', photon_index='2.10' WHERE bin_id='799' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 234938: <4FGL_J1159.5+2914_daily_bin799> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin799 179.884 29.2448 446428801 446688001 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 :                                   859.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            877 sec.

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

