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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin941
RA = 179.884, Dec = 29.2448
tmin = 483235201, tmax = 483494401
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='236356', job_status='RUN', time_executed='2021-09-04 19:25:39.867173', time_epoch_executed='1630808739.87' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236356/ft1_4FGL_J1159.5+2914_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236356/ft2_4FGL_J1159.5+2914_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236356/ft1_4FGL_J1159.5+2914_daily_bin941.fits outfile=/scratch/kocevski/236356/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin941.fits ra=179.884 dec=29.2448 rad=12.0 tmin=483235201.0 tmax=483494401.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.41
user 3.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236356/ft2_4FGL_J1159.5+2914_daily_bin941.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/236356/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin941.fits evtable="EVENTS" outfile="/scratch/kocevski/236356/ft1_filtered_4FGL_J1159.5+2914_daily_bin941.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.51
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236356/ft1_filtered_4FGL_J1159.5+2914_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/236356/ft2_4FGL_J1159.5+2914_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/236356/ltcube_483235201_483494401_4FGL_J1159.5+2914_daily_bin941.fits outfile=/scratch/kocevski/236356/expmap_483235201_483494401_4FGL_J1159.5+2914_daily_bin941.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/236356/ltcube_483235201_483494401_4FGL_J1159.5+2914_daily_bin941.fits
.....................!
real 191.69
user 186.50
sys 4.82

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/236356/ft1_filtered_4FGL_J1159.5+2914_daily_bin941.fits scfile=/scratch/kocevski/236356/ft2_4FGL_J1159.5+2914_daily_bin941.fits outfile=/scratch/kocevski/236356/cmap_483235201_483494401_4FGL_J1159.5+2914_daily_bin941.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.53
user 0.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48777       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.331       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90469       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .91460E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2218       1.0000         .10000E-03   10000.    
    11 'norm      '    .74844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71140       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.251       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.0046       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29641E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4530       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7830       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .77372E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .15153E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.493       1.0000         .10000E-03   10000.    
    29 'Prefactor '    57.042       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0208       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0200       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=   6256.804     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4265 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49643        2.3072       -.73290E-06    .34931E-03
   2  norm          .10000E-03    27.954       -.48802E-06** at limit **
   3  norm          .10000E-03    6.2444        .72797E-06** at limit **
   4  Prefactor     12.331        11.044       -.12000E-06    .10641E-04
   5  Prefactor     .90401        1.9597       -.50287E-06   -.67372E-03
   6  Prefactor     .10000E-03    17.705        .27073E-05** at limit **
   7  Prefactor     .10000E-03    4.1097        .40938E-06** at limit **
   8  norm          .88199E-01    1.0530        .10724E-06   -.30142E-03
   9  Prefactor     .10000E-03    6.6144       -.14326E-05** at limit **
  10  Prefactor     3.2227        1.9620        .31180E-06   -.18263E-02
  11  norm          .74844        .78741       -.32155E-07   -.12562E-04
  12  Prefactor     .10000E-03    7.6677       -.31273E-06** at limit **
  13  Prefactor     .10000E-03    3.8977        .32732E-06** at limit **
  14  Prefactor     .71138        1.4389       -.14040E-06   -.34799E-03
  15  Prefactor     .10000E-03    10.453       -.53896E-06** at limit **
  16  Prefactor     .10000E-03    16.206       -.22070E-05** at limit **
  17  norm          7.5681        1.6806        .19586E-07    .17576E-03
  18  Prefactor     .10000E-03    .88232       -.10589E-07** at limit **
  19  Prefactor     23.243        30.921       -.88410E-05   -.30996E-04
  20  Prefactor     .10000E-03    1.7789       -.19987E-07** at limit **
  21  norm          7.0045        3.8590        .72442E-07    .58146E-05
  22  Prefactor     .10000E-03    5.5979        .27252E-06** at limit **
  23  Prefactor     4.4529        3.3924        .43851E-08   -.13655E-04
  24  Prefactor     2.7837        2.5299       -.68428E-07   -.83365E-04
  25  Prefactor     .10000E-03    4.0006       -.83330E-06** at limit **
  26  norm          .77422E-01    .19549       -.10266E-06   -.77902E-03
  27  norm          .10000E-03    3.5269        .50246E-06** at limit **
  28  Prefactor     12.495        11.412       -.10354E-06   -.19386E-04
  29  Prefactor     57.032        84.256       -.10838E-04   -.10952E-04
  30  Normalizat    1.0207        .17797        .23201E-05    .45230E-04
  31  Prefactor     1.0201        .19004       -.50290E-06    .15638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.496429
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3306
  Prefactor  = 0.904007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0881986
  Prefactor  = 0.0001
  Prefactor  = 3.22266
  norm       = 0.748441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.711379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.56814
  Prefactor  = 0.0001
  Prefactor  = 23.2434
  Prefactor  = 0.0001
  norm       = 7.00445
  Prefactor  = 0.000100004
  Prefactor  = 4.45287
  Prefactor  = 2.78373
  Prefactor  = 0.0001
  norm       = 0.0774221
  norm       = 0.000100003
  Prefactor  = 12.4947
  Prefactor  = 57.0324
  Normalizat = 1.02073
  Prefactor  = 1.02014
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.804     FROM HESSE     STATUS=OK           636 CALLS     4901 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49643        8.6017        .22384E-02   -1.5567    
   2  norm          .10000E-03    28.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.331        11.045        .11408E-03   -1.5006    
   5  Prefactor     .90401        1.6829        .14944E-02   -1.5518    
   6  Prefactor     .10000E-03    17.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1126        .15659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .88199E-01    5.9189        .15188E-02   -1.5649    
   9  Prefactor     .10000E-03    6.6778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2227        5.4096        .10982E-02   -1.5349    
  11  norm          .74844        .75696        .69140E-03   -1.5535    
  12  Prefactor     .10000E-03    7.6951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9348        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .71138        1.3308        .12851E-02   -1.5539    
  15  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5681        1.6813        .46139E-04   -1.5158    
  18  Prefactor     .10000E-03    .88470        .72550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.243        30.903        .83071E-04   -1.4743    
  20  Prefactor     .10000E-03    1.8357        .20590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0045        3.8810        .98080E-04   -1.5179    
  22  Prefactor     .10000E-03    18.473        .35751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4529        3.4066        .10795E-03   -1.5286    
  24  Prefactor     2.7837        2.5063        .11009E-03   -1.5374    
  25  Prefactor     .10000E-03    4.0330        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .77422E-01    .20819        .51644E-03   -1.5652    
  27  norm          .10000E-03    8.3094        .28257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.495        11.389        .11333E-03   -1.5001    
  29  Prefactor     57.032        84.427        .53115E-04   -1.4196    
  30  Normalizat    1.0207        .20376        .23882E-03   -.92339    
  31  Prefactor     1.0201        .22131        .27910E-03   -.92061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12717e-08
