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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin970
RA = 176.961, Dec = -7.4144
tmin = 490752001, tmax = 491011201
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='67442', job_status='RUN', time_executed='2021-09-04 11:09:32.620246', time_epoch_executed='1630778972.62' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67442/ft1_4FGL_J1147.8-0724_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67442/ft1_4FGL_J1147.8-0724_daily_bin970.fits outfile=/scratch/kocevski/67442/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin970.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=490752001.0 tmax=491011201.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.95
user 5.62
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.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/67442/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/67442/ltcube_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.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/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits
.....................!
real 11.97
user 11.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/67442/ltcube_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.fits outfile=/scratch/kocevski/67442/expmap_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.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/67442/ltcube_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.fits
.....................!
real 190.18
user 185.01
sys 4.79

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/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.fits scfile=/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits outfile=/scratch/kocevski/67442/cmap_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.fits scfile=/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits outfile=/scratch/kocevski/67442/cmap_HighResolution_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.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/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/67442/ft2_4FGL_J1147.8-0724_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67442/Model_4FGL_J1147.8-0724_daily_bin970.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/67442/ft1_filtered_4FGL_J1147.8-0724_daily_bin970.fits.....................!
real 55.41
user 53.20
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10231E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.8553       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.031       1.0000         .10000E-03   10000.    
     8 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2809       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.341       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3211       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7204       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6300       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67676       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1083       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=   6064.728     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2467 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4871        .56387E-07** at limit **
   2  Prefactor     .10000E-03    5.8711        .20456E-06** at limit **
   3  Prefactor     .10000E-03    2.4580       -.20735E-07** at limit **
   4  Prefactor     .10000E-03    16.452        .22229E-06** at limit **
   5  norm          9.8737        7.9701        .10688E-06   -.31555E-04
   6  Prefactor     .10000E-03    1.4966       -.77956E-07** at limit **
   7  Prefactor     18.030        9.6223        .46539E-07   -.43640E-04
   8  norm          .10000E-03    7.6061        .39360E-06** at limit **
   9  Prefactor     1.4963        1.2460       -.78903E-08    .12402E-04
  10  Prefactor     .10000E-03    6.4194        .49516E-06** at limit **
  11  Prefactor     .10000E-03    16.312       -.18515E-06** at limit **
  12  norm          .10000E-03    2.6852       -.36458E-07** at limit **
  13  Prefactor     7.2798        4.0238        .53594E-07   -.43432E-04
  14  Prefactor     12.124        16.796       -.68921E-06   -.15084E-03
  15  Prefactor     4.5337        12.610        .40392E-05   -.33313E-03
  16  Prefactor     13.069        18.160        .27894E-05    .38402E-03
  17  Prefactor     5.3654        7.4296       -.88560E-08   -.47613E-04
  18  Prefactor     21.335        13.993       -.17234E-06   -.54619E-04
  19  Prefactor     .10000E-03    10.679       -.49466E-07** at limit **
  20  Prefactor     6.3162        12.653        .27997E-06    .33664E-04
  21  Prefactor     .10000E-03    6.5741       -.70491E-06** at limit **
  22  norm          2.7202        2.2671        .46589E-08    .68193E-04
  23  Prefactor     4.6298        3.9694        .38244E-07    .46047E-04
  24  Normalizat    .67699        .21125       -.41418E-06   -.67962E-04
  25  Prefactor     1.1083        .14263       -.32220E-07   -.79099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.8737
  Prefactor  = 0.0001
  Prefactor  = 18.0301
  norm       = 0.0001
  Prefactor  = 1.49626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.27977
  Prefactor  = 12.1242
  Prefactor  = 4.53371
  Prefactor  = 13.0694
  Prefactor  = 5.36538
  Prefactor  = 21.3347
  Prefactor  = 0.0001
  Prefactor  = 6.31618
  Prefactor  = 0.0001
  norm       = 2.72022
  Prefactor  = 4.6298
  Normalizat = 0.67699
  Prefactor  = 1.1083
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.728     FROM HESSE     STATUS=OK           427 CALLS     2894 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.942        .35136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4933        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.8737        7.7523        .12764E-03   -1.5079    
   6  Prefactor     .10000E-03    1.5154        .92978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.030        9.6331        .94321E-04   -1.4858    
   8  norm          .10000E-03    7.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4963        1.2541        .77228E-04   -1.5463    
  10  Prefactor     .10000E-03    6.4616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6985        .12449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2798        4.0143        .10688E-03   -1.5168    
  14  Prefactor     12.124        16.905        .11499E-03   -1.5011    
  15  Prefactor     4.5337        13.649        .94501E-03   -1.5282    
  16  Prefactor     13.069        19.580        .11088E-03   -1.4985    
  17  Prefactor     5.3654        7.4206        .17348E-03   -1.5245    
  18  Prefactor     21.335        14.024        .86703E-04   -1.4784    
  19  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3162        12.648        .15965E-03   -1.5205    
  21  Prefactor     .10000E-03    6.6612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7202        2.2697        .10363E-03   -1.5378    
  23  Prefactor     4.6298        3.9723        .13990E-03   -1.5278    
  24  Normalizat    .67699        .23588        .33651E-03   -1.0481    
  25  Prefactor     1.1083        .16121        .19230E-03   -.89202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09973e-09
