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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin615
RA = 176.961, Dec = -7.4144
tmin = 398736001, tmax = 398995201
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='66068', job_status='RUN', time_executed='2021-09-04 11:02:47.854684', time_epoch_executed='1630778567.85' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66068

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66068/ft1_4FGL_J1147.8-0724_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66068/ft1_4FGL_J1147.8-0724_daily_bin615.fits outfile=/scratch/kocevski/66068/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin615.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.08
user 5.75
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/66068/ltcube_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.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/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits
.....................!
real 11.82
user 11.49
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/66068/ltcube_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.fits outfile=/scratch/kocevski/66068/expmap_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.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/66068/ltcube_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.fits
.....................!
real 190.22
user 185.28
sys 4.46

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/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits scfile=/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits outfile=/scratch/kocevski/66068/cmap_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.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/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits scfile=/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits outfile=/scratch/kocevski/66068/cmap_HighResolution_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66068/Model_4FGL_J1147.8-0724_daily_bin615.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/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits.....................!
real 54.72
user 53.38
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits', '/scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits', expMap='/scratch/kocevski/66068/expmap_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.fits', expCube='/scratch/kocevski/66068/ltcube_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66068/Model_4FGL_J1147.8-0724_daily_bin615.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/66068/ft1_filtered_4FGL_J1147.8-0724_daily_bin615.fits
Spacecraft file(s): /scratch/kocevski/66068/ft2_4FGL_J1147.8-0724_daily_bin615.fits
Exposure map: /scratch/kocevski/66068/expmap_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.fits
Exposure cube: /scratch/kocevski/66068/ltcube_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66068/Model_4FGL_J1147.8-0724_daily_bin615.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6183.60554597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6174       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
     5 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69928E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3220       1.0000         .10000E-03   10000.    
     8 'norm      '    15.635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20999E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.687       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.224       1.0000         .10000E-03   10000.    
    22 'norm      '    .65631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91755       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95902       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=   6183.404     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2561 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7782        13.045        .13224E-06   -.36258E-04
   2  Prefactor     .10000E-03    9.1868       -.83727E-06** at limit **
   3  Prefactor     1.6203        3.8497        .48431E-06   -.23332E-04
   4  Prefactor     11.131        24.487       -.49132E-06   -.44698E-04
   5  norm          .10000E-03    8.7908       -.41474E-06** at limit **
   6  Prefactor     .10115E-03    2.6070        .12598E-05** at limit **
   7  Prefactor     6.3230        7.1760        .41619E-06    .11824E-03
   8  norm          15.665        21.502        .19702E-05    .65837E-04
   9  Prefactor     5.3669        2.6389       -.36484E-07   -.26217E-03
  10  Prefactor     .10000E-03    18.776        .13247E-05** at limit **
  11  Prefactor     .10000E-03    10.703        .16010E-05** at limit **
  12  norm          2.3377        5.4894        .35684E-06   -.57881E-04
  13  Prefactor     .10000E-03    1.7549       -.35841E-06** at limit **
  14  Prefactor     .10000E-03    17.137       -.95384E-06** at limit **
  15  Prefactor     .10000E-03    15.499       -.15634E-05** at limit **
  16  Prefactor     .10000E-03    88.314       -.24827E-05** at limit **
  17  Prefactor     .10000E-03    3.9684        .13996E-07** at limit **
  18  Prefactor     29.694        15.666       -.22013E-06   -.56651E-04
  19  Prefactor     35.183        35.628        .15567E-05    .16057E-03
  20  Prefactor     .10000E-03    17.824       -.40195E-06** at limit **
  21  Prefactor     10.221        9.9247       -.71271E-06   -.13594E-03
  22  norm          .65699        2.1639        .13233E-05    .57371E-03
  23  Prefactor     .10000E-03    3.6558        .72195E-07** at limit **
  24  Normalizat    .91710        .20328        .29616E-06   -.16987E-03
  25  Prefactor     .95939        .13605       -.70390E-06   -.16434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77815
  Prefactor  = 0.0001
  Prefactor  = 1.62025
  Prefactor  = 11.1306
  norm       = 0.0001
  Prefactor  = 0.00010115
  Prefactor  = 6.32303
  norm       = 15.6652
  Prefactor  = 5.36688
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.33775
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 29.6944
  Prefactor  = 35.1832
  Prefactor  = 0.0001
  Prefactor  = 10.2208
  norm       = 0.656994
  Prefactor  = 0.0001
  Normalizat = 0.917101
  Prefactor  = 0.959393
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.404     FROM HESSE     STATUS=OK           429 CALLS     2990 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7782        13.004        .24428E-03   -1.5375    
   2  Prefactor     .10000E-03    9.2676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6203        3.8296        .22561E-03   -1.5453    
   4  Prefactor     11.131        24.474        .12007E-03   -1.5041    
   5  norm          .10000E-03    8.9973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10115E-03    34.306        .20292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3230        7.1765        .15964E-03   -1.5205    
   8  norm          15.665        21.124        .10129E-03   -1.4916    
   9  Prefactor     5.3669        2.6437        .85832E-04   -1.5245    
  10  Prefactor     .10000E-03    18.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3377        5.5141        .26902E-03   -1.5402    
  13  Prefactor     .10000E-03    13.884        .18544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    89.368        .21297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9845        .15297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.694        15.706        .73533E-04   -1.4618    
  19  Prefactor     35.183        35.592        .67567E-04   -1.4521    
  20  Prefactor     .10000E-03    17.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.221        9.7528        .12531E-03   -1.5068    
  22  norm          .65699        2.1423        .18659E-03   -1.5546    
  23  Prefactor     .10000E-03    3.7409        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91710        .23971        .28698E-03   -.95862    
  25  Prefactor     .95939        .16185        .19871E-03   -.94096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34201e-08
