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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1026
RA = 176.811, Dec = -26.4649
tmin = 505267201, tmax = 505526401
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='58316', job_status='RUN', time_executed='2021-09-04 10:41:54.524511', time_epoch_executed='1630777314.52' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58316/ft1_4FGL_J1147.2-2627_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58316/ft1_4FGL_J1147.2-2627_daily_bin1026.fits outfile=/scratch/kocevski/58316/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1026.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=505267201.0 tmax=505526401.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.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58316/ft1_filtered_4FGL_J1147.2-2627_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/58316/ltcube_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.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/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits
.....................!
real 11.60
user 11.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58316/ft1_filtered_4FGL_J1147.2-2627_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/58316/ltcube_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.fits outfile=/scratch/kocevski/58316/expmap_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.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/58316/ltcube_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.fits
.....................!
real 189.94
user 184.72
sys 4.88

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/58316/ft1_filtered_4FGL_J1147.2-2627_daily_bin1026.fits scfile=/scratch/kocevski/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits outfile=/scratch/kocevski/58316/cmap_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=176.811 yref=-26.4649 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58316/ft1_filtered_4FGL_J1147.2-2627_daily_bin1026.fits scfile=/scratch/kocevski/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits outfile=/scratch/kocevski/58316/cmap_HighResolution_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58316/ft1_filtered_4FGL_J1147.2-2627_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/58316/ft2_4FGL_J1147.2-2627_daily_bin1026.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58316/Model_4FGL_J1147.2-2627_daily_bin1026.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/58316/ft1_filtered_4FGL_J1147.2-2627_daily_bin1026.fits.....................!
real 74.35
user 73.07
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18190       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.684       1.0000         .10000E-03   10000.    
     8 'norm      '    .33283       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1307       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    32.495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .50546       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79934E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98543       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .52414       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2100       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=   8992.697     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     3060 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3218        .10617E-02** at limit **
   2  Prefactor     .10000E-03    64.468        .18142E-02** at limit **
   3  Prefactor     18.507        58.126        .93097E-04    .11723E-04
   4  Prefactor     .26476        17.549        .12403        .25309E-03
   5  Prefactor     .10000E-03    2.9372        .15829E-02** at limit **
   6  Prefactor     .10000E-03    54.845        .18142E-02** at limit **
   7  Prefactor     11.683        23.440        .11720E-03   -.27549E-04
   8  norm          .33286        .76829        .12162E-03    .10843E-04
   9  Prefactor     .10000E-03    3.6379        .17628E-02** at limit **
  10  norm          3.1307        5.6818        .22913E-03   -.48129E-04
  11  Prefactor     4.8614        4.5314        .18249E-03   -.61514E-03
  12  Prefactor     .10000E-03    23.798        .18142E-02** at limit **
  13  norm          32.496        26.131        .70292E-04   -.93741E-04
  14  Prefactor     .10000E-03    4.8393        .18142E-02** at limit **
  15  norm          .50585        1.5745        .19396E-02    .49943E-03
  16  Prefactor     .42158E-01    6.1840        .40428E-01   -.38036E-03
  17  Prefactor     32.770        36.933        .70013E-04   -.11945E-03
  18  Prefactor     64.989        30.084        .49816E-04   -.53850E-03
  19  Prefactor     .10000E-03    12.095        .18142E-02** at limit **
  20  Prefactor     .10000E-03    19.718        .18142E-02** at limit **
  21  Prefactor     .99401        59.375        .54760E-02   -.54906E-03
  22  Normalizat    .52435        .22234        .42843E-03   -.62056E-03
  23  Prefactor     1.2099        .11977        .15772E-03   -.18192E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 18.5072
  Prefactor  = 0.264763
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.6826
  norm       = 0.332859
  Prefactor  = 0.0001
  norm       = 3.13066
  Prefactor  = 4.86139
  Prefactor  = 0.0001
  norm       = 32.4955
  Prefactor  = 0.0001
  norm       = 0.505846
  Prefactor  = 0.0421583
  Prefactor  = 32.7701
  Prefactor  = 64.9886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.994005
  Normalizat = 0.524349
  Prefactor  = 1.20991
 **********
 **   18 **HESSE 
 **********

 FCN=   8992.697     FROM HESSE     STATUS=OK           370 CALLS     3430 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3219        .21233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    64.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.507        58.031        .37239E-05   -1.4847    
   4  Prefactor     .26476        17.251        .12583       -1.5605    
   5  Prefactor     .10000E-03    2.9377        .31658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.683        23.437        .46879E-05   -1.5024    
   8  norm          .33286        .76807        .48647E-05   -1.5593    
   9  Prefactor     .10000E-03    3.6384        .35256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1307        5.6810        .91651E-05   -1.5354    
  11  Prefactor     4.8614        4.5291        .72995E-05   -1.5267    
  12  Prefactor     .10000E-03    23.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          32.496        26.129        .14058E-04   -1.4567    
  14  Prefactor     .10000E-03    4.8403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .50585        1.5712        .77583E-04   -1.5566    
  16  Prefactor     .42158E-01    4.2090        .50284E-01   -1.5667    
  17  Prefactor     32.770        36.915        .14003E-04   -1.4562    
  18  Prefactor     64.989        29.655        .99631E-05   -1.4094    
  19  Prefactor     .10000E-03    12.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .99401        59.658        .21904E-03   -1.5509    
  22  Normalizat    .52435        .22216        .17137E-04   -1.1130    
  23  Prefactor     1.2099        .11971        .31544E-04   -.86027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40612e-09
