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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin519
RA = 179.164, Dec = 6.6728
tmin = 373852801, tmax = 374112001
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='188188', job_status='RUN', time_executed='2021-09-04 17:10:30.276450', time_epoch_executed='1630800630.28' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188188/ft1_4FGL_J1156.6+0640_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188188/ft2_4FGL_J1156.6+0640_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188188/ft1_4FGL_J1156.6+0640_daily_bin519.fits outfile=/scratch/kocevski/188188/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin519.fits ra=179.164 dec=6.6728 rad=12.0 tmin=373852801.0 tmax=374112001.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.46
user 4.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188188/ft1_filtered_4FGL_J1156.6+0640_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/188188/ft2_4FGL_J1156.6+0640_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/188188/ltcube_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.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/188188/ft2_4FGL_J1156.6+0640_daily_bin519.fits
.....................!
real 11.82
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188188/ft1_filtered_4FGL_J1156.6+0640_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/188188/ft2_4FGL_J1156.6+0640_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/188188/ltcube_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.fits outfile=/scratch/kocevski/188188/expmap_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.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/188188/ltcube_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.fits
.....................!
real 193.05
user 187.43
sys 5.24

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/188188/ft1_filtered_4FGL_J1156.6+0640_daily_bin519.fits scfile=/scratch/kocevski/188188/ft2_4FGL_J1156.6+0640_daily_bin519.fits outfile=/scratch/kocevski/188188/cmap_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2516       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66005       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.479       1.0000         .10000E-03   10000.    
    19 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    203.31       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4519       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.128       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.359       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0241       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0281       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=   6082.094     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3109 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.551        13.453        .91940E-07   -.45368E-06
   2  Prefactor     48.245        45.151       -.10396E-06   -.10648E-04
   3  Prefactor     3.2516        2.5348        .53747E-07   -.41147E-04
   4  Prefactor     35.080        28.426       -.18694E-06   -.62544E-05
   5  Prefactor     .10000E-03    29.451       -.21898E-05** at limit **
   6  Prefactor     .10000E-03    3.1306        .13791E-07** at limit **
   7  Prefactor     6.5914        7.1703        .12479E-05   -.19383E-03
   8  Prefactor     .10000E-03    5.7696        .26465E-07** at limit **
   9  Prefactor     .10000E-03    23.154        .10400E-05** at limit **
  10  Prefactor     .10000E-03    27.484       -.90908E-07** at limit **
  11  Prefactor     26.700        27.099       -.32768E-06    .23482E-04
  12  Prefactor     .10000E-03    1.4902       -.52017E-07** at limit **
  13  Prefactor     .66002        2.2522        .92488E-06   -.13000E-03
  14  Prefactor     .10000E-03    12.958        .89282E-06** at limit **
  15  Prefactor     .10000E-03    14.112       -.17849E-05** at limit **
  16  norm          .10000E-03    1.4411       -.14006E-07** at limit **
  17  norm          8.3004        4.8362       -.18290E-06   -.27146E-03
  18  Prefactor     83.478        49.337       -.18527E-07   -.17103E-04
  19  norm          .10000E-03    26.494        .36523E-06** at limit **
  20  Prefactor     203.31        191.38        .17102E-06   -.47218E-05
  21  norm          1.4518        .68413        .14693E-07    .11540E-03
  22  Prefactor     14.127        11.390        .66364E-07   -.17985E-04
  23  Prefactor     .10000E-03    23.258        .10775E-05** at limit **
  24  norm          14.359        3.1338       -.56896E-08   -.84482E-04
  25  Normalizat    1.0241        .21255        .13342E-06   -.16503E-04
  26  Prefactor     1.0281        .18058       -.51342E-06    .19849E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.551
  Prefactor  = 48.2452
  Prefactor  = 3.25159
  Prefactor  = 35.0802
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.59135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7
  Prefactor  = 0.0001
  Prefactor  = 0.660025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.30036
  Prefactor  = 83.4782
  norm       = 0.0001
  Prefactor  = 203.309
  norm       = 1.45183
  Prefactor  = 14.1272
  Prefactor  = 0.0001
  norm       = 14.359
  Normalizat = 1.0241
  Prefactor  = 1.0281
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.094     FROM HESSE     STATUS=OK           454 CALLS     3563 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.551        13.455        .10500E-03   -1.4945    
   2  Prefactor     48.245        45.400        .57730E-04   -1.4318    
   3  Prefactor     3.2516        2.5313        .10501E-03   -1.5347    
   4  Prefactor     35.080        28.427        .67660E-04   -1.4523    
   5  Prefactor     .10000E-03    30.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1398        .13475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.5914        7.3090        .78154E-03   -1.5194    
   8  Prefactor     .10000E-03    5.7860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.700        27.090        .77528E-04   -1.4674    
  12  Prefactor     .10000E-03    1.5101        .92957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .66002        2.2636        .21136E-03   -1.5545    
  14  Prefactor     .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4877        .18270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3004        4.8870        .11781E-03   -1.5132    
  18  Prefactor     83.478        49.352        .43964E-04   -1.3878    
  19  norm          .10000E-03    26.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     203.31        191.38        .28343E-04   -1.2846    
  21  norm          1.4518        .67790        .40169E-04   -1.5467    
  22  Prefactor     14.127        11.396        .10656E-03   -1.4956    
  23  Prefactor     .10000E-03    23.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.359        3.1329        .61208E-04   -1.4950    
  25  Normalizat    1.0241        .24663        .29112E-03   -.92227    
  26  Prefactor     1.0281        .20833        .25770E-03   -.91799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59748e-10
