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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin839
RA = 179.164, Dec = 6.6728
tmin = 456796801, tmax = 457056001
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='189904', job_status='RUN', time_executed='2021-09-04 17:14:31.329054', time_epoch_executed='1630800871.33' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='839'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189904/ft1_4FGL_J1156.6+0640_daily_bin839.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189904/ft2_4FGL_J1156.6+0640_daily_bin839.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189904/ft1_4FGL_J1156.6+0640_daily_bin839.fits outfile=/scratch/kocevski/189904/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin839.fits ra=179.164 dec=6.6728 rad=12.0 tmin=456796801.0 tmax=457056001.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.30
user 3.09
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189904/ft1_filtered_4FGL_J1156.6+0640_daily_bin839.fits" evtable="EVENTS" scfile=/scratch/kocevski/189904/ft2_4FGL_J1156.6+0640_daily_bin839.fits sctable="SC_DATA" outfile=/scratch/kocevski/189904/ltcube_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.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/189904/ft2_4FGL_J1156.6+0640_daily_bin839.fits
.....................!
real 13.10
user 12.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189904/ft1_filtered_4FGL_J1156.6+0640_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/189904/ft2_4FGL_J1156.6+0640_daily_bin839.fits sctable="SC_DATA" expcube=/scratch/kocevski/189904/ltcube_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.fits outfile=/scratch/kocevski/189904/expmap_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.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/189904/ltcube_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.fits
.....................!
real 191.34
user 186.01
sys 4.90

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/189904/ft1_filtered_4FGL_J1156.6+0640_daily_bin839.fits scfile=/scratch/kocevski/189904/ft2_4FGL_J1156.6+0640_daily_bin839.fits outfile=/scratch/kocevski/189904/cmap_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.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/189904/ft1_filtered_4FGL_J1156.6+0640_daily_bin839.fits scfile=/scratch/kocevski/189904/ft2_4FGL_J1156.6+0640_daily_bin839.fits outfile=/scratch/kocevski/189904/cmap_HighResolution_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.457       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5414       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6614       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.774       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82291       1.0000         .10000E-03   10000.    
    16 'norm      '    .16501E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7493       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.8694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .46156       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.0001       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3478       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84279       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=   5299.362     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3202 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.448        15.664       -.58617E-06   -.26170E-04
   2  Prefactor     .10000E-03    30.524        .20414E-06** at limit **
   3  Prefactor     2.8342        2.8665       -.19386E-06    .27894E-03
   4  Prefactor     1.5132        125.28       -.52412E-05    .25716E-04
   5  Prefactor     7.5873        90.990        .43413E-05    .30430E-04
   6  Prefactor     10.100        9.7992       -.29580E-06   -.64196E-04
   7  Prefactor     10.031        12.404       -.47107E-07    .14405E-03
   8  Prefactor     .10000E-03    4.9083        .68381E-07** at limit **
   9  Prefactor     18.585        73.390        .15915E-05    .21632E-04
  10  Prefactor     47.790        46.344        .25748E-06   -.39595E-04
  11  Prefactor     53.880        37.260        .26539E-05    .15969E-03
  12  Prefactor     .10000E-03    2.3320       -.11624E-06** at limit **
  13  Prefactor     .10000E-03    1.4969       -.92996E-07** at limit **
  14  Prefactor     .10000E-03    9.0800        .54706E-07** at limit **
  15  Prefactor     .84665        89.558       -.24263E-04    .14073E-03
  16  norm          .10005E-03    2.4197        .47349E-06** at limit **
  17  norm          1.7449        4.7857       -.15470E-05    .83751E-04
  18  Prefactor     .10000E-03    13.756        .19984E-07** at limit **
  19  norm          4.8831        113.51        .19196E-05   -.12220E-05
  20  Prefactor     .10000E-03    211.28       -.77392E-06** at limit **
  21  norm          .46211        .59786        .51528E-06    .30736E-02
  22  Prefactor     .10000E-03    4.0235       -.60277E-07** at limit **
  23  Prefactor     .10000E-03    25.546       -.42212E-06** at limit **
  24  norm          2.9999        1.8765       -.72706E-07   -.36674E-04
  25  Normalizat    1.3481        .22736        .11501E-05    .38538E-03
  26  Prefactor     .84272        .18987        .94582E-06    .28992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.448
  Prefactor  = 0.0001
  Prefactor  = 2.83419
  Prefactor  = 1.51321
  Prefactor  = 7.58727
  Prefactor  = 10.1003
  Prefactor  = 10.0308
  Prefactor  = 0.0001
  Prefactor  = 18.5852
  Prefactor  = 47.7899
  Prefactor  = 53.8797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.846648
  norm       = 0.000100048
  norm       = 1.74486
  Prefactor  = 0.0001
  norm       = 4.8831
  Prefactor  = 0.0001
  norm       = 0.462111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9999
  Normalizat = 1.34807
  Prefactor  = 0.842718
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.362     FROM HESSE     STATUS=OK           460 CALLS     3662 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.448        15.730        .11836E-03   -1.5031    
   2  Prefactor     .10000E-03    30.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8342        2.8600        .11808E-03   -1.5371    
   4  Prefactor     1.5132        125.08        .34338E-03   -1.5462    
   5  Prefactor     7.5873        91.977        .14488E-03   -1.5157    
   6  Prefactor     10.100        9.7959        .12607E-03   -1.5072    
   7  Prefactor     10.031        12.353        .12650E-03   -1.5074    
   8  Prefactor     .10000E-03    4.9086        .15741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.585        73.530        .92788E-04   -1.4845    
  10  Prefactor     47.790        46.393        .58013E-04   -1.4324    
  11  Prefactor     53.880        36.946        .54673E-04   -1.4239    
  12  Prefactor     .10000E-03    2.3870        .10854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5212        .86963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .84665        96.491        .50550E-02   -1.5524    
  16  norm          .10005E-03    6.5170        .19154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7449        4.6965        .20703E-03   -1.5444    
  18  Prefactor     .10000E-03    13.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.8831        107.15        .18229E-03   -1.5266    
  20  Prefactor     .10000E-03    211.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .46211        .57075        .55843E-03   -1.5572    
  22  Prefactor     .10000E-03    4.0312        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9999        1.8679        .74959E-04   -1.5362    
  25  Normalizat    1.3481        .27128        .24859E-03   -.82143    
  26  Prefactor     .84272        .22381        .26690E-03   -.98172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72814e-09
