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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin517
RA = 179.164, Dec = 6.6728
tmin = 373334401, tmax = 373593601
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='188185', job_status='RUN', time_executed='2021-09-04 17:08:42.995001', time_epoch_executed='1630800523.0' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188185/ft1_4FGL_J1156.6+0640_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188185/ft2_4FGL_J1156.6+0640_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188185/ft1_4FGL_J1156.6+0640_daily_bin517.fits outfile=/scratch/kocevski/188185/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin517.fits ra=179.164 dec=6.6728 rad=12.0 tmin=373334401.0 tmax=373593601.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.46
user 4.25
sys 0.18

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188185/ft1_filtered_4FGL_J1156.6+0640_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/188185/ft2_4FGL_J1156.6+0640_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/188185/ltcube_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.fits outfile=/scratch/kocevski/188185/expmap_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.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/188185/ltcube_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.fits
.....................!
real 191.31
user 184.82
sys 4.76

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/188185/ft1_filtered_4FGL_J1156.6+0640_daily_bin517.fits scfile=/scratch/kocevski/188185/ft2_4FGL_J1156.6+0640_daily_bin517.fits outfile=/scratch/kocevski/188185/cmap_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188185/ft1_filtered_4FGL_J1156.6+0640_daily_bin517.fits scfile=/scratch/kocevski/188185/ft2_4FGL_J1156.6+0640_daily_bin517.fits outfile=/scratch/kocevski/188185/cmap_HighResolution_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4232       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    122.65       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.429       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2410       1.0000         .10000E-03   10000.    
    17 'norm      '    .92557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.066       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0063       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    21.941       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0746       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1395       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=   6862.672     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3131 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2594        .28368E-08** at limit **
   2  Prefactor     53.951        41.056       -.13161E-04    .18994E-04
   3  Prefactor     2.9277        2.5933       -.51931E-06   -.34465E-03
   4  Prefactor     .10000E-03    6.8138        .41958E-07** at limit **
   5  Prefactor     54.738        76.095        .23316E-05    .18202E-04
   6  Prefactor     7.6756        8.7324       -.73925E-05   -.80665E-04
   7  Prefactor     5.4238        5.2485        .38721E-06    .82419E-04
   8  Prefactor     .10001E-03    25.003        .88325E-05** at limit **
   9  Prefactor     122.76        108.41        .18384E-04   -.39442E-04
  10  Prefactor     .10000E-03    23.403       -.73471E-05** at limit **
  11  Prefactor     22.020        20.186       -.29741E-04    .81893E-05
  12  Prefactor     .10000E-03    2.4947       -.18560E-06** at limit **
  13  Prefactor     2.8525        2.3757       -.33319E-06   -.98957E-04
  14  Prefactor     .10000E-03    26.717       -.11425E-04** at limit **
  15  Prefactor     16.439        15.636       -.54642E-05    .65991E-04
  16  norm          1.2406        1.9524        .12993E-05    .25876E-03
  17  norm          .92551        3.0768       -.95643E-06   -.11635E-02
  18  Prefactor     .10000E-03    18.241        .13555E-06** at limit **
  19  norm          .10000E-03    25.371        .71885E-05** at limit **
  20  Prefactor     32.708        98.935       -.39284E-04    .59252E-05
  21  norm          2.0064        .75989        .23076E-06    .59103E-03
  22  Prefactor     .10000E-03    10.293       -.35084E-06** at limit **
  23  Prefactor     .10000E-03    15.255        .38944E-07** at limit **
  24  norm          21.942        3.4815       -.47834E-07    .21235E-03
  25  Normalizat    1.0743        .20795        .39262E-05    .37696E-04
  26  Prefactor     1.1398        .17523        .25826E-05    .95431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 53.9507
  Prefactor  = 2.92772
  Prefactor  = 0.0001
  Prefactor  = 54.7384
  Prefactor  = 7.67557
  Prefactor  = 5.42377
  Prefactor  = 0.000100006
  Prefactor  = 122.764
  Prefactor  = 0.0001
  Prefactor  = 22.0196
  Prefactor  = 0.0001
  Prefactor  = 2.85246
  Prefactor  = 0.0001
  Prefactor  = 16.4389
  norm       = 1.24055
  norm       = 0.925507
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.7084
  norm       = 2.00641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.9419
  Normalizat = 1.07429
  Prefactor  = 1.13976
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.672     FROM HESSE     STATUS=OK           458 CALLS     3589 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.951        41.205        .54637E-04   -1.4238    
   3  Prefactor     2.9277        2.5870        .11982E-03   -1.5366    
   4  Prefactor     .10000E-03    6.8154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.738        76.171        .54211E-04   -1.4227    
   6  Prefactor     7.6756        8.7298        .14470E-03   -1.5154    
   7  Prefactor     5.4238        5.2468        .17255E-03   -1.5242    
   8  Prefactor     .10001E-03    25.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     122.76        108.67        .36342E-04   -1.3487    
  10  Prefactor     .10000E-03    23.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.020        20.181        .85355E-04   -1.4769    
  12  Prefactor     .10000E-03    2.6051        .25536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8525        2.3732        .11310E-03   -1.5370    
  14  Prefactor     .10000E-03    26.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.439        15.598        .98814E-04   -1.4897    
  16  norm          1.2406        1.9109        .13353E-03   -1.5485    
  17  norm          .92551        3.0040        .24005E-03   -1.5516    
  18  Prefactor     .10000E-03    18.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.708        98.886        .69685E-04   -1.4564    
  21  norm          2.0064        .74594        .39671E-04   -1.5425    
  22  Prefactor     .10000E-03    10.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.942        3.4772        .58768E-04   -1.4771    
  25  Normalizat    1.0743        .24597        .30390E-03   -.90582    
  26  Prefactor     1.1398        .20705        .26262E-03   -.88206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76719e-09
