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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin553
RA = 179.164, Dec = 6.6728
tmin = 382665601, tmax = 382924801
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='188239', job_status='RUN', time_executed='2021-09-04 17:10:14.500825', time_epoch_executed='1630800614.5' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188239

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188239/ft1_4FGL_J1156.6+0640_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188239/ft1_4FGL_J1156.6+0640_daily_bin553.fits outfile=/scratch/kocevski/188239/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin553.fits ra=179.164 dec=6.6728 rad=12.0 tmin=382665601.0 tmax=382924801.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.35
user 3.16
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.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/188239/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin553.fits evtable="EVENTS" outfile="/scratch/kocevski/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.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/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/188239/ltcube_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.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/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/188239/ltcube_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.fits outfile=/scratch/kocevski/188239/expmap_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.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/188239/ltcube_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.fits
.....................!
real 190.78
user 185.63
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 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/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.fits scfile=/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits outfile=/scratch/kocevski/188239/cmap_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.fits scfile=/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits outfile=/scratch/kocevski/188239/cmap_HighResolution_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.fits', '/scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits', expMap='/scratch/kocevski/188239/expmap_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.fits', expCube='/scratch/kocevski/188239/ltcube_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/188239/Model_4FGL_J1156.6+0640_daily_bin553.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/188239/ft1_filtered_4FGL_J1156.6+0640_daily_bin553.fits
Spacecraft file(s): /scratch/kocevski/188239/ft2_4FGL_J1156.6+0640_daily_bin553.fits
Exposure map: /scratch/kocevski/188239/expmap_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.fits
Exposure cube: /scratch/kocevski/188239/ltcube_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/188239/Model_4FGL_J1156.6+0640_daily_bin553.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) = 6255.68235702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11318E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.327       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5926       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6751       1.0000         .10000E-03   10000.    
     9 'Prefactor '    126.00       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.794       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.513       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1479       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5611       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    69.130       1.0000         .10000E-03   10000.    
    24 'norm      '    36.371       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68244       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3084       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=   6255.677     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3152 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.341        .49376E-06** at limit **
   2  Prefactor     36.311        41.962       -.51486E-06   -.12724E-04
   3  Prefactor     3.5924        2.3264       -.53014E-07   -.53986E-04
   4  Prefactor     12.858        17.059       -.10749E-07   -.71255E-05
   5  Prefactor     13.967        238.06       -.66146E-05   -.25012E-04
   6  Prefactor     .10000E-03    12.713       -.16106E-05** at limit **
   7  Prefactor     .10000E-03    5.2680       -.16787E-06** at limit **
   8  Prefactor     8.6706        18.359       -.11554E-06   -.10813E-04
   9  Prefactor     126.00        116.94       -.13612E-05   -.17241E-04
  10  Prefactor     45.786        42.540       -.95213E-06   -.50785E-04
  11  Prefactor     .10000E-03    10.556        .16141E-06** at limit **
  12  Prefactor     .10000E-03    1.6070        .20786E-07** at limit **
  13  Prefactor     6.3188        4.4510       -.26650E-07    .21723E-04
  14  Prefactor     .10000E-03    15.031        .37814E-07** at limit **
  15  Prefactor     10.513        11.644        .16395E-06    .60515E-05
  16  norm          4.1478        2.6557       -.13719E-08   -.41215E-04
  17  norm          .10000E-03    2.1136        .61113E-07** at limit **
  18  Prefactor     .10000E-03    18.917        .13048E-06** at limit **
  19  norm          .10000E-03    32.768        .17827E-06** at limit **
  20  Prefactor     .10000E-03    53.538       -.53932E-07** at limit **
  21  norm          1.5611        .63038       -.12023E-07   -.55887E-04
  22  Prefactor     .10003E-03    6.7521       -.75234E-06** at limit **
  23  Prefactor     69.141        32.590       -.12607E-05   -.12610E-03
  24  norm          36.370        4.2322       -.11977E-07   -.74656E-04
  25  Normalizat    .68263        .26855        .65642E-05   -.45548E-04
  26  Prefactor     1.3082        .22595       -.41465E-05    .63247E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 36.3108
  Prefactor  = 3.59243
  Prefactor  = 12.8579
  Prefactor  = 13.9665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.67057
  Prefactor  = 125.998
  Prefactor  = 45.7856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.3188
  Prefactor  = 0.0001
  Prefactor  = 10.5129
  norm       = 4.14779
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56111
  Prefactor  = 0.000100028
  Prefactor  = 69.1406
  norm       = 36.37
  Normalizat = 0.682631
  Prefactor  = 1.30822
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.677     FROM HESSE     STATUS=OK           454 CALLS     3606 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.311        42.059        .66493E-04   -1.4502    
   3  Prefactor     3.5924        2.3283        .93496E-04   -1.5329    
   4  Prefactor     12.858        17.058        .11169E-03   -1.4991    
   5  Prefactor     13.967        241.79        .10683E-03   -1.4960    
   6  Prefactor     .10000E-03    13.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3165        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6706        18.301        .13609E-03   -1.5119    
   9  Prefactor     126.00        116.50        .35862E-04   -1.3458    
  10  Prefactor     45.786        42.483        .59249E-04   -1.4354    
  11  Prefactor     .10000E-03    10.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6135        .97770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3188        4.4446        .13253E-03   -1.5205    
  14  Prefactor     .10000E-03    15.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.513        11.621        .12357E-03   -1.5059    
  16  norm          4.1478        2.6550        .96214E-04   -1.5301    
  17  norm          .10000E-03    2.1728        .22420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    32.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5611        .62414        .37782E-04   -1.5458    
  22  Prefactor     .10003E-03    26.663        .36855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     69.141        32.507        .48278E-04   -1.4043    
  24  norm          36.370        4.2315        .53246E-04   -1.4501    
  25  Normalizat    .68263        .27295        .35969E-03   -1.0458    
  26  Prefactor     1.3082        .23058        .24528E-03   -.83063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16694e-09