Minuit parameter uncertainties:
  1  13.4574
  2  45.4329
  3  2.53135
  4  28.4378
  5  0.000318373
  6  8.58685e-08
  7  7.30994
  8  7.89626e-08
  9  0.000130448
  10  7.45271e-06
  11  27.1025
  12  3.37199e-06
  13  2.26393
  14  0.00010097
  15  0.000143147
  16  2.23876e-06
  17  4.88727
  18  49.3762
  19  9.33443e-05
  20  191.967
  21  0.677904
  22  11.398
  23  0.000127916
  24  3.13291
  25  0.246909
  26  0.208493
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.028e+00  2.085e-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.024e+00  2.469e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188188/likelihoodResults_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.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) = 6082.09430367
delta logL = -0.000156691859047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6082.09414772
delta logL = -7.35023604648e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7201       1.0000          .0000       10.000    
     3 'Normalizat'    1.0241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0281       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=   6082.094     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1803.2        .90712E-02** at limit **
   2  Index         2.6956        7.4584        .50000        .10387E-04
   3  Normalizat    1.0241        .54915E-01    .65812E-01    .21308E-04
   4  Prefactor     1.0281        .48926E-01    .41412E-01    .25585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69559
  Normalizat = 1.0241
  Prefactor  = 1.0281
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.094     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6956        6.3393        .50000       -.47899    
   3  Normalizat    1.0241        .23047        .29111E-03   -.92227    
   4  Prefactor     1.0281        .20566        .25771E-03   -.91799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30933e-10
Minuit parameter uncertainties:
  1  0.00014296
  2  4.47886
  3  0.230692
  4  0.205818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188188': 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) = 6082.09414766
delta logL = -6.76848685544e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.430e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.696e+00  4.479e+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:  1.028e+00  2.058e-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.024e+00  2.307e-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/188188/cmap_HighResolution_373852801_374112001_4FGL_J1156.6+0640_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-04 17:23:10.013231', job_id='188188', GAL2='1.03', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630801390.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-6.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='519' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:23:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 188188: <4FGL_J1156.6+0640_daily_bin519> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin519 179.164 6.6728 373852801 374112001 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 :                                   759.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             234.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

