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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1060
RA = 179.884, Dec = 29.2448
tmin = 514080001, tmax = 514339201
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='236547', job_status='RUN', time_executed='2021-09-04 19:27:56.304968', time_epoch_executed='1630808876.3' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236547/ft1_4FGL_J1159.5+2914_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236547/ft1_4FGL_J1159.5+2914_daily_bin1060.fits outfile=/scratch/kocevski/236547/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1060.fits ra=179.884 dec=29.2448 rad=12.0 tmin=514080001.0 tmax=514339201.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.69
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.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/236547/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/236547/ft1_filtered_4FGL_J1159.5+2914_daily_bin1060.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/236547/ft1_filtered_4FGL_J1159.5+2914_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/236547/ltcube_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.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/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.fits
.....................!
real 12.54
user 12.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236547/ft1_filtered_4FGL_J1159.5+2914_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/236547/ltcube_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.fits outfile=/scratch/kocevski/236547/expmap_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.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/236547/ltcube_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.fits
.....................!
real 190.44
user 185.73
sys 4.13

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/236547/ft1_filtered_4FGL_J1159.5+2914_daily_bin1060.fits scfile=/scratch/kocevski/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.fits outfile=/scratch/kocevski/236547/cmap_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236547/ft1_filtered_4FGL_J1159.5+2914_daily_bin1060.fits scfile=/scratch/kocevski/236547/ft2_4FGL_J1159.5+2914_daily_bin1060.fits outfile=/scratch/kocevski/236547/cmap_HighResolution_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.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.67
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.309       1.0000         .10000E-03   10000.    
     3 'norm      '    12.548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43715E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.542       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67561E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4459       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.381       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8661       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0043       1.0000         .10000E-03   10000.    
    21 'norm      '    13.539       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12700E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8344       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .79615       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2392       1.0000         .10000E-03   10000.    
    26 'norm      '    .20385E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    14.925       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3089       1.0000         .10000E-03   10000.    
    29 'Prefactor '    62.648       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6296.794     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     3631 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1972        .15937E-06** at limit **
   2  norm          27.315        1.1530        .18814E-06   -.38147E-03
   3  norm          12.547        1.0615       -.32340E-06    .20716E-03
   4  Prefactor     .10000E-03    10.792       -.55051E-06** at limit **
   5  Prefactor     .10000E-03    4.6557       -.24481E-07** at limit **
   6  Prefactor     .10000E-03    50.409       -.32861E-05** at limit **
   7  Prefactor     18.540        1.0479       -.12404E-06    .25228E-03
   8  norm          2.1908        2.4508       -.56530E-06    .82458E-04
   9  Prefactor     .10000E-03    5.2210       -.53350E-06** at limit **
  10  Prefactor     .10000E-03    26.200       -.39989E-04** at limit **
  11  norm          3.4431        1.3731       -.21856E-07   -.51071E-03
  12  Prefactor     2.3731        1.0582       -.20629E-06    .58401E-04
  13  Prefactor     20.380        1.0801       -.25007E-06    .38815E-03
  14  Prefactor     2.0301        1.3876       -.22452E-07    .12664E-03
  15  Prefactor     .10007E-03    48.723        .94738E-05** at limit **
  16  Prefactor     .10003E-03    214.59       -.22073E-04** at limit **
  17  norm          2.8657        1.5395       -.10377E-06    .18960E-04
  18  Prefactor     .10000E-03    2.5354       -.25535E-06** at limit **
  19  Prefactor     .10000E-03    20.166        .63172E-05** at limit **
  20  Prefactor     1.0045        1.4733       -.11931E-06   -.14285E-03
  21  norm          13.539        4.6049       -.80599E-06   -.62170E-05
  22  Prefactor     .10010E-03    48.489        .75000E-05** at limit **
  23  Prefactor     3.8343        2.7045        .27928E-06    .83487E-04
  24  Prefactor     .79616        2.2444        .26883E-06   -.73547E-04
  25  Prefactor     7.2390        3.5285       -.41006E-06    .78736E-04
  26  norm          .20521E-01    .41325        .15370E-07    .25593E-03
  27  norm          14.924        4.3685       -.58065E-06   -.13218E-03
  28  Prefactor     7.3090        1.3286        .12301E-05    .37991E-03
  29  Prefactor     62.636        3.3753       -.87371E-06    .37028E-02
  30  Normalizat    1.0335        .21181        .39333E-06   -.98319E-05
  31  Prefactor     .95568        .23466        .80426E-06    .20648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 27.3154
  norm       = 12.5468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.5396
  norm       = 2.19079
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.44311
  Prefactor  = 2.3731
  Prefactor  = 20.3803
  Prefactor  = 2.03013
  Prefactor  = 0.000100073
  Prefactor  = 0.000100029
  norm       = 2.86566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00452
  norm       = 13.5389
  Prefactor  = 0.000100096
  Prefactor  = 3.83431
  Prefactor  = 0.79616
  Prefactor  = 7.23898
  norm       = 0.0205211
  norm       = 14.9243
  Prefactor  = 7.309
  Prefactor  = 62.6361
  Normalizat = 1.03348
  Prefactor  = 0.95568
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.794     FROM HESSE     STATUS=OK           718 CALLS     4349 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.315        16.429        .19165E-02   -1.4662    
   3  norm          12.547        13.116        .28271E-02   -1.4999    
   4  Prefactor     .10000E-03    10.759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4659        .48466E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.540        17.528        .23253E-02   -1.4847    
   8  norm          2.1908        2.5381        .69570E-02   -1.5412    
   9  Prefactor     .10000E-03    5.2147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1933        .79126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4431        1.3804        .54469E-02   -1.5337    
  12  Prefactor     2.3731        37.103        .66451E-02   -1.5400    
  13  Prefactor     20.380        14.839        .22180E-02   -1.4805    
  14  Prefactor     2.0301        1.4070        .72582E-02   -1.5423    
  15  Prefactor     .10007E-03    95.215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    214.11        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8657        1.5599        .60029E-02   -1.5369    
  18  Prefactor     .10000E-03    2.5048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0045        1.9017        .27106E-01   -1.5508    
  21  norm          13.539        4.6381        .27214E-02   -1.4972    
  22  Prefactor     .10010E-03    5.0407        .64741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.8343        2.7099        .51526E-02   -1.5316    
  24  Prefactor     .79616        2.3181        .12426E-01   -1.5530    
  25  Prefactor     7.2390        6.6142        .37270E-02   -1.5170    
  26  norm          .20521E-01    .11755        .14745E-01   -1.5679    
  27  norm          14.924        6.2307        .25919E-02   -1.4935    
  28  Prefactor     7.3090        8.5150        .37090E-02   -1.5167    
  29  Prefactor     62.636        90.300        .12674E-02   -1.4123    
  30  Normalizat    1.0335        .19339        .41841E-01   -.91917    
  31  Prefactor     .95568        .20337        .67549E-01   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86831e-07
