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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin588
RA = 179.164, Dec = 6.6728
tmin = 391737601, tmax = 391996801
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='189511', job_status='RUN', time_executed='2021-09-04 17:13:40.844117', time_epoch_executed='1630800820.84' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189511

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189511/ft1_4FGL_J1156.6+0640_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189511/ft2_4FGL_J1156.6+0640_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189511/ft1_4FGL_J1156.6+0640_daily_bin588.fits outfile=/scratch/kocevski/189511/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin588.fits ra=179.164 dec=6.6728 rad=12.0 tmin=391737601.0 tmax=391996801.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.32
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189511/ft2_4FGL_J1156.6+0640_daily_bin588.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/189511/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/189511/ft1_filtered_4FGL_J1156.6+0640_daily_bin588.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189511/ft1_filtered_4FGL_J1156.6+0640_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/189511/ft2_4FGL_J1156.6+0640_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/189511/ltcube_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.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/189511/ft2_4FGL_J1156.6+0640_daily_bin588.fits
.....................!
real 12.06
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189511/ft1_filtered_4FGL_J1156.6+0640_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/189511/ft2_4FGL_J1156.6+0640_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/189511/ltcube_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.fits outfile=/scratch/kocevski/189511/expmap_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.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/189511/ltcube_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.fits
.....................!
real 191.60
user 186.19
sys 5.04

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/189511/ft1_filtered_4FGL_J1156.6+0640_daily_bin588.fits scfile=/scratch/kocevski/189511/ft2_4FGL_J1156.6+0640_daily_bin588.fits outfile=/scratch/kocevski/189511/cmap_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189511/ft1_filtered_4FGL_J1156.6+0640_daily_bin588.fits scfile=/scratch/kocevski/189511/ft2_4FGL_J1156.6+0640_daily_bin588.fits outfile=/scratch/kocevski/189511/cmap_HighResolution_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9656       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.776       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6629       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.039       1.0000         .10000E-03   10000.    
    16 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0237       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.213       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.519       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.278       1.0000         .10000E-03   10000.    
    24 'norm      '    .52751E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84464       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0627       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=   5862.871     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3129 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8096       -.40945E-06** at limit **
   2  Prefactor     .10000E-03    18.624        .21255E-04** at limit **
   3  Prefactor     3.9660        2.5670       -.40945E-06   -.16614E-03
   4  Prefactor     13.777        15.605       -.41315E-06    .11487E-04
   5  Prefactor     .10000E-03    28.339       -.19823E-04** at limit **
   6  Prefactor     15.770        11.195       -.48866E-06   -.17048E-04
   7  Prefactor     3.3748        9.4426       -.17911E-05   -.22721E-03
   8  Prefactor     22.483        19.070       -.79859E-06   -.47989E-04
   9  Prefactor     .10000E-03    66.964        .20222E-04** at limit **
  10  Prefactor     .10000E-03    39.787        .90766E-05** at limit **
  11  Prefactor     14.049        20.666       -.15453E-05    .11811E-04
  12  Prefactor     1.9717        4.0743       -.12628E-05   -.65165E-03
  13  Prefactor     3.6644        3.5216        .87346E-06   -.27123E-04
  14  Prefactor     .10000E-03    8.5063       -.24096E-06** at limit **
  15  Prefactor     17.037        12.555       -.36553E-06    .51278E-04
  16  norm          .10000E-03    1.7367        .86473E-08** at limit **
  17  norm          1.0228        2.8258       -.21381E-05   -.12020E-02
  18  Prefactor     .10000E-03    16.504       -.11841E-04** at limit **
  19  norm          .10000E-03    24.493       -.42206E-05** at limit **
  20  Prefactor     67.240        132.68        .31780E-04    .43444E-04
  21  norm          1.6881        .62726       -.13992E-07    .19916E-02
  22  Prefactor     16.534        14.043        .20822E-04    .10328E-03
  23  Prefactor     28.197        37.323       -.77743E-04    .16010E-04
  24  norm          .58705E-01    .75763       -.51621E-06    .76393E-04
  25  Normalizat    .84429        .19601        .83816E-05   -.81173E-04
  26  Prefactor     1.0630        .16553       -.24783E-05    .43359E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96598
  Prefactor  = 13.7771
  Prefactor  = 0.0001
  Prefactor  = 15.7704
  Prefactor  = 3.37476
  Prefactor  = 22.4826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0491
  Prefactor  = 1.9717
  Prefactor  = 3.66444
  Prefactor  = 0.0001
  Prefactor  = 17.0373
  norm       = 0.0001
  norm       = 1.02275
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.2403
  norm       = 1.68812
  Prefactor  = 16.5337
  Prefactor  = 28.1974
  norm       = 0.0587051
  Normalizat = 0.844294
  Prefactor  = 1.06297
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.871     FROM HESSE     STATUS=OK           462 CALLS     3591 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8662        .18023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9660        2.5668        .94075E-04   -1.5310    
   4  Prefactor     13.777        15.596        .10792E-03   -1.4965    
   5  Prefactor     .10000E-03    28.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.770        11.201        .10086E-03   -1.4914    
   7  Prefactor     3.3748        9.4183        .22029E-03   -1.5341    
   8  Prefactor     22.483        19.119        .84484E-04   -1.4759    
   9  Prefactor     .10000E-03    66.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.049        20.648        .10685E-03   -1.4958    
  12  Prefactor     1.9717        4.0115        .18966E-03   -1.5427    
  13  Prefactor     3.6644        3.4749        .12052E-03   -1.5325    
  14  Prefactor     .10000E-03    8.5094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.037        12.469        .97027E-04   -1.4882    
  16  norm          .10000E-03    1.7857        .19566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0228        2.7386        .19144E-03   -1.5506    
  18  Prefactor     .10000E-03    16.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.240        132.34        .48956E-04   -1.4066    
  21  norm          1.6881        .61537        .33199E-04   -1.5448    
  22  Prefactor     16.534        14.032        .98543E-04   -1.4895    
  23  Prefactor     28.197        37.298        .75340E-04   -1.4645    
  24  norm          .58705E-01    4.3442        .12648E-02   -1.5660    
  25  Normalizat    .84429        .22376        .28260E-03   -.98446    
  26  Prefactor     1.0630        .18960        .22886E-03   -.90659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81546e-09
