/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 74 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin54
RA = 179.164, Dec = 6.6728
tmin = 253324801, tmax = 253584001
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='186466', job_status='RUN', time_executed='2021-09-04 17:02:40.036877', time_epoch_executed='1630800160.04' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186466

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186466/ft1_4FGL_J1156.6+0640_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186466/ft2_4FGL_J1156.6+0640_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186466/ft1_4FGL_J1156.6+0640_daily_bin54.fits outfile=/scratch/kocevski/186466/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin54.fits ra=179.164 dec=6.6728 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.41
user 1.26
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186466/ft1_filtered_4FGL_J1156.6+0640_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/186466/ft2_4FGL_J1156.6+0640_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/186466/ltcube_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.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/186466/ft2_4FGL_J1156.6+0640_daily_bin54.fits
.....................!
real 12.93
user 12.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186466/ft1_filtered_4FGL_J1156.6+0640_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/186466/ft2_4FGL_J1156.6+0640_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/186466/ltcube_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.fits outfile=/scratch/kocevski/186466/expmap_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.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/186466/ltcube_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.fits
.....................!
real 192.78
user 187.74
sys 4.58

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/186466/ft1_filtered_4FGL_J1156.6+0640_daily_bin54.fits scfile=/scratch/kocevski/186466/ft2_4FGL_J1156.6+0640_daily_bin54.fits outfile=/scratch/kocevski/186466/cmap_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.178       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12251E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    126.50       1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.108       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4318       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4610       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1885       1.0000         .10000E-03   10000.    
    17 'norm      '    .12412E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    196.27       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8127       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9762       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2400       1.0000         .10000E-03   10000.    
    24 'norm      '    4.4194       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87805       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0611       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=   6715.834     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3133 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.209       -.26159E-06** at limit **
   2  Prefactor     61.199        37.725        .12090E-05    .66106E-04
   3  Prefactor     3.0463        2.1227        .18380E-06    .29329E-04
   4  Prefactor     6.4756        9.5951        .91248E-06    .60394E-04
   5  Prefactor     .10000E-03    58.777        .25957E-06** at limit **
   6  Prefactor     .10000E-03    4.9446        .47782E-06** at limit **
   7  Prefactor     .10000E-03    4.5777        .33623E-06** at limit **
   8  Prefactor     .10000E-03    19.871        .30251E-05** at limit **
   9  Prefactor     126.56        105.28        .16354E-05    .68369E-05
  10  Prefactor     46.131        40.864        .12996E-05   -.22694E-04
  11  Prefactor     10.774        25.717       -.25904E-06   -.83385E-04
  12  Prefactor     .10000E-03    1.9938       -.11817E-06** at limit **
  13  Prefactor     3.4307        3.0771        .31005E-06    .14908E-03
  14  Prefactor     .10000E-03    6.5949        .60464E-07** at limit **
  15  Prefactor     1.4697        62.246        .74880E-05    .21498E-04
  16  norm          4.1878        3.6337       -.59336E-06   -.54988E-03
  17  norm          .10260E-03    1.3713        .86380E-06** at limit **
  18  Prefactor     .10000E-03    19.086       -.11739E-06** at limit **
  19  norm          .10000E-03    14.269        .76624E-07** at limit **
  20  Prefactor     196.29        139.59        .42503E-06   -.18946E-04
  21  norm          1.8129        .65649        .31327E-07   -.28505E-02
  22  Prefactor     3.9688        13.855        .71299E-05    .16012E-03
  23  Prefactor     6.2964        58.689       -.11438E-04   -.14857E-04
  24  norm          4.4196        1.7924        .48748E-07   -.45491E-03
  25  Normalizat    .87749        .21753       -.68119E-05   -.17741E-03
  26  Prefactor     1.0615        .17436        .41576E-05   -.44462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 61.1989
  Prefactor  = 3.04625
  Prefactor  = 6.47562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.557
  Prefactor  = 46.1312
  Prefactor  = 10.7743
  Prefactor  = 0.0001
  Prefactor  = 3.43065
  Prefactor  = 0.0001
  Prefactor  = 1.46966
  norm       = 4.18782
  norm       = 0.000102604
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 196.287
  norm       = 1.81291
  Prefactor  = 3.96884
  Prefactor  = 6.29645
  norm       = 4.41958
  Normalizat = 0.877492
  Prefactor  = 1.0615
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.834     FROM HESSE     STATUS=OK           468 CALLS     3601 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.199        37.712        .51299E-04   -1.4142    
   3  Prefactor     3.0463        2.1177        .94816E-04   -1.5359    
   4  Prefactor     6.4756        9.5915        .78857E-03   -1.5199    
   5  Prefactor     .10000E-03    58.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9600        .17793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6045        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     126.56        104.71        .17896E-03   -1.3453    
  10  Prefactor     46.131        40.736        .59048E-04   -1.4349    
  11  Prefactor     10.774        25.195        .12209E-03   -1.5051    
  12  Prefactor     .10000E-03    3.9487        .21976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4307        3.0028        .12848E-03   -1.5338    
  14  Prefactor     .10000E-03    6.5972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4697        51.779        .35595E-03   -1.5466    
  16  norm          4.1878        3.3541        .10114E-03   -1.5299    
  17  norm          .10260E-03    2.4090        .31508E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     196.29        139.49        .14418E-03   -1.2897    
  21  norm          1.8129        .64383        .35036E-04   -1.5439    
  22  Prefactor     3.9688        13.969        .20227E-03   -1.5310    
  23  Prefactor     6.2964        58.436        .16070E-03   -1.5206    
  24  norm          4.4196        1.7918        .66551E-04   -1.5287    
  25  Normalizat    .87749        .23017        .28839E-03   -.97256    
  26  Prefactor     1.0615        .18606        .23412E-03   -.90707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97419e-09
