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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin326
RA = 179.164, Dec = 6.6728
tmin = 323827201, tmax = 324086401
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='187904', job_status='RUN', time_executed='2021-09-04 17:06:29.397870', time_epoch_executed='1630800389.4' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187904/ft1_4FGL_J1156.6+0640_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187904/ft1_4FGL_J1156.6+0640_daily_bin326.fits outfile=/scratch/kocevski/187904/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin326.fits ra=179.164 dec=6.6728 rad=12.0 tmin=323827201.0 tmax=324086401.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.33
user 3.11
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.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/187904/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/187904/ltcube_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.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/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits
.....................!
real 11.99
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/187904/ltcube_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.fits outfile=/scratch/kocevski/187904/expmap_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.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/187904/ltcube_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.fits
.....................!
real 191.91
user 185.97
sys 5.05

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/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.fits scfile=/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits outfile=/scratch/kocevski/187904/cmap_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.fits scfile=/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits outfile=/scratch/kocevski/187904/cmap_HighResolution_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.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/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/187904/ft2_4FGL_J1156.6+0640_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187904/Model_4FGL_J1156.6+0640_daily_bin326.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/187904/ft1_filtered_4FGL_J1156.6+0640_daily_bin326.fits.....................!
real 55.34
user 53.69
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.756       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12582E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18616       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.946       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
    16 'norm      '    .15121E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .77668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6224       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    72.629       1.0000         .10000E-03   10000.    
    24 'norm      '    5.0949       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88005       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=   5546.922     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3147 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8353        .12643E-06** at limit **
   2  Prefactor     19.681        30.189       -.14365E-06    .25246E-04
   3  Prefactor     3.0314        2.3863       -.97642E-08    .12424E-04
   4  Prefactor     .10000E-03    8.2295        .35347E-07** at limit **
   5  Prefactor     8.8026        203.12       -.14043E-04   -.54220E-04
   6  Prefactor     .10000E-03    3.6574       -.29838E-06** at limit **
   7  Prefactor     .10000E-03    2.3107       -.12839E-06** at limit **
   8  Prefactor     11.758        15.861        .27027E-06   -.40178E-04
   9  Prefactor     .10000E-03    140.38        .98539E-06** at limit **
  10  Prefactor     2.2624        107.08        .18122E-04   -.14687E-03
  11  Prefactor     .10000E-03    54.422       -.43731E-06** at limit **
  12  Prefactor     8.1056        5.9483       -.13579E-06   -.10394E-03
  13  Prefactor     .18475        2.4743        .16474E-06   -.19849E-03
  14  Prefactor     19.949        21.349       -.50423E-06    .12321E-04
  15  Prefactor     10.313        12.397        .56765E-05    .11070E-02
  16  norm          .10001E-03    2.6222       -.40090E-05** at limit **
  17  norm          .77500        2.8610        .55958E-06   -.26207E-03
  18  Prefactor     .10000E-03    9.6110        .39004E-07** at limit **
  19  norm          .10000E-03    28.512       -.12076E-06** at limit **
  20  Prefactor     .10000E-03    96.168       -.41182E-06** at limit **
  21  norm          4.6229        .96667       -.78401E-07    .21807E-02
  22  Prefactor     .10000E-03    4.1876        .57647E-07** at limit **
  23  Prefactor     72.629        34.566       -.13878E-06    .65540E-05
  24  norm          5.0949        2.1744       -.99251E-08    .63430E-04
  25  Normalizat    1.0483        .21097        .16272E-05    .64114E-04
  26  Prefactor     .88054        .17391       -.17385E-05    .46337E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.681
  Prefactor  = 3.03144
  Prefactor  = 0.0001
  Prefactor  = 8.80262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7579
  Prefactor  = 0.000100002
  Prefactor  = 2.2624
  Prefactor  = 0.0001
  Prefactor  = 8.10555
  Prefactor  = 0.18475
  Prefactor  = 19.9491
  Prefactor  = 10.3127
  norm       = 0.000100006
  norm       = 0.775001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.62293
  Prefactor  = 0.0001
  Prefactor  = 72.6292
  norm       = 5.09486
  Normalizat = 1.04832
  Prefactor  = 0.880535
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.922     FROM HESSE     STATUS=OK           454 CALLS     3601 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8422        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.681        30.249        .90150E-04   -1.4820    
   3  Prefactor     3.0314        2.3857        .97998E-04   -1.5360    
   4  Prefactor     .10000E-03    8.2372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8026        206.07        .13348E-03   -1.5114    
   6  Prefactor     .10000E-03    3.6637        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3131        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.758        15.864        .11684E-03   -1.5022    
   9  Prefactor     .10000E-03    140.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2624        100.82        .13695E-02   -1.5407    
  11  Prefactor     .10000E-03    55.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1056        6.0484        .13251E-03   -1.5138    
  13  Prefactor     .18475        16.859        .19937E-02   -1.5622    
  14  Prefactor     19.949        21.292        .89681E-04   -1.4814    
  15  Prefactor     10.313        13.225        .12488E-03   -1.5066    
  16  norm          .10001E-03    4.7588        .21139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77500        2.7596        .21998E-03   -1.5532    
  18  Prefactor     .10000E-03    9.6183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    28.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    96.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6229        .95611        .29799E-04   -1.5278    
  22  Prefactor     .10000E-03    4.1921        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     72.629        34.588        .47109E-04   -1.4001    
  24  norm          5.0949        2.1736        .68504E-04   -1.5256    
  25  Normalizat    1.0483        .24644        .27077E-03   -.91429    
  26  Prefactor     .88054        .20218        .25339E-03   -.96825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08049e-09
