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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin973
RA = 179.164, Dec = 6.6728
tmin = 491529601, tmax = 491788801
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='191385', job_status='RUN', time_executed='2021-09-04 17:20:43.366288', time_epoch_executed='1630801243.37' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191385/ft1_4FGL_J1156.6+0640_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191385/ft2_4FGL_J1156.6+0640_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191385/ft1_4FGL_J1156.6+0640_daily_bin973.fits outfile=/scratch/kocevski/191385/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin973.fits ra=179.164 dec=6.6728 rad=12.0 tmin=491529601.0 tmax=491788801.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.51
user 3.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191385/ft2_4FGL_J1156.6+0640_daily_bin973.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/191385/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin973.fits evtable="EVENTS" outfile="/scratch/kocevski/191385/ft1_filtered_4FGL_J1156.6+0640_daily_bin973.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191385/ft1_filtered_4FGL_J1156.6+0640_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/191385/ft2_4FGL_J1156.6+0640_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/191385/ltcube_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.fits outfile=/scratch/kocevski/191385/expmap_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.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/191385/ltcube_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.fits
.....................!
real 191.35
user 185.82
sys 5.09

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/191385/ft1_filtered_4FGL_J1156.6+0640_daily_bin973.fits scfile=/scratch/kocevski/191385/ft2_4FGL_J1156.6+0640_daily_bin973.fits outfile=/scratch/kocevski/191385/cmap_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.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/191385/ft1_filtered_4FGL_J1156.6+0640_daily_bin973.fits scfile=/scratch/kocevski/191385/ft2_4FGL_J1156.6+0640_daily_bin973.fits outfile=/scratch/kocevski/191385/cmap_HighResolution_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.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/191385/ft1_filtered_4FGL_J1156.6+0640_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/191385/ft2_4FGL_J1156.6+0640_daily_bin973.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191385/Model_4FGL_J1156.6+0640_daily_bin973.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/191385/ft1_filtered_4FGL_J1156.6+0640_daily_bin973.fits.....................!
real 55.87
user 54.41
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.990       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26588E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.796       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3054       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1867       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.167       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0308       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76307       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1871       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=   5982.417     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3044 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2153        9.5037       -.12883E-05   -.82733E-04
   2  Prefactor     51.005        45.392        .14869E-04    .11848E-04
   3  Prefactor     2.3324        2.0300        .19460E-07   -.10549E-03
   4  Prefactor     .10000E-03    8.1924       -.27331E-07** at limit **
   5  Prefactor     .10002E-03    499.38       -.16907E-03** at limit **
   6  Prefactor     1.1467        7.0165       -.25269E-05   -.95343E-03
   7  Prefactor     .10000E-03    3.5678       -.97667E-07** at limit **
   8  Prefactor     .10000E-03    4.3893       -.57448E-07** at limit **
   9  Prefactor     .10000E-03    17.270       -.13807E-04** at limit **
  10  Prefactor     32.398        42.779       -.34433E-05    .17339E-03
  11  Prefactor     15.051        21.166       -.20366E-05    .62271E-05
  12  Prefactor     .10000E-03    1.2793       -.40281E-07** at limit **
  13  Prefactor     .10000E-03    1.0843        .87562E-07** at limit **
  14  Prefactor     .10000E-03    16.351       -.57838E-05** at limit **
  15  Prefactor     17.806        21.445        .36494E-05   -.43598E-05
  16  norm          3.3047        4.0652       -.11154E-05   -.25229E-03
  17  norm          2.4876        3.7705        .83243E-07   -.43704E-03
  18  Prefactor     .10000E-03    15.420        .10916E-04** at limit **
  19  norm          .10000E-03    15.877        .15234E-05** at limit **
  20  Prefactor     .10000E-03    74.306       -.74818E-06** at limit **
  21  norm          1.1867        .62347       -.19470E-07   -.15024E-03
  22  Prefactor     17.167        12.096       -.11676E-06   -.84403E-04
  23  Prefactor     .10000E-03    20.720        .94507E-05** at limit **
  24  norm          2.0308        1.4779        .38424E-07   -.13324E-03
  25  Normalizat    .76300        .20591       -.15007E-05    .31206E-03
  26  Prefactor     1.1872        .17161        .52781E-06    .27551E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.21525
  Prefactor  = 51.0055
  Prefactor  = 2.33245
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 1.14668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3983
  Prefactor  = 15.0508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8061
  norm       = 3.30471
  norm       = 2.48764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18666
  Prefactor  = 17.167
  Prefactor  = 0.0001
  norm       = 2.03084
  Normalizat = 0.763003
  Prefactor  = 1.18715
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.417     FROM HESSE     STATUS=OK           454 CALLS     3498 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2153        9.5008        .14931E-03   -1.5171    
   2  Prefactor     51.005        45.364        .56163E-04   -1.4278    
   3  Prefactor     2.3324        2.0279        .98503E-04   -1.5403    
   4  Prefactor     .10000E-03    8.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    493.42        .21440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1467        7.1493        .40205E-03   -1.5494    
   7  Prefactor     .10000E-03    3.5867        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3962        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.398        42.848        .70394E-04   -1.4569    
  11  Prefactor     15.051        21.166        .10323E-03   -1.4932    
  12  Prefactor     .10000E-03    1.2866        .85428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0920        .78644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.806        21.612        .94942E-04   -1.4864    
  16  norm          3.3047        4.0963        .11980E-03   -1.5344    
  17  norm          2.4876        3.7289        .16342E-03   -1.5393    
  18  Prefactor     .10000E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1867        .61529        .39035E-04   -1.5490    
  22  Prefactor     17.167        12.099        .96666E-04   -1.4879    
  23  Prefactor     .10000E-03    20.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0308        1.4748        .76909E-04   -1.5423    
  25  Normalizat    .76300        .24506        .30821E-03   -1.0146    
  26  Prefactor     1.1872        .20530        .22244E-03   -.86728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39689e-09
