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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin616
RA = 176.961, Dec = -7.4144
tmin = 398995201, tmax = 399254401
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='66070', job_status='RUN', time_executed='2021-09-04 11:05:47.100357', time_epoch_executed='1630778747.1' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66070/ft1_4FGL_J1147.8-0724_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66070/ft1_4FGL_J1147.8-0724_daily_bin616.fits outfile=/scratch/kocevski/66070/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin616.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=398995201.0 tmax=399254401.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.41
user 5.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66070/ft1_filtered_4FGL_J1147.8-0724_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/66070/ltcube_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.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/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits
.....................!
real 11.85
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66070/ft1_filtered_4FGL_J1147.8-0724_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/66070/ltcube_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.fits outfile=/scratch/kocevski/66070/expmap_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.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/66070/ltcube_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.fits
.....................!
real 190.25
user 185.56
sys 4.34

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/66070/ft1_filtered_4FGL_J1147.8-0724_daily_bin616.fits scfile=/scratch/kocevski/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits outfile=/scratch/kocevski/66070/cmap_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66070/ft1_filtered_4FGL_J1147.8-0724_daily_bin616.fits scfile=/scratch/kocevski/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits outfile=/scratch/kocevski/66070/cmap_HighResolution_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66070/ft1_filtered_4FGL_J1147.8-0724_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/66070/ft2_4FGL_J1147.8-0724_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66070/Model_4FGL_J1147.8-0724_daily_bin616.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/66070/ft1_filtered_4FGL_J1147.8-0724_daily_bin616.fits.....................!
real 61.03
user 59.78
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19550E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6650       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.795       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8186       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.812       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.482       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.100       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8603       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7115       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3495       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72801       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=   6887.431     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2893 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5020        12.369        .87176E-06    .98680E-04
   2  Prefactor     5.3773        10.074       -.29883E-06   -.45117E-04
   3  Prefactor     .10001E-03    2.1580        .58347E-06** at limit **
   4  Prefactor     2.6408        264.14       -.23944E-04   -.78003E-04
   5  norm          .10000E-03    10.222       -.23978E-05** at limit **
   6  Prefactor     .72980        5.4953       -.15855E-07    .45434E-04
   7  Prefactor     .10000E-03    4.5835        .86193E-07** at limit **
   8  norm          14.801        18.228       -.11265E-05   -.74276E-05
   9  Prefactor     4.8190        2.9401        .39889E-08   -.20454E-03
  10  Prefactor     16.825        27.387       -.15048E-06    .21751E-03
  11  Prefactor     29.473        29.238       -.15823E-05   -.20719E-03
  12  norm          .10000E-03    2.7423        .48671E-07** at limit **
  13  Prefactor     .10000E-03    1.1765        .25658E-07** at limit **
  14  Prefactor     10.486        11.466        .96122E-06   -.18067E-03
  15  Prefactor     .10000E-03    6.9541       -.16436E-05** at limit **
  16  Prefactor     .10000E-03    59.900       -.12378E-07** at limit **
  17  Prefactor     .10000E-03    7.6035        .28763E-05** at limit **
  18  Prefactor     5.0167        12.992        .27239E-06    .15012E-05
  19  Prefactor     49.104        34.122        .73077E-06    .12138E-03
  20  Prefactor     21.297        24.331       -.61238E-06   -.21867E-04
  21  Prefactor     4.8600        12.390        .71153E-05   -.51153E-03
  22  norm          4.7115        2.9508       -.79354E-06   -.98046E-04
  23  Prefactor     .10000E-03    1.5304        .22399E-07** at limit **
  24  Normalizat    1.3494        .20477       -.11993E-05   -.26559E-04
  25  Prefactor     .72811        .12956        .39892E-06   -.89824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.50197
  Prefactor  = 5.37732
  Prefactor  = 0.000100007
  Prefactor  = 2.64079
  norm       = 0.000100001
  Prefactor  = 0.729805
  Prefactor  = 0.0001
  norm       = 14.8009
  Prefactor  = 4.81897
  Prefactor  = 16.8254
  Prefactor  = 29.4734
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4858
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.01672
  Prefactor  = 49.1039
  Prefactor  = 21.2973
  Prefactor  = 4.85997
  norm       = 4.71151
  Prefactor  = 0.0001
  Normalizat = 1.34939
  Prefactor  = 0.728112
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.431     FROM HESSE     STATUS=OK           433 CALLS     3326 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5020        12.267        .17129E-03   -1.5239    
   2  Prefactor     5.3773        9.9563        .17330E-03   -1.5244    
   3  Prefactor     .10001E-03    14.890        .21898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6408        284.50        .24966E-03   -1.5383    
   5  norm          .10000E-03    10.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72980        8.3248        .27316E-02   -1.5537    
   7  Prefactor     .10000E-03    4.6555        .17346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.801        18.109        .10413E-03   -1.4938    
   9  Prefactor     4.8190        2.9637        .10504E-03   -1.5269    
  10  Prefactor     16.825        26.129        .97679E-04   -1.4887    
  11  Prefactor     29.473        29.448        .73788E-04   -1.4622    
  12  norm          .10000E-03    2.7780        .13416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1865        .87805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.486        11.502        .61867E-03   -1.5060    
  15  Prefactor     .10000E-03    7.0448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0167        13.048        .17950E-03   -1.5260    
  19  Prefactor     49.104        34.126        .57228E-04   -1.4305    
  20  Prefactor     21.297        24.422        .86795E-04   -1.4785    
  21  Prefactor     4.8600        13.003        .91231E-03   -1.5267    
  22  norm          4.7115        2.9748        .96952E-04   -1.5274    
  23  Prefactor     .10000E-03    1.5347        .10026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3494        .24301        .25601E-03   -.82104    
  25  Prefactor     .72811        .15268        .23072E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94058e-09
