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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin468
RA = 179.164, Dec = 6.6728
tmin = 360633601, tmax = 360892801
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='188112', job_status='RUN', time_executed='2021-09-04 17:09:12.565538', time_epoch_executed='1630800552.57' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188112/ft1_4FGL_J1156.6+0640_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188112/ft2_4FGL_J1156.6+0640_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188112/ft1_4FGL_J1156.6+0640_daily_bin468.fits outfile=/scratch/kocevski/188112/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin468.fits ra=179.164 dec=6.6728 rad=12.0 tmin=360633601.0 tmax=360892801.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.34
user 3.14
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188112/ft2_4FGL_J1156.6+0640_daily_bin468.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/188112/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/188112/ft1_filtered_4FGL_J1156.6+0640_daily_bin468.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.59
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188112/ft1_filtered_4FGL_J1156.6+0640_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/188112/ft2_4FGL_J1156.6+0640_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/188112/ltcube_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.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/188112/ft2_4FGL_J1156.6+0640_daily_bin468.fits
.....................!
real 12.88
user 12.45
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188112/ft1_filtered_4FGL_J1156.6+0640_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/188112/ft2_4FGL_J1156.6+0640_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/188112/ltcube_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.fits outfile=/scratch/kocevski/188112/expmap_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.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/188112/ltcube_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.fits
.....................!
real 192.66
user 187.01
sys 5.24

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/188112/ft1_filtered_4FGL_J1156.6+0640_daily_bin468.fits scfile=/scratch/kocevski/188112/ft2_4FGL_J1156.6+0640_daily_bin468.fits outfile=/scratch/kocevski/188112/cmap_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188112/ft1_filtered_4FGL_J1156.6+0640_daily_bin468.fits scfile=/scratch/kocevski/188112/ft2_4FGL_J1156.6+0640_daily_bin468.fits outfile=/scratch/kocevski/188112/cmap_HighResolution_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.951       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1625       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.245       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.819       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12664       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.137       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4660       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3090       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69069       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=   5446.563     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3160 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4638       -.23522E-06** at limit **
   2  Prefactor     11.927        38.186       -.19419E-05   -.60018E-04
   3  Prefactor     3.7711        2.3198       -.33660E-07   -.10735E-04
   4  Prefactor     .10000E-03    6.0774       -.17702E-07** at limit **
   5  Prefactor     .10000E-03    45.764       -.23121E-07** at limit **
   6  Prefactor     8.6527        7.3879       -.93791E-07   -.18855E-04
   7  Prefactor     1.2803        8.2034        .37218E-05    .16054E-03
   8  Prefactor     .18238        6.7352        .11896E-06   -.78882E-04
   9  Prefactor     .10000E-03    24.679        .14131E-06** at limit **
  10  Prefactor     .10000E-03    69.852        .10779E-05** at limit **
  11  Prefactor     51.930        33.052       -.73224E-06   -.94914E-04
  12  Prefactor     3.6417        3.0303       -.48475E-07   -.80610E-05
  13  Prefactor     3.1619        2.6791       -.26899E-07   -.25760E-05
  14  Prefactor     .10000E-03    10.836        .40984E-07** at limit **
  15  Prefactor     12.237        15.588       -.26979E-06   -.74379E-04
  16  norm          .10000E-03    1.2444        .31978E-07** at limit **
  17  norm          21.813        5.7679       -.21481E-06   -.34051E-03
  18  Prefactor     .10000E-03    51.089        .55736E-06** at limit **
  19  norm          .10000E-03    19.169       -.10766E-06** at limit **
  20  Prefactor     .10000E-03    50.154       -.24875E-07** at limit **
  21  norm          .12664        .42743        .11837E-06   -.26266E-03
  22  Prefactor     .10000E-03    4.2414       -.50277E-06** at limit **
  23  Prefactor     19.092        30.865       -.77696E-06   -.46391E-04
  24  norm          3.4646        2.3625       -.38554E-07   -.14232E-03
  25  Normalizat    1.3098        .24377        .42066E-05   -.23177E-03
  26  Prefactor     .69006        .19574       -.49339E-05   -.84940E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 11.9266
  Prefactor  = 3.77106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65273
  Prefactor  = 1.2803
  Prefactor  = 0.182384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.9297
  Prefactor  = 3.64166
  Prefactor  = 3.16185
  Prefactor  = 0.0001
  Prefactor  = 12.237
  norm       = 0.0001
  norm       = 21.8128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.12664
  Prefactor  = 0.0001
  Prefactor  = 19.0918
  norm       = 3.46463
  Normalizat = 1.30985
  Prefactor  = 0.690057
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.563     FROM HESSE     STATUS=OK           458 CALLS     3618 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4701        .13418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.927        38.465        .11571E-03   -1.5017    
   3  Prefactor     3.7711        2.3212        .85105E-04   -1.5320    
   4  Prefactor     .10000E-03    6.0780        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6527        7.3865        .13626E-03   -1.5120    
   7  Prefactor     1.2803        8.7797        .39200E-03   -1.5482    
   8  Prefactor     .18238        89.356        .36892E-02   -1.5623    
   9  Prefactor     .10000E-03    24.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    70.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.930        33.079        .55644E-04   -1.4265    
  12  Prefactor     3.6417        3.0268        .11229E-03   -1.5326    
  13  Prefactor     3.1619        2.6732        .10627E-03   -1.5352    
  14  Prefactor     .10000E-03    10.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.237        15.350        .11448E-03   -1.5008    
  16  norm          .10000E-03    1.2552        .80178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.813        5.6459        .80991E-04   -1.4774    
  18  Prefactor     .10000E-03    51.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .12664        .56611        .75551E-03   -1.5637    
  22  Prefactor     .10000E-03    4.2556        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.092        30.929        .91557E-04   -1.4834    
  24  norm          3.4646        2.3319        .86824E-04   -1.5336    
  25  Normalizat    1.3098        .25477        .24744E-03   -.83273    
  26  Prefactor     .69006        .20300        .28011E-03   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06447e-08
