/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 239 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 = 7260
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin338
RA = 179.164, Dec = 6.6728
tmin = 326937601, tmax = 327196801
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='187922', job_status='RUN', time_executed='2021-09-04 17:10:30.666461', time_epoch_executed='1630800630.67' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187922

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187922/ft1_4FGL_J1156.6+0640_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187922/ft1_4FGL_J1156.6+0640_daily_bin338.fits outfile=/scratch/kocevski/187922/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin338.fits ra=179.164 dec=6.6728 rad=12.0 tmin=326937601.0 tmax=327196801.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.34
user 3.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.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/187922/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin338.fits evtable="EVENTS" outfile="/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/187922/ltcube_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.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/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits
.....................!
real 12.68
user 12.27
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/187922/ltcube_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.fits outfile=/scratch/kocevski/187922/expmap_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.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/187922/ltcube_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.fits
.....................!
real 191.45
user 185.67
sys 5.42

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits scfile=/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits outfile=/scratch/kocevski/187922/cmap_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.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.164 yref=6.6728 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits scfile=/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits outfile=/scratch/kocevski/187922/cmap_HighResolution_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.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.164 yref=6.6728 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187922/Model_4FGL_J1156.6+0640_daily_bin338.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/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits.....................!
real 55.21
user 53.78
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits', '/scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits', expMap='/scratch/kocevski/187922/expmap_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.fits', expCube='/scratch/kocevski/187922/ltcube_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187922/Model_4FGL_J1156.6+0640_daily_bin338.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1156.6+0640'

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.059e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187922/ft1_filtered_4FGL_J1156.6+0640_daily_bin338.fits
Spacecraft file(s): /scratch/kocevski/187922/ft2_4FGL_J1156.6+0640_daily_bin338.fits
Exposure map: /scratch/kocevski/187922/expmap_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.fits
Exposure cube: /scratch/kocevski/187922/ltcube_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187922/Model_4FGL_J1156.6+0640_daily_bin338.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) = 5695.49485856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56442E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16663E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3927       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8827       1.0000         .10000E-03   10000.    
    17 'norm      '    7.8747       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.053       1.0000         .10000E-03   10000.    
    19 'norm      '    20.872       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14069E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2077       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.4711       1.0000         .10000E-03   10000.    
    24 'norm      '    8.2923       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4898       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73885       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5695.486     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3108 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.537        9.9805        .66439E-07   -.34008E-05
   2  Prefactor     .10000E-03    16.552        .51700E-06** at limit **
   3  Prefactor     3.2715        3.1133       -.40891E-07   -.75781E-04
   4  Prefactor     .10000E-03    12.834        .27334E-07** at limit **
   5  Prefactor     .10000E-03    43.072        .20873E-05** at limit **
   6  Prefactor     .77189        12.174       -.45920E-05   -.54634E-04
   7  Prefactor     .10000E-03    129.86        .20205E-04** at limit **
   8  Prefactor     .10000E-03    7.2487        .19569E-06** at limit **
   9  Prefactor     .10000E-03    30.751       -.75873E-06** at limit **
  10  Prefactor     17.248        40.107       -.23097E-05   -.90956E-04
  11  Prefactor     .10000E-03    87.353       -.90305E-05** at limit **
  12  Prefactor     1.7810        2.5921       -.45829E-07   -.47669E-04
  13  Prefactor     .10000E-03    1.4771        .28469E-06** at limit **
  14  Prefactor     .10000E-03    12.553        .37328E-06** at limit **
  15  Prefactor     7.3846        12.351        .28853E-06    .59221E-04
  16  norm          1.8817        3.1490        .29145E-06    .10571E-03
  17  norm          7.8735        5.2075       -.64741E-07    .48514E-05
  18  Prefactor     34.045        28.294        .28208E-06    .12384E-04
  19  norm          20.872        50.360        .72034E-06    .33636E-05
  20  Prefactor     .10000E-03    286.13       -.23599E-04** at limit **
  21  norm          1.2073        .71243        .34627E-07    .16000E-03
  22  Prefactor     7.7857        7.7889       -.46337E-07   -.22627E-05
  23  Prefactor     9.4618        28.951        .44603E-06   -.86922E-06
  24  norm          8.2915        2.7436        .16405E-07    .47436E-04
  25  Normalizat    1.4903        .22278        .10852E-05   -.27705E-03
  26  Prefactor     .73853        .18590       -.30168E-05   -.30145E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5373
  Prefactor  = 0.0001
  Prefactor  = 3.27152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.771886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2476
  Prefactor  = 0.000100002
  Prefactor  = 1.78103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.38459
  norm       = 1.88173
  norm       = 7.87351
  Prefactor  = 34.0451
  norm       = 20.8717
  Prefactor  = 0.0001
  norm       = 1.20731
  Prefactor  = 7.78573
  Prefactor  = 9.46176
  norm       = 8.29148
  Normalizat = 1.49031
  Prefactor  = 0.738528
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.486     FROM HESSE     STATUS=OK           460 CALLS     3568 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.537        9.9862        .12342E-03   -1.5059    
   2  Prefactor     .10000E-03    16.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2715        3.1091        .12320E-03   -1.5346    
   4  Prefactor     .10000E-03    12.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77189        12.315        .49333E-03   -1.5532    
   7  Prefactor     .10000E-03    125.33        .40435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.248        39.294        .96486E-04   -1.4877    
  11  Prefactor     .10000E-03    86.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7810        2.5714        .14226E-03   -1.5441    
  13  Prefactor     .10000E-03    1.5040        .89556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3846        12.231        .14751E-03   -1.5164    
  16  norm          1.8817        3.1083        .15016E-03   -1.5434    
  17  norm          7.8735        5.2066        .11328E-03   -1.5147    
  18  Prefactor     34.045        28.299        .68671E-04   -1.4540    
  19  norm          20.872        50.512        .87672E-04   -1.4794    
  20  Prefactor     .10000E-03    284.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2073        .70079        .44006E-04   -1.5488    
  22  Prefactor     7.7857        7.7791        .14370E-03   -1.5150    
  23  Prefactor     9.4618        28.939        .13022E-03   -1.5093    
  24  norm          8.2915        2.7393        .67870E-04   -1.5132    
  25  Normalizat    1.4903        .25932        .25223E-03   -.78051    
  26  Prefactor     .73853        .21382        .29173E-03   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.093e-10
