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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin603
RA = 179.884, Dec = 29.2448
tmin = 395625601, tmax = 395884801
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='233244', job_status='RUN', time_executed='2021-09-04 19:15:57.941652', time_epoch_executed='1630808157.94' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233244/ft1_4FGL_J1159.5+2914_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233244/ft2_4FGL_J1159.5+2914_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233244/ft1_4FGL_J1159.5+2914_daily_bin603.fits outfile=/scratch/kocevski/233244/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin603.fits ra=179.884 dec=29.2448 rad=12.0 tmin=395625601.0 tmax=395884801.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 4.58
user 4.26
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233244/ft2_4FGL_J1159.5+2914_daily_bin603.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/233244/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin603.fits evtable="EVENTS" outfile="/scratch/kocevski/233244/ft1_filtered_4FGL_J1159.5+2914_daily_bin603.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233244/ft1_filtered_4FGL_J1159.5+2914_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/233244/ft2_4FGL_J1159.5+2914_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/233244/ltcube_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.fits outfile=/scratch/kocevski/233244/expmap_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.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/233244/ltcube_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.fits
.....................!
real 190.08
user 185.30
sys 4.41

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/233244/ft1_filtered_4FGL_J1159.5+2914_daily_bin603.fits scfile=/scratch/kocevski/233244/ft2_4FGL_J1159.5+2914_daily_bin603.fits outfile=/scratch/kocevski/233244/cmap_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.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.50
user 0.36
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/233244/ft1_filtered_4FGL_J1159.5+2914_daily_bin603.fits scfile=/scratch/kocevski/233244/ft2_4FGL_J1159.5+2914_daily_bin603.fits outfile=/scratch/kocevski/233244/cmap_HighResolution_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.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.59
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9246       1.0000         .10000E-03   10000.    
     2 'norm      '    15.010       1.0000         .10000E-03   10000.    
     3 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0161       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3530       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3156       1.0000         .10000E-03   10000.    
    21 'norm      '    11.216       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2159       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.870       1.0000         .10000E-03   10000.    
    26 'norm      '    2.2533       1.0000         .10000E-03   10000.    
    27 'norm      '    11.123       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13690E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99921       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90748       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=   6128.109     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4221 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9254        4.3372       -.20932E-07    .20381E-03
   2  norm          15.011        16.460       -.11676E-05    .22998E-03
   3  norm          .10002E-03    92.964        .55187E-04** at limit **
   4  Prefactor     21.732        22.341        .18241E-06    .12081E-03
   5  Prefactor     .10000E-03    .73891       -.36179E-08** at limit **
   6  Prefactor     .10000E-03    11.243        .13513E-06** at limit **
   7  Prefactor     8.0159        12.095        .11266E-05    .13343E-03
   8  norm          4.9573        2.5210       -.64303E-07    .84118E-04
   9  Prefactor     7.5530        11.527       -.30432E-05    .75434E-03
  10  Prefactor     .10000E-03    6.2436        .22910E-06** at limit **
  11  norm          4.1673        1.3566       -.47272E-07    .16701E-03
  12  Prefactor     .10000E-03    15.235       -.83909E-07** at limit **
  13  Prefactor     11.307        16.556        .90037E-06    .23181E-03
  14  Prefactor     1.8133        1.7315       -.48476E-08    .49445E-03
  15  Prefactor     29.512        30.729       -.10352E-05    .11936E-04
  16  Prefactor     .10000E-03    29.128        .17700E-05** at limit **
  17  norm          .10000E-03    .48251       -.54421E-07** at limit **
  18  Prefactor     2.3541        6.2219       -.16408E-05    .27318E-03
  19  Prefactor     40.779        30.645       -.10197E-05   -.27600E-04
  20  Prefactor     6.3155        4.5313        .46776E-06    .70409E-03
  21  norm          11.217        4.0769       -.15888E-06    .14595E-03
  22  Prefactor     .10000E-03    6.9046       -.37175E-06** at limit **
  23  Prefactor     .10000E-03    .97314       -.42442E-07** at limit **
  24  Prefactor     3.2163        2.4103       -.38169E-07    .37942E-03
  25  Prefactor     15.871        7.4893       -.84591E-07    .40015E-04
  26  norm          2.2534        .42284       -.13269E-07    .14624E-02
  27  norm          11.124        5.6625       -.17556E-06    .76124E-04
  28  Prefactor     .10000E-03    5.3124        .16364E-05** at limit **
  29  Prefactor     .10012E-03    114.82        .37534E-04** at limit **
  30  Normalizat    .99885        .20174        .20140E-05    .16421E-03
  31  Prefactor     .90780        .21192        .14796E-05    .43243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92537
  norm       = 15.0112
  norm       = 0.000100018
  Prefactor  = 21.7319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.01594
  norm       = 4.95728
  Prefactor  = 7.55305
  Prefactor  = 0.0001
  norm       = 4.16735
  Prefactor  = 0.0001
  Prefactor  = 11.307
  Prefactor  = 1.81333
  Prefactor  = 29.5122
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.35411
  Prefactor  = 40.779
  Prefactor  = 6.31548
  norm       = 11.2166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.21628
  Prefactor  = 15.8705
  norm       = 2.25335
  norm       = 11.1237
  Prefactor  = 0.000100001
  Prefactor  = 0.000100116
  Normalizat = 0.998848
  Prefactor  = 0.907796
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.109     FROM HESSE     STATUS=OK           630 CALLS     4851 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9254        4.3309        .13345E-03   -1.5221    
   2  norm          15.011        16.491        .51690E-03   -1.4933    
   3  norm          .10002E-03    91.600        .51005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.732        22.371        .85932E-04   -1.4775    
   5  Prefactor     .10000E-03    .74365        .65676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0159        12.101        .14161E-03   -1.5142    
   8  norm          4.9573        2.5189        .85571E-04   -1.5263    
   9  Prefactor     7.5530        11.850        .72964E-03   -1.5158    
  10  Prefactor     .10000E-03    6.4473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1673        1.3553        .50045E-04   -1.5300    
  12  Prefactor     .10000E-03    15.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.307        16.405        .11916E-03   -1.5035    
  14  Prefactor     1.8133        1.7162        .96531E-04   -1.5439    
  15  Prefactor     29.512        30.743        .73758E-04   -1.4621    
  16  Prefactor     .10000E-03    29.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .50037        .10603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3541        6.1428        .26721E-03   -1.5401    
  19  Prefactor     40.779        30.665        .62777E-04   -1.4430    
  20  Prefactor     6.3155        4.5010        .12905E-03   -1.5205    
  21  norm          11.217        4.0653        .89389E-04   -1.5038    
  22  Prefactor     .10000E-03    6.9865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .98441        .75302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.2163        2.3954        .98112E-04   -1.5349    
  25  Prefactor     15.871        7.4898        .10054E-03   -1.4911    
  26  norm          2.2534        .42333        .21055E-04   -1.5408    
  27  norm          11.124        5.6553        .12012E-03   -1.5041    
  28  Prefactor     .10000E-03    29.318        .34330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10012E-03    122.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .99885        .23101        .26578E-03   -.93069    
  31  Prefactor     .90780        .24621        .31588E-03   -.95869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24683e-09
