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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin678
RA = 179.164, Dec = 6.6728
tmin = 415065601, tmax = 415324801
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='189652', job_status='RUN', time_executed='2021-09-04 17:15:16.353453', time_epoch_executed='1630800916.35' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189652

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189652/ft1_4FGL_J1156.6+0640_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189652/ft1_4FGL_J1156.6+0640_daily_bin678.fits outfile=/scratch/kocevski/189652/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin678.fits ra=179.164 dec=6.6728 rad=12.0 tmin=415065601.0 tmax=415324801.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.67
user 3.42
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/189652/ltcube_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.fits outfile=/scratch/kocevski/189652/expmap_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.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/189652/ltcube_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.fits
.....................!
real 190.15
user 184.99
sys 4.79

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/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits scfile=/scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits outfile=/scratch/kocevski/189652/cmap_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits scfile=/scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits outfile=/scratch/kocevski/189652/cmap_HighResolution_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.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/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189652/Model_4FGL_J1156.6+0640_daily_bin678.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/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits.......!
real 16.45
user 12.98
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits', '/scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits', expMap='/scratch/kocevski/189652/expmap_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.fits', expCube='/scratch/kocevski/189652/ltcube_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189652/Model_4FGL_J1156.6+0640_daily_bin678.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/189652/ft1_filtered_4FGL_J1156.6+0640_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/189652/ft2_4FGL_J1156.6+0640_daily_bin678.fits
Exposure map: /scratch/kocevski/189652/expmap_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.fits
Exposure cube: /scratch/kocevski/189652/ltcube_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189652/Model_4FGL_J1156.6+0640_daily_bin678.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 101.964806748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 98.7712687034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7926       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6696       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.11       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4578       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.887       1.0000         .10000E-03   10000.    
    11 'Prefactor '    339.91       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30983E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46726E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61187       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .63291E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .19334E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2371       1.0000         .10000E-03   10000.    
    19 'norm      '    6.5793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6510       1.0000         .10000E-03   10000.    
    21 'norm      '    .40602E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4536       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3060       1.0000         .10000E-03   10000.    
    24 'norm      '    .25041       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .38812       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   97.92481     FROM MIGRAD    STATUS=CONVERGED    402 CALLS      588 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7926        1.0090         .0000         .0000    
   2  Prefactor     .10154E-01    .51607E-01   -.11182E-04    .24561E-03
   3  Prefactor     24.429        1.0231        .31876E-05   -.31660E-04
   4  Prefactor     .10003E-03    .22886       -.19001E-03** at limit **
   5  Prefactor     28.620        2.0751       -.11999E-03    .66993E-02
   6  Prefactor     .10545E-03    .94513E-01   -.56971E-04** at limit **
   7  Prefactor     .11250E-03    .21972E-02   -.20402E-04** at limit **
   8  Prefactor     .41877E-03    .10635        .39252E-04** at limit **
   9  Prefactor     .98098E-03    .29363E-01    .51629E-04** at limit **
  10  Prefactor     2552.2        12.162        .43770E-04    .15373E-03
  11  Prefactor     314.51        .96318        .37846E-05    .38747E-01
  12  Prefactor     .10000E-03    .24485        .40441E-05** at limit **
  13  Prefactor     .10000E-03    .28065       -.26386E-04** at limit **
  14  Prefactor     .10001E-03    .34335       -.60486E-04** at limit **
  15  Prefactor     .10000E-03    .21784        .39121E-05** at limit **
  16  norm          .10000E-03    .20571        .12647E-06** at limit **
  17  norm          .10000E-03    .14837       -.12020E-04** at limit **
  18  Prefactor     .10008E-03    .25445       -.15489E-04** at limit **
  19  norm          .20948E-03    .38245E-01   -.57523E-04** at limit **
  20  Prefactor     .20513        .17614        .11880E-03    .45332E-02
  21  norm          .10000E-03    .28240       -.10182E-06** at limit **
  22  Prefactor     .10021E-03    .74000E-01   -.60207E-04** at limit **
  23  Prefactor     .30474E-03    .47569E-01    .16158E-04** at limit **
  24  norm          .10000E-03    .26037        .46807E-05** at limit **
  25  Normalizat    .10000E-01    .25505        .14314E-04** at limit **
  26  Prefactor     .39553        .72441        .18845E-04   -.14550E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79258
  Prefactor  = 0.0101543
  Prefactor  = 24.4295
  Prefactor  = 0.000100032
  Prefactor  = 28.6198
  Prefactor  = 0.000105452
  Prefactor  = 0.000112503
  Prefactor  = 0.000418773
  Prefactor  = 0.000980978
  Prefactor  = 2552.19
  Prefactor  = 314.507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010008
  norm       = 0.000209483
  Prefactor  = 0.205134
  norm       = 0.0001
  Prefactor  = 0.000100211
  Prefactor  = 0.000304739
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.395533
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   97.92481     FROM HESSE     STATUS=FAILED         9 CALLS      597 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          544.54        540.68         .0000       -1.5318    
   2  Prefactor     .10154E-01    .51607E-01   -.11182E-04   -1.5688    
   3  Prefactor     24.429        1.0231        .31876E-05   -1.4719    
   4  Prefactor     .10003E-03    .22886       -.19001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.620        2.0751       -.11999E-03   -1.4638    
   6  Prefactor     .10545E-03    .94513E-01   -.56971E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11250E-03    .21972E-02   -.20402E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41877E-03    .10635        .39252E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .98098E-03    .29363E-01    .51629E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2552.2        12.162        .43770E-04   -.51159    
  11  Prefactor     314.51        .96318        .37846E-05   -1.2142    
  12  Prefactor     .10000E-03    .24485        .40441E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .28065       -.26386E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .34335       -.60486E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21784        .39121E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .12647E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .14837       -.12020E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10008E-03    .25445       -.15489E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .20948E-03    .38245E-01   -.57523E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .20513        .17614        .11880E-03   -1.5617    
  21  norm          .10000E-03    .28240       -.10182E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10021E-03    .74000E-01   -.60207E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .30474E-03    .47569E-01    .16158E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .26037        .46807E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25505        .14314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .39553        .72441        .18845E-04   -1.1704    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10742e-09
