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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin1095
RA = 176.811, Dec = -26.4649
tmin = 523152001, tmax = 523411201
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='59787', job_status='RUN', time_executed='2021-09-04 10:47:29.112236', time_epoch_executed='1630777649.11' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59787/ft1_4FGL_J1147.2-2627_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59787/ft2_4FGL_J1147.2-2627_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59787/ft1_4FGL_J1147.2-2627_daily_bin1095.fits outfile=/scratch/kocevski/59787/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin1095.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=523152001.0 tmax=523411201.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.22
user 3.98
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59787/ft1_filtered_4FGL_J1147.2-2627_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/59787/ft2_4FGL_J1147.2-2627_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/59787/ltcube_523152001_523411201_4FGL_J1147.2-2627_daily_bin1095.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/59787/ft2_4FGL_J1147.2-2627_daily_bin1095.fits
.....................!
real 14.53
user 12.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59787/ft1_filtered_4FGL_J1147.2-2627_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/59787/ft2_4FGL_J1147.2-2627_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/59787/ltcube_523152001_523411201_4FGL_J1147.2-2627_daily_bin1095.fits outfile=/scratch/kocevski/59787/expmap_523152001_523411201_4FGL_J1147.2-2627_daily_bin1095.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/59787/ltcube_523152001_523411201_4FGL_J1147.2-2627_daily_bin1095.fits
.....................!
real 201.16
user 188.16
sys 4.97

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/59787/ft1_filtered_4FGL_J1147.2-2627_daily_bin1095.fits scfile=/scratch/kocevski/59787/ft2_4FGL_J1147.2-2627_daily_bin1095.fits outfile=/scratch/kocevski/59787/cmap_523152001_523411201_4FGL_J1147.2-2627_daily_bin1095.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.58
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59787/ft1_filtered_4FGL_J1147.2-2627_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/59787/ft2_4FGL_J1147.2-2627_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59787/Model_4FGL_J1147.2-2627_daily_bin1095.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/59787/ft1_filtered_4FGL_J1147.2-2627_daily_bin1095.fits.....................!
real 94.02
user 90.38
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    106.14       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4243       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6652       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1384       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96053       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=   10975.97     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2487 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3934        5.1288        .63924E-07   -.15268E-04
   2  Prefactor     .10000E-03    11.673       -.12949E-05** at limit **
   3  Prefactor     106.13        80.382       -.12551E-04   -.66299E-04
   4  Prefactor     .10000E-03    20.930       -.44121E-05** at limit **
   5  Prefactor     17.771        9.3887        .66551E-07   -.45282E-04
   6  Prefactor     23.996        35.473       -.30954E-05   -.26319E-04
   7  Prefactor     .10000E-03    11.604       -.14959E-05** at limit **
   8  norm          1.1827        .87584        .26128E-06    .36134E-03
   9  Prefactor     .10000E-03    3.4994       -.18304E-07** at limit **
  10  norm          .10001E-03    2.6103        .66949E-06** at limit **
  11  Prefactor     9.9227        5.1354       -.39396E-07   -.94449E-03
  12  Prefactor     .10000E-03    12.589       -.12793E-06** at limit **
  13  norm          .10000E-03    4.9920        .40636E-06** at limit **
  14  Prefactor     .10000E-03    3.9812       -.13293E-07** at limit **
  15  norm          4.4242        2.9108       -.25023E-07   -.37976E-04
  16  Prefactor     3.6634        2.1419        .42684E-06   -.33509E-02
  17  Prefactor     .10000E-03    11.073       -.17737E-05** at limit **
  18  Prefactor     .10000E-03    16.350        .63574E-05** at limit **
  19  Prefactor     .10000E-03    6.7701       -.19100E-05** at limit **
  20  Prefactor     .10000E-03    12.666       -.19865E-07** at limit **
  21  Prefactor     .10000E-03    7.9415        .19005E-05** at limit **
  22  Normalizat    1.1383        .17654        .10596E-05   -.16200E-03
  23  Prefactor     .96056        .88139E-01   -.30851E-06   -.67423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39343
  Prefactor  = 0.0001
  Prefactor  = 106.128
  Prefactor  = 0.0001
  Prefactor  = 17.7706
  Prefactor  = 23.9962
  Prefactor  = 0.0001
  norm       = 1.18269
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 9.92267
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.42424
  Prefactor  = 3.6634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13833
  Prefactor  = 0.960565
 **********
 **   18 **HESSE 
 **********

 FCN=   10975.97     FROM HESSE     STATUS=OK           366 CALLS     2853 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3934        5.1371        .13837E-03   -1.5128    
   2  Prefactor     .10000E-03    11.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     106.13        80.822        .39033E-04   -1.3644    
   4  Prefactor     .10000E-03    20.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.771        9.4057        .47503E-03   -1.4865    
   6  Prefactor     23.996        35.465        .81768E-04   -1.4728    
   7  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1827        .87363        .79737E-04   -1.5490    
   9  Prefactor     .10000E-03    3.5313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    7.7604        .32723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.9227        5.1699        .63605E-03   -1.5078    
  12  Prefactor     .10000E-03    12.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4242        2.9077        .13975E-03   -1.5287    
  16  Prefactor     3.6634        4.6506        .10549E-02   -1.5325    
  17  Prefactor     .10000E-03    11.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1383        .21160        .32200E-03   -.88530    
  23  Prefactor     .96056        .10460        .17955E-03   -.94056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15104e-09