Minuit parameter uncertainties:
  1  6.33757e-06
  2  0.000906502
  3  1.13638e-06
  4  3.77362e-05
  5  7.75308
  6  3.69708e-06
  7  9.63394
  8  4.41757e-05
  9  1.25413
  10  5.19449e-05
  11  2.18896e-05
  12  2.93856e-06
  13  4.01447
  14  16.9114
  15  13.6585
  16  19.5897
  17  7.42191
  18  14.0261
  19  8.184e-06
  20  12.6531
  21  7.285e-05
  22  2.26978
  23  3.97253
  24  0.236232
  25  0.16128
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  2.939e-06  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.108e+00  1.613e-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:  6.770e-01  2.362e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67442/likelihoodResults_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.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) = 6064.72978838
delta logL = -0.00175826563463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6064.72803012
delta logL = -7.87895260146e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3403       1.0000          .0000       5.0000    
     3 'Normalizat'    .67700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1083       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=   6064.606     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      282 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78074E-01    8.1233        .99576E-02    .10689E-02
   2  alpha         5.0000        3.8479        .50000    ** at limit **
   3  Normalizat    .64667        .74181E-01    .33651E-03   -.19375E-03
   4  Prefactor     1.1212        .44817E-01    .19230E-03   -.20644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0780745
  alpha      = 5
  Normalizat = 0.646669
  Prefactor  = 1.12118
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.606     FROM HESSE     STATUS=OK            31 CALLS      313 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78074E-01    .17317        .42425E-03   -1.5652    
   2  alpha         5.0000        4.1685        .12846        14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64667        .23093        .13460E-04   -1.0604    
   4  Prefactor     1.1212        .16276        .38460E-04   -.88793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66319e-10
Minuit parameter uncertainties:
  1  0.173175
  2  2.58626e-05
  3  0.231276
  4  0.162837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67442': 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) = 6064.60595896
delta logL = 0.122071151291

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  7.807e-02  1.732e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.000e+00  2.586e-05  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.121e+00  1.628e-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:  6.467e-01  2.313e-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/67442/cmap_HighResolution_490752001_491011201_4FGL_J1147.8-0724_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-04 11:21:18.080081', job_id='67442', GAL2='1.12', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1630779678.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.22e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='970' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 67442: <4FGL_J1147.8-0724_daily_bin970> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin970> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 11:06:36 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:06:38 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:06:38 2021
Terminated at Sat Sep  4 11:21:18 2021
Results reported at Sat Sep  4 11:21:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin970 176.961 -7.4144 490752001 491011201 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 :                                   702.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

