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


Performing analysis on: 4FGL_J1147.8-0724_daily_bin949
RA = 176.961, Dec = -7.4144
tmin = 485308801, tmax = 485568001
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='67412', job_status='RUN', time_executed='2021-09-04 11:09:55.983706', time_epoch_executed='1630778995.98' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67412

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67412/ft1_4FGL_J1147.8-0724_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67412/ft1_4FGL_J1147.8-0724_daily_bin949.fits outfile=/scratch/kocevski/67412/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin949.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=485308801.0 tmax=485568001.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.61
user 5.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.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/67412/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin949.fits evtable="EVENTS" outfile="/scratch/kocevski/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.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/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/67412/ltcube_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.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/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits
.....................!
real 11.74
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/67412/ltcube_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.fits outfile=/scratch/kocevski/67412/expmap_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.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/67412/ltcube_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.fits
.....................!
real 190.32
user 184.43
sys 5.54

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/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.fits scfile=/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits outfile=/scratch/kocevski/67412/cmap_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.fits scfile=/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits outfile=/scratch/kocevski/67412/cmap_HighResolution_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/67412/ft2_4FGL_J1147.8-0724_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67412/Model_4FGL_J1147.8-0724_daily_bin949.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/67412/ft1_filtered_4FGL_J1147.8-0724_daily_bin949.fits.....................!
real 50.26
user 48.81
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37712E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.093       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.670       1.0000         .10000E-03   10000.    
     8 'norm      '    8.9688       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11923E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.612       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.387       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9028       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3275       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89962       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95259       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=   5358.117     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2902 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5475        .22162E-06** at limit **
   2  Prefactor     .10010E-03    5.5955       -.30457E-05** at limit **
   3  Prefactor     3.6238        4.3779        .73433E-06   -.98202E-04
   4  Prefactor     28.053        64.804       -.54110E-04    .34016E-04
   5  norm          .10000E-03    3.6289       -.74425E-08** at limit **
   6  Prefactor     .10000E-03    2.4138       -.10595E-06** at limit **
   7  Prefactor     14.668        9.7870       -.51148E-06    .52950E-05
   8  norm          8.9632        19.430        .14503E-05   -.69796E-04
   9  Prefactor     1.0695        2.4641       -.10975E-05   -.99802E-03
  10  Prefactor     .10000E-03    33.485        .13555E-04** at limit **
  11  Prefactor     .10000E-03    24.346        .16694E-04** at limit **
  12  norm          .10000E-03    2.0532       -.31800E-07** at limit **
  13  Prefactor     .26030        2.6911       -.15726E-05   -.27946E-03
  14  Prefactor     .10000E-03    12.561       -.20162E-06** at limit **
  15  Prefactor     4.4243        70.262       -.13258E-04    .51989E-05
  16  Prefactor     .10000E-03    27.818       -.29381E-04** at limit **
  17  Prefactor     .10000E-03    6.0855        .33969E-07** at limit **
  18  Prefactor     .10000E-03    9.8865        .10307E-05** at limit **
  19  Prefactor     15.564        34.976       -.72419E-05    .14165E-03
  20  Prefactor     18.412        18.629       -.14062E-04    .37184E-04
  21  Prefactor     .10000E-03    3.3719        .21258E-07** at limit **
  22  norm          3.9019        2.2130        .99879E-07    .12755E-03
  23  Prefactor     8.3233        6.7521       -.47821E-06   -.13312E-03
  24  Normalizat    .90008        .21069        .63276E-05    .22063E-03
  25  Prefactor     .95237        .13955        .93438E-06    .52183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  Prefactor  = 3.62381
  Prefactor  = 28.0534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6682
  norm       = 8.96315
  Prefactor  = 1.0695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.260299
  Prefactor  = 0.0001
  Prefactor  = 4.42427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5644
  Prefactor  = 18.4118
  Prefactor  = 0.0001
  norm       = 3.90185
  Prefactor  = 8.32327
  Normalizat = 0.900078
  Prefactor  = 0.952365
 **********
 **   18 **HESSE 
 **********

 FCN=   5358.117     FROM HESSE     STATUS=OK           425 CALLS     3327 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5519        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10010E-03    15.037        .33379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6238        4.3565        .16135E-03   -1.5327    
   4  Prefactor     28.053        64.889        .75586E-04   -1.4648    
   5  norm          .10000E-03    3.6428        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4449        .11083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.668        9.7922        .10457E-03   -1.4942    
   8  norm          8.9632        19.384        .13383E-03   -1.5109    
   9  Prefactor     1.0695        2.4329        .16612E-03   -1.5501    
  10  Prefactor     .10000E-03    33.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0626        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26030        6.0983        .22559E-02   -1.5606    
  14  Prefactor     .10000E-03    12.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4243        70.216        .18757E-03   -1.5287    
  16  Prefactor     .10000E-03    27.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1093        .17626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.9530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.564        34.847        .10137E-03   -1.4919    
  20  Prefactor     18.412        18.638        .93404E-04   -1.4850    
  21  Prefactor     .10000E-03    3.3767        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9019        2.2120        .79732E-04   -1.5313    
  23  Prefactor     8.3233        6.7501        .13892E-03   -1.5131    
  24  Normalizat    .90008        .24508        .29270E-03   -.96457    
  25  Prefactor     .95237        .16460        .19656E-03   -.94335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6822e-08
Minuit parameter uncertainties:
  1  3.45426e-05
  2  0.00239303
  3  4.35687
  4  65.0527
  5  3.82191e-06
  6  1.22313e-05
  7  9.79332
  8  19.3974
  9  2.43315
  10  0.000219012
  11  7.04224e-05
  12  1.82265e-06
  13  2.51963
  14  3.90041e-05
  15  35.2996
  16  0.000141191
  17  3.21379e-05
  18  5.32208e-05
  19  34.8927
  20  18.6435
  21  5.90646e-06
  22  2.21201
  23  6.75075
  24  0.245387
  25  0.164685
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  1.823e-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:  9.524e-01  1.647e-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.001e-01  2.454e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67412/likelihoodResults_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.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) = 5358.11889981
delta logL = -0.00229935111929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5358.1166005
delta logL = -3.29819158651e-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.3319       1.0000          .0000       5.0000    
     3 'Normalizat'    .90003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95241       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=   5358.117     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1794        .10244E-02** at limit **
   2  alpha         2.1494        3.7888        .16508       -.80576E-07
   3  Normalizat    .90008        .23531        .29269E-03    .25325E-04
   4  Prefactor     .95236        .16328        .19656E-03    .36438E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14944
  Normalizat = 0.900079
  Prefactor  = 0.952363
 **********
 **   18 **HESSE 
 **********

 FCN=   5358.117     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0934        .20487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1494        3.3691        .66032E-02   -.14069    
   3  Normalizat    .90008        .23552        .11708E-04   -.96457    
   4  Prefactor     .95236        .16342        .78625E-05   -.94335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05619e-10
Minuit parameter uncertainties:
  1  5.17077e-05
  2  219.839
  3  0.235794
  4  0.163508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67412': 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) = 5358.11660011
delta logL = 3.55039446731e-07

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  1.000e-04  5.171e-05  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.149e+00  2.198e+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:  9.524e-01  1.635e-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.001e-01  2.358e-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/67412/cmap_HighResolution_485308801_485568001_4FGL_J1147.8-0724_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-05', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-04 11:21:24.042343', job_id='67412', GAL2='0.95', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630779684.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='949' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:21:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 67412: <4FGL_J1147.8-0724_daily_bin949> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin949 176.961 -7.4144 485308801 485568001 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 :                                   686.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