Minuit parameter uncertainties:
  1  8.00621e-06
  2  38.5447
  3  2.32122
  4  2.92708e-06
  5  0.000148254
  6  7.38726
  7  6.70656
  8  8.08386
  9  3.5614e-05
  10  0.000289869
  11  33.091
  12  3.02694
  13  2.67328
  14  4.07657e-06
  15  15.3554
  16  2.42368e-06
  17  5.64603
  18  0.000135047
  19  1.10102e-05
  20  2.76893e-05
  21  0.535305
  22  1.60071e-05
  23  30.9551
  24  2.33196
  25  0.255013
  26  0.203222
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.483e-04  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:  6.901e-01  2.032e-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.310e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/188112/likelihoodResults_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.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) = 5446.56346964
delta logL = -0.000103843931356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5446.56336618
delta logL = -3.82408870792e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6989       1.0000          .0000       10.000    
     3 'Normalizat'    1.3098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69006       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=   5446.563     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    237.32        .18142E-02** at limit **
   2  Index         2.6424        5.0950        .50000        .59050E-05
   3  Normalizat    1.3099        .13393E-01    .24743E-03    .25087E-04
   4  Prefactor     .69005        .11423E-01    .28012E-03    .25366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101589
  Index      = 2.64243
  Normalizat = 1.30985
  Prefactor  = 0.690055
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.563     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    1008.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6424        5.7774        .50000       -.49101    
   3  Normalizat    1.3099        .28672E-01    .98972E-05   -.83273    
   4  Prefactor     .69005        .24455E-01    .11205E-04   -1.0392    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.85624e-09
Minuit parameter uncertainties:
  1  0.0814464
  2  888.338
  3  0.0286726
  4  0.0244553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188112': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5446.56336612
delta logL = -3.25821019942e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  6.901e-01  2.446e-02  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.310e+00  2.867e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/188112/cmap_HighResolution_360633601_360892801_4FGL_J1156.6+0640_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-04 17:21:21.483705', job_id='188112', GAL2='0.69', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630801281.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-3.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='468' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 188112: <4FGL_J1156.6+0640_daily_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin468 179.164 6.6728 360633601 360892801 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 :                                   727.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.14 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.