Minuit parameter uncertainties:
  1  1.98713e-06
  2  16.4319
  3  13.1187
  4  4.68538e-05
  5  8.16586e-06
  6  0.000458553
  7  17.5332
  8  2.53821
  9  1.58553e-05
  10  9.56037e-05
  11  1.3804
  12  18.7803
  13  14.8414
  14  1.40706
  15  0.00529651
  16  0.00500349
  17  1.55997
  18  5.5829e-06
  19  0.000123056
  20  1.90184
  21  4.63826
  22  0.00139155
  23  2.71
  24  2.31838
  25  6.61482
  26  0.0979893
  27  6.231
  28  8.51639
  29  90.4979
  30  0.193522
  31  0.203529
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.866e+00  1.560e+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:  9.557e-01  2.035e-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.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.00
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 1.90e-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) = 6296.33327661
delta logL = 0.460628420213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6296.3157389
delta logL = 0.478166130215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9365       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5307       1.0000          .0000       5.0000    
     3 'Normalizat'    .99171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98217       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=   6296.316     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9365        1.4375        .58691E-04   -.14847E-02
   2  alpha         2.5307        .44581        .11570E-01   -.80096E-04
   3  Normalizat    .99173        .21395        .26350E-03    .35422E-04
   4  Prefactor     .98217        .23484        .29496E-03    .66256E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93651
  alpha      = 2.5307
  Normalizat = 0.991727
  Prefactor  = 0.982173
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.316     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9365        1.4211        .23477E-05   -1.5365    
   2  alpha         2.5307        .44052        .46281E-03    .12279E-01
   3  Normalizat    .99173        .21418        .10540E-04   -.93308    
   4  Prefactor     .98217        .23500        .11798E-04   -.93326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65852e-10
Minuit parameter uncertainties:
  1  1.42112
  2  0.442836
  3  0.214362
  4  0.235249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236547': 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) = 6296.31573888
delta logL = 0.47816615098

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.937e+00  1.421e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.531e+00  4.428e-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:  9.822e-01  2.352e-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:  9.917e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.92
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.53 +/- 0.44
Photon Flux (Free Index): 1.16e-07 +/- 6.21e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.48e-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/236547/cmap_HighResolution_514080001_514339201_4FGL_J1159.5+2914_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='3.16e-05', photon_flux_error='4.23e-08', dlogl='4.78e-01', energy_flux='3.48e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-04 19:41:03.297697', photon_index_error2='0.44', photon_index2='2.53', ts='9.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.03', time_epoch_completed='1630809663.3', return_code='0', job_id='236547', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='6.21e-08', ts2='9.92', photon_index='2.10' WHERE bin_id='1060' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 236547: <4FGL_J1159.5+2914_daily_bin1060> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1060 179.884 29.2448 514080001 514339201 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