Minuit parameter uncertainties:
  1  1.00896
  2  0.0455573
  3  1.02307
  4  0.000171508
  5  2.0751
  6  0.00143572
  7  0.000331495
  8  0.0116448
  9  0.0101721
  10  12.1621
  11  0.963178
  12  7.85057e-06
  13  1.53946e-05
  14  8.90334e-05
  15  3.76318e-07
  16  1.34187e-06
  17  7.56622e-07
  18  0.000284614
  19  0.00409254
  20  0.176136
  21  5.91658e-06
  22  0.000249922
  23  0.00624152
  24  4.25197e-07
  25  5.94584e-08
  26  0.742217
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 97.9248117936

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.862e+01  2.075e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  3.955e-01  7.422e-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.000e-02  5.946e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.193070217009

TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.68e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189652/likelihoodResults_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 97.9254594347
delta logL = -0.000647641123734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 97.8838314777
delta logL = 0.0409803158949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    4.9474       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=   97.88383     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       85 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       4.9472        1.5923        .79127E-01    .33403E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 4.94719
 **********
 **   18 **HESSE 
 **********

 FCN=   97.88383     FROM HESSE     STATUS=OK             9 CALLS       94 TOTAL
                     EDM=   .51E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       4.9472        1.7795        .31396E-02   -.10562E-01
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14691e-14
Minuit parameter uncertainties:
  1  1.81936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189652': 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) = 97.8838314724
delta logL = 0.0409803212193

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.862e+01  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
303        Index:  4.947e+00  1.819e+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:  3.969e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.016e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/189652/cmap_HighResolution_415065601_415324801_4FGL_J1156.6+0640_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.68e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-04 17:20:44.820084', job_id='189652', GAL2='0.40', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630801244.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.40', dlogl='4.10e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='678' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 189652: <4FGL_J1156.6+0640_daily_bin678> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin678> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:21 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:23 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:23 2021
Terminated at Sat Sep  4 17:20:45 2021
Results reported at Sat Sep  4 17:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin678 179.164 6.6728 415065601 415324801 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 :                                   324.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            564 sec.

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

