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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin575
RA = 176.961, Dec = -7.4144
tmin = 388368001, tmax = 388627201
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='66011', job_status='RUN', time_executed='2021-09-04 11:02:49.930470', time_epoch_executed='1630778569.93' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66011/ft1_4FGL_J1147.8-0724_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66011/ft1_4FGL_J1147.8-0724_daily_bin575.fits outfile=/scratch/kocevski/66011/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin575.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=388368001.0 tmax=388627201.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.43
user 4.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.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/66011/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin575.fits evtable="EVENTS" outfile="/scratch/kocevski/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/66011/ltcube_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.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/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits
.....................!
real 11.91
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/66011/ltcube_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.fits outfile=/scratch/kocevski/66011/expmap_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.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/66011/ltcube_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.fits
.....................!
real 191.81
user 186.74
sys 4.75

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/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits scfile=/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits outfile=/scratch/kocevski/66011/cmap_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits scfile=/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits outfile=/scratch/kocevski/66011/cmap_HighResolution_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/66011/ft2_4FGL_J1147.8-0724_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66011/Model_4FGL_J1147.8-0724_daily_bin575.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/66011/ft1_filtered_4FGL_J1147.8-0724_daily_bin575.fits.....................!
real 49.28
user 47.94
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.106       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.656       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.912       1.0000         .10000E-03   10000.    
    22 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.651       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78290       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1821       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=   5298.154     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2867 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.112        21.470        .36059E-05   -.23096E-04
   2  Prefactor     .10000E-03    5.8724        .43596E-07** at limit **
   3  Prefactor     .10000E-03    2.6937        .15926E-06** at limit **
   4  Prefactor     .10000E-03    21.119        .24239E-05** at limit **
   5  norm          .10000E-03    2.6751       -.14338E-06** at limit **
   6  Prefactor     .10000E-03    1.7387       -.38521E-08** at limit **
   7  Prefactor     .10000E-03    16.552       -.20295E-05** at limit **
   8  norm          .10000E-03    6.6840       -.15394E-06** at limit **
   9  Prefactor     .10000E-03    .71729        .29883E-07** at limit **
  10  Prefactor     .10000E-03    15.608        .41313E-06** at limit **
  11  Prefactor     .10000E-03    20.169        .58335E-06** at limit **
  12  norm          .10000E-03    2.0532       -.43475E-07** at limit **
  13  Prefactor     .10000E-03    1.6315       -.73998E-07** at limit **
  14  Prefactor     14.546        15.668        .15787E-06   -.65416E-05
  15  Prefactor     .10000E-03    15.064        .27098E-05** at limit **
  16  Prefactor     .10000E-03    19.073       -.15886E-05** at limit **
  17  Prefactor     .10000E-03    3.3299        .13315E-07** at limit **
  18  Prefactor     42.667        25.955        .78903E-05   -.14396E-04
  19  Prefactor     .10000E-03    17.287       -.27009E-05** at limit **
  20  Prefactor     .10000E-03    30.551        .27077E-06** at limit **
  21  Prefactor     29.911        16.385       -.79145E-07   -.17311E-04
  22  norm          .10000E-03    1.9284       -.30511E-07** at limit **
  23  Prefactor     13.650        9.5163       -.55051E-06   -.12783E-02
  24  Normalizat    .78259        .25902       -.70780E-05    .54986E-04
  25  Prefactor     1.1823        .16715        .13540E-05   -.13358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9107
  norm       = 0.0001
  Prefactor  = 13.6504
  Normalizat = 0.782591
  Prefactor  = 1.18226
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.154     FROM HESSE     STATUS=OK           413 CALLS     3280 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.112        21.349        .65794E-04   -1.4489    
   2  Prefactor     .10000E-03    5.8784        .17220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7189        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6773        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7473        .93702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .72088        .60189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0588        .10185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6449        .90751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.546        15.664        .10502E-03   -1.4945    
  15  Prefactor     .10000E-03    15.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3386        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.667        25.572        .61380E-04   -1.4401    
  19  Prefactor     .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.911        16.295        .73257E-04   -1.4614    
  22  norm          .10000E-03    1.9557        .19619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.650        9.7437        .54205E-03   -1.4969    
  24  Normalizat    .78259        .28849        .35405E-03   -1.0072    
  25  Prefactor     1.1823        .18919        .20364E-03   -.86879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34595e-09
Minuit parameter uncertainties:
  1  21.3537
  2  2.34102e-05
  3  3.00556e-06
  4  1.44917e-05
  5  1.49341e-06
  6  2.12653e-07
  7  0.000100952
  8  7.70532e-07
  9  2.51661e-06
  10  7.64272e-06
  11  2.09854e-05
  12  5.51742e-06
  13  7.70413e-06
  14  15.6685
  15  4.07938e-06
  16  7.24499e-05
  17  4.2213e-06
  18  25.5787
  19  5.60963e-05
  20  0.000142844
  21  16.2979
  22  2.47863e-06
  23  9.74488
  24  0.289059
  25  0.1893
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  5.517e-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.182e+00  1.893e-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:  7.826e-01  2.891e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66011/likelihoodResults_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.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) = 5298.15588387
delta logL = -0.00224996513862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5298.15363388
delta logL = 2.668457455e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3301       1.0000          .0000       5.0000    
     3 'Normalizat'    .78260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1823       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=   5298.154     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      230 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1403        .10199E-02** at limit **
   2  alpha         2.0579        2.6421        .16509       -.40905E-07
   3  Normalizat    .78259        .26647        .35406E-03    .71283E-05
   4  Prefactor     1.1823        .18606        .20364E-03    .18601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05792
  Normalizat = 0.782588
  Prefactor  = 1.18227
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.154     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1291        .20399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0579        3.3517        .66036E-02   -.17776    
   3  Normalizat    .78259        .26664        .14162E-04   -1.0072    
   4  Prefactor     1.1823        .18619        .40728E-04   -.86879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50608e-10
Minuit parameter uncertainties:
  1  4.97719e-05
  2  218.547
  3  0.267086
  4  0.18629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66011': 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) = 5298.15363311
delta logL = 7.99831468612e-07

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  4.977e-05  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.058e+00  2.185e+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.182e+00  1.863e-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:  7.826e-01  2.671e-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/66011/cmap_HighResolution_388368001_388627201_4FGL_J1147.8-0724_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-04 11:13:52.857225', job_id='66011', GAL2='1.18', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630779232.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='8.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='575' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:13:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 66011: <4FGL_J1147.8-0724_daily_bin575> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin575> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:02:28 2021
Job was executed on host(s) <bullet0139>, 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:13:53 2021
Results reported at Sat Sep  4 11:13:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin575 176.961 -7.4144 388368001 388627201 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 :                                   661.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            685 sec.

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

