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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1003
RA = 179.884, Dec = 29.2448
tmin = 499305601, tmax = 499564801
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='236451', job_status='RUN', time_executed='2021-09-04 19:26:10.571804', time_epoch_executed='1630808770.57' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236451/ft1_4FGL_J1159.5+2914_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236451/ft2_4FGL_J1159.5+2914_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236451/ft1_4FGL_J1159.5+2914_daily_bin1003.fits outfile=/scratch/kocevski/236451/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1003.fits ra=179.884 dec=29.2448 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.44
user 5.12
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236451/ft1_filtered_4FGL_J1159.5+2914_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/236451/ft2_4FGL_J1159.5+2914_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/236451/ltcube_499305601_499564801_4FGL_J1159.5+2914_daily_bin1003.fits outfile=/scratch/kocevski/236451/expmap_499305601_499564801_4FGL_J1159.5+2914_daily_bin1003.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/236451/ltcube_499305601_499564801_4FGL_J1159.5+2914_daily_bin1003.fits
.....................!
real 190.98
user 184.50
sys 5.69

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/236451/ft1_filtered_4FGL_J1159.5+2914_daily_bin1003.fits scfile=/scratch/kocevski/236451/ft2_4FGL_J1159.5+2914_daily_bin1003.fits outfile=/scratch/kocevski/236451/cmap_499305601_499564801_4FGL_J1159.5+2914_daily_bin1003.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236451/ft1_filtered_4FGL_J1159.5+2914_daily_bin1003.fits scfile=/scratch/kocevski/236451/ft2_4FGL_J1159.5+2914_daily_bin1003.fits outfile=/scratch/kocevski/236451/cmap_HighResolution_499305601_499564801_4FGL_J1159.5+2914_daily_bin1003.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4804       1.0000         .10000E-03   10000.    
     2 'norm      '    .28724E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2020       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2745       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.123       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9195       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6454       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4341       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.9289       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    205.20       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3681       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85388       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=   4540.437     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4824 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4802        2.6170        .23682E-06    .16659E-03
   2  norm          .10346E-03    25.167       -.51915E-05** at limit **
   3  norm          6.7511        13.629       -.26172E-06    .32641E-05
   4  Prefactor     .10000E-03    12.402        .43947E-06** at limit **
   5  Prefactor     .23615        1.8866       -.38198E-06    .31019E-03
   6  Prefactor     .10000E-03    88.460        .27185E-06** at limit **
   7  Prefactor     2.2154        51.683        .16320E-05    .47057E-04
   8  norm          .10000E-03    1.2861        .85958E-07** at limit **
   9  Prefactor     .10000E-03    7.0504        .70671E-07** at limit **
  10  Prefactor     .10000E-03    10.680        .94284E-06** at limit **
  11  norm          2.5250        1.6947       -.32826E-06   -.11217E-02
  12  Prefactor     .10000E-03    10.576        .18925E-06** at limit **
  13  Prefactor     .10000E-03    4.8913        .20990E-06** at limit **
  14  Prefactor     1.2756        1.8365        .41429E-06    .39865E-03
  15  Prefactor     .10000E-03    14.068        .30833E-06** at limit **
  16  Prefactor     10.217        194.09        .69322E-05    .95749E-05
  17  norm          5.9002        2.0826       -.61143E-07   -.41936E-03
  18  Prefactor     .10000E-03    3.0650        .50727E-06** at limit **
  19  Prefactor     .10000E-03    17.576        .17844E-06** at limit **
  20  Prefactor     6.9190        4.2567       -.13212E-06   -.39030E-03
  21  norm          2.6452        2.6329        .58648E-08   -.35839E-04
  22  Prefactor     .10000E-03    5.2194        .70371E-07** at limit **
  23  Prefactor     .10000E-03    1.7081       -.12296E-06** at limit **
  24  Prefactor     6.4346        3.7705        .30961E-07   -.22389E-04
  25  Prefactor     .10000E-03    5.1095        .15663E-06** at limit **
  26  norm          .10000E-03    .17155        .23465E-06** at limit **
  27  norm          9.9254        7.1064       -.16378E-06   -.28387E-03
  28  Prefactor     .10000E-03    21.945       -.17379E-05** at limit **
  29  Prefactor     204.93        149.02       -.66405E-06   -.60138E-04
  30  Normalizat    1.3683        .28408        .58427E-05   -.36851E-03
  31  Prefactor     .85363        .29574       -.10069E-04   -.36787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48016
  norm       = 0.000103458
  norm       = 6.75106
  Prefactor  = 0.0001
  Prefactor  = 0.236149
  Prefactor  = 0.0001
  Prefactor  = 2.21538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.52504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.27561
  Prefactor  = 0.0001
  Prefactor  = 10.2168
  norm       = 5.90023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91898
  norm       = 2.6452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43458
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.92536
  Prefactor  = 0.000100001
  Prefactor  = 204.929
  Normalizat = 1.36825
  Prefactor  = 0.853628
 **********
 **   18 **HESSE 
 **********

 FCN=   4540.437     FROM HESSE     STATUS=OK           624 CALLS     5448 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4802        2.5790        .14106E-03   -1.5465    
   2  norm          .10346E-03    180.26        .50118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7511        13.641        .15449E-03   -1.5188    
   4  Prefactor     .10000E-03    12.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .23615        6.9397        .17227E-02   -1.5611    
   6  Prefactor     .10000E-03    88.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2154        52.335        .27726E-03   -1.5410    
   8  norm          .10000E-03    1.2964        .74535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0560        .17468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5250        1.7083        .63049E-04   -1.5390    
  12  Prefactor     .10000E-03    10.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9118        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2756        1.8121        .10580E-03   -1.5482    
  15  Prefactor     .10000E-03    14.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.217        195.78        .12594E-03   -1.5069    
  17  norm          5.9002        2.0814        .55001E-04   -1.5222    
  18  Prefactor     .10000E-03    3.1240        .11535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9190        4.2508        .10481E-03   -1.5182    
  21  norm          2.6452        2.6096        .10413E-03   -1.5383    
  22  Prefactor     .10000E-03    5.2323        .15035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6269        .16823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.4346        3.7560        .93798E-04   -1.5201    
  25  Prefactor     .10000E-03    5.1385        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .47675        .52220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.9254        7.0905        .12717E-03   -1.5078    
  28  Prefactor     .10000E-03    22.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     204.93        149.22        .14107E-03   -1.2835    
  30  Normalizat    1.3683        .29172        .24506E-03   -.81551    
  31  Prefactor     .85363        .30436        .33125E-03   -.97781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93828e-08
