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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin716
RA = 179.164, Dec = 6.6728
tmin = 424915201, tmax = 425174401
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='189712', job_status='RUN', time_executed='2021-09-04 17:15:25.144097', time_epoch_executed='1630800925.14' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189712/ft1_4FGL_J1156.6+0640_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189712/ft2_4FGL_J1156.6+0640_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189712/ft1_4FGL_J1156.6+0640_daily_bin716.fits outfile=/scratch/kocevski/189712/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin716.fits ra=179.164 dec=6.6728 rad=12.0 tmin=424915201.0 tmax=425174401.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.41
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189712/ft2_4FGL_J1156.6+0640_daily_bin716.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/189712/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/189712/ft1_filtered_4FGL_J1156.6+0640_daily_bin716.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.53
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189712/ft1_filtered_4FGL_J1156.6+0640_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/189712/ft2_4FGL_J1156.6+0640_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/189712/ltcube_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.fits outfile=/scratch/kocevski/189712/expmap_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.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/189712/ltcube_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.fits
.....................!
real 190.71
user 185.32
sys 4.85

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/189712/ft1_filtered_4FGL_J1156.6+0640_daily_bin716.fits scfile=/scratch/kocevski/189712/ft2_4FGL_J1156.6+0640_daily_bin716.fits outfile=/scratch/kocevski/189712/cmap_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189712/ft1_filtered_4FGL_J1156.6+0640_daily_bin716.fits scfile=/scratch/kocevski/189712/ft2_4FGL_J1156.6+0640_daily_bin716.fits outfile=/scratch/kocevski/189712/cmap_HighResolution_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.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.62
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45410E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.845       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16967E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6798       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.202       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16696E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.487       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.065       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4212       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9761       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23249E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    168.18       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1366       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4332       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .46834E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0522       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85474       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=   5190.013     FROM MIGRAD    STATUS=CONVERGED   1130 CALLS     3650 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    85.511        .36182E-02** at limit **
   2  Prefactor     11.829        33.198        .11640E-03   -.36823E-04
   3  Prefactor     2.5576        1.9535        .85204E-04   -.18947E-04
   4  Prefactor     .10000E-03    10.011        .18142E-02** at limit **
   5  Prefactor     .10000E-03    348.95        .20371E-02** at limit **
   6  Prefactor     3.6790        5.8580        .21055E-03   -.41792E-04
   7  Prefactor     27.203        13.521        .76811E-04   -.44106E-04
   8  Prefactor     .10000E-03    10.912        .18142E-02** at limit **
   9  Prefactor     .10000E-03    90.673        .18142E-02** at limit **
  10  Prefactor     26.516        47.552        .77839E-04   -.10954E-04
  11  Prefactor     33.068        25.543        .69686E-04   -.29365E-05
  12  Prefactor     .10000E-03    1.4644        .84242E-03** at limit **
  13  Prefactor     .10000E-03    .70328        .58902E-03** at limit **
  14  Prefactor     7.4340        23.014        .14722E-03    .32896E-04
  15  Prefactor     .10000E-03    4.7154        .15258E-02** at limit **
  16  norm          2.9758        2.2336        .90356E-04    .20131E-05
  17  norm          2.2901        4.3722        .17620E-03    .10710E-03
  18  Prefactor     .10163E-03    44.323        .12957    ** at limit **
  19  norm          .10000E-03    15.313        .18142E-02** at limit **
  20  Prefactor     168.40        219.25        .15553E-03    .44500E-04
  21  norm          2.1369        .76851        .33511E-04    .41355E-03
  22  Prefactor     5.4320        8.4432        .17239E-03    .24994E-04
  23  Prefactor     .10000E-03    8.5368        .18142E-02** at limit **
  24  norm          .46999E-01    8.7013        .12713E-02    .97476E-03
  25  Normalizat    1.0522        .23221        .25392E-03   -.29192E-04
  26  Prefactor     .85485        .19570        .24438E-03    .17166E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 11.8285
  Prefactor  = 2.5576
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.67897
  Prefactor  = 27.2027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5159
  Prefactor  = 33.0681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.43403
  Prefactor  = 0.0001
  norm       = 2.97585
  norm       = 2.29014
  Prefactor  = 0.00010163
  norm       = 0.0001
  Prefactor  = 168.405
  norm       = 2.13693
  Prefactor  = 5.43202
  Prefactor  = 0.0001
  norm       = 0.046999
  Normalizat = 1.05222
  Prefactor  = 0.854853
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.013     FROM HESSE     STATUS=OK           442 CALLS     4092 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    87.768        .14473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.829        33.189        .46558E-05   -1.5020    
   3  Prefactor     2.5576        1.9535        .34081E-05   -1.5388    
   4  Prefactor     .10000E-03    10.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    349.04        .40742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6790        5.8578        .84221E-05   -1.5324    
   7  Prefactor     27.203        13.521        .30725E-05   -1.4664    
   8  Prefactor     .10000E-03    10.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    90.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.516        47.575        .31136E-05   -1.4678    
  11  Prefactor     33.068        25.545        .27874E-05   -1.4557    
  12  Prefactor     .10000E-03    1.4647        .16848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .70329        .11780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4340        23.013        .58890E-05   -1.5163    
  15  Prefactor     .10000E-03    4.7157        .30516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9758        2.2336        .36142E-05   -1.5363    
  17  norm          2.2901        4.3684        .70481E-05   -1.5405    
  18  Prefactor     .10163E-03    43.999        .13026       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     168.40        219.06        .31107E-04   -1.3105    
  21  norm          2.1369        .76756        .13404E-05   -1.5416    
  22  Prefactor     5.4320        8.4431        .68957E-05   -1.5242    
  23  Prefactor     .10000E-03    8.5369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .46999E-01    8.7383        .50851E-04   -1.5665    
  25  Normalizat    1.0522        .23234        .10157E-04   -.91301    
  26  Prefactor     .85485        .19586        .97750E-05   -.97737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89823e-09
