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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin250
RA = 179.164, Dec = 6.6728
tmin = 304128001, tmax = 304387201
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='186765', job_status='RUN', time_executed='2021-09-04 17:05:09.080342', time_epoch_executed='1630800309.08' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186765/ft1_4FGL_J1156.6+0640_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186765/ft2_4FGL_J1156.6+0640_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186765/ft1_4FGL_J1156.6+0640_daily_bin250.fits outfile=/scratch/kocevski/186765/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin250.fits ra=179.164 dec=6.6728 rad=12.0 tmin=304128001.0 tmax=304387201.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.38
user 3.17
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186765/ft1_filtered_4FGL_J1156.6+0640_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/186765/ft2_4FGL_J1156.6+0640_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/186765/ltcube_304128001_304387201_4FGL_J1156.6+0640_daily_bin250.fits outfile=/scratch/kocevski/186765/expmap_304128001_304387201_4FGL_J1156.6+0640_daily_bin250.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/186765/ltcube_304128001_304387201_4FGL_J1156.6+0640_daily_bin250.fits
.....................!
real 190.05
user 185.60
sys 4.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/186765/ft1_filtered_4FGL_J1156.6+0640_daily_bin250.fits scfile=/scratch/kocevski/186765/ft2_4FGL_J1156.6+0640_daily_bin250.fits outfile=/scratch/kocevski/186765/cmap_304128001_304387201_4FGL_J1156.6+0640_daily_bin250.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14750E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12531E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.892       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5468       1.0000         .10000E-03   10000.    
    17 'norm      '    .13889E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.554       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8474       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8315       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3749       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86877       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=   5834.577     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3123 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2698        .32116E-06** at limit **
   2  Prefactor     19.165        41.021       -.28182E-04    .20436E-03
   3  Prefactor     1.0070        2.7220       -.21832E-05   -.11225E-02
   4  Prefactor     .10000E-03    9.4931       -.47679E-06** at limit **
   5  Prefactor     16.762        234.61       -.21948E-04    .14767E-04
   6  Prefactor     5.3083        6.4612       -.64857E-06   -.74734E-03
   7  Prefactor     .10000E-03    9.1496       -.56922E-07** at limit **
   8  Prefactor     .10000E-03    4.7149       -.10310E-06** at limit **
   9  Prefactor     80.827        69.562       -.10535E-06    .13057E-04
  10  Prefactor     33.006        54.623        .10729E-05    .46516E-05
  11  Prefactor     .10000E-03    7.2309       -.33817E-06** at limit **
  12  Prefactor     .10000E-03    2.3516       -.68229E-06** at limit **
  13  Prefactor     .10000E-03    1.7540       -.56829E-07** at limit **
  14  Prefactor     49.890        42.030       -.22168E-05   -.37945E-05
  15  Prefactor     .10000E-03    4.4824       -.35970E-06** at limit **
  16  norm          1.5467        1.6927       -.38409E-07   -.27879E-05
  17  norm          .10000E-03    2.3085        .17197E-06** at limit **
  18  Prefactor     .10000E-03    8.7269        .10801E-05** at limit **
  19  norm          .10000E-03    23.491        .67470E-07** at limit **
  20  Prefactor     67.553        89.044       -.89004E-06    .47136E-06
  21  norm          3.8473        .86550        .12232E-07   -.49968E-03
  22  Prefactor     .10000E-03    2.8477        .47666E-07** at limit **
  23  Prefactor     .10000E-03    8.6154        .12351E-05** at limit **
  24  norm          5.8314        1.9803       -.64678E-07    .10668E-04
  25  Normalizat    1.3749        .21929        .30857E-05    .10519E-03
  26  Prefactor     .86880        .18075        .17467E-05    .20317E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.1651
  Prefactor  = 1.00704
  Prefactor  = 0.0001
  Prefactor  = 16.7624
  Prefactor  = 5.30829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.8266
  Prefactor  = 33.006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 49.89
  Prefactor  = 0.0001
  norm       = 1.54674
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.5529
  norm       = 3.84732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.83144
  Normalizat = 1.37488
  Prefactor  = 0.868802
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.577     FROM HESSE     STATUS=OK           452 CALLS     3575 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.165        40.568        .91454E-04   -1.4832    
   3  Prefactor     1.0070        2.7757        .19990E-03   -1.5507    
   4  Prefactor     .10000E-03    9.4983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.762        234.35        .97799E-04   -1.4889    
   6  Prefactor     5.3083        6.5035        .87221E-03   -1.5247    
   7  Prefactor     .10000E-03    9.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7184        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     80.827        69.625        .44674E-04   -1.3907    
  10  Prefactor     33.006        54.622        .69749E-04   -1.4558    
  11  Prefactor     .10000E-03    7.2359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.270        .21718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.015        .18774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.890        40.264        .56774E-04   -1.4294    
  15  Prefactor     .10000E-03    4.4916        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5467        1.6924        .10112E-03   -1.5459    
  17  norm          .10000E-03    7.7274        .20513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    23.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.553        89.006        .48834E-04   -1.4062    
  21  norm          3.8473        .84020        .30963E-04   -1.5316    
  22  Prefactor     .10000E-03    2.8518        .12588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8314        1.9797        .60531E-04   -1.5225    
  25  Normalizat    1.3749        .25527        .25989E-03   -.81358    
  26  Prefactor     .86880        .21145        .27543E-03   -.97240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05898e-09
