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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin783
RA = 176.811, Dec = -26.4649
tmin = 442281601, tmax = 442540801
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='57956', job_status='RUN', time_executed='2021-09-04 10:41:35.232841', time_epoch_executed='1630777295.23' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57956

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57956/ft1_4FGL_J1147.2-2627_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57956/ft1_4FGL_J1147.2-2627_daily_bin783.fits outfile=/scratch/kocevski/57956/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin783.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=442281601.0 tmax=442540801.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 3.45
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.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/57956/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/57956/ltcube_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.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/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits
.....................!
real 12.02
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/57956/ltcube_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.fits outfile=/scratch/kocevski/57956/expmap_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.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/57956/ltcube_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.fits
.....................!
real 190.79
user 185.11
sys 5.22

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/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits scfile=/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits outfile=/scratch/kocevski/57956/cmap_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits scfile=/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits outfile=/scratch/kocevski/57956/cmap_HighResolution_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57956/Model_4FGL_J1147.2-2627_daily_bin783.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/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits....................!
real 62.44
user 60.94
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits', '/scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits', expMap='/scratch/kocevski/57956/expmap_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.fits', expCube='/scratch/kocevski/57956/ltcube_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57956/Model_4FGL_J1147.2-2627_daily_bin783.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/57956/ft1_filtered_4FGL_J1147.2-2627_daily_bin783.fits
Spacecraft file(s): /scratch/kocevski/57956/ft2_4FGL_J1147.2-2627_daily_bin783.fits
Exposure map: /scratch/kocevski/57956/expmap_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.fits
Exposure cube: /scratch/kocevski/57956/ltcube_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57956/Model_4FGL_J1147.2-2627_daily_bin783.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) = 6867.64555374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.777       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11550E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3788       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
    10 'norm      '    10.379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.860       1.0000         .10000E-03   10000.    
    15 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11141E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2833       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7464       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7758       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84516       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0439       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=   6867.636     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     3258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0303        7.1461        .14148E-03   -.62678E-05
   2  Prefactor     .10000E-03    19.896        .18142E-02** at limit **
   3  Prefactor     1.6732        796.25        .31111E-02    .22677E-04
   4  Prefactor     .10000E-03    21.426        .18142E-02** at limit **
   5  Prefactor     11.205        12.944        .11971E-03   -.35139E-05
   6  Prefactor     86.767        53.885        .21564E-03   -.60102E-05
   7  Prefactor     .10000E-03    37.141        .18142E-02** at limit **
   8  norm          1.3787        1.1010        .18540E-03    .47830E-05
   9  Prefactor     12.630        16.024        .11267E-03   -.31280E-05
  10  norm          10.379        8.5220        .12437E-03   -.16454E-05
  11  Prefactor     9.3934        7.3108        .13079E-03   -.21470E-04
  12  Prefactor     .10000E-03    14.458        .18142E-02** at limit **
  13  norm          14.879        18.996        .10386E-03    .15325E-05
  14  Prefactor     43.849        18.886        .60536E-04   -.19907E-04
  15  norm          .10000E-03    2.6111        .13011E-02** at limit **
  16  Prefactor     .10006E-03    51.713        .26045E-02** at limit **
  17  Prefactor     10.212        39.374        .12524E-03   -.68079E-05
  18  Prefactor     44.104        33.553        .60372E-04   -.26364E-04
  19  Prefactor     4.2608        86.645        .19466E-03   -.58401E-05
  20  Prefactor     2.7525        653.21        .24566E-03   -.18049E-05
  21  Prefactor     5.7859        19.083        .16712E-03    .14286E-05
  22  Normalizat    .84525        .28797        .38889E-03   -.18008E-04
  23  Prefactor     1.0440        .14084        .17870E-03   -.89195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03032
  Prefactor  = 0.0001
  Prefactor  = 1.67315
  Prefactor  = 0.0001
  Prefactor  = 11.2048
  Prefactor  = 86.767
  Prefactor  = 0.0001
  norm       = 1.3787
  Prefactor  = 12.6304
  norm       = 10.3789
  Prefactor  = 9.39338
  Prefactor  = 0.0001
  norm       = 14.8786
  Prefactor  = 43.8489
  norm       = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 10.2121
  Prefactor  = 44.1038
  Prefactor  = 4.26083
  Prefactor  = 2.75249
  Prefactor  = 5.78591
  Normalizat = 0.845251
  Prefactor  = 1.04395
 **********
 **   18 **HESSE 
 **********

 FCN=   6867.636     FROM HESSE     STATUS=OK           348 CALLS     3606 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0303        7.1458        .56592E-05   -1.5141    
   2  Prefactor     .10000E-03    19.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6732        796.50        .62222E-03   -1.5449    
   4  Prefactor     .10000E-03    21.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.205        12.944        .47882E-05   -1.5038    
   6  Prefactor     86.767        53.880        .86256E-05   -1.3842    
   7  Prefactor     .10000E-03    37.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3787        1.1008        .74159E-05   -1.5473    
   9  Prefactor     12.630        16.021        .45068E-05   -1.4997    
  10  norm          10.379        8.5216        .49747E-05   -1.5064    
  11  Prefactor     9.3934        7.3096        .52317E-05   -1.5095    
  12  Prefactor     .10000E-03    14.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.879        18.996        .41544E-05   -1.4936    
  14  Prefactor     43.849        18.884        .24214E-05   -1.4383    
  15  norm          .10000E-03    2.6113        .26021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    53.460        .10418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.212        39.361        .50098E-05   -1.5069    
  18  Prefactor     44.104        33.474        .24149E-05   -1.4379    
  19  Prefactor     4.2608        84.901        .77866E-05   -1.5295    
  20  Prefactor     2.7525        640.72        .98263E-05   -1.5376    
  21  Prefactor     5.7859        19.081        .66848E-05   -1.5227    
  22  Normalizat    .84525        .28803        .15555E-04   -.98412    
  23  Prefactor     1.0440        .14091        .35739E-04   -.91278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08757e-09