Minuit parameter uncertainties:
  1  4.13314
  2  4.36541e-05
  3  8.84136e-06
  4  11.0469
  5  1.68299
  6  2.47262e-05
  7  3.28151e-07
  8  1.44438
  9  1.21176e-05
  10  5.41041
  11  0.756966
  12  9.01139e-06
  13  4.16581e-06
  14  1.33083
  15  2.78808e-05
  16  1.54478e-05
  17  1.68127
  18  1.32001e-06
  19  30.9242
  20  5.54433e-06
  21  3.88115
  22  0.000555601
  23  3.40677
  24  2.50643
  25  1.23479e-05
  26  0.208188
  27  0.000326507
  28  11.3913
  29  84.605
  30  0.203919
  31  0.221509
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  7.568e+00  1.681e+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.020e+00  2.215e-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.021e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 69.58
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.06e-07 +/- 4.56e-08
Energy Flux (Fixed Index): 9.20e-05 +/- 2.04e-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) = 6256.80212738
delta logL = 0.00137607839497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6256.80206652
delta logL = 0.00143694134567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5685       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0918       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0189       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=   6256.802     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      189 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5764        1.8529        .36443E-02    .76394E-05
   2  alpha         2.0918        .23001        .14773        .54247E-05
   3  Normalizat    1.0225        .16344        .43001E-01    .96835E-05
   4  Prefactor     1.0189        .18965        .63141E-01    .79192E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.5764
  alpha      = 2.09177
  Normalizat = 1.02246
  Prefactor  = 1.01891
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.802     FROM HESSE     STATUS=OK            31 CALLS      220 TOTAL
                     EDM=   .93E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5764        1.6833        .46252E-04   -1.5157    
   2  alpha         2.0918        .21379        .63878E-03   -.16403    
   3  Normalizat    1.0225        .19096        .23866E-03   -.92282    
   4  Prefactor     1.0189        .22078        .27925E-03   -.92102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26108e-14
Minuit parameter uncertainties:
  1  1.68331
  2  0.214057
  3  0.191085
  4  0.220977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236356': 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) = 6256.80205537
delta logL = 0.00144808169171

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  7.576e+00  1.683e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.092e+00  2.141e-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.019e+00  2.210e-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.022e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 69.40
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.09 +/- 0.21
Photon Flux (Free Index): 2.04e-07 +/- 5.35e-08
Energy Flux (Free Index): 9.30e-05 +/- 2.74e-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/236356/cmap_HighResolution_483235201_483494401_4FGL_J1159.5+2914_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.06e-07', energy_flux2='9.30e-05', photon_flux_error='4.56e-08', dlogl='1.45e-03', energy_flux='9.20e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2021-09-04 19:39:42.024948', photon_index_error2='0.21', photon_index2='2.09', ts='69.58', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='1.02', time_epoch_completed='1630809582.03', return_code='0', job_id='236356', GAL2='1.02', EG2='1.02', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='5.35e-08', ts2='69.40', photon_index='2.10' WHERE bin_id='941' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:39:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 236356: <4FGL_J1159.5+2914_daily_bin941> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin941 179.884 29.2448 483235201 483494401 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 :                                   839.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

