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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin313
RA = 179.164, Dec = 6.6728
tmin = 320457601, tmax = 320716801
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='187885', job_status='RUN', time_executed='2021-09-04 17:09:16.399331', time_epoch_executed='1630800556.4' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187885/ft1_4FGL_J1156.6+0640_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187885/ft2_4FGL_J1156.6+0640_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187885/ft1_4FGL_J1156.6+0640_daily_bin313.fits outfile=/scratch/kocevski/187885/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin313.fits ra=179.164 dec=6.6728 rad=12.0 tmin=320457601.0 tmax=320716801.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.79
user 3.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187885/ft2_4FGL_J1156.6+0640_daily_bin313.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/187885/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin313.fits evtable="EVENTS" outfile="/scratch/kocevski/187885/ft1_filtered_4FGL_J1156.6+0640_daily_bin313.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.52
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187885/ft1_filtered_4FGL_J1156.6+0640_daily_bin313.fits" evtable="EVENTS" scfile=/scratch/kocevski/187885/ft2_4FGL_J1156.6+0640_daily_bin313.fits sctable="SC_DATA" outfile=/scratch/kocevski/187885/ltcube_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.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/187885/ft2_4FGL_J1156.6+0640_daily_bin313.fits
.....................!
real 11.93
user 11.59
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187885/ft1_filtered_4FGL_J1156.6+0640_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/187885/ft2_4FGL_J1156.6+0640_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/187885/ltcube_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.fits outfile=/scratch/kocevski/187885/expmap_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.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/187885/ltcube_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.fits
.....................!
real 191.59
user 186.61
sys 4.23

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/187885/ft1_filtered_4FGL_J1156.6+0640_daily_bin313.fits scfile=/scratch/kocevski/187885/ft2_4FGL_J1156.6+0640_daily_bin313.fits outfile=/scratch/kocevski/187885/cmap_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187885/ft1_filtered_4FGL_J1156.6+0640_daily_bin313.fits scfile=/scratch/kocevski/187885/ft2_4FGL_J1156.6+0640_daily_bin313.fits outfile=/scratch/kocevski/187885/cmap_HighResolution_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1927       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24116E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    106.32       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2319       1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6578       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .92728       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10793E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2256       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94464       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1283       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=   6813.819     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3053 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0725        7.2016       -.33776E-06   -.10216E-04
   2  Prefactor     .10000E-03    13.718       -.32207E-05** at limit **
   3  Prefactor     4.7613        2.5316       -.27245E-06   -.14847E-03
   4  Prefactor     2.1935        11.168       -.14873E-05   -.21511E-03
   5  Prefactor     .10000E-03    16.382        .45123E-05** at limit **
   6  Prefactor     16.732        11.532        .39244E-05    .13852E-03
   7  Prefactor     .10000E-03    1.3644       -.74441E-07** at limit **
   8  Prefactor     .10016E-03    80.174       -.12534E-04** at limit **
   9  Prefactor     106.26        96.144       -.54225E-04    .68360E-04
  10  Prefactor     .10000E-03    19.437       -.31306E-05** at limit **
  11  Prefactor     .10000E-03    7.4018       -.66720E-05** at limit **
  12  Prefactor     .10000E-03    2.4670        .72815E-07** at limit **
  13  Prefactor     3.9387        3.6538       -.12273E-06   -.18984E-03
  14  Prefactor     .10000E-03    7.5422        .57101E-05** at limit **
  15  Prefactor     2.2342        6.5918       -.48854E-05   -.54832E-03
  16  norm          .10000E-03    .75398        .29271E-06** at limit **
  17  norm          6.6578        3.7354       -.24324E-06   -.88288E-04
  18  Prefactor     .10000E-03    17.502        .52083E-05** at limit **
  19  norm          .10000E-03    19.729       -.46986E-05** at limit **
  20  Prefactor     .10000E-03    66.516        .20961E-04** at limit **
  21  norm          .92735        .55991       -.26161E-07   -.34323E-03
  22  Prefactor     .10000E-03    6.9862        .12264E-05** at limit **
  23  Prefactor     .10000E-03    48.637       -.20810E-05** at limit **
  24  norm          2.2257        1.5219       -.14561E-06   -.37428E-03
  25  Normalizat    .94453        .18587        .40928E-05    .36458E-04
  26  Prefactor     1.1283        .15705        .41655E-06    .23253E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07249
  Prefactor  = 0.0001
  Prefactor  = 4.76134
  Prefactor  = 2.19349
  Prefactor  = 0.0001
  Prefactor  = 16.7316
  Prefactor  = 0.0001
  Prefactor  = 0.000100163
  Prefactor  = 106.259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93871
  Prefactor  = 0.0001
  Prefactor  = 2.23424
  norm       = 0.0001
  norm       = 6.6578
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.927346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22572
  Normalizat = 0.944534
  Prefactor  = 1.12832
 **********
 **   18 **HESSE 
 **********

 FCN=   6813.819     FROM HESSE     STATUS=OK           452 CALLS     3505 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0725        7.2021        .16294E-03   -1.5215    
   2  Prefactor     .10000E-03    13.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7613        2.5310        .91603E-04   -1.5272    
   4  Prefactor     2.1935        11.154        .27792E-03   -1.5412    
   5  Prefactor     .10000E-03    16.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.732        11.539        .97913E-04   -1.4890    
   7  Prefactor     .10000E-03    1.3656        .94161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10016E-03    82.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     106.26        95.741        .19500E-03   -1.3643    
  10  Prefactor     .10000E-03    19.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4834        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9387        3.6467        .14574E-03   -1.5311    
  14  Prefactor     .10000E-03    7.5450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2342        6.4691        .27517E-03   -1.5409    
  16  norm          .10000E-03    1.1947        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6578        3.7205        .10506E-03   -1.5192    
  18  Prefactor     .10000E-03    17.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    66.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .92735        .54478        .41713E-04   -1.5515    
  22  Prefactor     .10000E-03    7.0409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2257        1.5095        .80077E-04   -1.5410    
  25  Normalizat    .94453        .21819        .28771E-03   -.94912    
  26  Prefactor     1.1283        .18497        .23344E-03   -.88567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16512e-09
