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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1170
RA = 179.884, Dec = 29.2448
tmin = 542592001, tmax = 542851201
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='236733', job_status='RUN', time_executed='2021-09-04 19:26:02.884944', time_epoch_executed='1630808762.88' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236733/ft1_4FGL_J1159.5+2914_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236733/ft1_4FGL_J1159.5+2914_daily_bin1170.fits outfile=/scratch/kocevski/236733/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1170.fits ra=179.884 dec=29.2448 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.67
user 6.44
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236733/ft1_filtered_4FGL_J1159.5+2914_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/236733/ltcube_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.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/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits
.....................!
real 11.99
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236733/ft1_filtered_4FGL_J1159.5+2914_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/236733/ltcube_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.fits outfile=/scratch/kocevski/236733/expmap_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.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/236733/ltcube_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.fits
.....................!
real 190.46
user 185.12
sys 5.01

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/236733/ft1_filtered_4FGL_J1159.5+2914_daily_bin1170.fits scfile=/scratch/kocevski/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits outfile=/scratch/kocevski/236733/cmap_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236733/ft1_filtered_4FGL_J1159.5+2914_daily_bin1170.fits scfile=/scratch/kocevski/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits outfile=/scratch/kocevski/236733/cmap_HighResolution_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.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/236733/ft1_filtered_4FGL_J1159.5+2914_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/236733/ft2_4FGL_J1159.5+2914_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236733/Model_4FGL_J1159.5+2914_daily_bin1170.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/236733/ft1_filtered_4FGL_J1159.5+2914_daily_bin1170.fits.....................!
real 26.88
user 25.66
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9582       1.0000         .10000E-03   10000.    
     2 'norm      '    63.374       1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    99.657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.901       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1150       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21104E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.9114       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.53       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4086       1.0000         .10000E-03   10000.    
    21 'norm      '    .12156E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.309       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.261       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .23192       1.0000         .10000E-03   10000.    
    27 'norm      '    15.867       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .36889       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .19213E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2847       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .46006       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=   1942.900     FROM MIGRAD    STATUS=CONVERGED   1489 CALLS     4854 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9553        6.4927        .16034E-03    .21910E-04
   2  norm          63.362        41.791        .50408E-04   -.91680E-04
   3  norm          .10000E-03    11.709        .14725E-02** at limit **
   4  Prefactor     .10000E-03    10.917        .14226E-02** at limit **
   5  Prefactor     .10000E-03    4.9142        .94601E-03** at limit **
   6  Prefactor     99.557        99.114        .20135E-03   -.22581E-03
   7  Prefactor     .10000E-03    16.359        .17407E-02** at limit **
   8  norm          .10004E-03    16.656        .19212E-02** at limit **
   9  Prefactor     .10000E-03    10.328        .13832E-02** at limit **
  10  Prefactor     11.900        11.953        .11612E-03   -.27677E-03
  11  norm          4.2550        2.7569        .56629E-04   -.27449E-03
  12  Prefactor     18.683        33.668        .92671E-04   -.46679E-04
  13  Prefactor     1.1149        28.787        .22308E-02   -.17831E-03
  14  Prefactor     1.6458        2.6849        .89263E-04   -.31223E-03
  15  Prefactor     .10001E-03    111.69        .18142E-02** at limit **
  16  Prefactor     .10000E-03    50.791        .18142E-02** at limit **
  17  norm          6.9102        3.2305        .51167E-04    .16220E-03
  18  Prefactor     .10003E-03    40.940        .20746E-02** at limit **
  19  Prefactor     121.52        87.982        .36507E-04    .44703E-04
  20  Prefactor     3.4073        5.7715        .13130E-03   -.24588E-03
  21  norm          .10000E-03    16.779        .23974E-02** at limit **
  22  Prefactor     12.300        18.493        .11418E-03    .91107E-05
  23  Prefactor     13.265        7.0999        .80679E-04    .10898E-02
  24  Prefactor     .10000E-03    1.8013        .57647E-03** at limit **
  25  Prefactor     .10000E-03    6.1408        .10641E-02** at limit **
  26  norm          .23186        .25362        .23182E-03   -.88638E-03
  27  norm          15.869        9.6356        .10055E-03   -.19028E-03
  28  Prefactor     .20745        655.13        .42171E-02    .69692E-04
  29  Prefactor     .10001E-03    272.53        .18142E-02** at limit **
  30  Normalizat    1.2854        .39176        .23276E-03   -.93659E-04
  31  Prefactor     .45986        .39817        .40178E-03   -.21900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95528
  norm       = 63.3615
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.5566
  Prefactor  = 0.0001
  norm       = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 11.8998
  norm       = 4.25495
  Prefactor  = 18.6833
  Prefactor  = 1.11485
  Prefactor  = 1.64579
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 6.91023
  Prefactor  = 0.00010003
  Prefactor  = 121.518
  Prefactor  = 3.40729
  norm       = 0.000100001
  Prefactor  = 12.3001
  Prefactor  = 13.2651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.231862
  norm       = 15.8693
  Prefactor  = 0.207453
  Prefactor  = 0.00010001
  Normalizat = 1.28544
  Prefactor  = 0.459862
 **********
 **   18 **HESSE 
 **********

 FCN=   1942.900     FROM HESSE     STATUS=OK           596 CALLS     5450 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9553        6.4902        .64135E-05   -1.5364    
   2  norm          63.362        41.783        .10082E-04   -1.4114    
   3  norm          .10000E-03    11.710        .29449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.917        .28453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9145        .18920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     99.557        98.936        .40270E-04   -1.3709    
   7  Prefactor     .10000E-03    16.360        .34814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10004E-03    16.675        .38425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.328        .27664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.900        11.950        .46449E-05   -1.5018    
  11  norm          4.2550        2.7565        .22652E-05   -1.5295    
  12  Prefactor     18.683        33.657        .37068E-05   -1.4843    
  13  Prefactor     1.1149        28.748        .89232E-04   -1.5497    
  14  Prefactor     1.6458        2.6843        .35705E-05   -1.5451    
  15  Prefactor     .10001E-03    111.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.9102        3.2301        .20467E-05   -1.5182    
  18  Prefactor     .10003E-03    41.260        .41492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     121.52        87.968        .73015E-05   -1.3499    
  20  Prefactor     3.4073        5.7669        .52520E-05   -1.5339    
  21  norm          .10000E-03    16.824        .47948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.300        18.490        .45671E-05   -1.5006    
  23  Prefactor     13.265        7.0675        .16136E-04   -1.4979    
  24  Prefactor     .10000E-03    1.8014        .11529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.1412        .21282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .23186        .25361        .92728E-05   -1.5612    
  27  norm          15.869        9.6323        .20109E-04   -1.4911    
  28  Prefactor     .20745        659.35        .16868E-02   -1.5617    
  29  Prefactor     .10001E-03    272.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2854        .39158        .46552E-04   -.84002    
  31  Prefactor     .45986        .39780        .16071E-04   -1.1386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03008e-09
