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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin566
RA = 176.961, Dec = -7.4144
tmin = 386035201, tmax = 386294401
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='65998', job_status='RUN', time_executed='2021-09-04 11:02:44.594965', time_epoch_executed='1630778564.59' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65998/ft1_4FGL_J1147.8-0724_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65998/ft1_4FGL_J1147.8-0724_daily_bin566.fits outfile=/scratch/kocevski/65998/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin566.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=386035201.0 tmax=386294401.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 4.94
user 4.65
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.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/65998/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin566.fits evtable="EVENTS" outfile="/scratch/kocevski/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.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/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits" evtable="EVENTS" scfile=/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits sctable="SC_DATA" outfile=/scratch/kocevski/65998/ltcube_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.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/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits
.....................!
real 11.54
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/65998/ltcube_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.fits outfile=/scratch/kocevski/65998/expmap_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.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/65998/ltcube_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.fits
.....................!
real 192.13
user 186.85
sys 4.94

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/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits scfile=/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits outfile=/scratch/kocevski/65998/cmap_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits scfile=/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits outfile=/scratch/kocevski/65998/cmap_HighResolution_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65998/Model_4FGL_J1147.8-0724_daily_bin566.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/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits.....................!
real 64.25
user 62.88
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits', '/scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits', expMap='/scratch/kocevski/65998/expmap_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.fits', expCube='/scratch/kocevski/65998/ltcube_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/65998/Model_4FGL_J1147.8-0724_daily_bin566.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/65998/ft1_filtered_4FGL_J1147.8-0724_daily_bin566.fits
Spacecraft file(s): /scratch/kocevski/65998/ft2_4FGL_J1147.8-0724_daily_bin566.fits
Exposure map: /scratch/kocevski/65998/expmap_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.fits
Exposure cube: /scratch/kocevski/65998/ltcube_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/65998/Model_4FGL_J1147.8-0724_daily_bin566.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) = 7173.11370546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4002       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11413E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.658       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6428       1.0000         .10000E-03   10000.    
     8 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6693       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62317E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .96673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4723       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8510       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11591E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.784       1.0000         .10000E-03   10000.    
    22 'norm      '    .94088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .57404E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91108       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1256       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=   7173.108     FROM MIGRAD    STATUS=CONVERGED   1073 CALLS     4150 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.871        15.949        .81985E-04   -.13035E-03
   2  Prefactor     7.4044        8.6698        .14744E-03   -.10163E-03
   3  Prefactor     .10000E-03    6.1292        .27409E-02** at limit **
   4  Prefactor     .10000E-03    12.643        .18142E-02** at limit **
   5  norm          21.656        9.8753        .86067E-04   -.51885E-03
   6  Prefactor     .10000E-03    1.6542        .10587E-02** at limit **
   7  Prefactor     5.6442        5.7490        .16911E-03    .32942E-05
   8  norm          .10000E-03    23.444        .18142E-02** at limit **
   9  Prefactor     2.6703        2.3235        .11534E-03   -.50270E-05
  10  Prefactor     .10198E-03    22.201        .98295E-01** at limit **
  11  Prefactor     .10000E-03    9.9657        .18142E-02** at limit **
  12  norm          .96587        3.4844        .29359E-03   -.70902E-04
  13  Prefactor     .10000E-03    1.5834        .10311E-02** at limit **
  14  Prefactor     .10000E-03    6.9127        .18142E-02** at limit **
  15  Prefactor     7.4420        25.163        .14672E-03    .56721E-04
  16  Prefactor     18.546        31.427        .92989E-04    .36188E-04
  17  Prefactor     1.3564        5.2810        .18654E-02    .10816E-02
  18  Prefactor     9.8556        12.984        .12767E-03    .15075E-03
  19  Prefactor     .10000E-03    21.919        .18142E-02** at limit **
  20  Prefactor     .10000E-03    8.4216        .18142E-02** at limit **
  21  Prefactor     12.757        13.996        .11203E-03    .19869E-03
  22  norm          .94827        2.3251        .18144E-02    .36181E-03
  23  Prefactor     .47320E-01    7.3905        .54800E-01    .91702E-04
  24  Normalizat    .91109        .24334        .32272E-03   -.11033E-03
  25  Prefactor     1.1256        .16235        .20610E-03   -.30568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8711
  Prefactor  = 7.40436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.6563
  Prefactor  = 0.0001
  Prefactor  = 5.64416
  norm       = 0.000100001
  Prefactor  = 2.67029
  Prefactor  = 0.000101981
  Prefactor  = 0.0001
  norm       = 0.965873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44196
  Prefactor  = 18.5461
  Prefactor  = 1.35643
  Prefactor  = 9.85565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7574
  norm       = 0.948269
  Prefactor  = 0.04732
  Normalizat = 0.91109
  Prefactor  = 1.12558
 **********
 **   18 **HESSE 
 **********

 FCN=   7173.108     FROM HESSE     STATUS=OK           425 CALLS     4575 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.871        15.946        .32794E-05   -1.4730    
   2  Prefactor     7.4044        8.6686        .58974E-05   -1.5164    
   3  Prefactor     .10000E-03    6.1598        .54818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.656        9.8733        .17213E-04   -1.4777    
   6  Prefactor     .10000E-03    1.6543        .21174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6442        5.7486        .67643E-05   -1.5233    
   8  norm          .10000E-03    23.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6703        2.3234        .46135E-05   -1.5381    
  10  Prefactor     .10198E-03    20.696        .10292       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .96587        3.4839        .11744E-04   -1.5511    
  13  Prefactor     .10000E-03    1.5837        .20621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4420        25.156        .58686E-05   -1.5162    
  16  Prefactor     18.546        31.417        .37196E-05   -1.4846    
  17  Prefactor     1.3564        5.2779        .37308E-03   -1.5475    
  18  Prefactor     9.8556        12.982        .51069E-05   -1.5080    
  19  Prefactor     .10000E-03    21.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.757        13.899        .44813E-05   -1.4993    
  22  norm          .94827        2.3068        .72575E-04   -1.5513    
  23  Prefactor     .47320E-01    6.6135        .58841E-01   -1.5665    
  24  Normalizat    .91109        .24351        .12909E-04   -.96072    
  25  Prefactor     1.1256        .16248        .41220E-04   -.88653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64126e-10
