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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1223
RA = 176.811, Dec = -26.4649
tmin = 556329601, tmax = 556588801
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='59990', job_status='RUN', time_executed='2021-09-04 10:46:46.961026', time_epoch_executed='1630777606.96' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59990/ft1_4FGL_J1147.2-2627_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59990/ft1_4FGL_J1147.2-2627_daily_bin1223.fits outfile=/scratch/kocevski/59990/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1223.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=556329601.0 tmax=556588801.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.69
user 3.49
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59990/ft1_filtered_4FGL_J1147.2-2627_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/59990/ltcube_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.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/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits
.....................!
real 12.84
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59990/ft1_filtered_4FGL_J1147.2-2627_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/59990/ltcube_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.fits outfile=/scratch/kocevski/59990/expmap_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.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/59990/ltcube_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.fits
.....................!
real 189.73
user 184.65
sys 4.19

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/59990/ft1_filtered_4FGL_J1147.2-2627_daily_bin1223.fits scfile=/scratch/kocevski/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits outfile=/scratch/kocevski/59990/cmap_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.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.69
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59990/ft1_filtered_4FGL_J1147.2-2627_daily_bin1223.fits scfile=/scratch/kocevski/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits outfile=/scratch/kocevski/59990/cmap_HighResolution_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.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.81
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59990/ft1_filtered_4FGL_J1147.2-2627_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/59990/ft2_4FGL_J1147.2-2627_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59990/Model_4FGL_J1147.2-2627_daily_bin1223.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/59990/ft1_filtered_4FGL_J1147.2-2627_daily_bin1223.fits.....................!
real 88.26
user 84.43
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14723E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.095       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0271       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8167       1.0000         .10000E-03   10000.    
     8 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.564       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.168       1.0000         .10000E-03   10000.    
    13 'norm      '    12.017       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6067       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9865       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.980       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2475       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0240       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=   9751.130     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2553 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.6181        .40009E-06** at limit **
   2  Prefactor     .10000E-03    15.422        .56259E-06** at limit **
   3  Prefactor     19.203        62.259       -.15810E-04   -.96969E-05
   4  Prefactor     .10000E-03    11.765       -.94497E-07** at limit **
   5  Prefactor     9.0286        9.7950        .16797E-08   -.29121E-04
   6  Prefactor     .10000E-03    19.646        .24073E-06** at limit **
   7  Prefactor     2.7675        86.084       -.58300E-05    .66604E-05
   8  norm          .10000E-03    .57800        .88545E-06** at limit **
   9  Prefactor     .10000E-03    5.5847       -.11384E-07** at limit **
  10  norm          10.565        6.8277       -.68367E-08    .29676E-04
  11  Prefactor     3.0324        4.5961        .31850E-05   -.50249E-04
  12  Prefactor     12.162        15.769       -.10107E-05    .10825E-04
  13  norm          12.016        13.146       -.85483E-07    .61411E-05
  14  Prefactor     2.6070        13.751       -.42616E-07   -.16891E-04
  15  norm          6.9857        5.9248       -.18692E-07   -.41731E-04
  16  Prefactor     7.1187        6.1186        .24654E-06    .12421E-04
  17  Prefactor     .10000E-03    14.844        .63132E-06** at limit **
  18  Prefactor     .10000E-03    18.340       -.15184E-05** at limit **
  19  Prefactor     .10000E-03    8.4844       -.91215E-07** at limit **
  20  Prefactor     .10000E-03    20.370        .99959E-06** at limit **
  21  Prefactor     28.970        24.894       -.64616E-06    .27572E-04
  22  Normalizat    1.2475        .21348       -.14898E-05   -.16912E-03
  23  Prefactor     1.0240        .10170        .83100E-06   -.24378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 19.2033
  Prefactor  = 0.0001
  Prefactor  = 9.02864
  Prefactor  = 0.0001
  Prefactor  = 2.76752
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5652
  Prefactor  = 3.03244
  Prefactor  = 12.1619
  norm       = 12.0156
  Prefactor  = 2.60699
  norm       = 6.98565
  Prefactor  = 7.11868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9699
  Normalizat = 1.24751
  Prefactor  = 1.02404
 **********
 **   18 **HESSE 
 **********

 FCN=   9751.130     FROM HESSE     STATUS=OK           382 CALLS     2935 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.9064        .55671E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.203        62.637        .91657E-04   -1.4831    
   4  Prefactor     .10000E-03    11.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0286        9.8060        .13340E-03   -1.5107    
   6  Prefactor     .10000E-03    19.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7675        85.539        .24235E-03   -1.5375    
   8  norm          .10000E-03    .89026        .14189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.565        6.8322        .12327E-03   -1.5058    
  11  Prefactor     3.0324        4.6384        .11651E-02   -1.5360    
  12  Prefactor     12.162        15.762        .11484E-03   -1.5010    
  13  norm          12.016        13.148        .11556E-03   -1.5015    
  14  Prefactor     2.6070        13.217        .25267E-03   -1.5385    
  15  norm          6.9857        5.8212        .15178E-03   -1.5179    
  16  Prefactor     7.1187        6.1117        .15033E-03   -1.5174    
  17  Prefactor     .10000E-03    14.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.970        24.873        .74423E-04   -1.4631    
  22  Normalizat    1.2475        .24994        .34477E-03   -.85147    
  23  Prefactor     1.0240        .12018        .18611E-03   -.91932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0889e-10
