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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin181
RA = 179.164, Dec = 6.6728
tmin = 286243201, tmax = 286502401
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='186659', job_status='RUN', time_executed='2021-09-04 17:03:57.820311', time_epoch_executed='1630800237.82' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186659/ft1_4FGL_J1156.6+0640_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186659/ft1_4FGL_J1156.6+0640_daily_bin181.fits outfile=/scratch/kocevski/186659/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin181.fits ra=179.164 dec=6.6728 rad=12.0 tmin=286243201.0 tmax=286502401.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.45
user 3.24
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186659/ft1_filtered_4FGL_J1156.6+0640_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/186659/ltcube_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.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/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits
.....................!
real 12.39
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186659/ft1_filtered_4FGL_J1156.6+0640_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/186659/ltcube_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.fits outfile=/scratch/kocevski/186659/expmap_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.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/186659/ltcube_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.fits
.....................!
real 189.88
user 184.89
sys 4.63

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/186659/ft1_filtered_4FGL_J1156.6+0640_daily_bin181.fits scfile=/scratch/kocevski/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits outfile=/scratch/kocevski/186659/cmap_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186659/ft1_filtered_4FGL_J1156.6+0640_daily_bin181.fits scfile=/scratch/kocevski/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits outfile=/scratch/kocevski/186659/cmap_HighResolution_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.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/186659/ft1_filtered_4FGL_J1156.6+0640_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/186659/ft2_4FGL_J1156.6+0640_daily_bin181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/186659/Model_4FGL_J1156.6+0640_daily_bin181.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/186659/ft1_filtered_4FGL_J1156.6+0640_daily_bin181.fits.....................!
real 53.33
user 51.99
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3554       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.506       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21336E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.836       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.9558       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.738       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.443       1.0000         .10000E-03   10000.    
    24 'norm      '    4.1402       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0374       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98273       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=   5567.540     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3506 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.619        14.272        .24693E-07    .14221E-04
   2  Prefactor     .10000E-03    10.737        .23370E-06** at limit **
   3  Prefactor     7.5704        3.0100       -.17686E-07    .20129E-04
   4  Prefactor     .10000E-03    11.705       -.11988E-05** at limit **
   5  Prefactor     .10000E-03    64.177       -.46895E-05** at limit **
   6  Prefactor     2.3551        7.6994        .19250E-05    .49531E-04
   7  Prefactor     9.8077        10.092       -.19695E-06   -.15480E-05
   8  Prefactor     9.7682        10.943       -.45225E-07    .89106E-05
   9  Prefactor     .10000E-03    26.606       -.69039E-06** at limit **
  10  Prefactor     34.494        42.637       -.17042E-05   -.10547E-04
  11  Prefactor     .10000E-03    20.475       -.18654E-05** at limit **
  12  Prefactor     .10000E-03    2.2077        .43793E-06** at limit **
  13  Prefactor     .10000E-03    47.212        .36002E-05** at limit **
  14  Prefactor     .10000E-03    16.512        .59096E-06** at limit **
  15  Prefactor     38.837        16.222       -.24435E-06    .84235E-05
  16  norm          .10000E-03    1.1072       -.68126E-07** at limit **
  17  norm          9.9558        5.2977       -.10291E-06    .15856E-04
  18  Prefactor     .10000E-03    14.958        .22313E-05** at limit **
  19  norm          .10000E-03    13.860        .75560E-07** at limit **
  20  Prefactor     12.889        421.19        .11048E-04    .44701E-05
  21  norm          3.5570        .89222        .36714E-07    .18640E-03
  22  Prefactor     .10000E-03    6.3536       -.13837E-06** at limit **
  23  Prefactor     33.443        33.025        .46049E-06    .19194E-04
  24  norm          4.1402        1.8253        .98222E-08    .22315E-04
  25  Normalizat    1.0375        .22332        .21121E-05   -.15370E-04
  26  Prefactor     .98264        .18987       -.14598E-05    .10489E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.6187
  Prefactor  = 0.0001
  Prefactor  = 7.57039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35511
  Prefactor  = 9.80771
  Prefactor  = 9.76817
  Prefactor  = 0.0001
  Prefactor  = 34.4942
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8369
  norm       = 0.0001
  norm       = 9.95576
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.8889
  norm       = 3.55699
  Prefactor  = 0.0001
  Prefactor  = 33.4431
  norm       = 4.14023
  Normalizat = 1.03748
  Prefactor  = 0.982642
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.540     FROM HESSE     STATUS=OK           464 CALLS     3970 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.619        14.286        .95421E-04   -1.4868    
   2  Prefactor     .10000E-03    10.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5704        3.0102        .78762E-04   -1.5158    
   4  Prefactor     .10000E-03    11.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    64.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3551        7.7714        .13353E-02   -1.5401    
   7  Prefactor     9.8077        10.083        .12796E-03   -1.5082    
   8  Prefactor     9.7682        10.948        .12821E-03   -1.5083    
   9  Prefactor     .10000E-03    26.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.494        42.630        .68220E-04   -1.4533    
  11  Prefactor     .10000E-03    20.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8670        .20779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.269        .19031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.837        16.193        .64317E-04   -1.4461    
  16  norm          .10000E-03    1.1117        .76566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.9558        5.3091        .11143E-03   -1.5077    
  18  Prefactor     .10000E-03    15.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.889        422.30        .11223E-03   -1.4990    
  21  norm          3.5570        .89506        .31895E-04   -1.5331    
  22  Prefactor     .10000E-03    6.3681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.443        33.041        .69293E-04   -1.4551    
  24  norm          4.1402        1.8241        .64663E-04   -1.5301    
  25  Normalizat    1.0375        .25357        .28492E-03   -.91785    
  26  Prefactor     .98264        .21588        .25811E-03   -.93310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46151e-10
