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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin801
RA = 179.884, Dec = 29.2448
tmin = 446947201, tmax = 447206401
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='234941', job_status='RUN', time_executed='2021-09-04 19:20:52.145523', time_epoch_executed='1630808452.15' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234941/ft1_4FGL_J1159.5+2914_daily_bin801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234941/ft2_4FGL_J1159.5+2914_daily_bin801.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234941/ft1_4FGL_J1159.5+2914_daily_bin801.fits outfile=/scratch/kocevski/234941/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin801.fits ra=179.884 dec=29.2448 rad=12.0 tmin=446947201.0 tmax=447206401.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.39
user 3.17
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234941/ft1_filtered_4FGL_J1159.5+2914_daily_bin801.fits" evtable="EVENTS" scfile=/scratch/kocevski/234941/ft2_4FGL_J1159.5+2914_daily_bin801.fits sctable="SC_DATA" outfile=/scratch/kocevski/234941/ltcube_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.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/234941/ft2_4FGL_J1159.5+2914_daily_bin801.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234941/ft1_filtered_4FGL_J1159.5+2914_daily_bin801.fits evtable="EVENTS" scfile=/scratch/kocevski/234941/ft2_4FGL_J1159.5+2914_daily_bin801.fits sctable="SC_DATA" expcube=/scratch/kocevski/234941/ltcube_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.fits outfile=/scratch/kocevski/234941/expmap_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.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/234941/ltcube_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.fits
.....................!
real 189.42
user 184.93
sys 4.12

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/234941/ft1_filtered_4FGL_J1159.5+2914_daily_bin801.fits scfile=/scratch/kocevski/234941/ft2_4FGL_J1159.5+2914_daily_bin801.fits outfile=/scratch/kocevski/234941/cmap_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.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.58
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234941/ft1_filtered_4FGL_J1159.5+2914_daily_bin801.fits scfile=/scratch/kocevski/234941/ft2_4FGL_J1159.5+2914_daily_bin801.fits outfile=/scratch/kocevski/234941/cmap_HighResolution_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74253       1.0000         .10000E-03   10000.    
     2 'norm      '    .10713E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85092E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    5.9602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2897       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7472       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5488       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.235       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11796E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9748       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1775       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9971       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0238       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7165       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3687       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3107       1.0000         .10000E-03   10000.    
    27 'norm      '    144.16       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.586       1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.696       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .61613       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2430       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=   6940.775     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     3673 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74217        2.4374        .61943E-07   -.10859E-03
   2  norm          .18211E-03    10.572       -.36049E-05** at limit **
   3  norm          .10000E-03    3.2373        .12523E-07** at limit **
   4  Prefactor     .10000E-03    4.4346       -.15868E-07** at limit **
   5  Prefactor     .20468        1.7789        .40448E-06   -.15291E-03
   6  Prefactor     .10000E-03    42.018       -.48099E-06** at limit **
   7  Prefactor     .68827E-02    7.1508        .95694E-06   -.33838E-03
   8  norm          5.9584        3.2277       -.84726E-07   -.75196E-04
   9  Prefactor     7.6930        7.9060        .14646E-06   -.95045E-04
  10  Prefactor     3.2871        4.3166        .46427E-07   -.44933E-04
  11  norm          1.7478        1.0019        .19752E-06   -.15024E-03
  12  Prefactor     3.5581        14.729        .11663E-05    .20416E-05
  13  Prefactor     9.5697        9.1733        .39492E-05    .39148E-03
  14  Prefactor     1.1248        1.2216       -.64553E-07   -.25517E-03
  15  Prefactor     .10000E-03    22.496        .51880E-06** at limit **
  16  Prefactor     51.290        44.555       -.85381E-05   -.18790E-03
  17  norm          2.4311        1.2832       -.14176E-07   -.88333E-04
  18  Prefactor     .10000E-03    1.7098       -.33306E-07** at limit **
  19  Prefactor     .10000E-03    30.960       -.56748E-06** at limit **
  20  Prefactor     1.9741        3.4348       -.14952E-06   -.11620E-03
  21  norm          3.1780        2.6722       -.52923E-07   -.21772E-04
  22  Prefactor     2.0022        1.7908        .23190E-06   -.16119E-02
  23  Prefactor     3.0243        2.3570        .39193E-07    .68982E-06
  24  Prefactor     1.7178        1.9333       -.45313E-08   -.51013E-04
  25  Prefactor     2.3703        4.5457       -.50329E-06   -.99672E-04
  26  norm          1.3108        .34406       -.72292E-08   -.58433E-04
  27  norm          144.16        14.377        .13829E-06    .73584E-04
  28  Prefactor     14.582        12.592        .16628E-06    .95997E-05
  29  Prefactor     11.705        43.664       -.10181E-04   -.54708E-04
  30  Normalizat    .61625        .17795       -.16451E-06    .80277E-04
  31  Prefactor     1.2426        .19916       -.20710E-07    .13709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.742174
  norm       = 0.000182107
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.204678
  Prefactor  = 0.0001
  Prefactor  = 0.00688272
  norm       = 5.95838
  Prefactor  = 7.69296
  Prefactor  = 3.2871
  norm       = 1.74775
  Prefactor  = 3.55808
  Prefactor  = 9.56972
  Prefactor  = 1.12483
  Prefactor  = 0.0001
  Prefactor  = 51.29
  norm       = 2.43112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97405
  norm       = 3.17803
  Prefactor  = 2.00219
  Prefactor  = 3.0243
  Prefactor  = 1.71779
  Prefactor  = 2.37029
  norm       = 1.31085
  norm       = 144.159
  Prefactor  = 14.5822
  Prefactor  = 11.7045
  Normalizat = 0.616255
  Prefactor  = 1.24263
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.775     FROM HESSE     STATUS=OK           652 CALLS     4325 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74217        2.3981        .22688E-03   -1.5536    
   2  norm          .18211E-03    11.630        .79909E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2466        .14638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4420        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20468        3.5243        .19536E-02   -1.5618    
   6  Prefactor     .10000E-03    42.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .68827E-02    9.0458        .75710E-01   -1.5691    
   8  norm          5.9584        3.1540        .99516E-04   -1.5220    
   9  Prefactor     7.6930        7.9253        .14455E-03   -1.5153    
  10  Prefactor     3.2871        4.2557        .18335E-03   -1.5345    
  11  norm          1.7478        1.0000        .59700E-04   -1.5444    
  12  Prefactor     3.5581        14.688        .21456E-03   -1.5331    
  13  Prefactor     9.5697        9.1773        .12956E-03   -1.5089    
  14  Prefactor     1.1248        1.2210        .22090E-03   -1.5496    
  15  Prefactor     .10000E-03    22.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.290        44.616        .28015E-03   -1.4274    
  17  norm          2.4311        1.2788        .64797E-04   -1.5396    
  18  Prefactor     .10000E-03    1.7253        .10624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9741        3.4221        .19298E-03   -1.5427    
  21  norm          3.1780        2.6729        .11548E-03   -1.5351    
  22  Prefactor     2.0022        5.5223        .14655E-02   -1.5425    
  23  Prefactor     3.0243        2.3530        .10458E-03   -1.5360    
  24  Prefactor     1.7178        1.9098        .11681E-03   -1.5446    
  25  Prefactor     2.3703        4.5197        .23714E-03   -1.5400    
  26  norm          1.3108        .34348        .23870E-04   -1.5479    
  27  norm          144.16        14.357        .33557E-04   -1.3301    
  28  Prefactor     14.582        12.575        .10487E-03   -1.4944    
  29  Prefactor     11.705        43.694        .11714E-03   -1.5024    
  30  Normalizat    .61625        .20651        .32283E-03   -1.0730    
  31  Prefactor     1.2426        .23339        .28014E-03   -.85029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09494e-08
