/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7435
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1147.2-2627_daily_bin569
RA = 176.811, Dec = -26.4649
tmin = 386812801, tmax = 387072001
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='55815', job_status='RUN', time_executed='2021-09-04 10:37:24.605782', time_epoch_executed='1630777044.61' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55815/ft1_4FGL_J1147.2-2627_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55815/ft1_4FGL_J1147.2-2627_daily_bin569.fits outfile=/scratch/kocevski/55815/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin569.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=386812801.0 tmax=387072001.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.53
user 3.20
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.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/55815/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin569.fits evtable="EVENTS" outfile="/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/55815/ltcube_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.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/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits
.....................!
real 19.59
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/55815/ltcube_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.fits outfile=/scratch/kocevski/55815/expmap_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.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/55815/ltcube_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.fits
.....................!
real 191.53
user 184.84
sys 4.95

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1147.2-2627 @ 176.811 -26.4649

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits scfile=/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits outfile=/scratch/kocevski/55815/cmap_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.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.811 yref=-26.4649 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits scfile=/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits outfile=/scratch/kocevski/55815/cmap_HighResolution_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.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.811 yref=-26.4649 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55815/Model_4FGL_J1147.2-2627_daily_bin569.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/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits.....................!
real 61.43
user 59.92
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits', '/scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits', expMap='/scratch/kocevski/55815/expmap_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.fits', expCube='/scratch/kocevski/55815/ltcube_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55815/Model_4FGL_J1147.2-2627_daily_bin569.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.2-2627'

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.341e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/55815/ft1_filtered_4FGL_J1147.2-2627_daily_bin569.fits
Spacecraft file(s): /scratch/kocevski/55815/ft2_4FGL_J1147.2-2627_daily_bin569.fits
Exposure map: /scratch/kocevski/55815/expmap_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.fits
Exposure cube: /scratch/kocevski/55815/ltcube_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55815/Model_4FGL_J1147.2-2627_daily_bin569.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) = 6571.06055085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .64956E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11350E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.431       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.845       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0474       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4739       1.0000         .10000E-03   10000.    
    10 'norm      '    13.365       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.584       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.531       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6914       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4252       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.095       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.612       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65216       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+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=   6570.998     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     2962 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.280        8.4959        .11929E-03    .35263E-04
   2  Prefactor     .10000E-03    10.534        .18142E-02** at limit **
   3  Prefactor     .10020E-03    48.652        .20136    ** at limit **
   4  Prefactor     .10000E-03    128.93        .18142E-02** at limit **
   5  Prefactor     21.429        16.309        .86521E-04    .47040E-04
   6  Prefactor     .10000E-03    14.408        .18142E-02** at limit **
   7  Prefactor     16.906        49.883        .97584E-04    .61862E-04
   8  norm          7.0473        1.8782        .54941E-04    .89806E-04
   9  Prefactor     3.4676        14.893        .21696E-03    .39300E-04
  10  norm          13.365        8.8080        .10957E-03   -.18438E-03
  11  Prefactor     .10004E-03    17.737        .31887E-02** at limit **
  12  Prefactor     50.578        36.231        .56386E-04    .14351E-03
  13  norm          .10000E-03    11.942        .18142E-02** at limit **
  14  Prefactor     10.536        21.889        .12347E-03    .27347E-04
  15  norm          8.4119        7.3627        .13822E-03    .10586E-03
  16  Prefactor     4.6913        4.7860        .17011E-03    .18245E-03
  17  Prefactor     2.4247        181.30        .26280E-03   -.69215E-06
  18  Prefactor     7.5685        23.894        .14576E-03    .17159E-05
  19  Prefactor     40.083        27.063        .63303E-04   -.69215E-04
  20  Prefactor     .10000E-03    23.028        .18142E-02** at limit **
  21  Prefactor     11.615        30.222        .11756E-03   -.24659E-04
  22  Normalizat    .65204        .28313        .43580E-03    .32348E-04
  23  Prefactor     1.1095        .14265        .17463E-03    .11019E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2795
  Prefactor  = 0.0001
  Prefactor  = 0.000100197
  Prefactor  = 0.000100004
  Prefactor  = 21.4294
  Prefactor  = 0.0001
  Prefactor  = 16.9058
  norm       = 7.04731
  Prefactor  = 3.4676
  norm       = 13.3654
  Prefactor  = 0.000100037
  Prefactor  = 50.5779
  norm       = 0.0001
  Prefactor  = 10.5357
  norm       = 8.41192
  Prefactor  = 4.69126
  Prefactor  = 2.42472
  Prefactor  = 7.56851
  Prefactor  = 40.083
  Prefactor  = 0.0001
  Prefactor  = 11.6147
  Normalizat = 0.652044
  Prefactor  = 1.10947
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.998     FROM HESSE     STATUS=OK           356 CALLS     3318 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.280        8.4959        .47715E-05   -1.5036    
   2  Prefactor     .10000E-03    10.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10020E-03    48.691        .20119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    128.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.429        16.308        .34608E-05   -1.4782    
   6  Prefactor     .10000E-03    14.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.906        49.915        .39034E-05   -1.4885    
   8  norm          7.0473        1.8782        .21976E-05   -1.5177    
   9  Prefactor     3.4676        14.890        .86784E-05   -1.5336    
  10  norm          13.365        8.8077        .43827E-05   -1.4977    
  11  Prefactor     .10004E-03    18.002        .63774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.578        36.221        .11277E-04   -1.4284    
  13  norm          .10000E-03    11.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.536        21.889        .49387E-05   -1.5059    
  15  norm          8.4119        7.3619        .55287E-05   -1.5128    
  16  Prefactor     4.6913        4.7856        .68043E-05   -1.5275    
  17  Prefactor     2.4247        181.28        .10512E-04   -1.5397    
  18  Prefactor     7.5685        23.892        .58305E-05   -1.5158    
  19  Prefactor     40.083        27.060        .12661E-04   -1.4441    
  20  Prefactor     .10000E-03    23.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.615        30.224        .47025E-05   -1.5026    
  22  Normalizat    .65204        .28319        .17432E-04   -1.0582    
  23  Prefactor     1.1095        .14271        .34926E-04   -.89164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4798e-09
