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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1586
RA = 179.884, Dec = 29.2448
tmin = 650419201, tmax = 650678401
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='239490', job_status='RUN', time_executed='2021-09-04 19:35:41.292860', time_epoch_executed='1630809341.29' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239490/ft1_4FGL_J1159.5+2914_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239490/ft2_4FGL_J1159.5+2914_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239490/ft1_4FGL_J1159.5+2914_daily_bin1586.fits outfile=/scratch/kocevski/239490/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1586.fits ra=179.884 dec=29.2448 rad=12.0 tmin=650419201.0 tmax=650678401.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.60
user 3.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239490/ft1_filtered_4FGL_J1159.5+2914_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/239490/ft2_4FGL_J1159.5+2914_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/239490/ltcube_650419201_650678401_4FGL_J1159.5+2914_daily_bin1586.fits outfile=/scratch/kocevski/239490/expmap_650419201_650678401_4FGL_J1159.5+2914_daily_bin1586.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/239490/ltcube_650419201_650678401_4FGL_J1159.5+2914_daily_bin1586.fits
.....................!
real 192.44
user 186.83
sys 5.11

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/239490/ft1_filtered_4FGL_J1159.5+2914_daily_bin1586.fits scfile=/scratch/kocevski/239490/ft2_4FGL_J1159.5+2914_daily_bin1586.fits outfile=/scratch/kocevski/239490/cmap_650419201_650678401_4FGL_J1159.5+2914_daily_bin1586.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239490/ft1_filtered_4FGL_J1159.5+2914_daily_bin1586.fits scfile=/scratch/kocevski/239490/ft2_4FGL_J1159.5+2914_daily_bin1586.fits outfile=/scratch/kocevski/239490/cmap_HighResolution_650419201_650678401_4FGL_J1159.5+2914_daily_bin1586.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    25.821       1.0000         .10000E-03   10000.    
     3 'norm      '    27.319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1710       1.0000         .10000E-03   10000.    
     8 'norm      '    .31306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9972       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6744       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60810E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7125       1.0000         .10000E-03   10000.    
    21 'norm      '    12.157       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14089E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5937       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .35583       1.0000         .10000E-03   10000.    
    27 'norm      '    17.073       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    179.79       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84550       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=   6951.696     FROM MIGRAD    STATUS=CONVERGED   1444 CALLS     4780 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4013        .12521E-02** at limit **
   2  norm          25.824        19.628        .78835E-04    .20622E-04
   3  norm          27.323        15.244        .76647E-04    .27737E-04
   4  Prefactor     25.823        20.000        .78837E-04    .28985E-04
   5  Prefactor     5.1139        3.0528        .52436E-03   -.13215E-03
   6  Prefactor     .10000E-03    24.448        .18142E-02** at limit **
   7  Prefactor     4.1780        23.162        .19734E-03    .14517E-04
   8  norm          .31309        1.8525        .21942E-03   -.11627E-03
   9  Prefactor     .10000E-03    8.4972        .18142E-02** at limit **
  10  Prefactor     .10000E-03    4.3279        .16786E-02** at limit **
  11  norm          5.3884        1.5940        .54896E-04    .85322E-04
  12  Prefactor     6.9352        22.436        .15238E-03    .23800E-04
  13  Prefactor     .10000E-03    8.5169        .18142E-02** at limit **
  14  Prefactor     1.9974        1.8331        .10172E-03    .74327E-04
  15  Prefactor     .10000E-03    7.6725        .18142E-02** at limit **
  16  Prefactor     .10000E-03    20.390        .18142E-02** at limit **
  17  norm          9.6745        2.0561        .51975E-04    .38082E-03
  18  Prefactor     .70697E-01    8.9493        .40055E-01    .47223E-03
  19  Prefactor     .10000E-03    41.532        .18142E-02** at limit **
  20  Prefactor     3.7119        3.5723        .14108E-03    .22225E-03
  21  norm          12.165        4.2825        .95737E-04    .21247E-02
  22  Prefactor     .10000E-03    8.2870        .18142E-02** at limit **
  23  Prefactor     .10000E-03    4.4659        .23136E-02** at limit **
  24  Prefactor     5.5941        2.8775        .94540E-04    .89336E-03
  25  Prefactor     .10000E-03    2.1072        .11804E-02** at limit **
  26  norm          .35584        .18358        .24492E-04    .16850E-03
  27  norm          17.073        6.0901        .96931E-04    .10638E-03
  28  Prefactor     .10000E-03    12.519        .18142E-02** at limit **
  29  Prefactor     179.80        102.89        .15052E-03    .35620E-04
  30  Normalizat    1.1243        .24720        .27335E-03    .21947E-03
  31  Prefactor     .84569        .25089        .33906E-03    .26898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 25.8241
  norm       = 27.3227
  Prefactor  = 25.8225
  Prefactor  = 5.11394
  Prefactor  = 0.0001
  Prefactor  = 4.17801
  norm       = 0.313085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.38838
  Prefactor  = 6.93515
  Prefactor  = 0.0001
  Prefactor  = 1.99737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.67449
  Prefactor  = 0.0706971
  Prefactor  = 0.0001
  Prefactor  = 3.71191
  norm       = 12.1646
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.59413
  Prefactor  = 0.0001
  norm       = 0.355835
  norm       = 17.0727
  Prefactor  = 0.0001
  Prefactor  = 179.8
  Normalizat = 1.12431
  Prefactor  = 0.845688
 **********
 **   18 **HESSE 
 **********

 FCN=   6951.696     FROM HESSE     STATUS=OK           602 CALLS     5382 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4020        .25042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.824        19.626        .31534E-05   -1.4691    
   3  norm          27.323        15.239        .30659E-05   -1.4662    
   4  Prefactor     25.823        19.998        .31535E-05   -1.4691    
   5  Prefactor     5.1139        3.0512        .20974E-04   -1.5256    
   6  Prefactor     .10000E-03    24.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1780        23.131        .78938E-05   -1.5299    
   8  norm          .31309        1.8513        .87769E-05   -1.5596    
   9  Prefactor     .10000E-03    8.4976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3302        .33571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3884        1.5935        .21959E-05   -1.5244    
  12  Prefactor     6.9352        22.434        .60953E-05   -1.5181    
  13  Prefactor     .10000E-03    8.5190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9974        1.8326        .40686E-05   -1.5425    
  15  Prefactor     .10000E-03    7.6726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6745        2.0557        .10395E-04   -1.5086    
  18  Prefactor     .70697E-01    5.7271        .51566E-01   -1.5655    
  19  Prefactor     .10000E-03    41.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7119        3.5490        .56432E-05   -1.5323    
  21  norm          12.165        4.2773        .19147E-04   -1.5010    
  22  Prefactor     .10000E-03    8.2928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.4784        .46271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5941        2.8770        .37816E-05   -1.5235    
  25  Prefactor     .10000E-03    2.1073        .23607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .35584        .18358        .97969E-06   -1.5589    
  27  norm          17.073        6.0892        .38773E-05   -1.4881    
  28  Prefactor     .10000E-03    12.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     179.80        102.87        .30104E-04   -1.3018    
  30  Normalizat    1.1243        .24703        .54671E-04   -.88975    
  31  Prefactor     .84569        .25109        .13562E-04   -.98066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41508e-09
