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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1032
RA = 176.811, Dec = -26.4649
tmin = 506822401, tmax = 507081601
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='58324', job_status='RUN', time_executed='2021-09-04 10:43:09.293180', time_epoch_executed='1630777389.29' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58324/ft1_4FGL_J1147.2-2627_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58324/ft1_4FGL_J1147.2-2627_daily_bin1032.fits outfile=/scratch/kocevski/58324/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1032.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=506822401.0 tmax=507081601.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.46
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58324/ft1_filtered_4FGL_J1147.2-2627_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/58324/ltcube_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.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/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits
.....................!
real 11.89
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58324/ft1_filtered_4FGL_J1147.2-2627_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/58324/ltcube_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.fits outfile=/scratch/kocevski/58324/expmap_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.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/58324/ltcube_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.fits
.....................!
real 189.39
user 185.10
sys 3.96

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/58324/ft1_filtered_4FGL_J1147.2-2627_daily_bin1032.fits scfile=/scratch/kocevski/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits outfile=/scratch/kocevski/58324/cmap_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58324/ft1_filtered_4FGL_J1147.2-2627_daily_bin1032.fits scfile=/scratch/kocevski/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits outfile=/scratch/kocevski/58324/cmap_HighResolution_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.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.53
user 0.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58324/ft1_filtered_4FGL_J1147.2-2627_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/58324/ft2_4FGL_J1147.2-2627_daily_bin1032.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58324/Model_4FGL_J1147.2-2627_daily_bin1032.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/58324/ft1_filtered_4FGL_J1147.2-2627_daily_bin1032.fits.....................!
real 49.65
user 48.37
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    128.42       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.107       1.0000         .10000E-03   10000.    
     8 'norm      '    .68478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.647       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6682       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12631       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31780E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.330       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9045       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11367E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2120       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80869       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=   5097.881     FROM MIGRAD    STATUS=CONVERGED    934 CALLS     3033 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5573        .14839E-02** at limit **
   2  Prefactor     4.1814        100.89        .20014E-03    .16189E-04
   3  Prefactor     128.46        141.09        .35527E-04    .25408E-04
   4  Prefactor     11.551        27.141        .11789E-03    .12440E-04
   5  Prefactor     .10000E-03    4.0030        .13947E-02** at limit **
   6  Prefactor     .45858        52.565        .15584        .12261E-03
   7  Prefactor     53.107        50.957        .55038E-04   -.19830E-05
   8  norm          .68692        .96097        .90993E-03   -.11575E-02
   9  Prefactor     27.650        20.866        .76191E-04   -.28052E-04
  10  norm          4.6656        8.9875        .18626E-03   -.93506E-04
  11  Prefactor     .11358        8.6259        .51456E-01    .56317E-03
  12  Prefactor     .10001E-03    268.08        .76533E-02** at limit **
  13  norm          .10000E-03    23.758        .18142E-02** at limit **
  14  Prefactor     20.321        24.871        .88831E-04    .63351E-04
  15  norm          4.9058        6.4613        .16850E-03    .55999E-04
  16  Prefactor     .10000E-03    8.2813        .18142E-02** at limit **
  17  Prefactor     .10000E-03    59.483        .18142E-02** at limit **
  18  Prefactor     47.890        44.739        .57972E-04    .20199E-04
  19  Prefactor     .10000E-03    20.896        .18142E-02** at limit **
  20  Prefactor     .10000E-03    32.587        .18142E-02** at limit **
  21  Prefactor     .10000E-03    12.316        .18142E-02** at limit **
  22  Normalizat    1.2121        .33021        .31885E-03    .98587E-04
  23  Prefactor     .80873        .15222        .18485E-03    .49292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.18143
  Prefactor  = 128.464
  Prefactor  = 11.5513
  Prefactor  = 0.0001
  Prefactor  = 0.45858
  Prefactor  = 53.1067
  norm       = 0.686924
  Prefactor  = 27.6501
  norm       = 4.66558
  Prefactor  = 0.113576
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 20.3213
  norm       = 4.90584
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 47.8904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21213
  Prefactor  = 0.808732
 **********
 **   18 **HESSE 
 **********

 FCN=   5097.881     FROM HESSE     STATUS=OK           368 CALLS     3401 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5580        .29678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1814        100.73        .80056E-05   -1.5299    
   3  Prefactor     128.46        140.99        .71053E-05   -1.3436    
   4  Prefactor     11.551        27.135        .47157E-05   -1.5028    
   5  Prefactor     .10000E-03    4.0031        .27893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .45858        51.801        .15765       -1.5573    
   7  Prefactor     53.107        50.956        .11008E-04   -1.4249    
   8  norm          .68692        .96008        .36397E-04   -1.5542    
   9  Prefactor     27.650        20.863        .30477E-05   -1.4656    
  10  norm          4.6656        8.9868        .74505E-05   -1.5276    
  11  Prefactor     .11358        8.1540        .53129E-01   -1.5641    
  12  Prefactor     .10001E-03    277.26        .30613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    23.773        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.321        24.865        .35532E-05   -1.4806    
  15  norm          4.9058        6.4594        .67401E-05   -1.5265    
  16  Prefactor     .10000E-03    8.2846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    59.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.890        44.699        .23189E-05   -1.4323    
  19  Prefactor     .10000E-03    20.901        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2121        .33032        .12754E-04   -.86229    
  23  Prefactor     .80873        .15232        .36971E-04   -.99407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07818e-09
