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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin261
RA = 179.164, Dec = 6.6728
tmin = 306979201, tmax = 307238401
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='186781', job_status='RUN', time_executed='2021-09-04 17:04:41.434923', time_epoch_executed='1630800281.43' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186781/ft1_4FGL_J1156.6+0640_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186781/ft2_4FGL_J1156.6+0640_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186781/ft1_4FGL_J1156.6+0640_daily_bin261.fits outfile=/scratch/kocevski/186781/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin261.fits ra=179.164 dec=6.6728 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.01
user 13.54
sys 0.41

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186781/ft1_filtered_4FGL_J1156.6+0640_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/186781/ft2_4FGL_J1156.6+0640_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/186781/ltcube_306979201_307238401_4FGL_J1156.6+0640_daily_bin261.fits outfile=/scratch/kocevski/186781/expmap_306979201_307238401_4FGL_J1156.6+0640_daily_bin261.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/186781/ltcube_306979201_307238401_4FGL_J1156.6+0640_daily_bin261.fits
.....................!
real 190.71
user 185.75
sys 4.61

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/186781/ft1_filtered_4FGL_J1156.6+0640_daily_bin261.fits scfile=/scratch/kocevski/186781/ft2_4FGL_J1156.6+0640_daily_bin261.fits outfile=/scratch/kocevski/186781/cmap_306979201_307238401_4FGL_J1156.6+0640_daily_bin261.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14128E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    617.66       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11444E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .86148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53015E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35066E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18639E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65079E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84578E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23110E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    722.37       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7385       1.0000         .10000E-03   10000.    
    21 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.494       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.938       1.0000         .10000E-03   10000.    
    24 'norm      '    19.724       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.9018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1377.581     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     2420 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.889        27.588        .11261E-05   -.12113E-04
   2  Prefactor     .10604E-03    82.045        .57696E-05** at limit **
   3  Prefactor     .10000E-03    10.635        .13383E-06** at limit **
   4  Prefactor     .10000E-03    111.94        .13725E-06** at limit **
   5  Prefactor     633.17        238.82       -.20841E-06   -.32481E-01
   6  Prefactor     .10000E-03    12.160       -.25934E-05** at limit **
   7  Prefactor     .10000E-03    35.102       -.79822E-07** at limit **
   8  Prefactor     .10000E-03    21.233       -.41028E-06** at limit **
   9  Prefactor     73.925        172.69        .58846E-05   -.16500E-04
  10  Prefactor     .10000E-03    72.510       -.20163E-05** at limit **
  11  Prefactor     .14205E-03    6387.7        .20634E-04** at limit **
  12  Prefactor     .10000E-03    5.1463        .11279E-05** at limit **
  13  Prefactor     4.4122        4.7587        .39718E-06    .23415E-04
  14  Prefactor     .10008E-03    65.818        .15195E-05** at limit **
  15  Prefactor     .10000E-03    48.471        .18989E-05** at limit **
  16  norm          .10397E-03    88.283       -.16259E-05** at limit **
  17  norm          .10000E-03    32.585        .15033E-04** at limit **
  18  Prefactor     .10000E-03    42.159        .48914E-06** at limit **
  19  norm          704.92        265.09        .34346E-06   -.30031E-01
  20  Prefactor     .10000E-03    264.42       -.71983E-05** at limit **
  21  norm          .10000E-03    37.124        .24852E-05** at limit **
  22  Prefactor     37.470        36.866        .77631E-06   -.39010E-02
  23  Prefactor     38.611        16.612       -.54377E-06    .12477E-01
  24  norm          20.020        13.993        .85021E-06    .15904E-03
  25  Normalizat    .10000E-01    1.7235       -.55471E-04** at limit **
  26  Prefactor     1.8954        .25714       -.35689E-05   -.62086E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8889
  Prefactor  = 0.000106041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 633.17
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.9254
  Prefactor  = 0.000100004
  Prefactor  = 0.000142047
  Prefactor  = 0.0001
  Prefactor  = 4.41216
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  norm       = 0.000103966
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 704.924
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.4703
  Prefactor  = 38.6112
  norm       = 20.0197
  Normalizat = 0.01
  Prefactor  = 1.89542
 **********
 **   18 **HESSE 
 **********

 FCN=   1377.581     FROM HESSE     STATUS=OK           512 CALLS     2932 TOTAL
                     EDM=   .48E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.889        28.341        .30878E-02   -1.5048    
   2  Prefactor     .10604E-03    83.198        .10259E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    111.34        .90734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     633.17        393.79        .41540E-03   -1.0621    
   6  Prefactor     .10000E-03    12.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.956        .10429E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.229        .95603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.925        172.73        .14546E-02   -1.3986    
  10  Prefactor     .10000E-03    72.533        .91969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14205E-03    6349.2        .10716E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4122        4.7674        .47909E-02   -1.5288    
  14  Prefactor     .10008E-03    66.218        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10397E-03    25.806        .66275E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    32.370        .10434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          704.92        352.01        .38628E-03   -1.0333    
  20  Prefactor     .10000E-03    263.87        .61509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.8076        .50712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.470        43.722        .15945E-02   -1.4483    
  23  Prefactor     38.611        79.350        .16058E-02   -1.4464    
  24  norm          20.020        14.472        .22546E-02   -1.4813    
  25  Normalizat    .10000E-01    .53365        .32128       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8954        .35471        .48692E-01   -.66991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75937e-05
