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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin319
RA = 176.961, Dec = -7.4144
tmin = 322012801, tmax = 322272001
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='63955', job_status='RUN', time_executed='2021-09-04 10:56:49.278261', time_epoch_executed='1630778209.28' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63955/ft1_4FGL_J1147.8-0724_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63955/ft1_4FGL_J1147.8-0724_daily_bin319.fits outfile=/scratch/kocevski/63955/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin319.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=322012801.0 tmax=322272001.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.37
user 3.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.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/63955/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin319.fits evtable="EVENTS" outfile="/scratch/kocevski/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/63955/ltcube_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.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/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits
.....................!
real 11.90
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/63955/ltcube_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.fits outfile=/scratch/kocevski/63955/expmap_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.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/63955/ltcube_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.fits
.....................!
real 193.42
user 187.19
sys 4.74

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/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits scfile=/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits outfile=/scratch/kocevski/63955/cmap_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.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.92
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits scfile=/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits outfile=/scratch/kocevski/63955/cmap_HighResolution_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.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.78
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63955/Model_4FGL_J1147.8-0724_daily_bin319.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/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits.....................!
real 61.79
user 58.16
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits', '/scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits', expMap='/scratch/kocevski/63955/expmap_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.fits', expCube='/scratch/kocevski/63955/ltcube_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/63955/Model_4FGL_J1147.8-0724_daily_bin319.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/63955/ft1_filtered_4FGL_J1147.8-0724_daily_bin319.fits
Spacecraft file(s): /scratch/kocevski/63955/ft2_4FGL_J1147.8-0724_daily_bin319.fits
Exposure map: /scratch/kocevski/63955/expmap_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.fits
Exposure cube: /scratch/kocevski/63955/ltcube_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/63955/Model_4FGL_J1147.8-0724_daily_bin319.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6133.40411714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12445E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.084       1.0000         .10000E-03   10000.    
     8 'norm      '    15.343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.207       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.996       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.896       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.173       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.111       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15115E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87096       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=   6133.218     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2967 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1938       -.76552E-07** at limit **
   2  Prefactor     1.9098        15.672        .52672E-05   -.29733E-03
   3  Prefactor     9.3894        6.7803        .58095E-05   -.22343E-03
   4  Prefactor     .10000E-03    18.757       -.38505E-06** at limit **
   5  norm          .10000E-03    4.1230       -.30588E-06** at limit **
   6  Prefactor     .10000E-03    5.0888       -.52211E-06** at limit **
   7  Prefactor     10.082        9.0300        .88964E-06   -.10102E-03
   8  norm          15.335        17.095        .80834E-05    .16902E-04
   9  Prefactor     3.3205        2.5816        .22575E-06   -.28384E-03
  10  Prefactor     12.171        35.649       -.20109E-04   -.52613E-04
  11  Prefactor     .10000E-03    39.149       -.13917E-05** at limit **
  12  norm          13.094        8.1815       -.34259E-05   -.80173E-04
  13  Prefactor     .10000E-03    1.7208       -.28042E-08** at limit **
  14  Prefactor     13.907        14.931        .18995E-06   -.31612E-04
  15  Prefactor     16.996        24.004       -.22307E-05   -.24609E-04
  16  Prefactor     .10000E-03    193.32       -.45537E-05** at limit **
  17  Prefactor     .10000E-03    2.4059        .36527E-07** at limit **
  18  Prefactor     32.875        22.556        .20003E-04    .31784E-05
  19  Prefactor     12.083        34.227       -.25087E-04   -.72706E-05
  20  Prefactor     35.115        26.750       -.26763E-05   -.31066E-04
  21  Prefactor     .10000E-03    3.3885       -.63674E-08** at limit **
  22  norm          .10000E-03    1.0375        .23642E-07** at limit **
  23  Prefactor     .10000E-03    3.9271        .31144E-06** at limit **
  24  Normalizat    1.1285        .23630       -.86474E-05    .22189E-03
  25  Prefactor     .87088        .14565        .26331E-05   -.42551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.90977
  Prefactor  = 9.38944
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0822
  norm       = 15.3352
  Prefactor  = 3.32051
  Prefactor  = 12.1714
  Prefactor  = 0.0001
  norm       = 13.0945
  Prefactor  = 0.0001
  Prefactor  = 13.9072
  Prefactor  = 16.9956
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.8748
  Prefactor  = 12.0831
  Prefactor  = 35.1152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12846
  Prefactor  = 0.870883
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.218     FROM HESSE     STATUS=OK           429 CALLS     3396 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9098        15.445        .30115E-03   -1.5432    
   3  Prefactor     9.3894        6.7798        .13077E-03   -1.5095    
   4  Prefactor     .10000E-03    18.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1295        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1773        .34287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.082        9.0343        .12618E-03   -1.5073    
   8  norm          15.335        17.109        .10225E-03   -1.4925    
   9  Prefactor     3.3205        2.5797        .10588E-03   -1.5344    
  10  Prefactor     12.171        35.905        .11465E-03   -1.5010    
  11  Prefactor     .10000E-03    39.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.094        8.1714        .11067E-03   -1.4984    
  13  Prefactor     .10000E-03    1.7298        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.907        14.928        .10739E-03   -1.4962    
  15  Prefactor     16.996        24.025        .97151E-04   -1.4883    
  16  Prefactor     .10000E-03    196.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.4087        .11862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.875        22.615        .69864E-04   -1.4561    
  19  Prefactor     12.083        34.211        .11481E-03   -1.5013    
  20  Prefactor     35.115        26.756        .67631E-04   -1.4522    
  21  Prefactor     .10000E-03    3.3944        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0736        .15568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.053        .30075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1285        .27921        .29738E-03   -.88843    
  25  Prefactor     .87088        .17093        .22322E-03   -.97166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81343e-09