Minuit parameter uncertainties:
  1  4.3311
  2  16.4965
  3  0.00257043
  4  22.3793
  5  1.24388e-06
  6  6.46553e-06
  7  12.1051
  8  2.51897
  9  11.8535
  10  5.37736e-06
  11  1.35536
  12  4.64616e-05
  13  16.412
  14  1.7162
  15  30.7597
  16  0.000194113
  17  3.34163e-06
  18  6.14443
  19  30.6772
  20  4.50122
  21  4.0654
  22  6.35208e-05
  23  5.86591e-07
  24  2.39545
  25  7.49024
  26  0.423335
  27  5.6556
  28  0.00031716
  29  0.00756048
  30  0.231239
  31  0.246517
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.000e-04  3.342e-06  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.078e-01  2.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.988e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233244/likelihoodResults_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.txt

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) = 6128.11833248
delta logL = -0.00935865174779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6128.08151312
delta logL = 0.0274607049714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13394E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .98310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91887       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6128.082     FROM MIGRAD    STATUS=FAILED       107 CALLS      440 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13381E-01    .89984E-01    .28721E-03    .27525E-01
   2  alpha         5.0000        3.0924        .50000    ** at limit **
   3  Normalizat    .98304        .22481        .26771E-03   -.18638E-03
   4  Prefactor     .91894        .24893        .31420E-03   -.11701E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6128.082     FROM SIMPLEX   STATUS=PROGRESS     150 CALLS      590 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13381E-01    .89984E-01    .37728E-08   -1.5685    
   2  alpha         5.0000        3.0924        .38902E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98304        .22481        .69620E-07   -.93601    
   4  Prefactor     .91894        .24893        .67028E-08   -.95482    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6128.082     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      633 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13381E-01    .74630E-01    .57442E-04    .17634E-03
   2  alpha         5.0000        3.6213        .50000    ** at limit **
   3  Normalizat    .98304        .22525        .10709E-04    .74315E-05
   4  Prefactor     .91894        .24932        .12568E-04    .34373E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0133811
  alpha      = 5
  Normalizat = 0.983037
  Prefactor  = 0.91894
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.082     FROM HESSE     STATUS=OK            31 CALLS      664 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13381E-01    .72443E-01    .22977E-05   -1.5685    
   2  alpha         5.0000        3.7034        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98304        .22564        .21417E-05   -.93601    
   4  Prefactor     .91894        .24973        .25136E-05   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44794e-12
Minuit parameter uncertainties:
  1  0.0620362
  2  5.89419e-05
  3  0.225864
  4  0.250044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233244': 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) = 6128.08151288
delta logL = 0.0274609460366

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.338e-02  6.204e-02  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  5.000e+00  5.894e-05  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.189e-01  2.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.830e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.884 29.245

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/233244/cmap_HighResolution_395625601_395884801_4FGL_J1159.5+2914_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-04 19:32:09.730091', job_id='233244', GAL2='0.92', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1630809129.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.75e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='603' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 233244: <4FGL_J1159.5+2914_daily_bin603> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin603> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:44 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:46 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:15:46 2021
Terminated at Sat Sep  4 19:32:10 2021
Results reported at Sat Sep  4 19:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin603 179.884 29.2448 395625601 395884801 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 :                                   967.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

