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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1041
RA = 179.884, Dec = 29.2448
tmin = 509155201, tmax = 509414401
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='236516', job_status='RUN', time_executed='2021-09-04 19:25:50.928566', time_epoch_executed='1630808750.93' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236516/ft1_4FGL_J1159.5+2914_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236516/ft1_4FGL_J1159.5+2914_daily_bin1041.fits outfile=/scratch/kocevski/236516/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1041.fits ra=179.884 dec=29.2448 rad=12.0 tmin=509155201.0 tmax=509414401.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.63
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.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/236516/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/236516/ft1_filtered_4FGL_J1159.5+2914_daily_bin1041.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/236516/ft1_filtered_4FGL_J1159.5+2914_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/236516/ltcube_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.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/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.fits
.....................!
real 12.15
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236516/ft1_filtered_4FGL_J1159.5+2914_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/236516/ltcube_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.fits outfile=/scratch/kocevski/236516/expmap_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.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/236516/ltcube_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.fits
.....................!
real 191.04
user 185.70
sys 4.98

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/236516/ft1_filtered_4FGL_J1159.5+2914_daily_bin1041.fits scfile=/scratch/kocevski/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.fits outfile=/scratch/kocevski/236516/cmap_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236516/ft1_filtered_4FGL_J1159.5+2914_daily_bin1041.fits scfile=/scratch/kocevski/236516/ft2_4FGL_J1159.5+2914_daily_bin1041.fits outfile=/scratch/kocevski/236516/cmap_HighResolution_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.881       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1401       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1637       1.0000         .10000E-03   10000.    
    21 'norm      '    8.2708       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6776       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1145       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .51855       1.0000         .10000E-03   10000.    
    27 'norm      '    8.4232       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.457       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2422       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55224       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=   6216.627     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4133 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96680        .28322E-07** at limit **
   2  norm          13.881        16.283       -.55419E-06   -.42918E-04
   3  norm          3.8220        16.653       -.11029E-05   -.13854E-04
   4  Prefactor     6.1615        16.154        .31750E-06    .24349E-04
   5  Prefactor     5.6690        3.6650       -.15902E-07    .86814E-04
   6  Prefactor     43.375        47.715       -.26842E-05   -.54060E-04
   7  Prefactor     .10000E-03    10.979        .52043E-06** at limit **
   8  norm          3.5894        2.9157        .16621E-05   -.27824E-02
   9  Prefactor     14.626        13.036        .66112E-06    .18107E-03
  10  Prefactor     .10000E-03    3.3949        .30327E-06** at limit **
  11  norm          5.2474        1.6590       -.13734E-06    .10708E-04
  12  Prefactor     1.5948        69.629       -.18648E-04   -.17545E-03
  13  Prefactor     14.574        13.506       -.47026E-06   -.63832E-04
  14  Prefactor     5.5313        2.5076        .29975E-06    .86411E-03
  15  Prefactor     10.810        21.885       -.27826E-05   -.12071E-03
  16  Prefactor     .10000E-03    14.997        .82955E-07** at limit **
  17  norm          2.1400        1.0474        .41115E-07    .41115E-03
  18  Prefactor     .10000E-03    3.2567       -.11510E-06** at limit **
  19  Prefactor     .10000E-03    11.032       -.19106E-06** at limit **
  20  Prefactor     5.1640        3.2274       -.38884E-06   -.43389E-03
  21  norm          8.2710        3.8618        .24780E-06    .84966E-03
  22  Prefactor     7.6778        6.6381       -.17490E-06    .26067E-05
  23  Prefactor     .10000E-03    1.9199       -.18373E-06** at limit **
  24  Prefactor     5.1147        3.4818       -.19923E-06   -.20763E-04
  25  Prefactor     .10000E-03    2.2334       -.65803E-07** at limit **
  26  norm          .51853        .29860       -.12600E-07    .32954E-04
  27  norm          8.4229        5.1958       -.16962E-06   -.10116E-03
  28  Prefactor     16.457        13.657       -.51684E-06   -.58168E-04
  29  Prefactor     .10000E-03    46.507        .10272E-05** at limit **
  30  Normalizat    1.2420        .20260        .19363E-05    .44342E-04
  31  Prefactor     .55250        .20347       -.16760E-05    .16567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.8805
  norm       = 3.82201
  Prefactor  = 6.1615
  Prefactor  = 5.66898
  Prefactor  = 43.3752
  Prefactor  = 0.0001
  norm       = 3.58942
  Prefactor  = 14.6261
  Prefactor  = 0.0001
  norm       = 5.24744
  Prefactor  = 1.59483
  Prefactor  = 14.5735
  Prefactor  = 5.53128
  Prefactor  = 10.8098
  Prefactor  = 0.0001
  norm       = 2.14002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16396
  norm       = 8.27095
  Prefactor  = 7.67779
  Prefactor  = 0.0001
  Prefactor  = 5.11467
  Prefactor  = 0.0001
  norm       = 0.51853
  norm       = 8.42291
  Prefactor  = 16.4571
  Prefactor  = 0.0001
  Normalizat = 1.24201
  Prefactor  = 0.552505
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.627     FROM HESSE     STATUS=OK           632 CALLS     4765 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .96790        .75703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.881        16.296        .10751E-03   -1.4963    
   3  norm          3.8220        16.772        .20594E-03   -1.5317    
   4  Prefactor     6.1615        16.148        .16176E-03   -1.5211    
   5  Prefactor     5.6690        3.6866        .10404E-03   -1.5232    
   6  Prefactor     43.375        47.859        .60870E-04   -1.4390    
   7  Prefactor     .10000E-03    10.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5894        3.5085        .66050E-03   -1.5329    
   9  Prefactor     14.626        13.074        .10473E-03   -1.4943    
  10  Prefactor     .10000E-03    3.4318        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2474        1.6642        .54177E-04   -1.5250    
  12  Prefactor     1.5948        79.693        .33305E-03   -1.5455    
  13  Prefactor     14.574        13.525        .10492E-03   -1.4944    
  14  Prefactor     5.5313        2.5127        .76702E-04   -1.5238    
  15  Prefactor     10.810        22.045        .12183E-03   -1.5050    
  16  Prefactor     .10000E-03    14.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1400        1.0472        .28174E-04   -1.5415    
  18  Prefactor     .10000E-03    3.3275        .27735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1640        3.2364        .10805E-03   -1.5253    
  21  norm          8.2710        3.6396        .93307E-04   -1.5133    
  22  Prefactor     7.6778        6.6522        .14473E-03   -1.5154    
  23  Prefactor     .10000E-03    3.3434        .19634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1147        3.4720        .10568E-03   -1.5256    
  25  Prefactor     .10000E-03    2.2373        .11503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .51853        .29448        .30453E-04   -1.5564    
  27  norm          8.4229        5.1935        .13438E-03   -1.5127    
  28  Prefactor     16.457        13.651        .98730E-04   -1.4896    
  29  Prefactor     .10000E-03    46.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2420        .23498        .24134E-03   -.85314    
  31  Prefactor     .55250        .22841        .37141E-03   -1.0962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40387e-09
