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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1062
RA = 176.811, Dec = -26.4649
tmin = 514598401, tmax = 514857601
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='58367', job_status='RUN', time_executed='2021-09-04 10:44:21.094286', time_epoch_executed='1630777461.09' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58367/ft1_4FGL_J1147.2-2627_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58367/ft1_4FGL_J1147.2-2627_daily_bin1062.fits outfile=/scratch/kocevski/58367/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1062.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=514598401.0 tmax=514857601.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.99
user 3.71
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58367/ft1_filtered_4FGL_J1147.2-2627_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/58367/ltcube_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.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/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits
.....................!
real 12.62
user 12.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58367/ft1_filtered_4FGL_J1147.2-2627_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/58367/ltcube_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.fits outfile=/scratch/kocevski/58367/expmap_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.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/58367/ltcube_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.fits
.....................!
real 193.02
user 187.50
sys 4.86

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/58367/ft1_filtered_4FGL_J1147.2-2627_daily_bin1062.fits scfile=/scratch/kocevski/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits outfile=/scratch/kocevski/58367/cmap_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.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 1.82
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58367/ft1_filtered_4FGL_J1147.2-2627_daily_bin1062.fits scfile=/scratch/kocevski/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits outfile=/scratch/kocevski/58367/cmap_HighResolution_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.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.90
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58367/ft1_filtered_4FGL_J1147.2-2627_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/58367/ft2_4FGL_J1147.2-2627_daily_bin1062.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58367/Model_4FGL_J1147.2-2627_daily_bin1062.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/58367/ft1_filtered_4FGL_J1147.2-2627_daily_bin1062.fits....................!
real 70.24
user 66.21
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .12365E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9901       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.685       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.307       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.182       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1601       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91715       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=   7663.653     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2475 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2040       -.11053E-07** at limit **
   2  Prefactor     .10000E-03    15.500       -.30568E-05** at limit **
   3  Prefactor     45.390        65.245       -.15799E-04   -.41961E-03
   4  Prefactor     .10000E-03    17.747        .68790E-06** at limit **
   5  Prefactor     5.8727        6.7695        .10149E-07   -.36376E-05
   6  Prefactor     .10000E-03    17.183        .52577E-07** at limit **
   7  Prefactor     .10000E-03    25.769       -.20944E-05** at limit **
   8  norm          1.1133        1.1326        .12521E-06    .24677E-03
   9  Prefactor     .10000E-03    5.5832       -.10000E-06** at limit **
  10  norm          3.7542        5.8103        .62832E-05   -.10175E-02
  11  Prefactor     2.2844        5.8987        .92025E-06   -.11184E-03
  12  Prefactor     .10000E-03    21.501        .14793E-05** at limit **
  13  norm          5.9892        24.284       -.77641E-07   -.14115E-04
  14  Prefactor     .10000E-03    9.5737        .34611E-06** at limit **
  15  norm          5.5656        3.7310        .10511E-07   -.61353E-04
  16  Prefactor     12.092        7.9224       -.75404E-07   -.63959E-04
  17  Prefactor     20.688        35.709        .86123E-06    .27542E-04
  18  Prefactor     48.307        46.899        .11727E-06   -.10949E-05
  19  Prefactor     .10000E-03    6.5970       -.27701E-07** at limit **
  20  Prefactor     .10000E-03    22.464        .12487E-05** at limit **
  21  Prefactor     36.183        21.857        .17546E-06    .25324E-04
  22  Normalizat    1.1597        .21652        .16112E-05   -.14972E-03
  23  Prefactor     .91732        .10648       -.13133E-05    .14402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3896
  Prefactor  = 0.0001
  Prefactor  = 5.87269
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.11335
  Prefactor  = 0.0001
  norm       = 3.75417
  Prefactor  = 2.28439
  Prefactor  = 0.0001
  norm       = 5.98924
  Prefactor  = 0.0001
  norm       = 5.56565
  Prefactor  = 12.0924
  Prefactor  = 20.6878
  Prefactor  = 48.3074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.1833
  Normalizat = 1.15974
  Prefactor  = 0.917318
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.653     FROM HESSE     STATUS=OK           368 CALLS     2843 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2053        .93808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.390        69.712        .29729E-03   -1.4360    
   4  Prefactor     .10000E-03    17.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8727        6.7714        .16572E-03   -1.5223    
   6  Prefactor     .10000E-03    17.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1133        1.1059        .88963E-04   -1.5497    
   9  Prefactor     .10000E-03    5.6245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7542        6.0686        .10418E-02   -1.5320    
  11  Prefactor     2.2844        5.8900        .27163E-03   -1.5406    
  12  Prefactor     .10000E-03    21.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9892        24.301        .16406E-03   -1.5218    
  14  Prefactor     .10000E-03    9.7358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.5656        3.7255        .13255E-03   -1.5236    
  16  Prefactor     12.092        7.8961        .11520E-03   -1.5012    
  17  Prefactor     20.688        35.689        .88065E-04   -1.4798    
  18  Prefactor     48.307        46.828        .57694E-04   -1.4317    
  19  Prefactor     .10000E-03    6.6002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.183        21.854        .66626E-04   -1.4504    
  22  Normalizat    1.1597        .25629        .32126E-03   -.87856    
  23  Prefactor     .91732        .12666        .18193E-03   -.95539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27748e-09
