/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 189 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_J1147.8-0724_daily_bin589
RA = 176.961, Dec = -7.4144
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='66031', job_status='RUN', time_executed='2021-09-04 11:05:50.062373', time_epoch_executed='1630778750.06' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66031

Creating custom pfile directory:
/scratch/kocevski/66031/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/66031/ft1_4FGL_J1147.8-0724_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/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66031/ft1_4FGL_J1147.8-0724_daily_bin589.fits outfile=/scratch/kocevski/66031/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin589.fits ra=176.961 dec=-7.4144 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.38
user 5.12
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_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/66031/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_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.48
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/66031/ltcube_391996801_392256001_4FGL_J1147.8-0724_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/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits
.....................!
real 12.00
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/66031/ltcube_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.fits outfile=/scratch/kocevski/66031/expmap_391996801_392256001_4FGL_J1147.8-0724_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/66031/ltcube_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.fits
.....................!
real 189.56
user 185.11
sys 4.13

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 J1147.8-0724 @ 176.961 -7.4144

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits scfile=/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits outfile=/scratch/kocevski/66031/cmap_391996801_392256001_4FGL_J1147.8-0724_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=176.961 yref=-7.4144 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits scfile=/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits outfile=/scratch/kocevski/66031/cmap_HighResolution_391996801_392256001_4FGL_J1147.8-0724_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=176.961 yref=-7.4144 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66031/Model_4FGL_J1147.8-0724_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/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits.....................!
real 52.00
user 50.70
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits', '/scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits', expMap='/scratch/kocevski/66031/expmap_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.fits', expCube='/scratch/kocevski/66031/ltcube_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66031/Model_4FGL_J1147.8-0724_daily_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.8-0724'

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  2.739e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.336e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/66031/ft1_filtered_4FGL_J1147.8-0724_daily_bin589.fits
Spacecraft file(s): /scratch/kocevski/66031/ft2_4FGL_J1147.8-0724_daily_bin589.fits
Exposure map: /scratch/kocevski/66031/expmap_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.fits
Exposure cube: /scratch/kocevski/66031/ltcube_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66031/Model_4FGL_J1147.8-0724_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) = 5816.60934195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0785       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9060       1.0000         .10000E-03   10000.    
     8 'norm      '    .15897E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13499E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28605E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .28897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91121       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.100       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
    22 'norm      '    .11289E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77169       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5816.585     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2964 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5833        .13740E-07** at limit **
   2  Prefactor     .10000E-03    12.998        .48590E-05** at limit **
   3  Prefactor     .10000E-03    4.8482        .86867E-07** at limit **
   4  Prefactor     .10000E-03    25.399        .13513E-04** at limit **
   5  norm          .99812        10.411       -.34707E-05    .17669E-04
   6  Prefactor     7.0738        5.3481        .63265E-06    .90706E-03
   7  Prefactor     7.9023        11.133        .68669E-06   -.95436E-05
   8  norm          .10000E-03    96.821       -.22880E-04** at limit **
   9  Prefactor     3.0099        2.1796       -.44097E-07   -.37322E-05
  10  Prefactor     .10000E-03    84.424        .11438E-04** at limit **
  11  Prefactor     .10002E-03    23.566       -.10094E-05** at limit **
  12  norm          .27602        6.1475       -.44083E-05    .10707E-02
  13  Prefactor     .91152        2.6702       -.85512E-07   -.33161E-03
  14  Prefactor     .10000E-03    7.1465       -.21545E-08** at limit **
  15  Prefactor     .10000E-03    13.225       -.45023E-05** at limit **
  16  Prefactor     .10000E-03    28.643       -.56816E-05** at limit **
  17  Prefactor     10.458        10.053        .10823E-06   -.50548E-04
  18  Prefactor     15.101        19.081       -.32665E-07    .20497E-03
  19  Prefactor     .10000E-03    29.356       -.11076E-04** at limit **
  20  Prefactor     .10000E-03    59.566        .44134E-05** at limit **
  21  Prefactor     11.139        10.133       -.97506E-06   -.10252E-03
  22  norm          .10016E-03    1.3092        .25064E-06** at limit **
  23  Prefactor     .10000E-03    2.4014       -.13220E-07** at limit **
  24  Normalizat    .77171        .24675        .40036E-06    .37996E-03
  25  Prefactor     1.3496        .16430        .53148E-06    .65791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.998122
  Prefactor  = 7.07376
  Prefactor  = 7.90226
  norm       = 0.0001
  Prefactor  = 3.00992
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 0.276022
  Prefactor  = 0.911515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4581
  Prefactor  = 15.1009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1391
  norm       = 0.000100159
  Prefactor  = 0.0001
  Normalizat = 0.771715
  Prefactor  = 1.34964
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.585     FROM HESSE     STATUS=OK           437 CALLS     3401 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5911        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9221        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .99812        28.493        .43695E-02   -1.5508    
   6  Prefactor     7.0738        5.2802        .13755E-03   -1.5176    
   7  Prefactor     7.9023        11.078        .14260E-03   -1.5146    
   8  norm          .10000E-03    99.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0099        2.1817        .91976E-04   -1.5361    
  10  Prefactor     .10000E-03    85.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    137.00        .71331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .27602        21.747        .33031E-02   -1.5603    
  13  Prefactor     .91152        2.5611        .19932E-03   -1.5517    
  14  Prefactor     .10000E-03    7.1691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.458        10.062        .12389E-03   -1.5061    
  18  Prefactor     15.101        19.088        .10307E-03   -1.4931    
  19  Prefactor     .10000E-03    29.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.139        10.150        .12003E-03   -1.5040    
  22  norm          .10016E-03    2.0430        .31755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4096        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77171        .28201        .36094E-03   -1.0113    
  25  Prefactor     1.3496        .19047        .20214E-03   -.81843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23243e-08