Minuit parameter uncertainties:
  1  14.2884
  2  6.70182e-07
  3  3.01021
  4  2.38492e-05
  5  0.000243458
  6  7.77474
  7  10.0844
  8  10.9499
  9  2.89558e-05
  10  42.6681
  11  4.71216e-05
  12  9.33968e-05
  13  1.33506e-05
  14  1.21185e-05
  15  16.1944
  16  4.31189e-07
  17  5.30935
  18  4.63524e-05
  19  1.05915e-06
  20  148.71
  21  0.89506
  22  8.81311e-06
  23  33.0592
  24  1.82414
  25  0.253865
  26  0.216065
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.435e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.826e-01  2.161e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.037e+00  2.539e-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: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186659/likelihoodResults_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.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) = 5567.53986221
delta logL = -7.37389018468e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5567.53978846
delta logL = 1.23964127852e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2665       1.0000          .0000       10.000    
     3 'Normalizat'    1.0375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98264       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=   5567.540     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.40        .18142E-02** at limit **
   2  Index         2.2582        5.9339        .50000        .10479E-05
   3  Normalizat    1.0375        .23918        .28492E-03    .22277E-03
   4  Prefactor     .98264        .21277        .25811E-03    .50659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25816
  Normalizat = 1.03748
  Prefactor  = 0.982645
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.540     FROM HESSE     STATUS=OK            29 CALLS      297 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2582        6.1286        .50000       -.58041    
   3  Normalizat    1.0375        .23939        .11397E-04   -.91785    
   4  Prefactor     .98264        .21296        .51622E-04   -.93310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16541e-10
Minuit parameter uncertainties:
  1  0.000141241
  2  4.22288
  3  0.239643
  4  0.213142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186659': 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) = 5567.53978846
delta logL = 1.54623194248e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.412e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.258e+00  4.223e+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:  9.826e-01  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.037e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/186659/cmap_HighResolution_286243201_286502401_4FGL_J1156.6+0640_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2021-09-04 17:16:33.355722', job_id='186659', GAL2='0.98', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630800993.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='181' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 186659: <4FGL_J1156.6+0640_daily_bin181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin181 179.164 6.6728 286243201 286502401 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 :                                   755.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

