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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1070
RA = 176.811, Dec = -26.4649
tmin = 516672001, tmax = 516931201
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='59748', job_status='RUN', time_executed='2021-09-04 10:48:10.654049', time_epoch_executed='1630777690.65' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59748/ft1_4FGL_J1147.2-2627_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59748/ft1_4FGL_J1147.2-2627_daily_bin1070.fits outfile=/scratch/kocevski/59748/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1070.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=516672001.0 tmax=516931201.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.56
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.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/59748/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.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.74
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/59748/ltcube_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.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/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits
.....................!
real 14.15
user 11.66
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/59748/ltcube_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.fits outfile=/scratch/kocevski/59748/expmap_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.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/59748/ltcube_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.fits
.....................!
real 193.95
user 185.94
sys 6.20

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/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.fits scfile=/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits outfile=/scratch/kocevski/59748/cmap_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.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.90
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.fits scfile=/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits outfile=/scratch/kocevski/59748/cmap_HighResolution_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.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 1.03
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/59748/ft2_4FGL_J1147.2-2627_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59748/Model_4FGL_J1147.2-2627_daily_bin1070.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/59748/ft1_filtered_4FGL_J1147.2-2627_daily_bin1070.fits.....................!
real 59.88
user 55.80
sys 1.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    227.36       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10478E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2053       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.033       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2190       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.516       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4452       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4515       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73994       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=   5902.635     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2644 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43103        5.4077        .11291E-05   -.20052E-03
   2  Prefactor     .10000E-03    15.042       -.44005E-06** at limit **
   3  Prefactor     227.26        136.80       -.77518E-07   -.20718E-03
   4  Prefactor     34.978        34.445        .55733E-07   -.32633E-04
   5  Prefactor     .10000E-03    7.3670       -.98917E-07** at limit **
   6  Prefactor     10.379        105.18        .42091E-06   -.25782E-05
   7  Prefactor     .10000E-03    45.393       -.65944E-07** at limit **
   8  norm          .10000E-03    .48544       -.21177E-06** at limit **
   9  Prefactor     .21796E-03    20.132       -.41716E-05** at limit **
  10  norm          .10000E-03    3.9597       -.26373E-07** at limit **
  11  Prefactor     .10000E-03    3.9364       -.12312E-06** at limit **
  12  Prefactor     9.2050        45.078        .36791E-06   -.15787E-04
  13  norm          .10000E-03    6.0849       -.16286E-07** at limit **
  14  Prefactor     29.006        30.800       -.53562E-05   -.14569E-04
  15  norm          1.0539        17.243        .90443E-05    .33488E-03
  16  Prefactor     7.2194        8.3882        .20615E-06   -.30917E-03
  17  Prefactor     .10000E-03    86.517        .83381E-06** at limit **
  18  Prefactor     15.516        32.898       -.19854E-06   -.65065E-04
  19  Prefactor     .10000E-03    8.9874        .23120E-07** at limit **
  20  Prefactor     .10000E-03    25.350        .99276E-09** at limit **
  21  Prefactor     1.4435        47.165        .51449E-05   -.15817E-03
  22  Normalizat    1.4511        .24965       -.28776E-06    .91946E-04
  23  Prefactor     .74016        .11639        .71500E-07    .23300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.431027
  Prefactor  = 0.0001
  Prefactor  = 227.264
  Prefactor  = 34.9779
  Prefactor  = 0.0001
  Prefactor  = 10.3785
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000217956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20502
  norm       = 0.0001
  Prefactor  = 29.006
  norm       = 1.05392
  Prefactor  = 7.21941
  Prefactor  = 0.0001
  Prefactor  = 15.5165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4435
  Normalizat = 1.45106
  Prefactor  = 0.740163
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.635     FROM HESSE     STATUS=OK           376 CALLS     3020 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43103        14.147        .33476E-02   -1.5577    
   2  Prefactor     .10000E-03    15.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     227.26        138.52        .13417E-03   -1.2681    
   4  Prefactor     34.978        34.454        .67760E-04   -1.4524    
   5  Prefactor     .10000E-03    7.3924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.379        104.98        .62173E-03   -1.5064    
   7  Prefactor     .10000E-03    45.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .49607        .10424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21796E-03    18.751        .77325E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9946        .14927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9633        .14848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2050        44.788        .13210E-03   -1.5101    
  13  norm          .10000E-03    6.0861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.006        30.969        .74355E-04   -1.4630    
  15  norm          1.0539        17.685        .41147E-03   -1.5503    
  16  Prefactor     7.2194        8.3490        .14929E-03   -1.5171    
  17  Prefactor     .10000E-03    86.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.516        32.720        .10168E-03   -1.4920    
  19  Prefactor     .10000E-03    8.9917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4435        44.266        .17932E-02   -1.5468    
  22  Normalizat    1.4511        .29841        .29860E-03   -.79163    
  23  Prefactor     .74016        .13923        .19295E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02107e-08
Minuit parameter uncertainties:
  1  4.93947
  2  5.06347e-05
  3  138.725
  4  34.4739
  5  9.9499e-06
  6  66.1664
  7  2.92213e-05
  8  4.53813e-06
  9  0.0940882
  10  4.68032e-06
  11  6.89604e-06
  12  40.658
  13  2.27291e-06
  14  30.9862
  15  8.63717
  16  8.35031
  17  1.84933e-05
  18  32.7581
  19  3.71532e-06
  20  1.53534e-05
  21  15.9996
  22  0.298771
  23  0.139298
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.896e-06  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:  7.402e-01  1.393e-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.451e+00  2.988e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59748/likelihoodResults_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.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) = 5902.63640707
delta logL = -0.00120221128145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5902.63520542
delta logL = -5.61194610782e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5713       1.0000          .0000       10.000    
     3 'Normalizat'    1.4509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74025       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=   5902.635     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.862        .90712E-02** at limit **
   2  Index         2.5792        5.2566        .50000       -.18148E-04
   3  Normalizat    1.4511        .23850        .67500E-01    .10512E-03
   4  Prefactor     .74016        .11496        .42935E-01    .12631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57922
  Normalizat = 1.45106
  Prefactor  = 0.740162
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.635     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.332        .14882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5792        5.7086        .50000       -.50540    
   3  Normalizat    1.4511        .28379        .29860E-03   -.79163    
   4  Prefactor     .74016        .13699        .19295E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37052e-10
Minuit parameter uncertainties:
  1  1.61929e-05
  2  7.70463
  3  0.284102
  4  0.137053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59748': 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) = 5902.63520479
delta logL = 6.56782503938e-08

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.619e-05  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.579e+00  7.705e+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:  7.402e-01  1.371e-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.451e+00  2.841e-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/59748/cmap_HighResolution_516672001_516931201_4FGL_J1147.2-2627_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 10:59:37.459860', job_id='59748', GAL2='0.74', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630778377.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='6.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1070' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:59:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 59748: <4FGL_J1147.2-2627_daily_bin1070> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1070> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:46:14 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:46:16 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:16 2021
Terminated at Sat Sep  4 10:59:37 2021
Results reported at Sat Sep  4 10:59:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1070 176.811 -26.4649 516672001 516931201 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 :                                   676.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