Minuit parameter uncertainties:
  1  3.89898e-06
  2  0.00104764
  3  58.2089
  4  4.27482
  5  8.39075e-06
  6  0.00052909
  7  23.4556
  8  0.768091
  9  6.86887e-06
  10  5.68202
  11  4.52945
  12  5.70288e-05
  13  26.1384
  14  3.85289e-05
  15  1.57128
  16  0.841545
  17  36.9411
  18  29.6621
  19  3.81572e-05
  20  4.2574e-05
  21  15.4167
  22  0.222534
  23  0.119734
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.861e+00  4.529e+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.210e+00  1.197e-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:  5.243e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 176.811 -26.465
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/58316/likelihoodResults_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8992.69672133
delta logL = 0.000754854148909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8992.69641882
delta logL = 0.00105736480509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9888       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5311       1.0000          .0000       10.000    
     3 'Normalizat'    .52529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2095       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=   8992.696     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9890        5.5808        .18005E-03   -.42015E-03
   2  Index         2.5309        .72652        .93277E-02   -.58679E-04
   3  Normalizat    .52538        .21786        .42803E-03    .89561E-04
   4  Prefactor     1.2095        .11802        .15774E-03    .26946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98905
  Index      = 2.53093
  Normalizat = 0.525381
  Prefactor  = 1.2095
 **********
 **   18 **HESSE 
 **********

 FCN=   8992.696     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9890        5.3482        .72019E-05   -1.5261    
   2  Index         2.5309        .69622        .37311E-03   -.51647    
   3  Normalizat    .52538        .21788        .17121E-04   -1.1125    
   4  Prefactor     1.2095        .11801        .31549E-04   -.86040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55507e-10
Minuit parameter uncertainties:
  1  5.34868
  2  0.699227
  3  0.218233
  4  0.118034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58316': 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) = 8992.69641872
delta logL = 0.00105747186899

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.989e+00  5.349e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  2.531e+00  6.992e-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:  1.209e+00  1.180e-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:  5.254e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 2.53 +/- 0.70
Photon Flux (Free Index): 3.98e-08 +/- 3.92e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.13e-05

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/58316/cmap_HighResolution_505267201_505526401_4FGL_J1147.2-2627_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='1.12e-05', photon_flux_error='3.76e-08', dlogl='1.06e-03', energy_flux='1.10e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2021-09-04 10:57:20.842728', photon_index_error2='0.70', photon_index2='2.53', ts='1.54', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.13e-05', EG='0.52', time_epoch_completed='1630778240.84', return_code='0', job_id='58316', GAL2='1.21', EG2='0.53', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.92e-08', ts2='1.54', photon_index='2.56' WHERE bin_id='1026' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 58316: <4FGL_J1147.2-2627_daily_bin1026> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1026> 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) <bullet0270>, 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:57:21 2021
Results reported at Sat Sep  4 10:57:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1026 176.811 -26.4649 505267201 505526401 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 :                                   924.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