Minuit parameter uncertainties:
  1  8.7309e-06
  2  30.2721
  3  2.38582
  4  5.29482e-06
  5  85.5132
  6  1.92303e-05
  7  2.25106e-06
  8  15.8696
  9  0.00104107
  10  30.259
  11  0.00026478
  12  6.04889
  13  3.52981
  14  21.2997
  15  13.2286
  16  0.000345335
  17  2.76005
  18  5.65766e-06
  19  3.88818e-05
  20  0.00053542
  21  0.956109
  22  3.15807e-06
  23  34.5979
  24  2.1736
  25  0.246705
  26  0.202351
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  8.803e+00  8.551e+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.805e-01  2.024e-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.048e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/187904/likelihoodResults_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.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) = 5546.91376028
delta logL = 0.00800825549868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5546.91361503
delta logL = 0.00815350809535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4069       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6071       1.0000          .0000       10.000    
     3 'Normalizat'    1.0456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88154       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5546.914     FROM MIGRAD    STATUS=FAILED        92 CALLS      274 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4840        120.20        .13066E-03    .31601E-03
   2  Index         2.6120        2.1531        .44057E-02    .95759E-03
   3  Normalizat    1.0452        .23447        .27114E-03    .48779E-03
   4  Prefactor     .88160        .20165        .25325E-03   -.11627E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5546.914     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      345 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4840        120.20        .15726E-02   -1.5092    
   2  Index         2.6120        2.1531        .27456E-02   -.49792    
   3  Normalizat    1.0452        .23447        .48051E-03   -.91532    
   4  Prefactor     .88160        .20165        .47897E-03   -.96787    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5546.914     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      371 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4961        113.47        .26133E-04    .13860E-03
   2  Index         2.6110        2.0967        .17623E-03   -.21753E-04
   3  Normalizat    1.0452        .23471        .54229E-04    .40168E-04
   4  Prefactor     .88162        .20182        .50650E-04    .24645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.49614
  Index      = 2.611
  Normalizat = 1.04517
  Prefactor  = 0.88162
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.914     FROM HESSE     STATUS=OK            23 CALLS      394 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4961        113.54        .52266E-05   -1.5092    
   2  Index         2.6110        2.0955        .35245E-04   -.49815    
   3  Normalizat    1.0452        .23477        .10846E-04   -.91532    
   4  Prefactor     .88162        .20186        .10130E-04   -.96786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26948e-09
Minuit parameter uncertainties:
  1  65.8285
  2  2.18446
  3  0.235
  4  0.202028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187904': 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) = 5546.91360799
delta logL = 0.00816054257575

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  9.496e+00  6.583e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.611e+00  2.184e+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.816e-01  2.020e-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.045e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/187904/cmap_HighResolution_323827201_324086401_4FGL_J1156.6+0640_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-04 17:18:49.349842', job_id='187904', GAL2='0.88', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630801129.35', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.16e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='326' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:18:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 187904: <4FGL_J1156.6+0640_daily_bin326> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin326> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:18 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:20 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:20 2021
Terminated at Sat Sep  4 17:18:50 2021
Results reported at Sat Sep  4 17:18:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin326 179.164 6.6728 323827201 324086401 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 :                                   736.07 sec.
    Max Memory :                                 1239 MB
    Average Memory :                             355.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

