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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin254
RA = 179.164, Dec = 6.6728
tmin = 305164801, tmax = 305424001
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='186771', job_status='RUN', time_executed='2021-09-04 17:03:51.531934', time_epoch_executed='1630800231.53' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='254'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186771/ft1_4FGL_J1156.6+0640_daily_bin254.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186771/ft2_4FGL_J1156.6+0640_daily_bin254.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186771/ft1_4FGL_J1156.6+0640_daily_bin254.fits outfile=/scratch/kocevski/186771/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin254.fits ra=179.164 dec=6.6728 rad=12.0 tmin=305164801.0 tmax=305424001.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.48
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186771/ft1_filtered_4FGL_J1156.6+0640_daily_bin254.fits" evtable="EVENTS" scfile=/scratch/kocevski/186771/ft2_4FGL_J1156.6+0640_daily_bin254.fits sctable="SC_DATA" outfile=/scratch/kocevski/186771/ltcube_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.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/186771/ft2_4FGL_J1156.6+0640_daily_bin254.fits
.....................!
real 11.77
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186771/ft1_filtered_4FGL_J1156.6+0640_daily_bin254.fits evtable="EVENTS" scfile=/scratch/kocevski/186771/ft2_4FGL_J1156.6+0640_daily_bin254.fits sctable="SC_DATA" expcube=/scratch/kocevski/186771/ltcube_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.fits outfile=/scratch/kocevski/186771/expmap_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.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/186771/ltcube_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.fits
.....................!
real 191.36
user 185.39
sys 5.28

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/186771/ft1_filtered_4FGL_J1156.6+0640_daily_bin254.fits scfile=/scratch/kocevski/186771/ft2_4FGL_J1156.6+0640_daily_bin254.fits outfile=/scratch/kocevski/186771/cmap_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186771/ft1_filtered_4FGL_J1156.6+0640_daily_bin254.fits scfile=/scratch/kocevski/186771/ft2_4FGL_J1156.6+0640_daily_bin254.fits outfile=/scratch/kocevski/186771/cmap_HighResolution_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0259       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.042       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43851       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0939       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .94807       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.336       1.0000         .10000E-03   10000.    
    19 'norm      '    21.615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7538       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7666       1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.896       1.0000         .10000E-03   10000.    
    24 'norm      '    6.1764       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4517       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90082       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=   6030.426     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3142 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0261        9.7090       -.21431E-06   -.71336E-04
   2  Prefactor     10.042        24.741       -.21878E-05   -.32361E-03
   3  Prefactor     2.5365        2.6010       -.12706E-06   -.18375E-03
   4  Prefactor     .10000E-03    12.720        .17691E-04** at limit **
   5  Prefactor     .10000E-03    33.102        .11269E-04** at limit **
   6  Prefactor     .43372        7.6536       -.14954E-05    .51171E-05
   7  Prefactor     .10000E-03    10.815       -.65737E-05** at limit **
   8  Prefactor     .10000E-03    4.6268        .23407E-07** at limit **
   9  Prefactor     .10000E-03    71.493       -.30647E-04** at limit **
  10  Prefactor     .10000E-03    17.863       -.10168E-05** at limit **
  11  Prefactor     .10000E-03    10.607       -.10248E-04** at limit **
  12  Prefactor     .10000E-03    5.6252       -.40277E-08** at limit **
  13  Prefactor     2.0936        3.0535        .66512E-08   -.31467E-03
  14  Prefactor     .10000E-03    18.802       -.11158E-04** at limit **
  15  Prefactor     .10000E-03    9.3763        .58381E-05** at limit **
  16  norm          .94762        2.5665       -.10322E-05   -.14101E-02
  17  norm          .10000E-03    2.7125       -.79182E-06** at limit **
  18  Prefactor     18.336        25.175        .20408E-06    .90863E-05
  19  norm          21.628        53.366        .22152E-04    .34239E-04
  20  Prefactor     .10000E-03    63.161        .18912E-04** at limit **
  21  norm          6.7541        1.0692       -.23993E-06    .55978E-03
  22  Prefactor     4.7695        16.899        .11081E-04    .16764E-06
  23  Prefactor     42.881        51.505       -.16671E-04   -.38623E-04
  24  norm          6.1765        2.4308       -.69288E-07   -.55199E-04
  25  Normalizat    1.4517        .22418        .20519E-05    .10733E-03
  26  Prefactor     .90090        .19229       -.99673E-06    .22360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.02608
  Prefactor  = 10.0417
  Prefactor  = 2.5365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.43372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.947624
  norm       = 0.000100001
  Prefactor  = 18.336
  norm       = 21.6277
  Prefactor  = 0.0001
  norm       = 6.7541
  Prefactor  = 4.76948
  Prefactor  = 42.8812
  norm       = 6.17646
  Normalizat = 1.45168
  Prefactor  = 0.9009
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.426     FROM HESSE     STATUS=OK           456 CALLS     3598 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0261        9.7059        .15135E-03   -1.5178    
   2  Prefactor     10.042        24.856        .63224E-03   -1.5074    
   3  Prefactor     2.5365        2.5989        .12157E-03   -1.5389    
   4  Prefactor     .10000E-03    12.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .43372        38.895        .41185E-02   -1.5576    
   7  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6292        .16313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    71.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7716        .35851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0936        3.0325        .15722E-03   -1.5419    
  14  Prefactor     .10000E-03    18.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .94762        2.5409        .19681E-03   -1.5513    
  17  norm          .10000E-03    2.7826        .24854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.336        25.174        .93535E-04   -1.4851    
  19  norm          21.628        53.078        .86153E-04   -1.4778    
  20  Prefactor     .10000E-03    63.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7541        1.0682        .15440E-04   -1.5188    
  22  Prefactor     4.7695        16.583        .18429E-03   -1.5271    
  23  Prefactor     42.881        50.781        .61209E-04   -1.4397    
  24  norm          6.1765        2.4297        .72921E-04   -1.5211    
  25  Normalizat    1.4517        .26817        .27263E-03   -.79145    
  26  Prefactor     .90090        .22979        .29268E-03   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90732e-09
