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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin840
RA = 179.164, Dec = 6.6728
tmin = 457056001, tmax = 457315201
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='189905', job_status='RUN', time_executed='2021-09-04 17:14:00.899966', time_epoch_executed='1630800840.9' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='840'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189905

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189905/ft1_4FGL_J1156.6+0640_daily_bin840.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189905/ft2_4FGL_J1156.6+0640_daily_bin840.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189905/ft1_4FGL_J1156.6+0640_daily_bin840.fits outfile=/scratch/kocevski/189905/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin840.fits ra=179.164 dec=6.6728 rad=12.0 tmin=457056001.0 tmax=457315201.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.37
user 4.10
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189905/ft1_filtered_4FGL_J1156.6+0640_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/189905/ft2_4FGL_J1156.6+0640_daily_bin840.fits sctable="SC_DATA" expcube=/scratch/kocevski/189905/ltcube_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.fits outfile=/scratch/kocevski/189905/expmap_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.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/189905/ltcube_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.fits
.....................!
real 190.65
user 185.16
sys 5.13

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/189905/ft1_filtered_4FGL_J1156.6+0640_daily_bin840.fits scfile=/scratch/kocevski/189905/ft2_4FGL_J1156.6+0640_daily_bin840.fits outfile=/scratch/kocevski/189905/cmap_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189905/ft1_filtered_4FGL_J1156.6+0640_daily_bin840.fits scfile=/scratch/kocevski/189905/ft2_4FGL_J1156.6+0640_daily_bin840.fits outfile=/scratch/kocevski/189905/cmap_HighResolution_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43665E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.779       1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.282       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7119       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5652       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.563       1.0000         .10000E-03   10000.    
    19 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .97637E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .53778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.746       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3839       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3874       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68741       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=   4979.783     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3187 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10032E-03    98.652       -.33808E-04** at limit **
   2  Prefactor     64.537        46.072        .17221E-06    .19716E-03
   3  Prefactor     3.9945        2.6814       -.91969E-07    .94327E-04
   4  Prefactor     .10000E-03    11.174       -.13904E-06** at limit **
   5  Prefactor     .10001E-03    174.81       -.13568E-04** at limit **
   6  Prefactor     .10000E-03    7.0159        .51145E-07** at limit **
   7  Prefactor     .10000E-03    5.2513       -.13141E-06** at limit **
   8  Prefactor     .10000E-03    5.8825        .12786E-06** at limit **
   9  Prefactor     41.773        71.839        .14462E-05    .30476E-04
  10  Prefactor     82.286        54.824       -.10134E-06    .77458E-04
  11  Prefactor     .10000E-03    20.476       -.87429E-07** at limit **
  12  Prefactor     1.6945        3.4763       -.23765E-05    .13425E-03
  13  Prefactor     .10000E-03    1.8082        .95582E-06** at limit **
  14  Prefactor     .10000E-03    12.339        .29220E-07** at limit **
  15  Prefactor     6.7117        6.7731        .23174E-06   -.49614E-04
  16  norm          .10000E-03    .71028       -.23286E-07** at limit **
  17  norm          2.5692        3.4793       -.42930E-06    .79168E-03
  18  Prefactor     14.587        24.067       -.32418E-05   -.12060E-03
  19  norm          .10000E-03    17.059        .14116E-06** at limit **
  20  Prefactor     .10000E-03    290.12       -.10907E-04** at limit **
  21  norm          .53827        .60351       -.26127E-06    .12706E-02
  22  Prefactor     23.711        14.414        .21995E-05    .24204E-03
  23  Prefactor     .10088E-03    152.55       -.43092E-04** at limit **
  24  norm          1.3851        1.6255       -.17281E-06    .86234E-03
  25  Normalizat    1.3875        .21918       -.20124E-06    .52776E-03
  26  Prefactor     .68717        .17772        .12432E-05    .53796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100325
  Prefactor  = 64.5366
  Prefactor  = 3.99451
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7728
  Prefactor  = 82.2856
  Prefactor  = 0.0001
  Prefactor  = 1.69455
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.71166
  norm       = 0.0001
  norm       = 2.5692
  Prefactor  = 14.5869
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.538274
  Prefactor  = 23.711
  Prefactor  = 0.000100881
  norm       = 1.3851
  Normalizat = 1.38748
  Prefactor  = 0.68717
 **********
 **   18 **HESSE 
 **********

 FCN=   4979.783     FROM HESSE     STATUS=OK           462 CALLS     3649 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10032E-03    147.63        .40783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.537        45.856        .49942E-04   -1.4100    
   3  Prefactor     3.9945        2.6818        .91085E-04   -1.5308    
   4  Prefactor     .10000E-03    11.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    176.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2955        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8856        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.773        71.937        .62018E-04   -1.4414    
  10  Prefactor     82.286        55.075        .44280E-04   -1.3891    
  11  Prefactor     .10000E-03    20.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6945        3.3991        .17840E-03   -1.5448    
  13  Prefactor     .10000E-03    8.6548        .17705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7117        6.7704        .15488E-03   -1.5190    
  16  norm          .10000E-03    .71171        .58072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5692        3.4206        .13980E-03   -1.5387    
  18  Prefactor     14.587        24.164        .10496E-03   -1.4944    
  19  norm          .10000E-03    17.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    290.52        .20778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .53827        .57031        .52552E-03   -1.5561    
  22  Prefactor     23.711        15.026        .82202E-04   -1.4734    
  23  Prefactor     .10088E-03    42.420        .11310       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3851        1.5930        .92418E-04   -1.5473    
  25  Normalizat    1.3875        .25585        .23925E-03   -.80991    
  26  Prefactor     .68717        .20551        .27866E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12015e-09
