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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1439
RA = 176.811, Dec = -26.4649
tmin = 612316801, tmax = 612576001
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='62298', job_status='RUN', time_executed='2021-09-04 10:52:55.676390', time_epoch_executed='1630777975.68' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62298/ft1_4FGL_J1147.2-2627_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62298/ft1_4FGL_J1147.2-2627_daily_bin1439.fits outfile=/scratch/kocevski/62298/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1439.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=612316801.0 tmax=612576001.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 5.26
user 3.07
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.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/62298/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/62298/ft1_filtered_4FGL_J1147.2-2627_daily_bin1439.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 1.48
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62298/ft1_filtered_4FGL_J1147.2-2627_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/62298/ltcube_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.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/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.fits
.....................!
real 12.74
user 11.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62298/ft1_filtered_4FGL_J1147.2-2627_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/62298/ltcube_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.fits outfile=/scratch/kocevski/62298/expmap_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.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/62298/ltcube_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.fits
.....................!
real 191.08
user 185.44
sys 4.73

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62298/ft1_filtered_4FGL_J1147.2-2627_daily_bin1439.fits scfile=/scratch/kocevski/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.fits outfile=/scratch/kocevski/62298/cmap_HighResolution_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62298/ft1_filtered_4FGL_J1147.2-2627_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/62298/ft2_4FGL_J1147.2-2627_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62298/Model_4FGL_J1147.2-2627_daily_bin1439.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/62298/ft1_filtered_4FGL_J1147.2-2627_daily_bin1439.fits.....................!
real 53.43
user 52.04
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13926E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24429E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .89014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4306       1.0000         .10000E-03   10000.    
    10 'norm      '    15.164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    45.889       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.971       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3521       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2427       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75084       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96989       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=   5610.870     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2594 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1077        7.7273       -.28623E-05   -.73452E-04
   2  Prefactor     .10000E-03    133.56        .82222E-05** at limit **
   3  Prefactor     .10000E-03    719.30       -.67837E-04** at limit **
   4  Prefactor     .10000E-03    14.381       -.45690E-06** at limit **
   5  Prefactor     .10000E-03    5.1273        .42202E-07** at limit **
   6  Prefactor     52.699        58.574       -.14441E-06    .57088E-04
   7  Prefactor     .10000E-03    35.632        .37847E-04** at limit **
   8  norm          .88873        1.3634       -.33827E-06   -.11173E-02
   9  Prefactor     9.4233        19.542       -.17786E-04   -.78214E-04
  10  norm          15.162        11.833        .27491E-05    .19493E-04
  11  Prefactor     2.3128        6.7520       -.20495E-05   -.48399E-03
  12  Prefactor     .10000E-03    23.611       -.44327E-05** at limit **
  13  norm          45.889        36.971        .55172E-06    .19106E-04
  14  Prefactor     71.975        26.695        .53005E-06    .19850E-03
  15  norm          3.7699        5.6332       -.90519E-06   -.25224E-03
  16  Prefactor     1.3519        5.0605       -.21936E-05   -.86941E-03
  17  Prefactor     9.2393        61.749        .42950E-05    .21663E-04
  18  Prefactor     .10000E-03    35.972       -.70690E-05** at limit **
  19  Prefactor     .10000E-03    20.332        .30253E-05** at limit **
  20  Prefactor     .10000E-03    36.565       -.30534E-04** at limit **
  21  Prefactor     .10000E-03    15.705       -.16126E-05** at limit **
  22  Normalizat    .75064        .25449        .40433E-05    .21339E-03
  23  Prefactor     .97002        .12319        .12175E-05    .30721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.6991
  Prefactor  = 0.0001
  norm       = 0.888735
  Prefactor  = 9.42328
  norm       = 15.1625
  Prefactor  = 2.31279
  Prefactor  = 0.0001
  norm       = 45.8886
  Prefactor  = 71.975
  norm       = 3.76985
  Prefactor  = 1.35187
  Prefactor  = 9.23929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.750639
  Prefactor  = 0.970022
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.870     FROM HESSE     STATUS=OK           368 CALLS     2962 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1077        7.7492        .14081E-03   -1.5138    
   2  Prefactor     .10000E-03    136.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    728.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1451        .16564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.699        57.554        .55262E-04   -1.4255    
   7  Prefactor     .10000E-03    35.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .88873        1.2429        .96033E-03   -1.5519    
   9  Prefactor     9.4233        19.623        .13050E-03   -1.5094    
  10  norm          15.162        11.817        .10285E-03   -1.4929    
  11  Prefactor     2.3128        6.7485        .26967E-03   -1.5404    
  12  Prefactor     .10000E-03    23.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          45.889        37.017        .59187E-04   -1.4352    
  14  Prefactor     71.975        26.570        .47322E-04   -1.4009    
  15  norm          3.7699        5.5888        .18435E-03   -1.5320    
  16  Prefactor     1.3519        5.0734        .31074E-03   -1.5475    
  17  Prefactor     9.2393        61.584        .13183E-03   -1.5100    
  18  Prefactor     .10000E-03    36.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75064        .29441        .37657E-03   -1.0193    
  23  Prefactor     .97002        .14531        .17090E-03   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85621e-09
