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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin870
RA = 179.164, Dec = 6.6728
tmin = 464832001, tmax = 465091201
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='191210', job_status='RUN', time_executed='2021-09-04 17:16:35.347795', time_epoch_executed='1630800995.35' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191210

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191210/ft1_4FGL_J1156.6+0640_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191210/ft2_4FGL_J1156.6+0640_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191210/ft1_4FGL_J1156.6+0640_daily_bin870.fits outfile=/scratch/kocevski/191210/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin870.fits ra=179.164 dec=6.6728 rad=12.0 tmin=464832001.0 tmax=465091201.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.61
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191210/ft1_filtered_4FGL_J1156.6+0640_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/191210/ft2_4FGL_J1156.6+0640_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/191210/ltcube_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.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/191210/ft2_4FGL_J1156.6+0640_daily_bin870.fits
.....................!
real 11.93
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191210/ft1_filtered_4FGL_J1156.6+0640_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/191210/ft2_4FGL_J1156.6+0640_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/191210/ltcube_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.fits outfile=/scratch/kocevski/191210/expmap_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.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/191210/ltcube_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.fits
.....................!
real 191.74
user 186.00
sys 5.38

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/191210/ft1_filtered_4FGL_J1156.6+0640_daily_bin870.fits scfile=/scratch/kocevski/191210/ft2_4FGL_J1156.6+0640_daily_bin870.fits outfile=/scratch/kocevski/191210/cmap_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.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/191210/ft1_filtered_4FGL_J1156.6+0640_daily_bin870.fits scfile=/scratch/kocevski/191210/ft2_4FGL_J1156.6+0640_daily_bin870.fits outfile=/scratch/kocevski/191210/cmap_HighResolution_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.741       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.980       1.0000         .10000E-03   10000.    
    11 'Prefactor '    201.96       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.352       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9926       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .76717       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.015       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.7475       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1234       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3354       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=   6520.157     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3114 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4736       -.20114E-06** at limit **
   2  Prefactor     .10000E-03    22.774       -.11176E-04** at limit **
   3  Prefactor     .10000E-03    1.2410       -.13316E-07** at limit **
   4  Prefactor     17.252        21.835       -.76156E-06    .14999E-04
   5  Prefactor     .10000E-03    35.405        .21987E-04** at limit **
   6  Prefactor     .10000E-03    3.8960        .19452E-08** at limit **
   7  Prefactor     .10000E-03    10.836       -.28827E-05** at limit **
   8  Prefactor     .10000E-03    8.6567       -.42253E-06** at limit **
   9  Prefactor     50.738        73.765       -.37923E-05    .24819E-05
  10  Prefactor     59.982        46.603        .20677E-05    .28577E-04
  11  Prefactor     201.96        49.870        .65581E-06    .38191E-04
  12  Prefactor     .10000E-03    1.8385       -.28490E-09** at limit **
  13  Prefactor     3.0047        2.5528       -.20484E-07   -.13838E-03
  14  Prefactor     10.335        39.632       -.32531E-04   -.15163E-04
  15  Prefactor     .10000E-03    7.8007        .10619E-05** at limit **
  16  norm          2.9914        3.1001       -.21474E-06   -.21720E-03
  17  norm          8.3545        4.8721        .37726E-05   -.58953E-04
  18  Prefactor     .10000E-03    30.055        .81422E-05** at limit **
  19  norm          .10000E-03    14.913        .79957E-05** at limit **
  20  Prefactor     .10000E-03    54.620       -.18277E-04** at limit **
  21  norm          .76733        .60715       -.43261E-06   -.20897E-02
  22  Prefactor     31.012        14.711        .63823E-08    .89833E-04
  23  Prefactor     .10000E-03    23.786       -.10132E-04** at limit **
  24  norm          2.7476        1.7349       -.18121E-06   -.14782E-03
  25  Normalizat    1.1232        .22843       -.13984E-05    .13022E-03
  26  Prefactor     1.3355        .20046        .15565E-05   -.36269E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.7378
  Prefactor  = 59.9816
  Prefactor  = 201.957
  Prefactor  = 0.0001
  Prefactor  = 3.00469
  Prefactor  = 10.3351
  Prefactor  = 0.0001
  norm       = 2.9914
  norm       = 8.35449
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.767329
  Prefactor  = 31.0116
  Prefactor  = 0.0001
  norm       = 2.74758
  Normalizat = 1.1232
  Prefactor  = 1.33546
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.157     FROM HESSE     STATUS=OK           450 CALLS     3564 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2800        .17559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.252        21.834        .96424E-04   -1.4877    
   5  Prefactor     .10000E-03    35.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9054        .15564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.738        73.806        .56300E-04   -1.4282    
  10  Prefactor     59.982        46.620        .51806E-04   -1.4157    
  11  Prefactor     201.96        49.773        .28436E-04   -1.2856    
  12  Prefactor     .10000E-03    1.8567        .10689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0047        2.5461        .11556E-03   -1.5361    
  14  Prefactor     10.335        39.685        .12454E-03   -1.5065    
  15  Prefactor     .10000E-03    7.8200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9914        3.0913        .13741E-03   -1.5362    
  17  norm          8.3545        4.8365        .11975E-03   -1.5130    
  18  Prefactor     .10000E-03    30.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .76733        .58307        .51263E-03   -1.5533    
  22  Prefactor     31.012        14.714        .71946E-04   -1.4594    
  23  Prefactor     .10000E-03    23.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.7476        1.7280        .81183E-04   -1.5376    
  25  Normalizat    1.1232        .27204        .32194E-03   -.89010    
  26  Prefactor     1.3355        .23932        .26696E-03   -.82259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94599e-10