Minuit parameter uncertainties:
  1  4.95895e-05
  2  40.6262
  3  2.7761
  4  1.89937e-06
  5  125.955
  6  6.50438
  7  4.80841e-05
  8  1.77257e-06
  9  69.6957
  10  54.7045
  11  6.32198e-06
  12  0.000257197
  13  0.000482806
  14  40.2859
  15  6.75829e-06
  16  1.69242
  17  0.000372608
  18  2.38247e-05
  19  2.34978e-05
  20  89.1826
  21  0.840206
  22  5.44561e-06
  23  3.40864e-05
  24  1.97973
  25  0.255507
  26  0.211648
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.676e+01  1.260e+02  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:  8.688e-01  2.116e-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.375e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186765/likelihoodResults_304128001_304387201_4FGL_J1156.6+0640_daily_bin250.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) = 5834.50661266
delta logL = 0.0702392100075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.50394329
delta logL = 0.0729085792118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.315       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9322       1.0000          .0000       10.000    
     3 'Normalizat'    1.3573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87637       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=   5834.504     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      260 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.387        70.246        .96252E-04    .23859E-04
   2  Index         2.9334        1.5743        .89068E-03    .93050E-05
   3  Normalizat    1.3570        .24805        .26130E-03    .21475E-03
   4  Prefactor     .87644        .21109        .27433E-03    .17211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3873
  Index      = 2.93341
  Normalizat = 1.35705
  Prefactor  = 0.876444
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.504     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.387        68.131        .38501E-05   -1.4874    
   2  Index         2.9334        1.5393        .35627E-04   -.42610    
   3  Normalizat    1.3570        .24830        .52260E-04   -.81879    
   4  Prefactor     .87644        .21128        .10973E-04   -.96969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66551e-11
Minuit parameter uncertainties:
  1  68.4386
  2  1.57027
  3  0.248522
  4  0.211475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186765': 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) = 5834.50393993
delta logL = 0.0729119371463

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.739e+01  6.844e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.933e+00  1.570e+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:  8.764e-01  2.115e-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.357e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/186765/cmap_HighResolution_304128001_304387201_4FGL_J1156.6+0640_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-04 17:17:42.201112', job_id='186765', GAL2='0.88', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1630801062.2', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.29e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='250' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 186765: <4FGL_J1156.6+0640_daily_bin250> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin250> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:39 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:01:41 2021
Terminated at Sat Sep  4 17:17:42 2021
Results reported at Sat Sep  4 17:17:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin250 179.164 6.6728 304128001 304387201 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.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

