/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 138 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1147.8-0724_daily_bin22
RA = 176.961, Dec = -7.4144
tmin = 245030401, tmax = 245289601
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='62571', job_status='RUN', time_executed='2021-09-04 10:54:59.979014', time_epoch_executed='1630778099.98' WHERE source_name='4FGL J1147.8-0724' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62571/ft1_4FGL_J1147.8-0724_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62571/ft1_4FGL_J1147.8-0724_daily_bin22.fits outfile=/scratch/kocevski/62571/ft1_filteredMKT_4FGL_J1147.8-0724_daily_bin22.fits ra=176.961 dec=-7.4144 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.48
user 1.29
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62571/ft1_filtered_4FGL_J1147.8-0724_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/62571/ltcube_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.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/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits
.....................!
real 13.33
user 12.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62571/ft1_filtered_4FGL_J1147.8-0724_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/62571/ltcube_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.fits outfile=/scratch/kocevski/62571/expmap_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.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/62571/ltcube_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.fits
.....................!
real 192.62
user 185.46
sys 5.48

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/62571/ft1_filtered_4FGL_J1147.8-0724_daily_bin22.fits scfile=/scratch/kocevski/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits outfile=/scratch/kocevski/62571/cmap_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.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/62571/ft1_filtered_4FGL_J1147.8-0724_daily_bin22.fits scfile=/scratch/kocevski/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits outfile=/scratch/kocevski/62571/cmap_HighResolution_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62571/ft1_filtered_4FGL_J1147.8-0724_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/62571/ft2_4FGL_J1147.8-0724_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62571/Model_4FGL_J1147.8-0724_daily_bin22.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/62571/ft1_filtered_4FGL_J1147.8-0724_daily_bin22.fits.....................!
real 65.91
user 64.28
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.208       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0077       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9915       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.9828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9295       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.858       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4024       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0272       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=   7702.955     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2866 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.207        15.340        .79116E-07   -.39229E-04
   2  Prefactor     .10000E-03    6.8226        .91768E-08** at limit **
   3  Prefactor     1.0094        4.3460        .11590E-05    .11564E-03
   4  Prefactor     .10000E-03    25.544       -.49063E-06** at limit **
   5  norm          .10000E-03    3.7643       -.48142E-07** at limit **
   6  Prefactor     .90652        5.7142        .35045E-05    .39542E-03
   7  Prefactor     8.9944        10.196        .52726E-06    .79931E-05
   8  norm          .10000E-03    6.5266        .14036E-06** at limit **
   9  Prefactor     2.0578        1.9046        .93338E-07   -.24245E-04
  10  Prefactor     16.407        29.305       -.14010E-05    .59916E-04
  11  Prefactor     .10000E-03    11.764       -.37813E-07** at limit **
  12  norm          8.9836        6.8162       -.98556E-07   -.64345E-04
  13  Prefactor     3.9298        4.3581        .85136E-07   -.30687E-04
  14  Prefactor     .10000E-03    5.9430       -.17638E-06** at limit **
  15  Prefactor     .10000E-03    11.002       -.14753E-06** at limit **
  16  Prefactor     .10000E-03    29.592       -.50464E-06** at limit **
  17  Prefactor     .10000E-03    6.1735       -.19156E-07** at limit **
  18  Prefactor     1.8226        26.652        .11335E-04   -.15521E-03
  19  Prefactor     .10000E-03    15.310        .31981E-06** at limit **
  20  Prefactor     .10000E-03    34.517        .81083E-07** at limit **
  21  Prefactor     15.859        12.435       -.16592E-06   -.24957E-03
  22  norm          .10000E-03    1.2428       -.18171E-08** at limit **
  23  Prefactor     .10000E-03    2.2563       -.85065E-08** at limit **
  24  Normalizat    1.4022        .23739       -.32163E-05   -.18325E-03
  25  Prefactor     1.0274        .14496        .10161E-05   -.21268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2067
  Prefactor  = 0.0001
  Prefactor  = 1.00938
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.90652
  Prefactor  = 8.99435
  norm       = 0.0001
  Prefactor  = 2.05783
  Prefactor  = 16.4069
  Prefactor  = 0.0001
  norm       = 8.98361
  Prefactor  = 3.92976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.82262
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 15.8594
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40217
  Prefactor  = 1.02738
 **********
 **   18 **HESSE 
 **********

 FCN=   7702.955     FROM HESSE     STATUS=OK           425 CALLS     3291 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.207        15.314        .91388E-04   -1.4831    
   2  Prefactor     .10000E-03    6.8457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0094        4.0249        .32800E-03   -1.5507    
   4  Prefactor     .10000E-03    25.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7772        .16615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .90652        7.8157        .28743E-02   -1.5518    
   7  Prefactor     8.9944        10.242        .13366E-03   -1.5108    
   8  norm          .10000E-03    6.5284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0578        1.9153        .11220E-03   -1.5421    
  10  Prefactor     16.407        28.249        .98889E-04   -1.4898    
  11  Prefactor     .10000E-03    11.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.9836        6.7924        .13373E-03   -1.5108    
  13  Prefactor     3.9298        4.3428        .17312E-03   -1.5311    
  14  Prefactor     .10000E-03    5.9538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.2428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8226        31.086        .15476E-02   -1.5438    
  19  Prefactor     .10000E-03    15.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.859        12.433        .10058E-03   -1.4911    
  22  norm          .10000E-03    1.2520        .95083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2656        .12873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4022        .27652        .30011E-03   -.80566    
  25  Prefactor     1.0274        .16985        .23371E-03   -.91822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33613e-09