Minuit parameter uncertainties:
  1  28.3764
  2  0.0449004
  3  1.18899e-05
  4  9.94095e-05
  5  395.528
  6  6.13995e-05
  7  2.23833e-05
  8  1.03589e-06
  9  173.918
  10  0.00106072
  11  0.708475
  12  1.43598e-05
  13  4.76784
  14  0.00452128
  15  0.000216205
  16  0.0202415
  17  0.000268355
  18  4.82492e-06
  19  353.126
  20  5.54353e-05
  21  1.3734e-05
  22  43.7597
  23  79.5676
  24  14.4749
  25  5.96091e-06
  26  0.355195
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.332e+02  3.955e+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:  1.895e+00  3.552e-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.961e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.24e-07 +/- 1.40e-07
Energy Flux (Fixed Index): 8.25e-05 +/- 5.16e-05

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) = 1377.05063261
delta logL = 0.53069988697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1377.04895181
delta logL = 0.532380684034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    246.13       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9634       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8793       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=   1377.049     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      294 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     246.04        338.47        .12908E-03    .18785E-03
   2  Index         2.9631        .69552        .22107E-03    .26186E-03
   3  Normalizat    .10000E-01    .89162        .12841E-01** at limit **
   4  Prefactor     1.8794        .23702        .21531E-03   -.94680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 246.045
  Index      = 2.96313
  Normalizat = 0.01
  Prefactor  = 1.87937
 **********
 **   18 **HESSE 
 **********

 FCN=   1377.049     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     246.04        335.08        .25816E-04   -1.2558    
   2  Index         2.9631        .68849        .88428E-05   -.41958    
   3  Normalizat    .10000E-01    .89257        .25682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8794        .23651        .43061E-04   -.67401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72476e-10
Minuit parameter uncertainties:
  1  337.751
  2  0.691128
  3  6.90361e-07
  4  0.236654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186781': 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) = 1377.04895057
delta logL = 0.532381929046

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.460e+02  3.378e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.963e+00  6.911e-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.879e+00  2.367e-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  6.904e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.53
Ra Dec: 179.164 6.673
Photon Index (Free Index): 2.96 +/- 0.69
Photon Flux (Free Index): 3.24e-07 +/- 2.01e-07
Energy Flux (Free Index): 6.58e-05 +/- 3.88e-05

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/186781/cmap_HighResolution_306979201_307238401_4FGL_J1156.6+0640_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.24e-07', energy_flux2='6.58e-05', photon_flux_error='1.40e-07', dlogl='5.32e-01', energy_flux='8.25e-05', photon_flux2='3.24e-07', job_status='DONE', time_completed='2021-09-04 17:12:02.542897', photon_index_error2='0.69', photon_index2='2.96', ts='5.53', fit_tolerance='1e-08', GAL='1.90', photon_index_error='0.00', energy_flux_error2='3.88e-05', EG='0.01', time_epoch_completed='1630800722.54', return_code='0', job_id='186781', GAL2='1.88', EG2='0.01', return_code2='0', energy_flux_error='5.16e-05', photon_flux_error2='2.01e-07', ts2='6.53', photon_index='2.32' WHERE bin_id='261' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:12:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 186781: <4FGL_J1156.6+0640_daily_bin261> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin261> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:40 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:42 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:42 2021
Terminated at Sat Sep  4 17:12:03 2021
Results reported at Sat Sep  4 17:12:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin261 179.164 6.6728 306979201 307238401 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 :                                   436.00 sec.
    Max Memory :                                 1152 MB
    Average Memory :                             254.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            623 sec.

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