Minuit parameter uncertainties:
  1  7.14657
  2  1.12543e-05
  3  74.0216
  4  9.63999e-06
  5  12.9472
  6  53.9105
  7  2.45819e-05
  8  1.10077
  9  16.0269
  10  8.52263
  11  7.31028
  12  8.60743e-06
  13  19.004
  14  18.8866
  15  3.39554e-06
  16  0.00351555
  17  39.4613
  18  33.4884
  19  38.1011
  20  84.9243
  21  19.1009
  22  0.288556
  23  0.140964
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  9.393e+00  7.310e+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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.044e+00  1.410e-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:  8.453e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 176.811 -26.465
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.65e-05

TS (Fixed Index): 2.24
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57956/likelihoodResults_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.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) = 6865.82462654
delta logL = 1.81099696521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6865.74307304
delta logL = 1.89255046051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47691       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0598       1.0000          .0000       10.000    
     3 'Normalizat'    .70454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0982       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=   6865.743     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      270 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47014        3.2249        .60327E-02    .10203E-02
   2  Index         5.0692        2.6890        .10525        .16121E-03
   3  Normalizat    .70460        .76513E-01    .95238E-01    .34460E-04
   4  Prefactor     1.0982        .38637E-01    .37654E-01   -.10072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.470144
  Index      = 5.06923
  Normalizat = 0.704602
  Prefactor  = 1.09822
 **********
 **   18 **HESSE 
 **********

 FCN=   6865.743     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47014        5.6843        .27113E-04   -1.5571    
   2  Index         5.0692        3.7022        .42845E-02    .13846E-01
   3  Normalizat    .70460        .25769        .42199E-03   -1.0371    
   4  Prefactor     1.0982        .12921        .17464E-03   -.89523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.69042e-10
Minuit parameter uncertainties:
  1  3.26955
  2  4.16878
  3  0.258135
  4  0.129245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57956': 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) = 6865.74305396
delta logL = 1.89256954674

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.701e-01  3.270e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  5.069e+00  4.169e+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.098e+00  1.292e-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:  7.046e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.55
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 5.07 +/- 4.17
Photon Flux (Free Index): 1.75e-07 +/- 8.71e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/57956/cmap_HighResolution_442281601_442540801_4FGL_J1147.2-2627_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.32e-05', photon_flux_error='6.06e-08', dlogl='1.89e+00', energy_flux='2.12e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-04 10:54:43.040551', photon_index_error2='4.17', photon_index2='5.07', ts='2.24', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='1.45e-05', EG='0.85', time_epoch_completed='1630778083.04', return_code='0', job_id='57956', GAL2='1.10', EG2='0.70', return_code2='102', energy_flux_error='1.65e-05', photon_flux_error2='8.71e-08', ts2='6.55', photon_index='2.56' WHERE bin_id='783' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 57956: <4FGL_J1147.2-2627_daily_bin783> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin783> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:41:16 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:41:18 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:41:18 2021
Terminated at Sat Sep  4 10:54:43 2021
Results reported at Sat Sep  4 10:54:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin783 176.811 -26.4649 442281601 442540801 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 :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