Minuit parameter uncertainties:
  1  6.09029e-05
  2  42.0938
  3  2.32839
  4  17.0641
  5  116.779
  6  0.000160604
  7  1.20087e-05
  8  18.313
  9  116.711
  10  42.5115
  11  1.16524e-05
  12  4.10048e-07
  13  4.44482
  14  1.89131e-05
  15  11.6235
  16  2.65509
  17  1.37169e-06
  18  1.92463e-05
  19  6.30904e-05
  20  6.16373e-05
  21  0.624142
  22  0.00172197
  23  32.5153
  24  4.23149
  25  0.273498
  26  0.230764
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.397e+01  1.168e+02  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:  1.308e+00  2.308e-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:  6.826e-01  2.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188239/likelihoodResults_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.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) = 6255.03934549
delta logL = 0.637256581004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6254.85995208
delta logL = 0.816649993786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8580       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0890       1.0000          .0000       10.000    
     3 'Normalizat'    .56620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3752       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6254.860     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      295 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8360        164.63        .70751E-03   -.25390E-03
   2  Index         4.0914        6.8862        .47109E-02   -.31068E-04
   3  Normalizat    .56668        .21116        .39265E-03   -.32863E-04
   4  Prefactor     1.3746        .18895        .24015E-03   -.44082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.83596
  Index      = 4.09145
  Normalizat = 0.566681
  Prefactor  = 1.37464
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.860     FROM HESSE     STATUS=OK            27 CALLS      322 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8360        18.305        .28300E-04   -1.5268    
   2  Index         4.0914        1.6068        .18844E-03   -.18273    
   3  Normalizat    .56668        .26483        .15706E-04   -1.0942    
   4  Prefactor     1.3746        .23448        .48031E-04   -.81114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70078e-11
Minuit parameter uncertainties:
  1  18.3266
  2  1.63691
  3  0.265421
  4  0.234658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188239': 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) = 6254.85994654
delta logL = 0.816655531548

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.836e+00  1.833e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  4.091e+00  1.637e+00  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:  1.375e+00  2.347e-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:  5.667e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 179.164 6.673
Photon Index (Free Index): 4.09 +/- 1.64
Photon Flux (Free Index): 8.06e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.09e-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/188239/cmap_HighResolution_382665601_382924801_4FGL_J1156.6+0640_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='8.17e-01', photon_flux2='8.06e-08', job_status='DONE', time_completed='2021-09-04 17:23:12.746052', photon_index_error2='1.64', photon_index2='4.09', ts='0.02', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.09e-05', EG='0.68', time_epoch_completed='1630801392.75', return_code='0', job_id='188239', GAL2='1.37', EG2='0.57', return_code2='0', photon_flux_error2='7.39e-08', ts2='1.87', photon_index='2.32' WHERE bin_id='553' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:23:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 188239: <4FGL_J1156.6+0640_daily_bin553> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin553> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:42 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:44 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:44 2021
Terminated at Sat Sep  4 17:23:13 2021
Results reported at Sat Sep  4 17:23:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin553 179.164 6.6728 382665601 382924801 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 :                                   778.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

