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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin430
RA = 179.164, Dec = 6.6728
tmin = 350784001, tmax = 351043201
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='188056', job_status='RUN', time_executed='2021-09-04 17:09:51.083909', time_epoch_executed='1630800591.08' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188056/ft1_4FGL_J1156.6+0640_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188056/ft2_4FGL_J1156.6+0640_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188056/ft1_4FGL_J1156.6+0640_daily_bin430.fits outfile=/scratch/kocevski/188056/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin430.fits ra=179.164 dec=6.6728 rad=12.0 tmin=350784001.0 tmax=351043201.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.52
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188056/ft1_filtered_4FGL_J1156.6+0640_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/188056/ft2_4FGL_J1156.6+0640_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/188056/ltcube_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.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/188056/ft2_4FGL_J1156.6+0640_daily_bin430.fits
.....................!
real 11.83
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188056/ft1_filtered_4FGL_J1156.6+0640_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/188056/ft2_4FGL_J1156.6+0640_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/188056/ltcube_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.fits outfile=/scratch/kocevski/188056/expmap_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.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/188056/ltcube_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.fits
.....................!
real 190.36
user 185.67
sys 4.32

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/188056/ft1_filtered_4FGL_J1156.6+0640_daily_bin430.fits scfile=/scratch/kocevski/188056/ft2_4FGL_J1156.6+0640_daily_bin430.fits outfile=/scratch/kocevski/188056/cmap_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.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.63
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49619       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7843       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.848       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0176       1.0000         .10000E-03   10000.    
    17 'norm      '    .70523       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    102.39       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74500E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.3379       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3287       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70858       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=   5347.271     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3097 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.004        .78234E-07** at limit **
   2  Prefactor     .10000E-03    16.714        .38851E-07** at limit **
   3  Prefactor     .49514        1.9497        .68999E-06   -.27244E-03
   4  Prefactor     .10000E-03    9.3283       -.20130E-06** at limit **
   5  Prefactor     .10000E-03    38.322       -.30968E-06** at limit **
   6  Prefactor     .10000E-03    3.3760       -.21329E-07** at limit **
   7  Prefactor     4.7828        8.2456        .61321E-05   -.57412E-04
   8  Prefactor     1.0351        9.3620        .27924E-06    .49833E-04
   9  Prefactor     .10000E-03    41.565       -.35266E-08** at limit **
  10  Prefactor     40.284        43.163       -.30280E-05   -.99825E-04
  11  Prefactor     .10000E-03    16.687       -.24496E-06** at limit **
  12  Prefactor     .10000E-03    1.2256        .19288E-07** at limit **
  13  Prefactor     .10000E-03    1.0208        .25131E-07** at limit **
  14  Prefactor     13.835        21.386       -.92160E-06   -.70970E-04
  15  Prefactor     .10000E-03    7.9241       -.14174E-06** at limit **
  16  norm          6.0179        2.8701       -.15769E-07   -.98199E-04
  17  norm          .70018        2.8723        .13241E-05   -.19050E-03
  18  Prefactor     .10000E-03    12.154        .71536E-06** at limit **
  19  norm          .10000E-03    61.847       -.43967E-06** at limit **
  20  Prefactor     102.75        99.853        .43308E-06    .75849E-04
  21  norm          1.9930        .70606       -.19365E-06   -.18615E-02
  22  Prefactor     .10050E-03    5.7368        .21153E-05** at limit **
  23  Prefactor     .10000E-03    8.7151        .84319E-07** at limit **
  24  norm          7.3366        2.2908       -.73682E-07   -.50358E-03
  25  Normalizat    1.3287        .19785       -.12429E-05   -.46621E-03
  26  Prefactor     .70856        .16361       -.97530E-06   -.37741E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.495144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78279
  Prefactor  = 1.03506
  Prefactor  = 0.0001
  Prefactor  = 40.2839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8352
  Prefactor  = 0.0001
  norm       = 6.01787
  norm       = 0.700184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 102.749
  norm       = 1.99305
  Prefactor  = 0.000100498
  Prefactor  = 0.0001
  norm       = 7.3366
  Normalizat = 1.32875
  Prefactor  = 0.708557
 **********
 **   18 **HESSE 
 **********

 FCN=   5347.271     FROM HESSE     STATUS=OK           452 CALLS     3549 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49514        3.2189        .18879E-02   -1.5567    
   4  Prefactor     .10000E-03    9.3416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3807        .13121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7828        8.2005        .91968E-03   -1.5271    
   8  Prefactor     1.0351        51.101        .42158E-02   -1.5504    
   9  Prefactor     .10000E-03    41.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.284        43.258        .63131E-04   -1.4438    
  11  Prefactor     .10000E-03    16.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2335        .79052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0277        .72141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.835        21.294        .10763E-03   -1.4964    
  15  Prefactor     .10000E-03    7.9643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0179        2.8676        .82782E-04   -1.5217    
  17  norm          .70018        4.3620        .20744E-02   -1.5541    
  18  Prefactor     .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    61.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     102.75        99.956        .19867E-03   -1.3677    
  21  norm          1.9930        .69195        .32034E-04   -1.5426    
  22  Prefactor     .10050E-03    47.173        .32934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.3366        2.2875        .58933E-04   -1.5166    
  25  Normalizat    1.3287        .23157        .23619E-03   -.82712    
  26  Prefactor     .70856        .19080        .26961E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7192e-08
