/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 41 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 = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1523
RA = 179.884, Dec = 29.2448
tmin = 634089601, tmax = 634348801
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='237974', job_status='RUN', time_executed='2021-09-04 19:32:20.162301', time_epoch_executed='1630809140.16' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237974

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237974/ft1_4FGL_J1159.5+2914_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237974/ft2_4FGL_J1159.5+2914_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237974/ft1_4FGL_J1159.5+2914_daily_bin1523.fits outfile=/scratch/kocevski/237974/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1523.fits ra=179.884 dec=29.2448 rad=12.0 tmin=634089601.0 tmax=634348801.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.02
user 4.68
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237974/ft1_filtered_4FGL_J1159.5+2914_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/237974/ft2_4FGL_J1159.5+2914_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/237974/ltcube_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.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/237974/ft2_4FGL_J1159.5+2914_daily_bin1523.fits
.....................!
real 11.75
user 11.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237974/ft1_filtered_4FGL_J1159.5+2914_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/237974/ft2_4FGL_J1159.5+2914_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/237974/ltcube_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.fits outfile=/scratch/kocevski/237974/expmap_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.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/237974/ltcube_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.fits
.....................!
real 193.73
user 185.14
sys 3.96

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/237974/ft1_filtered_4FGL_J1159.5+2914_daily_bin1523.fits scfile=/scratch/kocevski/237974/ft2_4FGL_J1159.5+2914_daily_bin1523.fits outfile=/scratch/kocevski/237974/cmap_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237974/ft1_filtered_4FGL_J1159.5+2914_daily_bin1523.fits scfile=/scratch/kocevski/237974/ft2_4FGL_J1159.5+2914_daily_bin1523.fits outfile=/scratch/kocevski/237974/cmap_HighResolution_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4650       1.0000         .10000E-03   10000.    
     2 'norm      '    12.524       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 '    1.5450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70774E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4130       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    93.998       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6223       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6172       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11417E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9935       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2308       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2557       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    20.053       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .27842E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .69836       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=   5994.714     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4193 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4663        3.9240       -.23479E-06   -.79015E-05
   2  norm          12.527        14.293       -.11108E-05   -.36404E-04
   3  norm          .10000E-03    3.9953       -.32193E-07** at limit **
   4  Prefactor     .10000E-03    8.6638       -.27533E-06** at limit **
   5  Prefactor     1.5465        2.7169       -.46782E-06   -.10510E-02
   6  Prefactor     .10000E-03    43.211        .26586E-05** at limit **
   7  Prefactor     .10000E-03    10.118        .29283E-06** at limit **
   8  norm          3.0640        2.7007       -.34830E-06   -.55965E-03
   9  Prefactor     .10030E-03    7.6665        .99884E-06** at limit **
  10  Prefactor     2.4136        3.4443       -.98421E-07   -.40053E-03
  11  norm          1.4507        1.3737        .38545E-05    .78142E-03
  12  Prefactor     .10000E-03    25.613        .23337E-05** at limit **
  13  Prefactor     .50942        8.8855        .95835E-06   -.67932E-03
  14  Prefactor     2.5893        2.1701       -.33613E-06   -.66013E-03
  15  Prefactor     7.4985        19.567       -.77447E-05   -.66506E-04
  16  Prefactor     93.931        74.501       -.53248E-04   -.34632E-04
  17  norm          5.6233        1.6064       -.19125E-07   -.16190E-03
  18  Prefactor     7.6163        4.4647       -.32283E-06   -.26900E-03
  19  Prefactor     .10000E-03    15.396       -.58146E-06** at limit **
  20  Prefactor     .10000E-03    1.2973       -.10200E-06** at limit **
  21  norm          2.9937        3.2229       -.14256E-06   -.28023E-03
  22  Prefactor     .10000E-03    5.0114       -.73675E-07** at limit **
  23  Prefactor     7.2309        3.4500       -.17222E-07   -.49014E-04
  24  Prefactor     8.2558        3.0351       -.11764E-06   -.30727E-04
  25  Prefactor     .10000E-03    2.1756       -.10175E-07** at limit **
  26  norm          .10000E-03    .80854E-01   -.42084E-07** at limit **
  27  norm          20.054        5.9428       -.41604E-07    .61283E-04
  28  Prefactor     .10000E-03    5.5396        .19699E-07** at limit **
  29  Prefactor     .10000E-03    173.41        .40799E-05** at limit **
  30  Normalizat    1.0366        .17958        .31762E-05   -.34816E-03
  31  Prefactor     .69838        .19514       -.59763E-06   -.35005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.46625
  norm       = 12.5268
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.54648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.06397
  Prefactor  = 0.000100301
  Prefactor  = 2.41361
  norm       = 1.45068
  Prefactor  = 0.0001
  Prefactor  = 0.509415
  Prefactor  = 2.58931
  Prefactor  = 7.4985
  Prefactor  = 93.9313
  norm       = 5.62329
  Prefactor  = 7.6163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99369
  Prefactor  = 0.0001
  Prefactor  = 7.23093
  Prefactor  = 8.25585
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.0537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03655
  Prefactor  = 0.698376
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.714     FROM HESSE     STATUS=OK           632 CALLS     4825 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4663        3.9305        .10097E-03   -1.5126    
   2  norm          12.527        14.261        .11319E-03   -1.5000    
   3  norm          .10000E-03    4.0082        .15112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5465        2.6563        .14815E-03   -1.5459    
   6  Prefactor     .10000E-03    43.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0640        2.6577        .10795E-03   -1.5358    
   9  Prefactor     .10030E-03    64.326        .40500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4136        3.4095        .16288E-03   -1.5397    
  11  norm          1.4507        1.3531        .73261E-04   -1.5467    
  12  Prefactor     .10000E-03    26.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .50942        53.197        .43134E-02   -1.5565    
  14  Prefactor     2.5893        2.1597        .98105E-04   -1.5386    
  15  Prefactor     7.4985        19.588        .14657E-03   -1.5160    
  16  Prefactor     93.931        74.307        .20727E-03   -1.3767    
  17  norm          5.6233        1.6066        .49797E-04   -1.5234    
  18  Prefactor     7.6163        4.4303        .11654E-03   -1.5156    
  19  Prefactor     .10000E-03    15.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1666        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9937        3.2181        .12584E-03   -1.5362    
  22  Prefactor     .10000E-03    5.0632        .16921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.2309        3.4559        .86503E-04   -1.5170    
  24  Prefactor     8.2558        3.0333        .76116E-04   -1.5133    
  25  Prefactor     .10000E-03    2.1835        .11149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .12298        .42675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          20.054        5.9389        .89443E-04   -1.4812    
  28  Prefactor     .10000E-03    5.6069        .17792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    176.51        .19908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0366        .20640        .23268E-03   -.91816    
  31  Prefactor     .69838        .22450        .31746E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36565e-08