Minuit parameter uncertainties:
  1  8.80935e-07
  2  7.16142e-06
  3  1.09643e-06
  4  21.844
  5  1.94589e-06
  6  4.86851e-06
  7  1.71803e-05
  8  1.85151e-05
  9  73.9399
  10  46.6483
  11  49.7834
  12  1.50623e-07
  13  2.54617
  14  39.7867
  15  9.63193e-06
  16  3.09144
  17  4.83669
  18  9.88539e-06
  19  6.34118e-05
  20  2.11923e-05
  21  0.58307
  22  14.7154
  23  1.24115e-05
  24  1.72808
  25  0.272385
  26  0.239519
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.946e-06  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.335e+00  2.395e-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.123e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191210/likelihoodResults_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.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) = 6520.15667087
delta logL = -0.00013443599164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6520.1565381
delta logL = -1.65928668139e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15400E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5528       1.0000          .0000       10.000    
     3 'Normalizat'    1.1232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3355       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=   6520.157     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10300E-03    16.010        .18142E-01** at limit **
   2  Index         2.4730        5.5120        .50000        .12019E-04
   3  Normalizat    1.1232        .43001E-02    .32194E-03   -.69920E-05
   4  Prefactor     1.3355        .38619E-02    .26696E-03   -.38328E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102998
  Index      = 2.47296
  Normalizat = 1.1232
  Prefactor  = 1.33546
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.157     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10300E-03    83.220        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4730        8.7494        .50000       -.52986    
   3  Normalizat    1.1232        .98351E-02    .12878E-04   -.89010    
   4  Prefactor     1.3355        .88327E-02    .10678E-04   -.82259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22934e-09
Minuit parameter uncertainties:
  1  0.0316331
  2  208.262
  3  0.00983507
  4  0.00883273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191210': 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) = 6520.15653683
delta logL = -3.98512383981e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.030e-04  3.163e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.473e+00  2.083e+02  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.335e+00  8.833e-03  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.123e+00  9.835e-03  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/191210/cmap_HighResolution_464832001_465091201_4FGL_J1156.6+0640_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-04 17:29:56.794592', job_id='191210', GAL2='1.34', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630801796.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='-3.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='870' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 191210: <4FGL_J1156.6+0640_daily_bin870> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin870> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:19 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:21 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:16:21 2021
Terminated at Sat Sep  4 17:29:57 2021
Results reported at Sat Sep  4 17:29:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin870 179.164 6.6728 464832001 465091201 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 :                                   799.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