Minuit parameter uncertainties:
  1  2.39842
  2  0.0618141
  3  9.80338e-07
  4  2.17102e-06
  5  1.69833
  6  2.78547e-05
  7  0.495476
  8  3.15407
  9  7.92641
  10  4.25607
  11  1.00004
  12  14.4642
  13  9.17868
  14  1.22105
  15  2.31034e-05
  16  44.6453
  17  1.27882
  18  7.64078e-06
  19  1.53181e-05
  20  3.42243
  21  2.67304
  22  5.5237
  23  2.35303
  24  1.90989
  25  4.52034
  26  0.343482
  27  14.3576
  28  12.577
  29  43.814
  30  0.206772
  31  0.233589
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.431e+00  1.279e+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.243e+00  2.336e-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:  6.163e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.41
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.56e-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) = 6939.93362097
delta logL = 0.841605114784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6939.9220337
delta logL = 0.853192380123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9412       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7966       1.0000          .0000       5.0000    
     3 'Normalizat'    .56141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2872       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=   6939.922     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      276 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9412        1.3155        .49309E-04   -.10484E-02
   2  alpha         2.7966        .63138        .12216E-01   -.51873E-04
   3  Normalizat    .56142        .19873        .33679E-03    .57216E-04
   4  Prefactor     1.2872        .23531        .27584E-03    .51230E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94121
  alpha      = 2.79664
  Normalizat = 0.561425
  Prefactor  = 1.28719
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.922     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9412        1.2440        .19724E-05   -1.5429    
   2  alpha         2.7966        .59736        .48863E-03    .11893    
   3  Normalizat    .56142        .19862        .13472E-04   -1.0965    
   4  Prefactor     1.2872        .23511        .11033E-04   -.83689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22852e-10
Minuit parameter uncertainties:
  1  1.24404
  2  0.603286
  3  0.198868
  4  0.235299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234941': 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) = 6939.92203369
delta logL = 0.85319238833

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.941e+00  1.244e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.797e+00  6.033e-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.287e+00  2.353e-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:  5.614e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.10
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.80 +/- 0.60
Photon Flux (Free Index): 1.01e-07 +/- 4.91e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/234941/cmap_HighResolution_446947201_447206401_4FGL_J1159.5+2914_daily_bin801.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='2.28e-05', photon_flux_error='3.47e-08', dlogl='8.53e-01', energy_flux='2.96e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-04 19:35:04.016635', photon_index_error2='0.60', photon_index2='2.80', ts='7.41', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.62', time_epoch_completed='1630809304.02', return_code='0', job_id='234941', GAL2='1.29', EG2='0.56', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='4.91e-08', ts2='9.10', photon_index='2.10' WHERE bin_id='801' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:35:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 234941: <4FGL_J1159.5+2914_daily_bin801> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin801 179.884 29.2448 446947201 447206401 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 :                                   850.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

