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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin415
RA = 176.961, Dec = -7.4144
tmin = 346896001, tmax = 347155201
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='64116', job_status='RUN', time_executed='2021-09-04 10:59:33.107732', time_epoch_executed='1630778373.11' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64116/ft1_4FGL_J1147.8-0724_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64116/ft1_4FGL_J1147.8-0724_daily_bin415.fits outfile=/scratch/kocevski/64116/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin415.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=346896001.0 tmax=347155201.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.88
user 3.22
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64116/ft1_filtered_4FGL_J1147.8-0724_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/64116/ltcube_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.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/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits
.....................!
real 12.76
user 11.58
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64116/ft1_filtered_4FGL_J1147.8-0724_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/64116/ltcube_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.fits outfile=/scratch/kocevski/64116/expmap_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.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/64116/ltcube_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.fits
.....................!
real 195.89
user 186.39
sys 5.95

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/64116/ft1_filtered_4FGL_J1147.8-0724_daily_bin415.fits scfile=/scratch/kocevski/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits outfile=/scratch/kocevski/64116/cmap_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64116/ft1_filtered_4FGL_J1147.8-0724_daily_bin415.fits scfile=/scratch/kocevski/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits outfile=/scratch/kocevski/64116/cmap_HighResolution_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/64116/ft1_filtered_4FGL_J1147.8-0724_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/64116/ft2_4FGL_J1147.8-0724_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/64116/Model_4FGL_J1147.8-0724_daily_bin415.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/64116/ft1_filtered_4FGL_J1147.8-0724_daily_bin415.fits.....................!
real 57.22
user 55.37
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11402E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.762       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0090       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0692       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6169       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11896E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4926       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4302       1.0000         .10000E-03   10000.    
    22 'norm      '    .12593E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0363       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=   6202.885     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2887 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.173        .81374E-06** at limit **
   2  Prefactor     .10000E-03    3.8440        .34028E-06** at limit **
   3  Prefactor     .10000E-03    3.1854        .29687E-06** at limit **
   4  Prefactor     .10000E-03    22.152        .15849E-06** at limit **
   5  norm          6.1644        7.3270       -.19228E-06    .51268E-04
   6  Prefactor     .10000E-03    2.5194       -.43069E-06** at limit **
   7  Prefactor     .10000E-03    18.160       -.11793E-05** at limit **
   8  norm          16.777        20.085        .18248E-05    .47227E-03
   9  Prefactor     2.0090        1.8204        .19285E-07    .24160E-04
  10  Prefactor     .10000E-03    20.552       -.68673E-06** at limit **
  11  Prefactor     .10000E-03    10.821        .17365E-05** at limit **
  12  norm          .10000E-03    2.4861       -.39671E-07** at limit **
  13  Prefactor     1.0689        2.7521        .49474E-06   -.12933E-03
  14  Prefactor     .10000E-03    6.8935        .67891E-06** at limit **
  15  Prefactor     7.6168        14.395        .11720E-05   -.15688E-03
  16  Prefactor     .10000E-03    40.807       -.24740E-05** at limit **
  17  Prefactor     .10000E-03    3.2945       -.43284E-06** at limit **
  18  Prefactor     .10000E-03    8.4359       -.20077E-05** at limit **
  19  Prefactor     .10001E-03    26.655        .41749E-05** at limit **
  20  Prefactor     4.4895        13.504        .44515E-05   -.33809E-03
  21  Prefactor     8.4345        8.9680        .94261E-06   -.10192E-03
  22  norm          .10000E-03    1.7058       -.62072E-06** at limit **
  23  Prefactor     .10000E-03    2.4136        .10120E-07** at limit **
  24  Normalizat    1.0786        .20853       -.66892E-06    .18058E-03
  25  Prefactor     1.0364        .14415       -.31697E-06    .22673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.16443
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 16.7768
  Prefactor  = 2.00898
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.0689
  Prefactor  = 0.0001
  Prefactor  = 7.61682
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 4.48946
  Prefactor  = 8.4345
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07863
  Prefactor  = 1.03641
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.885     FROM HESSE     STATUS=OK           419 CALLS     3306 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8595        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2598        .27416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1644        7.2267        .16182E-03   -1.5211    
   6  Prefactor     .10000E-03    16.933        .22481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.777        20.162        .97826E-04   -1.4889    
   9  Prefactor     2.0090        1.8218        .97867E-04   -1.5424    
  10  Prefactor     .10000E-03    20.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4957        .12121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0689        2.7104        .20072E-03   -1.5501    
  14  Prefactor     .10000E-03    6.9467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6168        14.475        .72652E-03   -1.5156    
  16  Prefactor     .10000E-03    41.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3376        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    27.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4895        14.341        .94978E-03   -1.5284    
  21  Prefactor     8.4345        8.7771        .69034E-03   -1.5127    
  22  norm          .10000E-03    4.2489        .19101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4302        .11949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0786        .24446        .28974E-03   -.90441    
  25  Prefactor     1.0364        .17066        .20650E-03   -.91526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99592e-09
Minuit parameter uncertainties:
  1  9.6113e-05
  2  2.47002e-05
  3  2.30234e-05
  4  2.82452e-05
  5  7.22768
  6  0.000497369
  7  0.000133135
  8  20.1705
  9  1.82184
  10  0.000117905
  11  0.00020046
  12  1.47255e-06
  13  2.71067
  14  6.17656e-05
  15  14.4815
  16  0.000534262
  17  2.56118e-05
  18  0.000197592
  19  0.000756981
  20  14.3519
  21  8.77844
  22  7.33713e-05
  23  1.087e-06
  24  0.244716
  25  0.170746
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  1.473e-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.036e+00  1.707e-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.079e+00  2.447e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64116/likelihoodResults_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.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) = 6202.8868168
delta logL = -0.00190330444548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6202.88491348
delta logL = 1.70093699126e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0364       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=   6202.885     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      239 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    126.16        .12173E-01** at limit **
   2  alpha         1.9535        3.6323        .16512        .75049E-08
   3  Normalizat    1.0786        .37590E-01    .28974E-03   -.49439E-05
   4  Prefactor     1.0364        .26477E-01    .20650E-03    .88086E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95352
  Normalizat = 1.07863
  Prefactor  = 1.03641
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.885     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7174        .12618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9535        3.8825        .66047E-02   -.22037    
   3  Normalizat    1.0786        .24172        .11590E-04   -.90441    
   4  Prefactor     1.0364        .17032        .82600E-05   -.91526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96882e-13
Minuit parameter uncertainties:
  1  8.45774e-07
  2  211.393
  3  0.241967
  4  0.170408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64116': 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) = 6202.88491189
delta logL = 1.60426225193e-06

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  8.458e-07  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.954e+00  2.114e+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:  1.036e+00  1.704e-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.079e+00  2.420e-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/64116/cmap_HighResolution_346896001_347155201_4FGL_J1147.8-0724_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-04 11:11:57.432123', job_id='64116', GAL2='1.04', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630779117.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='415' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:11:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 64116: <4FGL_J1147.8-0724_daily_bin415> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin415> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:56:48 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:56:51 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:51 2021
Terminated at Sat Sep  4 11:11:59 2021
Results reported at Sat Sep  4 11:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin415 176.961 -7.4144 346896001 347155201 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 :                                   735.00 sec.
    Max Memory :                                 1127 MB
    Average Memory :                             271.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            911 sec.

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