Minuit parameter uncertainties:
  1  9.70807
  2  24.8817
  3  2.59906
  4  7.74314e-06
  5  2.14172e-06
  6  8.21902
  7  1.45605e-05
  8  3.02497e-06
  9  7.08766e-05
  10  4.23487e-06
  11  5.4777e-06
  12  8.88135e-06
  13  3.03267
  14  1.91002e-05
  15  5.33844e-05
  16  2.54116
  17  0.000116554
  18  25.1889
  19  53.1943
  20  2.13268e-05
  21  1.06817
  22  16.5989
  23  50.8327
  24  2.42972
  25  0.26843
  26  0.230042
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.142e-06  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.009e-01  2.300e-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.452e+00  2.684e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186771/likelihoodResults_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.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) = 6030.425825
delta logL = -0.000143875577123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6030.42568196
delta logL = -8.30713361211e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5909       1.0000          .0000       10.000    
     3 'Normalizat'    1.4517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90090       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=   6030.426     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10241E-03    14.021        .18142E-01** at limit **
   2  Index         2.5193        5.3612        .50000        .11166E-04
   3  Normalizat    1.4517        .41297E-02    .27263E-03    .66720E-06
   4  Prefactor     .90090        .36133E-02    .29268E-03   -.47777E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010241
  Index      = 2.51933
  Normalizat = 1.45168
  Prefactor  = 0.900898
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.426     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10241E-03    79.542        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5193        6.8544        .50000       -.51914    
   3  Normalizat    1.4517        .98633E-02    .10905E-04   -.79145    
   4  Prefactor     .90090        .86300E-02    .11707E-04   -.96110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12747e-09
Minuit parameter uncertainties:
  1  0.0277292
  2  214.883
  3  0.00986333
  4  0.00863001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186771': 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): 102
logL (Free Index) = 6030.42568157
delta logL = -4.45599653176e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.024e-04  2.773e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.519e+00  2.149e+02  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.009e-01  8.630e-03  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.452e+00  9.863e-03  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/186771/cmap_HighResolution_305164801_305424001_4FGL_J1156.6+0640_daily_bin254.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-04 17:16:43.545071', job_id='186771', GAL2='0.90', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630801003.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-4.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='254' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:16:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 186771: <4FGL_J1156.6+0640_daily_bin254> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin254 179.164 6.6728 305164801 305424001 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 :                                   770.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