Minuit parameter uncertainties:
  1  15.7355
  2  6.16596e-05
  3  2.86013
  4  27.5746
  5  52.9352
  6  9.7975
  7  12.3559
  8  6.42805e-05
  9  73.8915
  10  46.4276
  11  36.9616
  12  7.84871e-06
  13  5.13738e-06
  14  1.00187e-05
  15  18.1059
  16  0.00112427
  17  4.69754
  18  2.66614e-07
  19  45.8415
  20  0.000144013
  21  0.570752
  22  3.84956e-06
  23  5.32374e-05
  24  1.8679
  25  0.271567
  26  0.224051
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  7.587e+00  5.294e+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:  8.427e-01  2.241e-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.348e+00  2.716e-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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189904/likelihoodResults_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.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) = 5299.35917811
delta logL = 0.00234063697826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5299.35899689
delta logL = 0.00252185620684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8561       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4885       1.0000          .0000       10.000    
     3 'Normalizat'    1.3470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84311       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=   5299.359     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      252 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7740        672.31        .38307E-02    .51061E-04
   2  Index         2.5013        1.2061        .50000       -.13766E-05
   3  Normalizat    1.3473        .17342E-01    .56230E-01   -.41187E-03
   4  Prefactor     .84307        .15180E-01    .44276E-01    .32220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77405
  Index      = 2.50131
  Normalizat = 1.34725
  Prefactor  = 0.843072
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.359     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7740        90.245        .15323E-03   -1.5187    
   2  Index         2.5013        2.4845        .62269E-02   -.52330    
   3  Normalizat    1.3473        .24806        .24865E-03   -.82167    
   4  Prefactor     .84307        .21674        .13342E-02   -.98160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.92301e-10
Minuit parameter uncertainties:
  1  49.5411
  2  2.64609
  3  0.248282
  4  0.216965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189904': 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) = 5299.35898232
delta logL = 0.00253642277494

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.774e+00  4.954e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.501e+00  2.646e+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:  8.431e-01  2.170e-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.347e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/189904/cmap_HighResolution_456796801_457056001_4FGL_J1156.6+0640_daily_bin839.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-04 17:26:30.498644', job_id='189904', GAL2='0.84', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630801590.5', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.54e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='839' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 189904: <4FGL_J1156.6+0640_daily_bin839> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin839> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:42 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11: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:11:44 2021
Terminated at Sat Sep  4 17:26:31 2021
Results reported at Sat Sep  4 17:26:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin839 179.164 6.6728 456796801 457056001 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 :                                   717.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

