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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin431
RA = 179.164, Dec = 6.6728
tmin = 351043201, tmax = 351302401
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='188057', job_status='RUN', time_executed='2021-09-04 17:10:32.872319', time_epoch_executed='1630800632.87' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188057

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188057/ft1_4FGL_J1156.6+0640_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188057/ft2_4FGL_J1156.6+0640_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188057/ft1_4FGL_J1156.6+0640_daily_bin431.fits outfile=/scratch/kocevski/188057/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin431.fits ra=179.164 dec=6.6728 rad=12.0 tmin=351043201.0 tmax=351302401.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.39
user 3.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188057/ft1_filtered_4FGL_J1156.6+0640_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/188057/ft2_4FGL_J1156.6+0640_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/188057/ltcube_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.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/188057/ft2_4FGL_J1156.6+0640_daily_bin431.fits
.....................!
real 11.78
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188057/ft1_filtered_4FGL_J1156.6+0640_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/188057/ft2_4FGL_J1156.6+0640_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/188057/ltcube_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.fits outfile=/scratch/kocevski/188057/expmap_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.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/188057/ltcube_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.fits
.....................!
real 189.10
user 184.66
sys 4.07

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/188057/ft1_filtered_4FGL_J1156.6+0640_daily_bin431.fits scfile=/scratch/kocevski/188057/ft2_4FGL_J1156.6+0640_daily_bin431.fits outfile=/scratch/kocevski/188057/cmap_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.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.54
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   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 '    11.274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.6128       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .74735       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22663E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4839       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94383       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0621       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=   5259.860     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3066 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.5930       -.54059E-06** at limit **
   2  Prefactor     36.938        43.340        .14167E-04   -.77530E-05
   3  Prefactor     .10000E-03    1.0037        .52822E-07** at limit **
   4  Prefactor     .10000E-03    8.6039       -.30567E-05** at limit **
   5  Prefactor     .10000E-03    57.208        .28587E-04** at limit **
   6  Prefactor     .10000E-03    5.4558        .22992E-06** at limit **
   7  Prefactor     11.273        9.8630       -.12339E-06   -.36386E-03
   8  Prefactor     21.823        15.699        .16294E-06   -.22560E-04
   9  Prefactor     .10000E-03    31.977        .12727E-05** at limit **
  10  Prefactor     .10000E-03    53.271        .43945E-04** at limit **
  11  Prefactor     .10000E-03    8.0715        .51720E-05** at limit **
  12  Prefactor     .10000E-03    2.5294       -.38973E-07** at limit **
  13  Prefactor     .10000E-03    1.4616        .65531E-07** at limit **
  14  Prefactor     .10000E-03    14.844        .23144E-05** at limit **
  15  Prefactor     .10000E-03    5.4703       -.12780E-06** at limit **
  16  norm          .10000E-03    .94067       -.17827E-06** at limit **
  17  norm          3.7201        3.8961       -.60508E-08   -.47487E-03
  18  Prefactor     .10000E-03    9.8953        .21242E-05** at limit **
  19  norm          8.6131        49.649        .54847E-06   -.13587E-04
  20  Prefactor     .10000E-03    73.429       -.75834E-04** at limit **
  21  norm          .74744        .57259        .60475E-07   -.83135E-03
  22  Prefactor     .10039E-03    5.6321       -.23614E-05** at limit **
  23  Prefactor     .10000E-03    8.7899       -.42546E-05** at limit **
  24  norm          2.4840        1.9009        .93406E-07   -.35820E-03
  25  Normalizat    .94375        .20055       -.29683E-05    .25898E-04
  26  Prefactor     1.0621        .17172        .70632E-06   -.54017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 36.9378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2733
  Prefactor  = 21.8229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.72009
  Prefactor  = 0.0001
  norm       = 8.61312
  Prefactor  = 0.0001
  norm       = 0.747437
  Prefactor  = 0.000100393
  Prefactor  = 0.0001
  norm       = 2.48403
  Normalizat = 0.943746
  Prefactor  = 1.06215
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.860     FROM HESSE     STATUS=OK           454 CALLS     3520 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.7029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.938        43.492        .65955E-04   -1.4492    
   3  Prefactor     .10000E-03    1.9467        .14133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4908        .16542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.273        9.8588        .11932E-03   -1.5036    
   8  Prefactor     21.823        15.713        .85742E-04   -1.4773    
   9  Prefactor     .10000E-03    31.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    53.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9479        .22286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4904        .85488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4938        .16562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .95488        .68670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7201        3.8608        .12279E-03   -1.5322    
  18  Prefactor     .10000E-03    9.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.6131        49.288        .13659E-03   -1.5121    
  20  Prefactor     .10000E-03    73.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74744        .55311        .42924E-04   -1.5535    
  22  Prefactor     .10039E-03    29.702        .33082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4840        1.8852        .82417E-04   -1.5393    
  25  Normalizat    .94375        .22622        .26548E-03   -.94940    
  26  Prefactor     1.0621        .19486        .22646E-03   -.90686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33462e-08
Minuit parameter uncertainties:
  1  0.00011532
  2  43.5297
  3  1.36554e-05
  4  4.58327e-06
  5  1.06304e-05
  6  3.89389e-06
  7  9.86025
  8  15.7157
  9  6.90972e-06
  10  7.72705e-05
  11  3.07854e-06
  12  0.000121978
  13  5.18776e-06
  14  7.31597e-06
  15  6.31315e-06
  16  1.67501e-06
  17  3.86103
  18  7.41091e-06
  19  41.2595
  20  4.03975e-05
  21  0.553115
  22  0.00683468
  23  1.79435e-05
  24  1.88521
  25  0.226449
  26  0.194995
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.063e-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:  1.062e+00  1.950e-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:  9.437e-01  2.264e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188057/likelihoodResults_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.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) = 5259.86045973
delta logL = -8.31172410471e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5259.86037662
delta logL = -4.81941242469e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2637       1.0000          .0000       10.000    
     3 'Normalizat'    .94375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0622       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.

 FCN=   5259.860     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      224 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7680.4        .90712E-02** at limit **
   2  Index         2.2639        8.4844        .50000       -.48885E-07
   3  Normalizat    .94375        .63500E-01    .45458E-01    .37298E-03
   4  Prefactor     1.0622        .57381E-01    .39245E-01    .52913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.26387
  Normalizat = 0.943745
  Prefactor  = 1.06215
 **********
 **   18 **HESSE 
 **********

 FCN=   5259.860     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    277.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2639        5.5707        .50000       -.57905    
   3  Normalizat    .94375        .21248        .26548E-03   -.94940    
   4  Prefactor     1.0622        .19219        .22646E-03   -.90686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51077e-10
Minuit parameter uncertainties:
  1  0.000924138
  2  9.3655
  3  0.21267
  4  0.192318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188057': 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) = 5259.86037662
delta logL = -9.19499143492e-10

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  9.241e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.264e+00  9.366e+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.062e+00  1.923e-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:  9.437e-01  2.127e-01  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/188057/cmap_HighResolution_351043201_351302401_4FGL_J1156.6+0640_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-04 17:21:54.463961', job_id='188057', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630801314.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-9.19e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='431' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 188057: <4FGL_J1156.6+0640_daily_bin431> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin431> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:30 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:32 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:32 2021
Terminated at Sat Sep  4 17:21:55 2021
Results reported at Sat Sep  4 17:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin431 179.164 6.6728 351043201 351302401 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 :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

