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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin959
RA = 179.164, Dec = 6.6728
tmin = 487900801, tmax = 488160001
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='191362', job_status='RUN', time_executed='2021-09-04 17:20:37.706018', time_epoch_executed='1630801237.71' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191362/ft1_4FGL_J1156.6+0640_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191362/ft2_4FGL_J1156.6+0640_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191362/ft1_4FGL_J1156.6+0640_daily_bin959.fits outfile=/scratch/kocevski/191362/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin959.fits ra=179.164 dec=6.6728 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.06
user 5.75
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191362/ft1_filtered_4FGL_J1156.6+0640_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/191362/ft2_4FGL_J1156.6+0640_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/191362/ltcube_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.fits outfile=/scratch/kocevski/191362/expmap_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.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/191362/ltcube_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.fits
.....................!
real 192.45
user 188.03
sys 3.87

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/191362/ft1_filtered_4FGL_J1156.6+0640_daily_bin959.fits scfile=/scratch/kocevski/191362/ft2_4FGL_J1156.6+0640_daily_bin959.fits outfile=/scratch/kocevski/191362/cmap_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.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.77
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191362/ft1_filtered_4FGL_J1156.6+0640_daily_bin959.fits scfile=/scratch/kocevski/191362/ft2_4FGL_J1156.6+0640_daily_bin959.fits outfile=/scratch/kocevski/191362/cmap_HighResolution_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.926       1.0000         .10000E-03   10000.    
     5 'Prefactor '    205.08       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2833       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4040       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31640       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4872       1.0000         .10000E-03   10000.    
    16 'norm      '    5.7470       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.356       1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1080       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.572       1.0000         .10000E-03   10000.    
    24 'norm      '    4.2045       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84822       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1657       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=   4003.184     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3092 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9194        13.326        .92561E-07    .28013E-05
   2  Prefactor     .10000E-03    10.969       -.18127E-06** at limit **
   3  Prefactor     8.2739        4.0339        .34119E-07    .12571E-05
   4  Prefactor     40.934        30.323       -.64739E-06   -.85999E-05
   5  Prefactor     205.19        160.24       -.79800E-05   -.17918E-04
   6  Prefactor     7.2885        11.530       -.62058E-06   -.61496E-04
   7  Prefactor     2.4050        8.6402        .44694E-05    .26745E-04
   8  Prefactor     .10000E-03    14.780       -.44169E-06** at limit **
   9  Prefactor     3.4402        705.22        .33745E-04   -.31583E-05
  10  Prefactor     .10000E-03    88.416        .60569E-05** at limit **
  11  Prefactor     .10000E-03    28.147        .15553E-05** at limit **
  12  Prefactor     .10000E-03    1.9289       -.78329E-07** at limit **
  13  Prefactor     .31080        2.9741       -.94068E-06    .41389E-03
  14  Prefactor     .10000E-03    18.443       -.89158E-06** at limit **
  15  Prefactor     2.4862        8.3248        .35866E-05    .28197E-04
  16  norm          5.7466        3.4951       -.17108E-06   -.21435E-04
  17  norm          .10000E-03    2.4545        .29880E-07** at limit **
  18  Prefactor     25.389        35.066       -.27275E-05   -.44299E-05
  19  norm          .10000E-03    21.373       -.24417E-06** at limit **
  20  Prefactor     .10000E-03    68.378       -.47446E-05** at limit **
  21  norm          2.1081        .80196       -.33370E-08    .37705E-04
  22  Prefactor     .10000E-03    5.6744        .40910E-07** at limit **
  23  Prefactor     31.582        45.115       -.63495E-06    .20472E-04
  24  norm          4.2045        2.2319        .24230E-07    .20069E-04
  25  Normalizat    .84818        .25291       -.67766E-06   -.50141E-05
  26  Prefactor     1.1658        .21811        .24693E-06   -.14839E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.91942
  Prefactor  = 0.0001
  Prefactor  = 8.27389
  Prefactor  = 40.9344
  Prefactor  = 205.191
  Prefactor  = 7.28851
  Prefactor  = 2.40499
  Prefactor  = 0.0001
  Prefactor  = 3.44017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.310799
  Prefactor  = 0.0001
  Prefactor  = 2.48616
  norm       = 5.74665
  norm       = 0.0001
  Prefactor  = 25.3892
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1081
  Prefactor  = 0.0001
  Prefactor  = 31.5822
  norm       = 4.20452
  Normalizat = 0.848178
  Prefactor  = 1.16578
 **********
 **   18 **HESSE 
 **********

 FCN=   4003.184     FROM HESSE     STATUS=OK           464 CALLS     3556 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9194        13.344        .14252E-03   -1.5145    
   2  Prefactor     .10000E-03    10.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2739        4.0374        .84803E-04   -1.5133    
   4  Prefactor     40.934        30.326        .62659E-04   -1.4427    
   5  Prefactor     205.19        160.79        .14112E-03   -1.2833    
   6  Prefactor     7.2885        11.482        .14862E-03   -1.5168    
   7  Prefactor     2.4050        8.6488        .13204E-02   -1.5398    
   8  Prefactor     .10000E-03    14.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4402        712.98        .21566E-03   -1.5337    
  10  Prefactor     .10000E-03    89.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9378        .85755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .31080        11.740        .20142E-02   -1.5596    
  14  Prefactor     .10000E-03    18.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.4862        8.3268        .12960E-02   -1.5393    
  16  norm          5.7466        3.4958        .88049E-04   -1.5228    
  17  norm          .10000E-03    2.4919        .96652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.389        35.069        .79553E-04   -1.4700    
  19  norm          .10000E-03    21.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1081        .79995        .33162E-04   -1.5418    
  22  Prefactor     .10000E-03    5.6759        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     31.582        45.100        .71310E-04   -1.4583    
  24  norm          4.2045        2.2310        .66321E-04   -1.5298    
  25  Normalizat    .84818        .29763        .30603E-03   -.98306    
  26  Prefactor     1.1658        .25741        .23920E-03   -.87391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10503e-09