Minuit parameter uncertainties:
  1  1.90045e-06
  2  4.98574e-05
  3  2.62611e-05
  4  3.00841e-06
  5  10.6708
  6  5.28054
  7  11.0805
  8  0.000115514
  9  2.18178
  10  4.01087e-05
  11  0.00354467
  12  4.90107
  13  2.56139
  14  6.2156e-06
  15  1.99946e-06
  16  2.37514e-05
  17  10.0635
  18  19.0962
  19  1.38369e-05
  20  1.91262e-05
  21  10.1519
  22  0.00113928
  23  1.19076e-06
  24  0.28254
  25  0.190568
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  2.760e-01  4.901e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.336e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.350e+00  1.906e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  7.717e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 176.961 -7.414
Photon Flux Upper Limit: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66031/likelihoodResults_391996801_392256001_4FGL_J1147.8-0724_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) = 5816.58189451
delta logL = 0.00317842763343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5816.57979525
delta logL = 0.00527769680502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39536       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8074       1.0000          .0000       5.0000    
     3 'Normalizat'    .76971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+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=   5816.580     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      401 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39450        1501.2        .26739E-02    .15583E-03
   2  alpha         2.8075        3.1480        .94092E-01    .66875E-05
   3  Normalizat    .76970        .20099        .36138E-03   -.80378E-04
   4  Prefactor     1.3499        .16024        .20212E-03   -.18746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.394498
  alpha      = 2.80752
  Normalizat = 0.769697
  Prefactor  = 1.34994
 **********
 **   18 **HESSE 
 **********

 FCN=   5816.580     FROM HESSE     STATUS=OK            27 CALLS      428 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39450        8.9486        .10696E-03   -1.5582    
   2  alpha         2.8075        3.9022        .37637E-02    .12332    
   3  Normalizat    .76970        .26049        .14455E-04   -1.0120    
   4  Prefactor     1.3499        .18782        .40424E-04   -.81834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97763e-11
Minuit parameter uncertainties:
  1  3.75793
  2  4.07776
  3  0.260908
  4  0.187913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66031': 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) = 5816.57979515
delta logL = 0.00527779472213

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  3.945e-01  3.758e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.808e+00  4.078e+00  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.350e+00  1.879e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  7.697e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 176.961 -7.414

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/66031/cmap_HighResolution_391996801_392256001_4FGL_J1147.8-0724_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-09-04 11:18:06.324415', job_id='66031', GAL2='1.35', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630779486.32', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='5.28e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='589' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:18:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 66031: <4FGL_J1147.8-0724_daily_bin589> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin589> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:02:29 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:02:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:02:31 2021
Terminated at Sat Sep  4 11:18:07 2021
Results reported at Sat Sep  4 11:18:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin589 176.961 -7.4144 391996801 392256001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.8-0724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

