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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1049
RA = 176.811, Dec = -26.4649
tmin = 511228801, tmax = 511488001
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='58348', job_status='RUN', time_executed='2021-09-04 10:44:06.963471', time_epoch_executed='1630777446.96' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58348/ft1_4FGL_J1147.2-2627_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58348/ft1_4FGL_J1147.2-2627_daily_bin1049.fits outfile=/scratch/kocevski/58348/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1049.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=511228801.0 tmax=511488001.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.53
user 3.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.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/58348/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/58348/ltcube_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.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/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits
.....................!
real 13.74
user 13.08
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/58348/ltcube_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.fits outfile=/scratch/kocevski/58348/expmap_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.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/58348/ltcube_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.fits
.....................!
real 196.76
user 189.13
sys 6.70

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/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits scfile=/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits outfile=/scratch/kocevski/58348/cmap_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.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.67
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits scfile=/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits outfile=/scratch/kocevski/58348/cmap_HighResolution_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.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.66
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/58348/ft2_4FGL_J1147.2-2627_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58348/Model_4FGL_J1147.2-2627_daily_bin1049.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/58348/ft1_filtered_4FGL_J1147.2-2627_daily_bin1049.fits.....................!
real 56.75
user 53.03
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.208       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .71310E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9523       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.629       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5916       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86267       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.

 FCN=   5664.902     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2575 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1241       -.17420E-06** at limit **
   2  Prefactor     .10000E-03    38.402        .24266E-05** at limit **
   3  Prefactor     71.555        97.724       -.44320E-06    .78781E-05
   4  Prefactor     .10000E-03    198.61       -.22445E-05** at limit **
   5  Prefactor     .10000E-03    11.810       -.20235E-06** at limit **
   6  Prefactor     49.280        77.804       -.14493E-05    .16234E-04
   7  Prefactor     .10000E-03    16.633        .88043E-08** at limit **
   8  norm          1.2058        1.4788        .59637E-06    .74857E-03
   9  Prefactor     .10015E-03    14.482        .16343E-05** at limit **
  10  norm          .10000E-03    3.1606       -.10877E-06** at limit **
  11  Prefactor     .17056        7.4738       -.10141E-05    .26197E-03
  12  Prefactor     .10000E-03    15.891       -.85700E-07** at limit **
  13  norm          .10000E-03    18.730       -.43004E-06** at limit **
  14  Prefactor     .10000E-03    39.876        .13681E-05** at limit **
  15  norm          3.9509        5.6233        .25675E-06    .27216E-04
  16  Prefactor     .10000E-03    3.4020        .87977E-06** at limit **
  17  Prefactor     .10000E-03    39.033        .13854E-05** at limit **
  18  Prefactor     6.4319        63.092        .12284E-05    .14650E-04
  19  Prefactor     .10000E-03    34.795        .56012E-05** at limit **
  20  Prefactor     30.720        83.767        .12414E-06    .76176E-05
  21  Prefactor     .10000E-03    30.921        .15620E-06** at limit **
  22  Normalizat    1.5918        .30328       -.33151E-05    .99018E-04
  23  Prefactor     .86256        .14244        .23241E-05   -.40730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.5551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2796
  Prefactor  = 0.0001
  norm       = 1.20583
  Prefactor  = 0.000100154
  norm       = 0.0001
  Prefactor  = 0.17056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43189
  Prefactor  = 0.000100003
  Prefactor  = 30.7197
  Prefactor  = 0.0001
  Normalizat = 1.59184
  Prefactor  = 0.862562
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.902     FROM HESSE     STATUS=OK           364 CALLS     2939 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1505        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.555        97.701        .23739E-03   -1.4014    
   4  Prefactor     .10000E-03    201.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.280        77.636        .57166E-04   -1.4303    
   7  Prefactor     .10000E-03    16.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2058        1.4699        .93857E-04   -1.5488    
   9  Prefactor     .10015E-03    81.353        .51909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1655        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17056        70.545        .37097E-02   -1.5625    
  12  Prefactor     .10000E-03    15.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    18.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9509        5.5849        .20068E-03   -1.5310    
  16  Prefactor     .10000E-03    3.4265        .13564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4319        62.510        .15897E-03   -1.5201    
  19  Prefactor     .10000E-03    35.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.720        83.455        .72397E-04   -1.4599    
  21  Prefactor     .10000E-03    31.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5918        .34184        .31617E-03   -.75229    
  23  Prefactor     .86256        .15788        .19812E-03   -.97462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69353e-09
Minuit parameter uncertainties:
  1  5.38998e-06
  2  0.000267967
  3  97.9216
  4  0.000498733
  5  7.03813e-06
  6  77.7959
  7  3.35903e-05
  8  1.46998
  9  0.00708627
  10  5.74617e-06
  11  6.94367
  12  2.42714e-05
  13  6.39348e-05
  14  9.55772e-05
  15  5.58568
  16  2.8917e-05
  17  0.000139073
  18  40.1574
  19  0.000611
  20  83.7742
  21  1.38152e-05
  22  0.342341
  23  0.157965
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.706e-01  6.944e+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.626e-01  1.580e-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.592e+00  3.423e-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.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58348/likelihoodResults_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.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) = 5664.90018309
delta logL = 0.00160574617712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5664.89903636
delta logL = 0.0027524717334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44429       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8287       1.0000          .0000       10.000    
     3 'Normalizat'    1.5883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86307       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=   5664.899     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      251 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44445        14.652        .78080E-01   -.45056E-03
   2  Index         2.8303        2.3634        .50000        .17387E-04
   3  Normalizat    1.5885        .15455E-01    .71527E-01    .86666E-05
   4  Prefactor     .86303        .74556E-02    .44533E-01   -.50877E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.444454
  Index      = 2.83031
  Normalizat = 1.58852
  Prefactor  = 0.863028
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.899     FROM HESSE     STATUS=OK            35 CALLS      286 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44445        27.108        .25660E-02   -1.5575    
   2  Index         2.8303        3.2311        .18507E-01   -.44886    
   3  Normalizat    1.5885        .33215        .31645E-03   -.75321    
   4  Prefactor     .86303        .15763        .19807E-03   -.97445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54828e-09
Minuit parameter uncertainties:
  1  6.94461
  2  3.60329
  3  0.332616
  4  0.157713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58348': 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) = 5664.89903591
delta logL = 0.00275292481638

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.445e-01  6.945e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.830e+00  3.603e+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:  8.630e-01  1.577e-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.589e+00  3.326e-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/58348/cmap_HighResolution_511228801_511488001_4FGL_J1147.2-2627_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-04 10:55:17.735497', job_id='58348', GAL2='0.86', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630778117.74', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.75e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1049' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:55:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 58348: <4FGL_J1147.2-2627_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1049 176.811 -26.4649 511228801 511488001 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 :                                   661.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