Minuit parameter uncertainties:
  1  7.75013
  2  0.0002461
  3  0.000118761
  4  9.83307e-06
  5  7.68684e-06
  6  57.6143
  7  0.000118737
  8  1.24298
  9  19.636
  10  11.8192
  11  6.75071
  12  3.11929e-05
  13  37.0359
  14  26.5748
  15  5.58959
  16  5.07504
  17  47.7783
  18  2.83982e-05
  19  5.2481e-05
  20  5.25153e-05
  21  2.6855e-05
  22  0.295034
  23  0.145365
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  2.313e+00  6.751e+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:  9.700e-01  1.454e-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:  7.506e-01  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 176.811 -26.465
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62298/likelihoodResults_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.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) = 5609.91802756
delta logL = 0.951812971017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5609.83106482
delta logL = 1.03877571807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45979E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3357       1.0000          .0000       10.000    
     3 'Normalizat'    .66877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0003       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=   5609.831     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      353 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44615E-02    .72934E-01    .96579E-03    .15223E-01
   2  Index         7.3540        3.3218        .18127        .12130E-03
   3  Normalizat    .66816        .58985E-01    .89655E-01    .53048E-04
   4  Prefactor     1.0007        .30239E-01    .45804E-01    .16401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00446149
  Index      = 7.35404
  Normalizat = 0.668164
  Prefactor  = 1.00072
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.831     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      388 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44615E-02    .18282        .44623E-04   -1.5695    
   2  Index         7.3540        8.4258        .70435E-02    .49021    
   3  Normalizat    .66816        .21615        .39717E-03   -1.0516    
   4  Prefactor     1.0007        .10970        .16847E-03   -.92706    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53878e-10
Minuit parameter uncertainties:
  1  0.0564749
  2  7.09695
  3  0.216425
  4  0.109727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62298': 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) = 5609.83105174
delta logL = 1.03878879906

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  4.461e-03  5.647e-02  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  7.354e+00  7.097e+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.001e+00  1.097e-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:  6.682e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 7.35 +/- 7.10
Photon Flux (Free Index): 8.23e-08 +/- 7.17e-08
Energy Flux (Free Index): 9.72e-06 +/- 9.34e-06

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/62298/cmap_HighResolution_612316801_612576001_4FGL_J1147.2-2627_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='9.72e-06', dlogl='1.04e+00', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-09-04 11:04:01.131483', photon_index_error2='7.10', photon_index2='7.35', ts='0.14', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='9.34e-06', EG='0.75', time_epoch_completed='1630778641.13', return_code='0', job_id='62298', GAL2='1.00', EG2='0.67', return_code2='102', photon_flux_error2='7.17e-08', ts2='2.33', photon_index='2.56' WHERE bin_id='1439' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:04:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 62298: <4FGL_J1147.2-2627_daily_bin1439> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1439> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 10:52:02 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:52:04 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:52:04 2021
Terminated at Sat Sep  4 11:04:01 2021
Results reported at Sat Sep  4 11:04:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1439 176.811 -26.4649 612316801 612576001 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 :                                   654.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