Minuit parameter uncertainties:
  1  8.49676
  2  3.92765e-06
  3  0.00619138
  4  0.00148372
  5  16.3115
  6  5.86447e-05
  7  50.0391
  8  1.87821
  9  14.377
  10  8.80855
  11  0.00163658
  12  36.2369
  13  6.47109e-05
  14  21.9053
  15  7.36266
  16  4.78596
  17  42.0632
  18  23.9217
  19  27.0686
  20  3.43963e-05
  21  30.2642
  22  0.283821
  23  0.142761
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.637e-03  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.563e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.109e+00  1.428e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  6.520e-01  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55815/likelihoodResults_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6570.99869354
delta logL = -0.000266160335741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6570.99842767
delta logL = -2.87482180283e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6513       1.0000          .0000       10.000    
     3 'Normalizat'    .65242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6570.605     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      328 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54579E-02    .39900        .15799E-02   -.14250E-01
   2  Index         7.1419        8.2228        .23037        .89441E-04
   3  Normalizat    .56647        .35075        .10511        .52812E-05
   4  Prefactor     1.1373        .95678E-01    .37243E-01   -.91856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00545785
  Index      = 7.14186
  Normalizat = 0.566469
  Prefactor  = 1.13733
 **********
 **   18 **HESSE 
 **********

 FCN=   6570.605     FROM HESSE     STATUS=OK            35 CALLS      363 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54579E-02    .36005E-01    .71424E-04   -1.5723    
   2  Index         7.1419        2.6735        .81404E-02    .44269    
   3  Normalizat    .56647        .28695        .46592E-03   -1.0943    
   4  Prefactor     1.1373        .14377        .17271E-03   -.88282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52829e-09
Minuit parameter uncertainties:
  1  0.0277782
  2  2.86092
  3  0.287708
  4  0.143822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55815': 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) = 6570.60473754
delta logL = 0.393689842776

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  5.458e-03  2.778e-02  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  7.142e+00  2.861e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  6.672e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.137e+00  1.438e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  5.665e-01  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 176.811 -26.465

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/55815/cmap_HighResolution_386812801_387072001_4FGL_J1147.2-2627_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.14e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-04 10:49:50.940967', job_id='55815', GAL2='1.14', fit_tolerance='1e-08', EG2='0.57', EG='0.65', time_epoch_completed='1630777790.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.94e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='569' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:49:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 55815: <4FGL_J1147.2-2627_daily_bin569> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin569> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:36:19 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:36:20 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:36:20 2021
Terminated at Sat Sep  4 10:49:51 2021
Results reported at Sat Sep  4 10:49:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin569 176.811 -26.4649 386812801 387072001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.2-2627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