Minuit parameter uncertainties:
  1  0.0138819
  2  45.881
  3  2.68189
  4  8.57166e-06
  5  0.00304936
  6  1.47096e-05
  7  2.22662e-06
  8  1.66325e-05
  9  72.0874
  10  55.1093
  11  8.52749e-06
  12  3.39948
  13  0.000182268
  14  3.65712e-05
  15  6.77112
  16  3.2704e-07
  17  3.42086
  18  24.1798
  19  3.79421e-05
  20  0.00113314
  21  0.570315
  22  15.0288
  23  0.0122371
  24  1.59303
  25  0.25609
  26  0.205732
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.049e-03  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:  6.872e-01  2.057e-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.387e+00  2.561e-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: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189905/likelihoodResults_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.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) = 4979.78290729
delta logL = -2.68394369414e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4979.78288054
delta logL = -8.45775502967e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11899E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2877       1.0000          .0000       10.000    
     3 'Normalizat'    1.3875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68717       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=   4979.783     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6956.4        .90712E-02** at limit **
   2  Index         2.3545        8.0638        .50000       -.41141E-05
   3  Normalizat    1.3875        .27162E-01    .54110E-01   -.20728E-03
   4  Prefactor     .68718        .23229E-01    .62990E-01    .20609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.35451
  Normalizat = 1.38747
  Prefactor  = 0.687178
 **********
 **   18 **HESSE 
 **********

 FCN=   4979.783     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9656.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3545        7.9172        .50000       -.55754    
   3  Normalizat    1.3875        .57490E-01    .23925E-03   -.80992    
   4  Prefactor     .68718        .49113E-01    .27866E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.11672e-09
Minuit parameter uncertainties:
  1  0.0129805
  2  40.5564
  3  0.0574932
  4  0.0491159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189905': 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) = 4979.78288042
delta logL = 3.3930518839e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.298e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.355e+00  4.056e+01  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:  6.872e-01  4.912e-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.387e+00  5.749e-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/189905/cmap_HighResolution_457056001_457315201_4FGL_J1156.6+0640_daily_bin840.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-04 17:25:26.737082', job_id='189905', GAL2='0.69', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630801526.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='840' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:25:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 189905: <4FGL_J1156.6+0640_daily_bin840> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin840> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:42 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:44 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:11:44 2021
Terminated at Sat Sep  4 17:25:27 2021
Results reported at Sat Sep  4 17:25:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin840 179.164 6.6728 457056001 457315201 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