Minuit parameter uncertainties:
  1  15.9484
  2  8.67012
  3  1.86727e-05
  4  8.85157e-06
  5  9.87409
  6  3.03626e-06
  7  5.74916
  8  0.000296063
  9  2.32344
  10  0.0128115
  11  2.92629e-06
  12  3.4846
  13  2.43657e-06
  14  1.71029e-05
  15  25.1916
  16  31.4446
  17  5.27972
  18  12.986
  19  0.000119589
  20  9.51096e-05
  21  13.9029
  22  2.30706
  23  1.11778
  24  0.243802
  25  0.16255
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  9.659e-01  3.485e+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.126e+00  1.626e-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:  9.111e-01  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/65998/likelihoodResults_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.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): 0
logL (Free Index) = 7172.99148159
delta logL = 0.116090417394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7172.98254574
delta logL = 0.125026269468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68176       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6661       1.0000          .0000       5.0000    
     3 'Normalizat'    .88679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1350       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=   7172.983     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68143        29.758        .11992E-01    .16856E-02
   2  alpha         3.6669        3.3762        .49076        .59593E-04
   3  Normalizat    .88661        .39617E-01    .73851E-01    .11102E-03
   4  Prefactor     1.1350        .27808E-01    .36388E-01   -.26854E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.681429
  alpha      = 3.66689
  Normalizat = 0.886605
  Prefactor  = 1.13505
 **********
 **   18 **HESSE 
 **********

 FCN=   7172.983     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      245 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68143        109.09        .12203E-03   -1.5543    
   2  alpha         3.6669        4.3160        .37898E-01    .48562    
   3  Normalizat    .88661        .25545        .32681E-03   -.96932    
   4  Prefactor     1.1350        .16802        .20535E-03   -.88354    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33429e-09
Minuit parameter uncertainties:
  1  17.2742
  2  18.069
  3  0.255797
  4  0.168103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65998': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7172.98254536
delta logL = 0.125026648459

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  6.814e-01  1.727e+01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.667e+00  1.807e+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:  1.135e+00  1.681e-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:  8.866e-01  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/65998/cmap_HighResolution_386035201_386294401_4FGL_J1147.8-0724_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-09-04 11:18:08.806329', job_id='65998', GAL2='1.14', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1630779488.81', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.25e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='566' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:18:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 65998: <4FGL_J1147.8-0724_daily_bin566> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin566> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:02:27 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:02:29 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:29 2021
Terminated at Sat Sep  4 11:18:09 2021
Results reported at Sat Sep  4 11:18:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin566 176.961 -7.4144 386035201 386294401 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 :                                   921.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