Minuit parameter uncertainties:
  1  13.3492
  2  2.83183e-06
  3  4.03749
  4  30.3376
  5  161.134
  6  11.4853
  7  8.65328
  8  0.000132885
  9  100.284
  10  0.000316534
  11  7.68264e-06
  12  7.03569e-07
  13  3.82048
  14  6.43727e-06
  15  8.33068
  16  3.49597
  17  1.85142e-06
  18  35.0972
  19  1.89469e-06
  20  2.31068e-05
  21  0.799949
  22  5.64808e-06
  23  45.1489
  24  2.23102
  25  0.298204
  26  0.257683
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.052e+02  1.611e+02  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.166e+00  2.577e-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:  8.482e-01  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.27e-08 +/- 5.70e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 2.10e-05

TS (Fixed Index): 2.58
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191362/likelihoodResults_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4003.1479336
delta logL = 0.0362438671468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4003.14220448
delta logL = 0.0419729805703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    254.05       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1416       1.0000          .0000       10.000    
     3 'Normalizat'    .86038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1574       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=   4003.142     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      301 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     254.06        257.18        .25421E-04   -.26386E-05
   2  Index         2.1416        .60632        .54748E-02   -.30165E-04
   3  Normalizat    .86050        .28550        .30402E-03    .38274E-04
   4  Prefactor     1.1573        .25590        .23992E-03    .61772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 254.057
  Index      = 2.14159
  Normalizat = 0.860505
  Prefactor  = 1.15733
 **********
 **   18 **HESSE 
 **********

 FCN=   4003.142     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     254.06        248.02        .50841E-05   -1.2506    
   2  Index         2.1416        .58412        .21899E-03   -.60855    
   3  Normalizat    .86050        .28548        .12161E-04   -.97862    
   4  Prefactor     1.1573        .25593        .47984E-04   -.87655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63461e-11
Minuit parameter uncertainties:
  1  249.06
  2  0.586108
  3  0.285978
  4  0.256202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191362': 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) = 4003.14220439
delta logL = 0.0419730784492

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.541e+02  2.491e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.142e+00  5.861e-01  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.157e+00  2.562e-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:  8.605e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 179.164 6.673
Photon Index (Free Index): 2.14 +/- 0.59
Photon Flux (Free Index): 6.50e-08 +/- 5.87e-08
Energy Flux (Free Index): 3.27e-05 +/- 3.51e-05

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/191362/cmap_HighResolution_487900801_488160001_4FGL_J1156.6+0640_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='7.27e-08', energy_flux2='3.27e-05', photon_flux_error='5.70e-08', dlogl='4.20e-02', energy_flux='2.67e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-04 17:31:03.508922', photon_index_error2='0.59', photon_index2='2.14', ts='2.58', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='3.51e-05', EG='0.85', time_epoch_completed='1630801863.51', return_code='0', job_id='191362', GAL2='1.16', EG2='0.86', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='5.87e-08', ts2='2.63', photon_index='2.32' WHERE bin_id='959' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 191362: <4FGL_J1156.6+0640_daily_bin959> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin959> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:31 2021
Job was executed on host(s) <bullet0047>, 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:31:04 2021
Results reported at Sat Sep  4 17:31:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin959 179.164 6.6728 487900801 488160001 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 :                                   623.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            873 sec.

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