Minuit parameter uncertainties:
  1  1.45332e-05
  2  37.7269
  3  2.11778
  4  9.59373
  5  7.27345e-05
  6  1.58523e-05
  7  6.53608e-06
  8  0.00013085
  9  104.869
  10  40.761
  11  25.2202
  12  8.14704e-06
  13  3.00293
  14  1.60343e-06
  15  17.4626
  16  3.35428
  17  0.005009
  18  3.65007e-05
  19  2.47393e-05
  20  139.728
  21  0.643834
  22  13.9803
  23  38.4128
  24  1.79182
  25  0.230426
  26  0.186168
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  7.273e-05  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.061e+00  1.862e-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.775e-01  2.304e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186466/likelihoodResults_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.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) = 6715.83453102
delta logL = -8.08894756119e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6715.83445016
delta logL = -3.06135916617e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3734       1.0000          .0000       10.000    
     3 'Normalizat'    .87749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0615       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=   6715.834     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.294        .90712E-02** at limit **
   2  Index         2.3614        6.1802        .50000        .17699E-05
   3  Normalizat    .87749        .17815        .65199E-01   -.31272E-04
   4  Prefactor     1.0615        .15841        .39279E-01   -.51796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36138
  Normalizat = 0.87749
  Prefactor  = 1.0615
 **********
 **   18 **HESSE 
 **********

 FCN=   6715.834     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3614        6.1717        .50000       -.55592    
   3  Normalizat    .87749        .20440        .28840E-03   -.97256    
   4  Prefactor     1.0615        .18201        .23412E-03   -.90707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60872e-12
Minuit parameter uncertainties:
  1  7.07406e-05
  2  4.67102
  3  0.204579
  4  0.182113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186466': 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) = 6715.83445015
delta logL = -1.69702616404e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  7.074e-05  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.361e+00  4.671e+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:  1.061e+00  1.821e-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.775e-01  2.046e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/186466/cmap_HighResolution_253324801_253584001_4FGL_J1156.6+0640_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-04 17:15:54.129151', job_id='186466', GAL2='1.06', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630800954.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-1.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='54' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 186466: <4FGL_J1156.6+0640_daily_bin54> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin54> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:15 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:18 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:01:18 2021
Terminated at Sat Sep  4 17:15:57 2021
Results reported at Sat Sep  4 17:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin54 179.164 6.6728 253324801 253584001 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 :                                   794.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            882 sec.

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