Minuit parameter uncertainties:
  1  12.2729
  2  9.95941
  3  0.000629038
  4  55.09
  5  0.000148671
  6  4.93023
  7  2.19749e-05
  8  18.1161
  9  2.96376
  10  26.1465
  11  29.4629
  12  1.05586e-07
  13  2.5733e-07
  14  11.5046
  15  0.000155764
  16  0.000137901
  17  0.000250065
  18  13.0557
  19  34.14
  20  24.4331
  21  13.0105
  22  2.97488
  23  4.90361e-08
  24  0.243222
  25  0.152772
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  1.056e-07  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:  7.281e-01  1.528e-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.349e+00  2.432e-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: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66070/likelihoodResults_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.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) = 6887.43276943
delta logL = -0.00171279775714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6887.43105678
delta logL = -1.48542312672e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3185       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72812       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=   6887.431     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      234 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    112.13        .13576E-01** at limit **
   2  alpha         1.8945        3.1485        .16516       -.62640E-08
   3  Normalizat    1.3494        .29686E-01    .25601E-03    .14309E-03
   4  Prefactor     .72811        .20432E-01    .23072E-03    .16940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89448
  Normalizat = 1.34939
  Prefactor  = 0.728113
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.431     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2951        .28928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8945        2.9282        .66063E-02   -.24464    
   3  Normalizat    1.3494        .21503        .51202E-04   -.82104    
   4  Prefactor     .72811        .14796        .92289E-05   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94449e-11
Minuit parameter uncertainties:
  1  1.55706e-05
  2  182.046
  3  0.215175
  4  0.14804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66070': 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) = 6887.43105381
delta logL = 2.81746270048e-06

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  1.557e-05  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.894e+00  1.820e+02  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:  7.281e-01  1.480e-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.349e+00  2.152e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/66070/cmap_HighResolution_398995201_399254401_4FGL_J1147.8-0724_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-04 11:19:09.915743', job_id='66070', GAL2='0.73', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630779549.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='616' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:19:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 66070: <4FGL_J1147.8-0724_daily_bin616> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin616> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:02:32 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:02:34 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:34 2021
Terminated at Sat Sep  4 11:19:10 2021
Results reported at Sat Sep  4 11:19:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin616 176.961 -7.4144 398995201 399254401 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 :                                   799.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            998 sec.

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

