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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin515
RA = 179.164, Dec = 6.6728
tmin = 372816001, tmax = 373075201
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='188182', job_status='RUN', time_executed='2021-09-04 17:09:14.644787', time_epoch_executed='1630800554.64' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188182/ft1_4FGL_J1156.6+0640_daily_bin515.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188182/ft2_4FGL_J1156.6+0640_daily_bin515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188182/ft1_4FGL_J1156.6+0640_daily_bin515.fits outfile=/scratch/kocevski/188182/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin515.fits ra=179.164 dec=6.6728 rad=12.0 tmin=372816001.0 tmax=373075201.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 4.48
user 4.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188182/ft2_4FGL_J1156.6+0640_daily_bin515.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/188182/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin515.fits evtable="EVENTS" outfile="/scratch/kocevski/188182/ft1_filtered_4FGL_J1156.6+0640_daily_bin515.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188182/ft1_filtered_4FGL_J1156.6+0640_daily_bin515.fits" evtable="EVENTS" scfile=/scratch/kocevski/188182/ft2_4FGL_J1156.6+0640_daily_bin515.fits sctable="SC_DATA" outfile=/scratch/kocevski/188182/ltcube_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.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/188182/ft2_4FGL_J1156.6+0640_daily_bin515.fits
.....................!
real 11.76
user 11.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188182/ft1_filtered_4FGL_J1156.6+0640_daily_bin515.fits evtable="EVENTS" scfile=/scratch/kocevski/188182/ft2_4FGL_J1156.6+0640_daily_bin515.fits sctable="SC_DATA" expcube=/scratch/kocevski/188182/ltcube_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.fits outfile=/scratch/kocevski/188182/expmap_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.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/188182/ltcube_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.fits
.....................!
real 191.98
user 185.99
sys 5.48

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/188182/ft1_filtered_4FGL_J1156.6+0640_daily_bin515.fits scfile=/scratch/kocevski/188182/ft2_4FGL_J1156.6+0640_daily_bin515.fits outfile=/scratch/kocevski/188182/cmap_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5536       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2966       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    50.815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12328E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .43240       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.934       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13218E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    14.852       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0033       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89298       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=   6091.045     FROM MIGRAD    STATUS=CONVERGED   1110 CALLS     4046 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4732        8.8130        .15771E-03    .62859E-04
   2  Prefactor     .10000E-03    9.8763        .18142E-02** at limit **
   3  Prefactor     3.3390        2.7555        .11119E-03    .29805E-03
   4  Prefactor     10.387        16.335        .12434E-03   -.45717E-05
   5  Prefactor     40.925        99.293        .62721E-04   -.24288E-05
   6  Prefactor     .10000E-03    6.8471        .18142E-02** at limit **
   7  Prefactor     .10000E-03    8.1586        .18142E-02** at limit **
   8  Prefactor     11.602        11.430        .11762E-03    .35472E-04
   9  Prefactor     .10000E-03    23.914        .18142E-02** at limit **
  10  Prefactor     82.793        49.396        .44145E-04   -.75405E-04
  11  Prefactor     .10000E-03    7.9887        .18142E-02** at limit **
  12  Prefactor     4.9903        4.5695        .14516E-03    .20112E-03
  13  Prefactor     3.9365        3.7678        .13440E-03    .25985E-03
  14  Prefactor     .95507        249.29        .78189E-02    .13421E-03
  15  Prefactor     8.5533        9.5411        .13706E-03   -.26874E-04
  16  norm          3.2977        2.7037        .10572E-03   -.83880E-05
  17  norm          2.5677        4.1075        .16347E-03    .20474E-03
  18  Prefactor     .10000E-03    22.445        .18142E-02** at limit **
  19  norm          50.798        44.204        .56259E-04   -.25179E-04
  20  Prefactor     .10000E-03    50.546        .18142E-02** at limit **
  21  norm          .43223        .41803        .48651E-03    .14737E-02
  22  Prefactor     20.939        14.139        .87541E-04    .39306E-03
  23  Prefactor     .21073E-03    33.486        .11731    ** at limit **
  24  norm          14.852        3.0446        .58823E-04   -.31955E-03
  25  Normalizat    1.0034        .23111        .27670E-03    .48112E-04
  26  Prefactor     .89284        .19472        .25372E-03   -.80923E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.47316
  Prefactor  = 0.0001
  Prefactor  = 3.33902
  Prefactor  = 10.3867
  Prefactor  = 40.9249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6018
  Prefactor  = 0.0001
  Prefactor  = 82.7929
  Prefactor  = 0.0001
  Prefactor  = 4.99025
  Prefactor  = 3.93652
  Prefactor  = 0.955067
  Prefactor  = 8.55332
  norm       = 3.29767
  norm       = 2.56769
  Prefactor  = 0.0001
  norm       = 50.7982
  Prefactor  = 0.0001
  norm       = 0.432229
  Prefactor  = 20.939
  Prefactor  = 0.000210729
  norm       = 14.8518
  Normalizat = 1.00342
  Prefactor  = 0.892844
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.045     FROM HESSE     STATUS=OK           444 CALLS     4490 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4732        8.8124        .63084E-05   -1.5199    
   2  Prefactor     .10000E-03    9.8765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3390        2.7550        .44475E-05   -1.5342    
   4  Prefactor     10.387        16.335        .49735E-05   -1.5063    
   5  Prefactor     40.925        99.297        .12544E-04   -1.4428    
   6  Prefactor     .10000E-03    6.8491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.602        11.429        .47049E-05   -1.5027    
   9  Prefactor     .10000E-03    23.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     82.793        49.263        .88290E-05   -1.3886    
  11  Prefactor     .10000E-03    7.9889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9903        4.5689        .58065E-05   -1.5261    
  13  Prefactor     3.9365        3.7672        .53761E-05   -1.5311    
  14  Prefactor     .95507        243.99        .31276E-03   -1.5513    
  15  Prefactor     8.5533        9.5399        .54825E-05   -1.5123    
  16  norm          3.2977        2.7034        .42287E-05   -1.5345    
  17  norm          2.5677        4.0407        .65389E-05   -1.5387    
  18  Prefactor     .10000E-03    22.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          50.798        44.194        .11252E-04   -1.4281    
  20  Prefactor     .10000E-03    50.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .43223        .41772        .19460E-04   -1.5576    
  22  Prefactor     20.939        14.133        .17508E-04   -1.4792    
  23  Prefactor     .21073E-03    32.715        .11923       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.852        3.0442        .11765E-04   -1.4937    
  25  Normalizat    1.0034        .23129        .11068E-04   -.92916    
  26  Prefactor     .89284        .19484        .10149E-04   -.96392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71086e-09
