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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin589
RA = 179.164, Dec = 6.6728
tmin = 391996801, tmax = 392256001
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='189513', job_status='RUN', time_executed='2021-09-04 17:14:00.410451', time_epoch_executed='1630800840.41' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189513/ft1_4FGL_J1156.6+0640_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189513/ft2_4FGL_J1156.6+0640_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189513/ft1_4FGL_J1156.6+0640_daily_bin589.fits outfile=/scratch/kocevski/189513/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin589.fits ra=179.164 dec=6.6728 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.35
user 5.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189513/ft1_filtered_4FGL_J1156.6+0640_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/189513/ft2_4FGL_J1156.6+0640_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/189513/ltcube_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.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/189513/ft2_4FGL_J1156.6+0640_daily_bin589.fits
.....................!
real 11.64
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189513/ft1_filtered_4FGL_J1156.6+0640_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/189513/ft2_4FGL_J1156.6+0640_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/189513/ltcube_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.fits outfile=/scratch/kocevski/189513/expmap_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.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/189513/ltcube_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.fits
.....................!
real 190.93
user 185.12
sys 5.29

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/189513/ft1_filtered_4FGL_J1156.6+0640_daily_bin589.fits scfile=/scratch/kocevski/189513/ft2_4FGL_J1156.6+0640_daily_bin589.fits outfile=/scratch/kocevski/189513/cmap_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32992E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1789       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.057       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.308       1.0000         .10000E-03   10000.    
    16 'norm      '    .22235       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.241       1.0000         .10000E-03   10000.    
    19 'norm      '    .10977E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .66491       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5169       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77314       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1461       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=   5367.739     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3079 TOTAL
                     EDM=   .60E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9899        .15924E-07** at limit **
   2  Prefactor     .10000E-03    51.578       -.87218E-06** at limit **
   3  Prefactor     3.4122        2.2790        .28014E-07   -.70004E-05
   4  Prefactor     .10000E-03    16.876       -.10887E-06** at limit **
   5  Prefactor     65.166        98.505        .79352E-05    .69074E-05
   6  Prefactor     4.1820        7.5675        .59835E-06   -.19002E-04
   7  Prefactor     11.879        10.159        .25985E-07   -.89829E-05
   8  Prefactor     3.3882        6.7885        .10523E-05   -.48854E-05
   9  Prefactor     .10000E-03    23.031        .24425E-06** at limit **
  10  Prefactor     29.064        27.944       -.63004E-06   -.68888E-05
  11  Prefactor     6.2314        30.653       -.68781E-06   -.12518E-04
  12  Prefactor     .10000E-03    3.3051        .16229E-07** at limit **
  13  Prefactor     7.5686        3.6933        .32034E-07   -.48966E-05
  14  Prefactor     .10000E-03    9.2679        .45059E-07** at limit **
  15  Prefactor     16.310        13.557        .38222E-07   -.40721E-04
  16  norm          .22214        2.1822        .18220E-06   -.87308E-04
  17  norm          4.1581        3.9198        .55957E-06   -.76435E-04
  18  Prefactor     23.249        31.328       -.73643E-06   -.48667E-05
  19  norm          .10000E-03    67.090        .14621E-05** at limit **
  20  Prefactor     .10000E-03    64.733       -.79656E-06** at limit **
  21  norm          .66464        .55315       -.27139E-07   -.64641E-04
  22  Prefactor     .10000E-03    5.5415        .24597E-07** at limit **
  23  Prefactor     .10000E-03    10.523        .69514E-07** at limit **
  24  norm          1.5170        1.2882        .52722E-08   -.21975E-04
  25  Normalizat    .77276        .20435       -.39903E-06    .69033E-07
  26  Prefactor     1.1464        .17694       -.35923E-06   -.23440E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41224
  Prefactor  = 0.0001
  Prefactor  = 65.1665
  Prefactor  = 4.18196
  Prefactor  = 11.8792
  Prefactor  = 3.38821
  Prefactor  = 0.0001
  Prefactor  = 29.0636
  Prefactor  = 6.23142
  Prefactor  = 0.0001
  Prefactor  = 7.56857
  Prefactor  = 0.0001
  Prefactor  = 16.3102
  norm       = 0.222139
  norm       = 4.15809
  Prefactor  = 23.2492
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.66464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51699
  Normalizat = 0.772758
  Prefactor  = 1.14636
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.739     FROM HESSE     STATUS=OK           464 CALLS     3543 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0250        .17511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    53.805        .42698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4122        2.2792        .86962E-04   -1.5339    
   4  Prefactor     .10000E-03    16.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.166        98.625        .24842E-03   -1.4092    
   6  Prefactor     4.1820        7.5428        .98576E-03   -1.5299    
   7  Prefactor     11.879        10.154        .11624E-03   -1.5019    
   8  Prefactor     3.3882        6.7606        .10991E-02   -1.5340    
   9  Prefactor     .10000E-03    23.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.064        27.946        .74325E-04   -1.4629    
  11  Prefactor     6.2314        29.896        .16091E-03   -1.5209    
  12  Prefactor     .10000E-03    3.3606        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5686        3.6863        .94371E-04   -1.5158    
  14  Prefactor     .10000E-03    9.2719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.310        13.359        .99178E-04   -1.4900    
  16  norm          .22214        4.1707        .19102E-02   -1.5614    
  17  norm          4.1581        3.9153        .61592E-03   -1.5300    
  18  Prefactor     23.249        31.343        .83088E-04   -1.4743    
  19  norm          .10000E-03    67.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .66464        .53715        .43423E-04   -1.5545    
  22  Prefactor     .10000E-03    5.5740        .16843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5170        1.2881        .73736E-04   -1.5462    
  25  Normalizat    .77276        .23417        .29060E-03   -1.0109    
  26  Prefactor     1.1464        .20300        .22079E-03   -.87998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36056e-08