Minuit parameter uncertainties:
  1  3.2555e-05
  2  1.92549e-05
  3  2.52486
  4  2.68629e-05
  5  2.22915e-05
  6  3.71178e-06
  7  8.20241
  8  14.558
  9  2.15e-05
  10  43.2915
  11  6.90627e-06
  12  1.71068e-06
  13  1.63118e-06
  14  21.3057
  15  1.01329e-05
  16  2.86765
  17  3.4954
  18  3.12039e-06
  19  7.16236e-07
  20  100.12
  21  0.691958
  22  0.00970427
  23  5.00135e-06
  24  2.28749
  25  0.231747
  26  0.190979
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.229e-05  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.086e-01  1.910e-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.329e+00  2.317e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188056/likelihoodResults_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.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) = 5347.27125625
delta logL = -7.14047291694e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5347.27118537
delta logL = -5.26370058651e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5980       1.0000          .0000       10.000    
     3 'Normalizat'    1.3287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70856       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=   5347.271     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      286 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10221E-03    189.59        .18142E-02** at limit **
   2  Index         2.5295        8.6986        .50000        .88091E-05
   3  Normalizat    1.3287        .12530E-01    .23619E-03   -.42599E-04
   4  Prefactor     .70856        .10843E-01    .26961E-03   -.50642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102214
  Index      = 2.52948
  Normalizat = 1.32875
  Prefactor  = 0.708557
 **********
 **   18 **HESSE 
 **********

 FCN=   5347.271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10221E-03    792.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5295        6.1489        .50000       -.51680    
   3  Normalizat    1.3287        .26468E-01    .94474E-05   -.82712    
   4  Prefactor     .70856        .22904E-01    .10785E-04   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.09421e-09
Minuit parameter uncertainties:
  1  0.0849319
  2  713.394
  3  0.0264685
  4  0.0229043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188056': 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) = 5347.27118521
delta logL = -3.62128957931e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.022e-04  8.493e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.529e+00  7.134e+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.086e-01  2.290e-02  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.329e+00  2.647e-02  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/188056/cmap_HighResolution_350784001_351043201_4FGL_J1156.6+0640_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-04 17:21:40.836473', job_id='188056', GAL2='0.71', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630801300.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-3.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='430' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 188056: <4FGL_J1156.6+0640_daily_bin430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin430 179.164 6.6728 350784001 351043201 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

