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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin969
RA = 179.164, Dec = 6.6728
tmin = 490492801, tmax = 490752001
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='191378', job_status='RUN', time_executed='2021-09-04 17:18:31.501926', time_epoch_executed='1630801111.5' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191378/ft1_4FGL_J1156.6+0640_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191378/ft1_4FGL_J1156.6+0640_daily_bin969.fits outfile=/scratch/kocevski/191378/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin969.fits ra=179.164 dec=6.6728 rad=12.0 tmin=490492801.0 tmax=490752001.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 5.82
user 5.54
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191378/ft1_filtered_4FGL_J1156.6+0640_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/191378/ltcube_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.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/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits
.....................!
real 11.82
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191378/ft1_filtered_4FGL_J1156.6+0640_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/191378/ltcube_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.fits outfile=/scratch/kocevski/191378/expmap_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.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/191378/ltcube_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.fits
.....................!
real 191.51
user 186.05
sys 5.14

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/191378/ft1_filtered_4FGL_J1156.6+0640_daily_bin969.fits scfile=/scratch/kocevski/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits outfile=/scratch/kocevski/191378/cmap_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191378/ft1_filtered_4FGL_J1156.6+0640_daily_bin969.fits scfile=/scratch/kocevski/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits outfile=/scratch/kocevski/191378/cmap_HighResolution_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.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/191378/ft1_filtered_4FGL_J1156.6+0640_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/191378/ft2_4FGL_J1156.6+0640_daily_bin969.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191378/Model_4FGL_J1156.6+0640_daily_bin969.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/191378/ft1_filtered_4FGL_J1156.6+0640_daily_bin969.fits.....................!
real 51.55
user 50.19
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.929       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28774E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    147.29       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.542       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3732       1.0000         .10000E-03   10000.    
    17 'norm      '    .99237E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.369       1.0000         .10000E-03   10000.    
    19 'norm      '    42.598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    178.97       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8282       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .90062       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0967       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0642       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77326       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=   5159.281     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3138 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.292        14.184        .62611E-06   -.33435E-04
   2  Prefactor     51.926        56.765        .10844E-05   -.77966E-04
   3  Prefactor     .10000E-03    1.2411        .57229E-08** at limit **
   4  Prefactor     .10000E-03    6.4136        .95021E-07** at limit **
   5  Prefactor     .10000E-03    48.013       -.23136E-05** at limit **
   6  Prefactor     .10021E-03    7.9053        .34155E-05** at limit **
   7  Prefactor     .10000E-03    3.9569        .97866E-07** at limit **
   8  Prefactor     .10000E-03    85.856        .12504E-04** at limit **
   9  Prefactor     147.33        119.71        .58804E-05   -.24717E-03
  10  Prefactor     61.559        36.375       -.47778E-06   -.87456E-04
  11  Prefactor     5.9974        18.892        .45152E-05   -.11541E-03
  12  Prefactor     .10000E-03    1.6802        .14061E-07** at limit **
  13  Prefactor     .10000E-03    2.1528        .51044E-08** at limit **
  14  Prefactor     .10000E-03    11.311        .10586E-06** at limit **
  15  Prefactor     .10000E-03    5.2816        .29712E-07** at limit **
  16  norm          5.3731        2.7386       -.37177E-07   -.15456E-03
  17  norm          .10008E-03    2.1287        .23153E-05** at limit **
  18  Prefactor     16.384        45.190       -.70796E-06   -.35564E-04
  19  norm          42.699        42.784        .15979E-05    .26802E-04
  20  Prefactor     179.03        198.77       -.15623E-05   -.74826E-05
  21  norm          1.8293        .71237       -.94310E-06   -.34391E-02
  22  Prefactor     .10000E-03    5.9972       -.12983E-06** at limit **
  23  Prefactor     .89549        21.790        .21225E-05   -.12107E-03
  24  norm          6.0975        2.4157       -.25264E-06   -.73768E-03
  25  Normalizat    1.0641        .21041       -.45837E-05   -.68432E-03
  26  Prefactor     .77341        .16847        .59165E-06   -.75268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.292
  Prefactor  = 51.9255
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100212
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 147.333
  Prefactor  = 61.5594
  Prefactor  = 5.99744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.37309
  norm       = 0.000100076
  Prefactor  = 16.3844
  norm       = 42.6985
  Prefactor  = 179.033
  norm       = 1.8293
  Prefactor  = 0.0001
  Prefactor  = 0.895493
  norm       = 6.09754
  Normalizat = 1.06412
  Prefactor  = 0.773413
 **********
 **   18 **HESSE 
 **********

 FCN=   5159.281     FROM HESSE     STATUS=OK           464 CALLS     3602 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.292        14.172        .11426E-03   -1.5007    
   2  Prefactor     51.926        57.445        .55655E-04   -1.4266    
   3  Prefactor     .10000E-03    2.1633        .15466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4165        .17767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10021E-03    23.624        .37427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9977        .13951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    86.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     147.33        116.05        .16602E-03   -1.3274    
  10  Prefactor     61.559        36.566        .51148E-04   -1.4137    
  11  Prefactor     5.9974        18.833        .81987E-03   -1.5218    
  12  Prefactor     .10000E-03    1.6901        .90910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2487        .20574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2936        .16113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3731        2.7350        .81468E-04   -1.5244    
  17  norm          .10008E-03    10.839        .29452E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.384        45.193        .98993E-04   -1.4898    
  19  norm          42.699        47.113        .30711E-03   -1.4400    
  20  Prefactor     179.03        200.01        .15086E-03   -1.3024    
  21  norm          1.8293        .73904        .34240E-04   -1.5437    
  22  Prefactor     .10000E-03    6.0072        .17170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .89549        129.95        .64460E-02   -1.5519    
  24  norm          6.0975        2.4142        .66294E-04   -1.5214    
  25  Normalizat    1.0641        .24858        .25598E-03   -.90912    
  26  Prefactor     .77341        .19781        .25205E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06708e-08