Minuit parameter uncertainties:
  1  5.13733
  2  6.81052e-05
  3  80.9061
  4  6.389e-05
  5  9.40647
  6  35.4958
  7  1.81694e-05
  8  0.873642
  9  2.97211e-06
  10  0.000413789
  11  5.17015
  12  3.55753e-06
  13  1.66672e-06
  14  2.37027e-06
  15  2.90779
  16  4.6511
  17  2.0958e-05
  18  5.1316e-05
  19  1.75991e-05
  20  3.55497e-06
  21  9.71286e-06
  22  0.211754
  23  0.104618
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  9.923e+00  5.170e+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.606e-01  1.046e-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.138e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 176.811 -26.465
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 8.24e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.17e-05

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) = 10975.7327608
delta logL = 0.237392900322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10975.71204
delta logL = 0.258113653132

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9751       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0941       1.0000          .0000       10.000    
     3 'Normalizat'    1.1030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97461       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=   10975.71     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      250 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9765        38.836        .41067E-02    .48868E-03
   2  Index         3.0945        2.7444        .17160        .18275E-03
   3  Normalizat    1.1032        .63594E-01    .73756E-01    .16011E-04
   4  Prefactor     .97455        .30496E-01    .45949E-01   -.14767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97652
  Index      = 3.09451
  Normalizat = 1.10317
  Prefactor  = 0.974554
 **********
 **   18 **HESSE 
 **********

 FCN=   10975.71     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9765        9.1300        .11716E-03   -1.5219    
   2  Index         3.0945        1.1273        .59553E-02   -.39098    
   3  Normalizat    1.1032        .21188        .32641E-03   -.89650    
   4  Prefactor     .97455        .10766        .17843E-03   -.93583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34854e-08
Minuit parameter uncertainties:
  1  9.13214
  2  1.13879
  3  0.212043
  4  0.107687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59787': 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) = 10975.7120376
delta logL = 0.258116100082

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  5.977e+00  9.132e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  3.095e+00  1.139e+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.746e-01  1.077e-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.103e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.10
Ra Dec: 176.811 -26.465
Photon Index (Free Index): 3.09 +/- 1.14
Photon Flux (Free Index): 1.02e-07 +/- 5.26e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.14e-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/59787/cmap_HighResolution_523152001_523411201_4FGL_J1147.2-2627_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-08', energy_flux2='1.94e-05', photon_flux_error='4.29e-08', dlogl='2.58e-01', energy_flux='2.24e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-04 11:02:20.878563', photon_index_error2='1.14', photon_index2='3.09', ts='5.47', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='1.14', time_epoch_completed='1630778540.88', return_code='0', job_id='59787', GAL2='0.97', EG2='1.10', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.26e-08', ts2='6.10', photon_index='2.56' WHERE bin_id='1095' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:02:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 59787: <4FGL_J1147.2-2627_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin1095 176.811 -26.4649 523152001 523411201 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 :                                   875.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