Minuit parameter uncertainties:
  1  6.49175
  2  41.802
  3  1.65258e-05
  4  1.38895e-05
  5  2.29835e-05
  6  99.1002
  7  0.000106164
  8  0.00171963
  9  4.67486e-05
  10  11.9525
  11  2.75654
  12  33.6907
  13  11.3282
  14  2.68446
  15  0.00189814
  16  0.000191923
  17  3.23015
  18  0.00220845
  19  88.0624
  20  5.76787
  21  0.000231374
  22  18.4983
  23  7.06797
  24  2.07585e-06
  25  3.35661e-05
  26  0.253606
  27  9.6332
  28  23.6505
  29  0.00328378
  30  0.392482
  31  0.400228
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.910e+00  3.230e+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:  4.599e-01  4.002e-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.285e+00  3.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.38
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.88e-07 +/- 8.77e-08
Energy Flux (Fixed Index): 8.40e-05 +/- 3.93e-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) = 1942.84678343
delta logL = 0.0530354496855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1942.84350699
delta logL = 0.0563118906095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9098       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2608       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47645       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=   1942.844     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      200 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9055        3.8613        .38156E-02   -.10484E-04
   2  alpha         2.2611        .56652        .17700        .34394E-05
   3  Normalizat    1.2593        .32766        .53023E-01   -.24695E-04
   4  Prefactor     .47660        .34892        .89054E-01   -.15131E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.90552
  alpha      = 2.26106
  Normalizat = 1.25934
  Prefactor  = 0.476601
 **********
 **   18 **HESSE 
 **********

 FCN=   1942.844     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9055        3.0932        .49035E-04   -1.5182    
   2  alpha         2.2611        .47046        .75655E-02   -.95722E-01
   3  Normalizat    1.2593        .36947        .23443E-03   -.84788    
   4  Prefactor     .47660        .38948        .39475E-03   -1.1306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30538e-11
Minuit parameter uncertainties:
  1  3.09329
  2  0.473311
  3  0.370248
  4  0.391687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236733': 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) = 1942.84350536
delta logL = 0.0563135216653

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.906e+00  3.093e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.261e+00  4.733e-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:  4.766e-01  3.917e-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.259e+00  3.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.36
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.26 +/- 0.47
Photon Flux (Free Index): 2.13e-07 +/- 1.19e-07
Energy Flux (Free Index): 7.66e-05 +/- 3.89e-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/236733/cmap_HighResolution_542592001_542851201_4FGL_J1159.5+2914_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-07', energy_flux2='7.66e-05', photon_flux_error='8.77e-08', dlogl='5.63e-02', energy_flux='8.40e-05', photon_flux2='2.13e-07', job_status='DONE', time_completed='2021-09-04 19:34:42.326687', photon_index_error2='0.47', photon_index2='2.26', ts='16.38', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='3.89e-05', EG='1.29', time_epoch_completed='1630809282.33', return_code='0', job_id='236733', GAL2='0.48', EG2='1.26', return_code2='0', energy_flux_error='3.93e-05', photon_flux_error2='1.19e-07', ts2='16.36', photon_index='2.10' WHERE bin_id='1170' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:34:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 236733: <4FGL_J1159.5+2914_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1170 179.884 29.2448 542592001 542851201 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 :                                   512.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             354.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            531 sec.

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