Minuit parameter uncertainties:
  1  12.0254
  2  0.000101058
  3  3.83015
  4  24.4957
  5  7.23463e-05
  6  0.012571
  7  7.17752
  8  21.1336
  9  2.64371
  10  0.000159199
  11  0.000195781
  12  5.51533
  13  0.000490993
  14  0.00012937
  15  0.000228776
  16  0.000967145
  17  1.48447e-06
  18  15.7081
  19  35.613
  20  6.35476e-05
  21  9.75427
  22  2.14253
  23  6.37488e-06
  24  0.239994
  25  0.161929
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  2.338e+00  5.515e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.336e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  9.594e-01  1.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  9.171e-01  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66068/likelihoodResults_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.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) = 6183.39896281
delta logL = 0.00479459762664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6183.39508198
delta logL = 0.00867542621563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6783       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8934       1.0000          .0000       5.0000    
     3 'Normalizat'    .90625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6183.395     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6837        141.88        .81306E-02    .44400E-03
   2  alpha         2.8886        3.4231        .41814        .29069E-04
   3  Normalizat    .90622        .47854E-01    .65231E-01   -.44216E-04
   4  Prefactor     .96498        .32028E-01    .45827E-01   -.17232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68369
  alpha      = 2.88861
  Normalizat = 0.906219
  Prefactor  = 0.964978
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.395     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      254 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6837        364.43        .21460E-03   -1.5448    
   2  alpha         2.8886        3.5510        .39529E-01    .15608    
   3  Normalizat    .90622        .35864        .28854E-03   -.96242    
   4  Prefactor     .96498        .21426        .19821E-03   -.93906    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7614e-09
Minuit parameter uncertainties:
  1  49.8498
  2  27.3268
  3  0.359595
  4  0.214452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66068': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6183.39508061
delta logL = 0.00867678983286

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.684e+00  4.985e+01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.889e+00  2.733e+01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  1.710e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  7.338e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  9.650e-01  2.145e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  9.062e-01  3.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/66068/cmap_HighResolution_398736001_398995201_4FGL_J1147.8-0724_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-05', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-04 11:14:46.812796', job_id='66068', GAL2='0.96', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1630779286.81', return_code2='102', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='8.68e-03', ts2='0.24', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='615' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 66068: <4FGL_J1147.8-0724_daily_bin615> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin615> 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) <bullet0162>, 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:14:47 2021
Results reported at Sat Sep  4 11:14:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin615 176.961 -7.4144 398736001 398995201 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 :                                   716.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            735 sec.

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