Minuit parameter uncertainties:
  1  0.000518001
  2  33.2403
  3  1.95352
  4  1.12677e-05
  5  0.0019438
  6  5.85874
  7  13.5223
  8  4.4544e-05
  9  0.000366199
  10  47.6436
  11  25.553
  12  5.51379e-06
  13  1.83455e-06
  14  23.0401
  15  1.24092e-05
  16  2.23368
  17  4.36903
  18  0.0169476
  19  2.06109e-05
  20  220.132
  21  0.767567
  22  8.44495
  23  1.05704e-05
  24  1.28053
  25  0.232561
  26  0.196016
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.549e-01  1.960e-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.052e+00  2.326e-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: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189712/likelihoodResults_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.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) = 5190.01343264
delta logL = -1.35047557706e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5189.63221665
delta logL = 0.381202483689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.303       1.0000         .10000E-03   10000.    
     2 'Index     '    .74691       1.0000          .0000       10.000    
     3 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86167       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=   5189.632     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.336        52.046        .84816E-04   -.44584E-03
   2  Index         .74731        .77232        .14561E-01    .11532E-03
   3  Normalizat    1.0396        .21990        .25520E-03   -.12754E-03
   4  Prefactor     .86166        .19379        .24353E-03   -.73573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3358
  Index      = 0.747309
  Normalizat = 1.0396
  Prefactor  = 0.861661
 **********
 **   18 **HESSE 
 **********

 FCN=   5189.632     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.336        59.943        .16963E-04   -1.4762    
   2  Index         .74731        .88572        .58245E-03   -1.0170    
   3  Normalizat    1.0396        .22009        .10208E-04   -.91715    
   4  Prefactor     .86166        .19396        .97411E-05   -.97494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09799e-09
Minuit parameter uncertainties:
  1  60.1048
  2  0.903384
  3  0.220288
  4  0.194113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189712': 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) = 5189.63221641
delta logL = 0.381202721665

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.234e+01  6.010e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  7.473e-01  9.034e-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:  8.617e-01  1.941e-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.040e+00  2.203e-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/189712/cmap_HighResolution_424915201_425174401_4FGL_J1156.6+0640_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-04 17:27:38.096503', job_id='189712', GAL2='0.86', fit_tolerance='1e-08', EG2='1.04', EG='1.05', time_epoch_completed='1630801658.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.81e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='716' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:27:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 189712: <4FGL_J1156.6+0640_daily_bin716> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin716> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:26 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:28 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:11:28 2021
Terminated at Sat Sep  4 17:27:38 2021
Results reported at Sat Sep  4 17:27:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin716 179.164 6.6728 424915201 425174401 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 :                                   730.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