Minuit parameter uncertainties:
  1  9.98774
  2  2.38574e-05
  3  3.1092
  4  2.00777e-05
  5  5.45071e-05
  6  6.16751
  7  0.000223498
  8  1.91784e-05
  9  3.34486e-05
  10  39.3534
  11  0.000808145
  12  2.57151
  13  4.5752e-06
  14  2.05577e-05
  15  12.2349
  16  3.10855
  17  5.2069
  18  28.3097
  19  50.6158
  20  0.000468572
  21  0.700799
  22  7.78008
  23  28.9824
  24  2.73931
  25  0.259553
  26  0.21406
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.451e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.385e-01  2.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.490e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187922/likelihoodResults_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.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): 102
logL (Free Index) = 5695.48659698
delta logL = -0.000110247083285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5695.48648788
delta logL = -1.14844260679e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7318       1.0000          .0000       10.000    
     3 'Normalizat'    1.4903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   5695.486     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10387E-03    12.625        .18142E-01** at limit **
   2  Index         2.6337        7.8260        .50000        .81571E-05
   3  Normalizat    1.4903        .34223E-02    .25223E-03    .54331E-04
   4  Prefactor     .73852        .29134E-02    .29172E-03    .33047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103867
  Index      = 2.63372
  Normalizat = 1.49032
  Prefactor  = 0.738525
 **********
 **   18 **HESSE 
 **********

 FCN=   5695.486     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10387E-03    132.78        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6337        8.6140        .50000       -.49298    
   3  Normalizat    1.4903        .11141E-01    .50445E-04   -.78051    
   4  Prefactor     .73852        .94843E-02    .11669E-04   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81033e-09
Minuit parameter uncertainties:
  1  0.0454213
  2  407.074
  3  0.0111409
  4  0.00948433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187922': 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): 102
logL (Free Index) = 5695.4864872
delta logL = -4.70957274956e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.039e-04  4.542e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.634e+00  4.071e+02  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.385e-01  9.484e-03  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.490e+00  1.114e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.164 6.673

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/187922/cmap_HighResolution_326937601_327196801_4FGL_J1156.6+0640_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-04 17:22:45.351349', job_id='187922', GAL2='0.74', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630801365.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-4.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='338' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 187922: <4FGL_J1156.6+0640_daily_bin338> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin338> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:19 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:06:22 2021
Terminated at Sat Sep  4 17:22:46 2021
Results reported at Sat Sep  4 17:22:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin338 179.164 6.6728 326937601 327196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1156.6+0640 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            987 sec.

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