Minuit parameter uncertainties:
  1  2.09947e-05
  2  41.2269
  3  2.58707
  4  1.26598e-05
  5  76.3067
  6  8.73124
  7  5.24724
  8  0.000767211
  9  108.846
  10  2.93558e-05
  11  20.1871
  12  2.32417e-05
  13  2.37327
  14  3.9451e-05
  15  15.6015
  16  1.911
  17  3.00449
  18  7.44809e-06
  19  2.54033e-05
  20  99.3866
  21  0.745944
  22  7.798e-05
  23  5.09171e-05
  24  3.47725
  25  0.246227
  26  0.207195
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.474e+01  7.631e+01  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.140e+00  2.072e-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.074e+00  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/188185/likelihoodResults_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.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) = 6862.62600968
delta logL = 0.0456363764324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6862.6133491
delta logL = 0.0582969633842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.154       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9495       1.0000          .0000       10.000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1344       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=   6862.613     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      282 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.161        97.927        .48269E-04   -.20284E-03
   2  Index         1.9497        1.0048        .13402E-01   -.14364E-03
   3  Normalizat    1.0837        .23097        .30269E-03    .18775E-03
   4  Prefactor     1.1347        .20500        .26310E-03    .24352E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.1615
  Index      = 1.9497
  Normalizat = 1.08373
  Prefactor  = 1.13467
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.613     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.161        96.971        .96538E-05   -1.4043    
   2  Index         1.9497        .99500        .53609E-03   -.65614    
   3  Normalizat    1.0837        .23104        .12108E-04   -.90276    
   4  Prefactor     1.1347        .20513        .52620E-04   -.88366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77547e-09
Minuit parameter uncertainties:
  1  97.1932
  2  1.00577
  3  0.231257
  4  0.205269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188185': 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) = 6862.61334775
delta logL = 0.0582983056547

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.916e+01  9.719e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  1.950e+00  1.006e+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.135e+00  2.053e-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.084e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.88
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/188185/cmap_HighResolution_373334401_373593601_4FGL_J1156.6+0640_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-04 17:22:27.514247', job_id='188185', GAL2='1.13', fit_tolerance='1e-08', EG2='1.08', EG='1.07', time_epoch_completed='1630801347.51', return_code2='0', ts='0.88', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='5.83e-02', ts2='0.99', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='517' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 188185: <4FGL_J1156.6+0640_daily_bin517> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin517> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:39 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:40 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:40 2021
Terminated at Sat Sep  4 17:22:28 2021
Results reported at Sat Sep  4 17:22:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin517 179.164 6.6728 373334401 373593601 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 :                                   822.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