Minuit parameter uncertainties:
  1  7.20315
  2  1.14521e-05
  3  2.53103
  4  9.89556
  5  5.63896e-06
  6  11.5403
  7  7.87525e-07
  8  0.00733821
  9  95.8811
  10  1.5783e-05
  11  4.56991e-06
  12  7.91588e-06
  13  3.64691
  14  5.64893e-08
  15  6.47115
  16  3.07364e-05
  17  3.72061
  18  3.64385e-06
  19  6.49823e-06
  20  2.03655e-05
  21  0.544783
  22  8.28529e-06
  23  6.4619e-05
  24  1.50953
  25  0.218392
  26  0.185076
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  5.639e-06  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.128e+00  1.851e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.445e-01  2.184e-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: 3.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187885/likelihoodResults_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.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) = 6813.81884093
delta logL = -0.000289528677058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6813.81855345
delta logL = -2.0464985937e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7071       1.0000          .0000       10.000    
     3 'Normalizat'    .94454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1283       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=   6813.819     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10537E-03    6.4128        .18142E-01** at limit **
   2  Index         2.5946        5.6477        .50000        .27703E-04
   3  Normalizat    .94454        .34568E-02    .28771E-03   -.11736E-04
   4  Prefactor     1.1283        .30531E-02    .23344E-03   -.33652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105375
  Index      = 2.59457
  Normalizat = 0.944536
  Prefactor  = 1.12832
 **********
 **   18 **HESSE 
 **********

 FCN=   6813.819     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10537E-03    62.378        .27373E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5946        7.7588        .50000       -.50189    
   3  Normalizat    .94454        .10841E-01    .11508E-04   -.94912    
   4  Prefactor     1.1283        .95753E-02    .93377E-05   -.88567    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01703e-08
Minuit parameter uncertainties:
  1  0.0366581
  2  262.389
  3  0.0108411
  4  0.00957527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187885': 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) = 6813.81855292
delta logL = -1.51642052515e-06

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.054e-04  3.666e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.595e+00  2.624e+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.128e+00  9.575e-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:  9.445e-01  1.084e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/187885/cmap_HighResolution_320457601_320716801_4FGL_J1156.6+0640_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.34e-08', time_completed='2021-09-04 17:22:42.637784', job_id='187885', GAL2='1.13', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630801362.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='313' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 187885: <4FGL_J1156.6+0640_daily_bin313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin313 179.164 6.6728 320457601 320716801 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 :                                   804.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            986 sec.

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