Minuit parameter uncertainties:
  1  3.93059
  2  14.2651
  3  9.45756e-06
  4  1.74732e-05
  5  2.6565
  6  6.92764e-05
  7  2.9799e-05
  8  2.65784
  9  0.00881647
  10  3.4098
  11  1.35309
  12  8.07678e-05
  13  10.4199
  14  2.15981
  15  19.6048
  16  74.3803
  17  1.60657
  18  4.4305
  19  3.42235e-05
  20  1.84427e-05
  21  3.21828
  22  8.17492e-06
  23  3.45598
  24  3.03335
  25  3.23482e-06
  26  1.42869e-06
  27  5.93908
  28  9.4759e-06
  29  0.000534385
  30  0.206559
  31  0.224793
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.623e+00  1.607e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  6.984e-01  2.248e-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.037e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.01
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 4.36e-08
Energy Flux (Fixed Index): 6.84e-05 +/- 1.95e-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) = 5994.70947856
delta logL = 0.00452161390604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5994.70929376
delta logL = 0.00470641027096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6230       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1284       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70048       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=   5994.709     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6184        1.8114        .42352E-02    .71409E-04
   2  alpha         2.1284        .28637        .17541        .15065E-05
   3  Normalizat    1.0334        .17088        .41843E-01    .13724E-04
   4  Prefactor     .70050        .19385        .71625E-01    .26563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61841
  alpha      = 2.12843
  Normalizat = 1.0334
  Prefactor  = 0.700504
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.709     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .45E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6184        1.5915        .49538E-04   -1.5234    
   2  alpha         2.1284        .25925        .75225E-02   -.14918    
   3  Normalizat    1.0334        .19844        .23297E-03   -.91920    
   4  Prefactor     .70050        .22375        .31700E-03   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54847e-14
Minuit parameter uncertainties:
  1  1.59148
  2  0.259723
  3  0.198583
  4  0.224035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237974': 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) = 5994.70928957
delta logL = 0.0047106062093

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.618e+00  1.591e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.128e+00  2.597e-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.005e-01  2.240e-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.033e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.68
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.13 +/- 0.26
Photon Flux (Free Index): 1.56e-07 +/- 5.22e-08
Energy Flux (Free Index): 6.70e-05 +/- 2.34e-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/237974/cmap_HighResolution_634089601_634348801_4FGL_J1159.5+2914_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='6.70e-05', photon_flux_error='4.36e-08', dlogl='4.71e-03', energy_flux='6.84e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-04 19:46:57.969433', photon_index_error2='0.26', photon_index2='2.13', ts='37.01', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.04', time_epoch_completed='1630810017.97', return_code='0', job_id='237974', GAL2='0.70', EG2='1.03', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.22e-08', ts2='36.68', photon_index='2.10' WHERE bin_id='1523' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:46:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 237974: <4FGL_J1159.5+2914_daily_bin1523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1523 179.884 29.2448 634089601 634348801 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 :                                   807.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