Minuit parameter uncertainties:
  1  2.57915
  2  0.0500875
  3  13.6476
  4  8.00339e-05
  5  2.56011
  6  0.000248213
  7  21.556
  8  6.24886e-06
  9  9.2232e-06
  10  0.000157044
  11  1.70832
  12  2.23596e-05
  13  2.36844e-05
  14  1.81216
  15  5.18258e-05
  16  89.7882
  17  2.08139
  18  3.76139e-05
  19  2.94578e-05
  20  4.251
  21  2.60972
  22  9.32518e-06
  23  1.24498e-05
  24  3.75612
  25  1.84547e-05
  26  6.57024e-06
  27  7.09114
  28  0.000322255
  29  149.501
  30  0.292076
  31  0.304966
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.900e+00  2.081e+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:  8.536e-01  3.050e-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.368e+00  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.38
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 5.65e-08
Energy Flux (Fixed Index): 7.17e-05 +/- 2.53e-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) = 4540.34701179
delta logL = 0.0896848095417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4540.34365633
delta logL = 0.0930402687936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8774       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2519       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86979       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=   4540.344     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      202 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8774        2.7255        .41412E-02   -.23121E-03
   2  alpha         2.2519        .44322        .20000       -.59986E-04
   3  Normalizat    1.3457        .23067        .55772E-01   -.96217E-05
   4  Prefactor     .86979        .25206        .74221E-01    .23023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.8774
  alpha      = 2.25186
  Normalizat = 1.34574
  Prefactor  = 0.869788
 **********
 **   18 **HESSE 
 **********

 FCN=   4540.344     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8774        2.0397        .53400E-04   -1.5223    
   2  alpha         2.2519        .34695        .84790E-02   -.99420E-01
   3  Normalizat    1.3457        .27960        .24662E-03   -.82211    
   4  Prefactor     .86979        .30309        .32846E-03   -.97205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35109e-11
Minuit parameter uncertainties:
  1  2.0397
  2  0.348085
  3  0.279914
  4  0.303673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236451': 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) = 4540.34365632
delta logL = 0.0930402729446

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.877e+00  2.040e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.252e+00  3.481e-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:  8.698e-01  3.037e-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.346e+00  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.44
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.25 +/- 0.35
Photon Flux (Free Index): 1.80e-07 +/- 7.51e-08
Energy Flux (Free Index): 6.54e-05 +/- 2.59e-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/236451/cmap_HighResolution_499305601_499564801_4FGL_J1159.5+2914_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='6.54e-05', photon_flux_error='5.65e-08', dlogl='9.30e-02', energy_flux='7.17e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-04 19:38:14.804248', photon_index_error2='0.35', photon_index2='2.25', ts='22.38', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='1.37', time_epoch_completed='1630809494.8', return_code='0', job_id='236451', GAL2='0.87', EG2='1.35', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='7.51e-08', ts2='22.44', photon_index='2.10' WHERE bin_id='1003' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:38:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 236451: <4FGL_J1159.5+2914_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1003> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 19:25:31 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:25:32 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:25:32 2021
Terminated at Sat Sep  4 19:38:15 2021
Results reported at Sat Sep  4 19:38:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1003 179.884 29.2448 499305601 499564801 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