Minuit parameter uncertainties:
  1  0.000389166
  2  0.000128783
  3  62.8529
  4  4.51863e-06
  5  9.80774
  6  1.47689e-05
  7  30.8199
  8  1.89679e-06
  9  1.62957e-06
  10  6.83266
  11  4.63898
  12  15.7677
  13  13.1514
  14  11.7441
  15  5.8217
  16  6.11223
  17  1.93152e-05
  18  5.50204e-06
  19  7.75036e-06
  20  4.20386e-05
  21  24.8822
  22  0.25018
  23  0.120207
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  3.032e+00  4.639e+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.024e+00  1.202e-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.248e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/59990/likelihoodResults_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.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) = 9750.41194967
delta logL = 0.718365318371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9750.36684566
delta logL = 0.763469328809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86090E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0125       1.0000          .0000       10.000    
     3 'Normalizat'    1.1550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0588       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=   9750.367     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      354 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83386E-02    .73189E-01    .15368E-02    .29487E-01
   2  Index         7.0311        2.3401        .20209        .24563E-03
   3  Normalizat    1.1548        .41939E-01    .80500E-01    .66017E-04
   4  Prefactor     1.0589        .20861E-01    .39419E-01    .70250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00833862
  Index      = 7.0311
  Normalizat = 1.15477
  Prefactor  = 1.05893
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83386E-02    .24781        .69888E-04   -1.5690    
   2  Index         7.0311        7.9991        .69458E-02    .41831    
   3  Normalizat    1.1548        .17710        .35636E-03   -.88012    
   4  Prefactor     1.0589        .86289E-01    .18339E-03   -.90790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.31983e-10
Minuit parameter uncertainties:
  1  0.0903694
  2  6.09829
  3  0.177191
  4  0.0863006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59990': 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) = 9750.36683334
delta logL = 0.763481643085

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  8.339e-03  9.037e-02  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  7.031e+00  6.098e+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.059e+00  8.630e-02  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.155e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 7.03 +/- 6.10
Photon Flux (Free Index): 8.76e-08 +/- 6.67e-08
Energy Flux (Free Index): 1.05e-05 +/- 8.88e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/59990/cmap_HighResolution_556329601_556588801_4FGL_J1147.2-2627_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='7.63e-01', photon_flux2='8.76e-08', job_status='DONE', time_completed='2021-09-04 11:02:08.021963', photon_index_error2='6.10', photon_index2='7.03', ts='0.54', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.88e-06', EG='1.25', time_epoch_completed='1630778528.02', return_code='0', job_id='59990', GAL2='1.06', EG2='1.15', return_code2='102', photon_flux_error2='6.67e-08', ts2='2.25', photon_index='2.56' WHERE bin_id='1223' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 59990: <4FGL_J1147.2-2627_daily_bin1223> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1223> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:34 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:36 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:46:36 2021
Terminated at Sat Sep  4 11:02:08 2021
Results reported at Sat Sep  4 11:02:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1223 176.811 -26.4649 556329601 556588801 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 :                                   915.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