Minuit parameter uncertainties:
  1  14.1759
  2  57.5062
  3  8.41623e-05
  4  9.32179e-06
  5  0.000174239
  6  0.00447619
  7  1.38031e-05
  8  0.000874587
  9  116.228
  10  36.5798
  11  18.8517
  12  4.2409e-06
  13  1.08458e-05
  14  2.81293e-06
  15  3.06545e-05
  16  2.73511
  17  0.00181774
  18  45.2878
  19  47.1546
  20  200.777
  21  0.739046
  22  3.58747e-06
  23  21.6216
  24  2.41421
  25  0.248858
  26  0.197992
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.742e-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:  7.734e-01  1.980e-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.064e+00  2.489e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191378/likelihoodResults_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.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) = 5159.28078855
delta logL = -9.90482521956e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5159.28068947
delta logL = 3.62833816325e-08

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.2586       1.0000          .0000       10.000    
     3 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77342       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=   5159.281     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8352.3        .90712E-02** at limit **
   2  Index         2.2444        6.1052        .50000        .23557E-05
   3  Normalizat    1.0641        .98808E-01    .57886E-01    .10037E-04
   4  Prefactor     .77341        .84632E-01    .43370E-01   -.53590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.24438
  Normalizat = 1.06412
  Prefactor  = 0.773414
 **********
 **   18 **HESSE 
 **********

 FCN=   5159.281     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2444        6.0772        .50000       -.58371    
   3  Normalizat    1.0641        .22349        .25598E-03   -.90912    
   4  Prefactor     .77341        .19162        .25205E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02126e-10
Minuit parameter uncertainties:
  1  0.00100582
  2  4.9111
  3  0.223687
  4  0.191781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191378': 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) = 5159.28068946
delta logL = 4.466255632e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.006e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.244e+00  4.911e+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:  7.734e-01  1.918e-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.064e+00  2.237e-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/191378/cmap_HighResolution_490492801_490752001_4FGL_J1156.6+0640_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-09-04 17:30:04.304147', job_id='191378', GAL2='0.77', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630801804.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.47e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='969' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 191378: <4FGL_J1156.6+0640_daily_bin969> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin969> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:32 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:33 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:16:33 2021
Terminated at Sat Sep  4 17:30:04 2021
Results reported at Sat Sep  4 17:30:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin969 179.164 6.6728 490492801 490752001 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 :                                   691.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