Minuit parameter uncertainties:
  1  3.02872e-05
  2  10.8655
  3  6.7804
  4  2.07451e-06
  5  6.15358e-05
  6  0.00010114
  7  9.03551
  8  17.114
  9  2.57975
  10  35.9692
  11  0.000100612
  12  8.1721
  13  6.47394e-07
  14  14.9323
  15  24.0389
  16  0.000986195
  17  5.04038e-06
  18  22.6209
  19  34.2662
  20  26.7655
  21  4.87433e-07
  22  1.22606e-06
  23  0.000131617
  24  0.279573
  25  0.171032
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.309e+01  8.172e+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:  8.709e-01  1.710e-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:  1.128e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.56
Ra Dec: 176.961 -7.414
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.37e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.61e-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) = 6133.17752434
delta logL = 0.0406770752916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6133.17606221
delta logL = 0.0421392008566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.051       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1365       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86624       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.

 FCN=   6133.176     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.010        249.58        .27719E-02    .36437E-04
   2  alpha         2.1324        2.7962        .41715        .77578E-05
   3  Normalizat    1.1438        .28188        .66844E-01    .88174E-05
   4  Prefactor     .86601        .11824        .44573E-01   -.39007E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0101
  alpha      = 2.13239
  Normalizat = 1.14382
  Prefactor  = 0.866006
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.176     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.010        8.5686        .11088E-03   -1.4986    
   2  alpha         2.1324        .70939        .16761E-01   -.14758    
   3  Normalizat    1.1438        .25084        .29573E-03   -.88357    
   4  Prefactor     .86601        .16552        .22383E-03   -.97339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06505e-12
Minuit parameter uncertainties:
  1  8.56938
  2  0.719498
  3  0.251108
  4  0.165617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63955': 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) = 6133.1760382
delta logL = 0.0421632076295

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.301e+01  8.569e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.132e+00  7.195e-01  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:  8.660e-01  1.656e-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:  1.144e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 176.961 -7.414
Photon Index (Free Index): 2.13 +/- 0.72
Photon Flux (Free Index): 5.88e-08 +/- 6.26e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.65e-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/63955/cmap_HighResolution_322012801_322272001_4FGL_J1147.8-0724_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.37e-08', energy_flux2='2.54e-05', photon_flux_error='4.60e-08', dlogl='4.22e-02', energy_flux='2.57e-05', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-04 11:07:52.013365', photon_index_error2='0.72', photon_index2='2.13', ts='7.56', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='1.13', time_epoch_completed='1630778872.01', return_code='0', job_id='63955', GAL2='0.87', EG2='1.14', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='6.26e-08', ts2='7.65', photon_index='2.34' WHERE bin_id='319' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:07:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 63955: <4FGL_J1147.8-0724_daily_bin319> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin319> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:56:35 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:56:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 10:56:37 2021
Terminated at Sat Sep  4 11:07:52 2021
Results reported at Sat Sep  4 11:07:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin319 176.961 -7.4144 322012801 322272001 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 :                                   654.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            677 sec.

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