Minuit parameter uncertainties:
  1  7.84673e-07
  2  16.3011
  3  16.0204
  4  16.1596
  5  3.68672
  6  47.9018
  7  3.09198e-05
  8  3.50871
  9  13.0766
  10  1.24677e-05
  11  1.66426
  12  22.5785
  13  13.5279
  14  2.51275
  15  22.062
  16  6.51555e-06
  17  1.04722
  18  3.79063e-06
  19  1.12064e-05
  20  3.2365
  21  3.63975
  22  6.65285
  23  1.9476e-05
  24  3.47215
  25  1.2094e-06
  26  0.294477
  27  5.19379
  28  13.6536
  29  0.000153092
  30  0.235176
  31  0.22879
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.140e+00  1.047e+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:  5.525e-01  2.288e-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.242e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.61
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.27e-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) = 6215.98542394
delta logL = 0.641946949033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6215.93081156
delta logL = 0.696559329286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6303       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5798       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53751       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=   6215.931     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6299        .86713        .82800E-02   -.19102E-03
   2  alpha         1.5797        .32052        .24592       -.44212E-04
   3  Normalizat    1.2679        .18524        .54117E-01   -.59467E-04
   4  Prefactor     .53755        .19783        .84917E-01   -.19522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.62989
  alpha      = 1.57965
  Normalizat = 1.26789
  Prefactor  = 0.537548
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.931     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6299        1.0411        .49689E-04   -1.5453    
   2  alpha         1.5797        .41106        .10143E-01   -.37701    
   3  Normalizat    1.2679        .20915        .23928E-03   -.84530    
   4  Prefactor     .53755        .22258        .37623E-03   -1.1028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03713e-09
Minuit parameter uncertainties:
  1  1.04109
  2  0.413234
  3  0.209291
  4  0.222946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236516': 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) = 6215.93081147
delta logL = 0.696559422593

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.630e+00  1.041e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.580e+00  4.132e-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:  5.375e-01  2.229e-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.268e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.99
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.58 +/- 0.41
Photon Flux (Free Index): 3.38e-08 +/- 2.35e-08
Energy Flux (Free Index): 4.56e-05 +/- 3.64e-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/236516/cmap_HighResolution_509155201_509414401_4FGL_J1159.5+2914_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='4.56e-05', photon_flux_error='2.84e-08', dlogl='6.97e-01', energy_flux='2.60e-05', photon_flux2='3.38e-08', job_status='DONE', time_completed='2021-09-04 19:39:18.734285', photon_index_error2='0.41', photon_index2='1.58', ts='15.61', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='3.64e-05', EG='1.24', time_epoch_completed='1630809558.73', return_code='0', job_id='236516', GAL2='0.54', EG2='1.27', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='2.35e-08', ts2='16.99', photon_index='2.10' WHERE bin_id='1041' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:39:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 236516: <4FGL_J1159.5+2914_daily_bin1041> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1041 179.884 29.2448 509155201 509414401 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 :                                   804.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