Minuit parameter uncertainties:
  1  9.3008e-07
  2  2.32284e-05
  3  69.8371
  4  7.52327e-05
  5  6.77225
  6  3.50414e-05
  7  0.000321125
  8  1.1059
  9  1.74523e-05
  10  6.06957
  11  5.89151
  12  0.000183521
  13  24.1452
  14  1.26109e-05
  15  3.72565
  16  7.89673
  17  35.7257
  18  46.8634
  19  7.44327e-06
  20  0.000148373
  21  21.8592
  22  0.256568
  23  0.126698
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  2.284e+00  5.892e+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.173e-01  1.267e-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.160e+00  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58367/likelihoodResults_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.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) = 7663.31503584
delta logL = 0.337674644798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7663.28418475
delta logL = 0.36852572815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4337       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6697       1.0000          .0000       10.000    
     3 'Normalizat'    1.1119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93154       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=   7663.284     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4314        28.699        .90155E-02    .10414E-02
   2  Index         3.6709        3.3346        .20936        .10340E-03
   3  Normalizat    1.1119        .47766E-01    .73905E-01    .19329E-04
   4  Prefactor     .93155        .24445E-01    .45406E-01    .60322E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43139
  Index      = 3.67091
  Normalizat = 1.11193
  Prefactor  = 0.931549
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.284     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4314        5.5446        .11203E-03   -1.5469    
   2  Index         3.6709        2.2645        .79825E-02   -.26905    
   3  Normalizat    1.1119        .25326        .32707E-03   -.89370    
   4  Prefactor     .93155        .12672        .18063E-03   -.95047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05283e-08
Minuit parameter uncertainties:
  1  5.54659
  2  2.35732
  3  0.253541
  4  0.126764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58367': 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) = 7663.28418435
delta logL = 0.368526132408

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.431e+00  5.547e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  3.671e+00  2.357e+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:  9.315e-01  1.268e-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.112e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 176.811 -26.465

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/58367/cmap_HighResolution_514598401_514857601_4FGL_J1147.2-2627_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.97e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-04 10:57:27.303937', job_id='58367', GAL2='0.93', fit_tolerance='1e-08', EG2='1.11', EG='1.16', time_epoch_completed='1630778247.3', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.69e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1062' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:57:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 58367: <4FGL_J1147.2-2627_daily_bin1062> in cluster <slac> Done

Job <4FGL_J1147.2-2627_daily_bin1062> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 10:41:45 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:41:47 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:47 2021
Terminated at Sat Sep  4 10:57:28 2021
Results reported at Sat Sep  4 10:57:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1062 176.811 -26.4649 514598401 514857601 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 :                                   777.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