Minuit parameter uncertainties:
  1  15.3172
  2  2.62563e-05
  3  4.02597
  4  0.00034452
  5  1.52391e-05
  6  5.3242
  7  10.2438
  8  3.95262e-06
  9  1.91538
  10  28.2718
  11  5.44421e-06
  12  6.79295
  13  4.34314
  14  1.17407e-05
  15  7.00625e-05
  16  0.000119249
  17  2.03842e-06
  18  15.063
  19  0.000194021
  20  0.000727214
  21  12.4353
  22  4.13576e-07
  23  8.39349e-07
  24  0.276817
  25  0.169943
Done.

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

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  8.984e+00  6.793e+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:  1.027e+00  1.699e-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.402e+00  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.74
Ra Dec: 176.961 -7.414
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.34e-05

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) = 7702.21886685
delta logL = 0.736199391814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7702.20961141
delta logL = 0.745454829658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4586       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4349       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0720       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=   7702.210     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4575        8.3023        .96141E-04   -.11546E-02
   2  alpha         3.4362        1.1957        .12444E-01   -.84325E-04
   3  Normalizat    1.2940        .26929        .30996E-03   -.63525E-04
   4  Prefactor     1.0721        .17563        .22929E-03   -.44134E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45749
  alpha      = 3.43621
  Normalizat = 1.29401
  Prefactor  = 1.07209
 **********
 **   18 **HESSE 
 **********

 FCN=   7702.210     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4575        6.0084        .38456E-05   -1.5241    
   2  alpha         3.4362        .88440        .49774E-03    .38384    
   3  Normalizat    1.2940        .26205        .12399E-04   -.83745    
   4  Prefactor     1.0721        .17240        .45858E-04   -.90364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69727e-10
Minuit parameter uncertainties:
  1  6.00911
  2  0.907393
  3  0.262318
  4  0.172493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62571': 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) = 7702.20960591
delta logL = 0.745460334925

Extracting fit parameters...

4FGL J1147.8-0724
   Spectrum: LogParabola
288         norm:  5.457e+00  6.009e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.436e+00  9.074e-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:  1.072e+00  1.725e-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.294e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.43
Ra Dec: 176.961 -7.414
Photon Index (Free Index): 3.44 +/- 0.91
Photon Flux (Free Index): 1.36e-07 +/- 8.65e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/62571/cmap_HighResolution_245030401_245289601_4FGL_J1147.8-0724_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='2.53e-05', photon_flux_error='3.82e-08', dlogl='7.45e-01', energy_flux='1.77e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-04 11:07:22.407101', photon_index_error2='0.91', photon_index2='3.44', ts='4.74', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.40', time_epoch_completed='1630778842.41', return_code='0', job_id='62571', GAL2='1.07', EG2='1.29', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='8.65e-08', ts2='6.43', photon_index='2.34' WHERE bin_id='22' AND source_name='4FGL J1147.8-0724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 62571: <4FGL_J1147.8-0724_daily_bin22> in cluster <slac> Done

Job <4FGL_J1147.8-0724_daily_bin22> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 10:52:24 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:52:26 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:52:26 2021
Terminated at Sat Sep  4 11:07:23 2021
Results reported at Sat Sep  4 11:07:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.8-0724_daily_bin22 176.961 -7.4144 245030401 245289601 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.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