Minuit parameter uncertainties:
  1  2.50186e-05
  2  8.47692e-05
  3  2.56686
  4  15.6008
  5  2.34291e-05
  6  11.2027
  7  9.42239
  8  19.1238
  9  1.16293e-05
  10  8.55883e-05
  11  20.6589
  12  4.01207
  13  3.47513
  14  4.93742e-06
  15  12.4708
  16  1.07316e-07
  17  2.73891
  18  6.89662e-05
  19  5.61978e-05
  20  132.921
  21  0.615375
  22  14.035
  23  37.3289
  24  1.00922
  25  0.224002
  26  0.189719
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.343e-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:  1.063e+00  1.897e-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:  8.443e-01  2.240e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189511/likelihoodResults_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.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) = 5862.87159084
delta logL = -0.000167995989614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5862.87142477
delta logL = -1.93429968931e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0948       1.0000          .0000       10.000    
     3 'Normalizat'    .84430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   5862.871     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      328 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    378.47        .90712E-02** at limit **
   2  Index         3.0691        7.4749        .50000        .17641E-04
   3  Normalizat    .84430        .25164E-01    .63888E-01   -.10353E-04
   4  Prefactor     1.0630        .22729E-01    .39204E-01   -.44348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.0691
  Normalizat = 0.8443
  Prefactor  = 1.06296
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.871     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      361 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2125.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0691        5.5187        .50000       -.39649    
   3  Normalizat    .84430        .80146E-01    .28260E-03   -.98446    
   4  Prefactor     1.0630        .72462E-01    .22886E-03   -.90659    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.85963e-08
Minuit parameter uncertainties:
  1  0.000454853
  2  59.0604
  3  0.0801572
  4  0.0724684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189511': 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) = 5862.87142463
delta logL = -1.78820573637e-06

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.549e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.069e+00  5.906e+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:  1.063e+00  7.247e-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:  8.443e-01  8.016e-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/189511/cmap_HighResolution_391737601_391996801_4FGL_J1156.6+0640_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-03', job_status='DONE', photon_flux_upper_limit='5.09e-08', time_completed='2021-09-04 17:26:15.393388', job_id='189511', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630801575.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-1.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='588' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 189511: <4FGL_J1156.6+0640_daily_bin588> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin588> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:09 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:12 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:12 2021
Terminated at Sat Sep  4 17:26:16 2021
Results reported at Sat Sep  4 17:26:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin588 179.164 6.6728 391737601 391996801 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 :                                   752.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            907 sec.

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