Minuit parameter uncertainties:
  1  1.44332e-06
  2  41.1232
  3  141.363
  4  27.164
  5  2.33342e-06
  6  9.75542
  7  50.9983
  8  0.960103
  9  20.8686
  10  8.98937
  11  1.92411
  12  0.0033846
  13  9.40485e-05
  14  24.8772
  15  6.46035
  16  0.000140143
  17  0.000309918
  18  44.7305
  19  2.49699e-05
  20  9.93484e-05
  21  1.73306e-05
  22  0.330888
  23  0.152404
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.136e-01  1.924e+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:  8.087e-01  1.524e-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:  1.212e+00  3.309e-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.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58324/likelihoodResults_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.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) = 5097.52814149
delta logL = 0.35285967134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5097.48558793
delta logL = 0.395413232251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13646E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5299       1.0000          .0000       10.000    
     3 'Normalizat'    1.1388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83266       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=   5097.486     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      268 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13147E-01    .29702        .23437E-02    .10499E-01
   2  Index         6.5503        3.3574        .21217        .10493E-03
   3  Normalizat    1.1386        .48506E-01    .74019E-01    .17296E-04
   4  Prefactor     .83277        .23595E-01    .44141E-01    .28641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0131467
  Index      = 6.55026
  Normalizat = 1.13855
  Prefactor  = 0.832769
 **********
 **   18 **HESSE 
 **********

 FCN=   5097.486     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      303 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13147E-01    1.1401        .10994E-03   -1.5685    
   2  Index         6.5503        8.1498        .79107E-02    .31525    
   3  Normalizat    1.1386        .21628        .32757E-03   -.88524    
   4  Prefactor     .83277        .10355        .18243E-03   -.98531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.7009e-10
Minuit parameter uncertainties:
  1  0.243931
  2  10.4771
  3  0.216447
  4  0.103573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58324': 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) = 5097.48558049
delta logL = 0.395420672489

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.315e-02  2.439e-01  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  6.550e+00  1.048e+01  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:  8.328e-01  1.036e-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:  1.139e+00  2.164e-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/58324/cmap_HighResolution_506822401_507081601_4FGL_J1147.2-2627_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-04 10:53:53.325212', job_id='58324', GAL2='0.83', fit_tolerance='1e-08', EG2='1.14', EG='1.21', time_epoch_completed='1630778033.33', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.95e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1032' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:53:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 58324: <4FGL_J1147.2-2627_daily_bin1032> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1032 176.811 -26.4649 506822401 507081601 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 :                                   642.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            732 sec.

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