Minuit parameter uncertainties:
  1  8.81421
  2  1.45047e-05
  3  2.75506
  4  16.3417
  5  99.7019
  6  7.91434e-05
  7  5.1733e-05
  8  11.4315
  9  2.29458e-05
  10  49.287
  11  6.91228e-06
  12  4.56921
  13  3.76744
  14  30.6558
  15  9.54164
  16  2.70352
  17  4.04109
  18  6.49044e-07
  19  44.223
  20  8.92652e-06
  21  0.417725
  22  14.1349
  23  0.120441
  24  3.04422
  25  0.23152
  26  0.194987
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  4.092e+01  9.970e+01  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.928e-01  1.950e-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.003e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 9.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188182/likelihoodResults_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.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) = 6091.03809044
delta logL = 0.00693615589717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6091.03633808
delta logL = 0.00868851263203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.416       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4698       1.0000          .0000       10.000    
     3 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89453       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=   6091.036     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      224 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.416        6071.4        .16835E-02    .76038E-04
   2  Index         2.4692        6.2337        .23643        .52117E-04
   3  Normalizat    1.0006        .44426E-01    .46171E-01    .17302E-04
   4  Prefactor     .89428        .37721E-01    .44935E-01    .26942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4156
  Index      = 2.4692
  Normalizat = 1.00065
  Prefactor  = 0.894275
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.036     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.416        105.93        .67341E-04   -1.4517    
   2  Index         2.4692        1.2527        .94446E-02   -.53073    
   3  Normalizat    1.0006        .22297        .27704E-03   -.93009    
   4  Prefactor     .89428        .19316        .25354E-03   -.96341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38225e-10
Minuit parameter uncertainties:
  1  106.498
  2  1.271
  3  0.223181
  4  0.19331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188182': 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) = 6091.036337
delta logL = 0.00868959530271

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  3.542e+01  1.065e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.469e+00  1.271e+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:  8.943e-01  1.933e-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.001e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/188182/cmap_HighResolution_372816001_373075201_4FGL_J1156.6+0640_daily_bin515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2021-09-04 17:23:03.160238', job_id='188182', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630801383.16', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.69e-03', ts2='0.22', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='515' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:23:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 188182: <4FGL_J1156.6+0640_daily_bin515> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin515> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:38 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:06:40 2021
Terminated at Sat Sep  4 17:23:03 2021
Results reported at Sat Sep  4 17:23:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin515 179.164 6.6728 372816001 373075201 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 :                                   827.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