Minuit parameter uncertainties:
  1  9.50281
  2  45.3946
  3  2.02798
  4  6.26735e-06
  5  0.00555561
  6  5.72717
  7  1.42248e-05
  8  1.30337e-06
  9  5.47204e-06
  10  42.889
  11  21.1762
  12  1.9906e-07
  13  1.05139e-07
  14  2.74481e-05
  15  21.6217
  16  4.09661
  17  3.72922
  18  4.06853e-06
  19  7.732e-07
  20  6.98427e-06
  21  0.615294
  22  12.1012
  23  4.11448e-06
  24  1.47486
  25  0.245412
  26  0.205442
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.556e-03  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.187e+00  2.054e-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:  7.630e-01  2.454e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191385/likelihoodResults_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.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) = 5982.41743139
delta logL = -9.50272169575e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5982.41743139
delta logL = -9.50231697061e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    .76300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1872       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=   5982.417     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      213 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    276.83        .90712E-02** at limit **
   2  Index         2.2803        8.1222        .50000        .64983E-06
   3  Normalizat    .76300        .34947E-02    .69651E-01    .78301E-05
   4  Prefactor     1.1872        .30933E-02    .50316E-01   -.11397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.28034
  Normalizat = 0.763001
  Prefactor  = 1.18715
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.417     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1443.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2803        8.2861        .50000       -.57512    
   3  Normalizat    .76300        .81250E-02    .30821E-03   -1.0146    
   4  Prefactor     1.1872        .72024E-02    .22244E-03   -.86728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38714e-09
Minuit parameter uncertainties:
  1  0.00197684
  2  415.689
  3  0.00812505
  4  0.00720239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191385': 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) = 5982.41742188
delta logL = 5.94172888668e-09

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.977e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.280e+00  4.157e+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:  1.187e+00  7.202e-03  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:  7.630e-01  8.125e-03  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/191385/cmap_HighResolution_491529601_491788801_4FGL_J1156.6+0640_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-04 17:32:52.882318', job_id='191385', GAL2='1.19', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630801972.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='5.94e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='973' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:32:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 191385: <4FGL_J1156.6+0640_daily_bin973> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin973 179.164 6.6728 491529601 491788801 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 :                                   729.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

