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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin182
RA = 179.164, Dec = 6.6728
tmin = 286502401, tmax = 286761601
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='186661', job_status='RUN', time_executed='2021-09-04 17:05:06.614434', time_epoch_executed='1630800306.61' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186661/ft1_4FGL_J1156.6+0640_daily_bin182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186661/ft2_4FGL_J1156.6+0640_daily_bin182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186661/ft1_4FGL_J1156.6+0640_daily_bin182.fits outfile=/scratch/kocevski/186661/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin182.fits ra=179.164 dec=6.6728 rad=12.0 tmin=286502401.0 tmax=286761601.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.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186661/ft1_filtered_4FGL_J1156.6+0640_daily_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/186661/ft2_4FGL_J1156.6+0640_daily_bin182.fits sctable="SC_DATA" expcube=/scratch/kocevski/186661/ltcube_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.fits outfile=/scratch/kocevski/186661/expmap_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.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/186661/ltcube_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.fits
.....................!
real 189.68
user 185.27
sys 4.10

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/186661/ft1_filtered_4FGL_J1156.6+0640_daily_bin182.fits scfile=/scratch/kocevski/186661/ft2_4FGL_J1156.6+0640_daily_bin182.fits outfile=/scratch/kocevski/186661/cmap_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186661/ft1_filtered_4FGL_J1156.6+0640_daily_bin182.fits scfile=/scratch/kocevski/186661/ft2_4FGL_J1156.6+0640_daily_bin182.fits outfile=/scratch/kocevski/186661/cmap_HighResolution_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18597E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.800       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1770       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2277       1.0000         .10000E-03   10000.    
    17 'norm      '    19.371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13467E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.8850       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.3105       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3439       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78095       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=   6009.868     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3120 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.464        .38099E-05** at limit **
   2  Prefactor     .10000E-03    12.703       -.33082E-05** at limit **
   3  Prefactor     1.8839        2.0869       -.29152E-07   -.12309E-03
   4  Prefactor     .10000E-03    7.6016       -.10860E-06** at limit **
   5  Prefactor     .10000E-03    38.140       -.17677E-04** at limit **
   6  Prefactor     .10000E-03    11.650       -.27162E-05** at limit **
   7  Prefactor     .10017E-03    5.5582       -.28540E-05** at limit **
   8  Prefactor     27.803        19.052       -.12117E-06   -.10328E-03
   9  Prefactor     .10000E-03    280.25        .32515E-04** at limit **
  10  Prefactor     .10000E-03    16.361        .12145E-04** at limit **
  11  Prefactor     .10000E-03    18.229       -.12415E-04** at limit **
  12  Prefactor     1.9677        2.1303        .47348E-07    .11600E-03
  13  Prefactor     .10000E-03    .92699       -.27418E-08** at limit **
  14  Prefactor     19.134        24.253       -.84123E-06    .30511E-05
  15  Prefactor     3.1459        31.271        .16654E-04    .72387E-04
  16  norm          2.2331        4.2682       -.32413E-05   -.97452E-03
  17  norm          19.363        5.9673        .17714E-06    .36137E-03
  18  Prefactor     .10000E-03    25.714        .12656E-04** at limit **
  19  norm          .10000E-03    248.71       -.24275E-04** at limit **
  20  Prefactor     .10000E-03    56.327        .99565E-05** at limit **
  21  norm          4.8853        1.0090       -.11035E-06    .56609E-03
  22  Prefactor     .10000E-03    6.1730       -.23140E-07** at limit **
  23  Prefactor     .10000E-03    25.124        .96634E-05** at limit **
  24  norm          4.3105        2.1368       -.20448E-08   -.13700E-03
  25  Normalizat    1.3434        .20325       -.25865E-06    .12707E-03
  26  Prefactor     .78136        .17095       -.26850E-07    .99134E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100172
  Prefactor  = 27.8028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96765
  Prefactor  = 0.0001
  Prefactor  = 19.1343
  Prefactor  = 3.14593
  norm       = 2.23306
  norm       = 19.3631
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.31055
  Normalizat = 1.34338
  Prefactor  = 0.781361
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.868     FROM HESSE     STATUS=OK           452 CALLS     3572 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8839        2.0815        .11346E-03   -1.5433    
   4  Prefactor     .10000E-03    7.6046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10017E-03    21.988        .34939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.803        19.150        .75982E-04   -1.4653    
   9  Prefactor     .10000E-03    281.14        .20932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9677        2.1346        .11463E-03   -1.5427    
  13  Prefactor     .10000E-03    .93176        .72876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.134        24.252        .91567E-04   -1.4833    
  15  Prefactor     3.1459        28.868        .22736E-03   -1.5353    
  16  norm          2.2331        4.1047        .15751E-03   -1.5409    
  17  norm          19.363        5.9777        .91003E-04   -1.4828    
  18  Prefactor     .10000E-03    25.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    252.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    56.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.8853        1.0114        .31582E-04   -1.5266    
  22  Prefactor     .10000E-03    6.1988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.3105        2.1343        .76463E-04   -1.5293    
  25  Normalizat    1.3434        .24141        .25815E-03   -.82281    
  26  Prefactor     .78136        .20221        .28248E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71243e-09
Minuit parameter uncertainties:
  1  1.9107e-05
  2  1.23226e-06
  3  2.08156
  4  1.67443e-06
  5  9.41341e-06
  6  1.49231e-05
  7  0.00388802
  8  19.1539
  9  0.00011976
  10  4.45549e-06
  11  3.72385e-05
  12  2.13465
  13  3.63218e-08
  14  24.2646
  15  19.0714
  16  4.10523
  17  5.97789
  18  1.66042e-05
  19  0.000272587
  20  2.97205e-06
  21  1.01142
  22  2.85516e-06
  23  1.46743e-05
  24  2.13434
  25  0.241613
  26  0.202406
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  9.413e-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:  7.814e-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.343e+00  2.416e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186661/likelihoodResults_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.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) = 6009.86840615
delta logL = -0.000125345221932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6009.86828152
delta logL = -7.14319867257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5863       1.0000          .0000       10.000    
     3 'Normalizat'    1.3434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78136       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=   6009.868     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10252E-03    15.381        .18142E-01** at limit **
   2  Index         2.5127        6.6702        .50000        .99664E-05
   3  Normalizat    1.3434        .37009E-02    .25815E-03   -.44039E-07
   4  Prefactor     .78136        .31966E-02    .28248E-03   -.54734E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102515
  Index      = 2.51272
  Normalizat = 1.34338
  Prefactor  = 0.781361
 **********
 **   18 **HESSE 
 **********

 FCN=   6009.868     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10252E-03    91.141        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5127        5.7255        .50000       -.52066    
   3  Normalizat    1.3434        .90312E-02    .10326E-04   -.82281    
   4  Prefactor     .78136        .78005E-02    .11299E-04   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03354e-09
Minuit parameter uncertainties:
  1  0.0303263
  2  228.486
  3  0.00903122
  4  0.00780051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186661': 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) = 6009.86828119
delta logL = -3.83917722502e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.025e-04  3.033e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.513e+00  2.285e+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:  7.814e-01  7.801e-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.343e+00  9.031e-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/186661/cmap_HighResolution_286502401_286761601_4FGL_J1156.6+0640_daily_bin182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-04 17:17:54.641433', job_id='186661', GAL2='0.78', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630801074.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-3.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='182' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 186661: <4FGL_J1156.6+0640_daily_bin182> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin182 179.164 6.6728 286502401 286761601 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 :                                   767.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