Minuit parameter uncertainties:
  1  2.64608e-06
  2  7.17722e-05
  3  2.2793
  4  3.32579e-06
  5  98.8734
  6  7.54447
  7  10.1552
  8  6.76211
  9  1.41957e-06
  10  27.9582
  11  27.3199
  12  8.36484e-07
  13  3.68645
  14  1.75004e-07
  15  13.361
  16  1.9248
  17  3.91557
  18  31.3652
  19  8.86946e-06
  20  2.30471e-06
  21  0.537154
  22  2.63407e-06
  23  2.46701e-06
  24  1.28815
  25  0.234476
  26  0.203134
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.517e+01  9.887e+01  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.146e+00  2.031e-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:  7.728e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189513/likelihoodResults_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.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) = 5367.73885441
delta logL = 4.14426413045e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5367.73864998
delta logL = 0.000245868769525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.514       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2365       1.0000          .0000       10.000    
     3 'Normalizat'    .77650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1442       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5367.739     FROM MIGRAD    STATUS=FAILED        76 CALLS      343 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.540        230.17        .48492E-04    .30923E-03
   2  Index         2.2363        6.0486        .92572E-02    .30562E-03
   3  Normalizat    .77650        .32137        .28994E-03    .66797E-03
   4  Prefactor     1.1442        .24214        .22097E-03    .94229E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5367.739     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      425 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.540        230.17        .45553E-03   -1.4050    
   2  Index         2.2363        6.0486        .22956E-02   -.58564    
   3  Normalizat    .77650        .32137        .28846E-03   -1.0095    
   4  Prefactor     1.1442        .24214        .20926E-03   -.88067    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5367.739     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      452 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.565        162.11        .96985E-05    .45201E-03
   2  Index         2.2357        3.1161        .37029E-03    .10211E-03
   3  Normalizat    .77653        .27310        .57988E-04    .52197E-03
   4  Prefactor     1.1442        .22094        .44193E-04    .63222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.5648
  Index      = 2.23569
  Normalizat = 0.776533
  Prefactor  = 1.14417
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.739     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.565        160.63        .19397E-05   -1.4050    
   2  Index         2.2357        3.0939        .74058E-04   -.58580    
   3  Normalizat    .77653        .27226        .11598E-04   -1.0095    
   4  Prefactor     1.1442        .22060        .88386E-05   -.88067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28164e-09
Minuit parameter uncertainties:
  1  161.663
  2  3.48688
  3  0.27274
  4  0.22078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189513': 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) = 5367.73864994
delta logL = 0.000245910866397

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.856e+01  1.617e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.236e+00  3.487e+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:  1.144e+00  2.208e-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:  7.765e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/189513/cmap_HighResolution_391996801_392256001_4FGL_J1156.6+0640_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-04 17:26:06.156076', job_id='189513', GAL2='1.14', fit_tolerance='1e-08', EG2='0.78', EG='0.77', time_epoch_completed='1630801566.16', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.46e-04', ts2='0.59', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='589' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:26:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 189513: <4FGL_J1156.6+0640_daily_bin589> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin589> 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) <bullet0040>, 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:07 2021
Results reported at Sat Sep  4 17:26:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin589 179.164 6.6728 391996801 392256001 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 :                                   725.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            898 sec.

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