Minuit parameter uncertainties:
  1  3.34363e-06
  2  19.6309
  3  15.2416
  4  20.0032
  5  3.05132
  6  1.49332e-05
  7  19.6728
  8  1.52246
  9  2.25936e-05
  10  1.11233e-05
  11  1.59353
  12  22.4616
  13  9.1608e-06
  14  1.83269
  15  8.09558e-06
  16  8.38377e-05
  17  2.05568
  18  1.27185
  19  7.18229e-05
  20  3.54922
  21  4.27737
  22  5.20577e-06
  23  0.000198223
  24  2.87704
  25  7.20076e-07
  26  0.183583
  27  6.08938
  28  1.94449e-05
  29  102.969
  30  0.247281
  31  0.251434
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  9.674e+00  2.056e+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.457e-01  2.514e-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.124e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.60
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.63e-07 +/- 5.58e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 2.50e-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) = 6951.66171396
delta logL = 0.0338061893463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6951.65943618
delta logL = 0.0360839721689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6757       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0499       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83675       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=   6951.659     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6789        2.1157        .32207E-02    .27158E-04
   2  alpha         2.0499        .19960        .14490       -.10667E-04
   3  Normalizat    1.1359        .19183        .61546E-01    .12430E-04
   4  Prefactor     .83674        .20862        .76969E-01    .20232E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.67892
  alpha      = 2.04987
  Normalizat = 1.13591
  Prefactor  = 0.836737
 **********
 **   18 **HESSE 
 **********

 FCN=   6951.659     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6789        2.0426        .52326E-04   -1.5086    
   2  alpha         2.0499        .19748        .62713E-03   -.18104    
   3  Normalizat    1.1359        .23114        .27222E-03   -.88607    
   4  Prefactor     .83674        .25003        .34068E-03   -.98388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0053e-13
Minuit parameter uncertainties:
  1  2.04258
  2  0.197689
  3  0.231342
  4  0.25037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239490': 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) = 6951.65943492
delta logL = 0.0360852332042

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  9.679e+00  2.043e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.050e+00  1.977e-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.367e-01  2.504e-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.136e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 71.81
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.05 +/- 0.20
Photon Flux (Free Index): 2.53e-07 +/- 6.50e-08
Energy Flux (Free Index): 1.23e-04 +/- 3.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/239490/cmap_HighResolution_650419201_650678401_4FGL_J1159.5+2914_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-07', energy_flux2='1.23e-04', photon_flux_error='5.58e-08', dlogl='3.61e-02', energy_flux='1.18e-04', photon_flux2='2.53e-07', job_status='DONE', time_completed='2021-09-04 19:51:07.504860', photon_index_error2='0.20', photon_index2='2.05', ts='72.60', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='3.42e-05', EG='1.12', time_epoch_completed='1630810267.5', return_code='0', job_id='239490', GAL2='0.84', EG2='1.14', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='6.50e-08', ts2='71.81', photon_index='2.10' WHERE bin_id='1586' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:51:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 239490: <4FGL_J1159.5+2914_daily_bin1586> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1586> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:35:29 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:35:31 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:35:31 2021
Terminated at Sat Sep  4 19:51:08 2021
Results reported at Sat Sep  4 19:51:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1586 179.884 29.2448 650419201 650678401 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 :                                   916.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

