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


Performing analysis on: 4FGL_J1147.2-2627_daily_bin840
RA = 176.811, Dec = -26.4649
tmin = 457056001, tmax = 457315201
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='58036', job_status='RUN', time_executed='2021-09-04 10:43:42.118880', time_epoch_executed='1630777422.12' WHERE source_name='4FGL J1147.2-2627' and cadence='daily' and bin_id='840'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58036/ft1_4FGL_J1147.2-2627_daily_bin840.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58036/ft1_4FGL_J1147.2-2627_daily_bin840.fits outfile=/scratch/kocevski/58036/ft1_filteredMKT_4FGL_J1147.2-2627_daily_bin840.fits ra=176.811 dec=-26.4649 rad=12.0 tmin=457056001.0 tmax=457315201.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 4.41
user 4.13
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58036/ft1_filtered_4FGL_J1147.2-2627_daily_bin840.fits" evtable="EVENTS" scfile=/scratch/kocevski/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits sctable="SC_DATA" outfile=/scratch/kocevski/58036/ltcube_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.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/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits
.....................!
real 11.79
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58036/ft1_filtered_4FGL_J1147.2-2627_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits sctable="SC_DATA" expcube=/scratch/kocevski/58036/ltcube_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.fits outfile=/scratch/kocevski/58036/expmap_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.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/58036/ltcube_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.fits
.....................!
real 190.05
user 185.31
sys 4.35

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/58036/ft1_filtered_4FGL_J1147.2-2627_daily_bin840.fits scfile=/scratch/kocevski/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits outfile=/scratch/kocevski/58036/cmap_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.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.69
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58036/ft1_filtered_4FGL_J1147.2-2627_daily_bin840.fits scfile=/scratch/kocevski/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits outfile=/scratch/kocevski/58036/cmap_HighResolution_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.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.62
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58036/ft1_filtered_4FGL_J1147.2-2627_daily_bin840.fits evtable="EVENTS" scfile=/scratch/kocevski/58036/ft2_4FGL_J1147.2-2627_daily_bin840.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58036/Model_4FGL_J1147.2-2627_daily_bin840.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/58036/ft1_filtered_4FGL_J1147.2-2627_daily_bin840.fits.....................!
real 54.62
user 51.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.723       1.0000         .10000E-03   10000.    
    10 'norm      '    15.576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23935E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    33.981       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10752E-03   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 '    .13602E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0751       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97472       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=   5389.063     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2486 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8371       -.33752E-07** at limit **
   2  Prefactor     .10000E-03    12.355        .23867E-05** at limit **
   3  Prefactor     .10000E-03    32.808       -.29838E-04** at limit **
   4  Prefactor     .10000E-03    20.110        .46407E-05** at limit **
   5  Prefactor     .10000E-03    9.8091       -.16375E-05** at limit **
   6  Prefactor     .10000E-03    21.391        .97237E-05** at limit **
   7  Prefactor     .10000E-03    18.854       -.52429E-05** at limit **
   8  norm          1.1190        1.3783       -.22259E-06   -.66390E-03
   9  Prefactor     10.727        14.306       -.22885E-07   -.42527E-04
  10  norm          15.581        13.093        .98647E-07   -.46617E-04
  11  Prefactor     .10002E-03    6.8410        .68808E-06** at limit **
  12  Prefactor     .10000E-03    20.656        .73970E-05** at limit **
  13  norm          33.993        40.829        .90607E-05   -.17588E-04
  14  Prefactor     .10000E-03    12.284        .60136E-06** at limit **
  15  norm          .10000E-03    3.1716        .17840E-06** at limit **
  16  Prefactor     .10000E-03    2.6198       -.42930E-07** at limit **
  17  Prefactor     .10000E-03    17.766       -.16799E-04** at limit **
  18  Prefactor     .10000E-03    63.787        .55741E-04** at limit **
  19  Prefactor     .10000E-03    8.8762        .14705E-06** at limit **
  20  Prefactor     .10000E-03    21.465        .98701E-05** at limit **
  21  Prefactor     .10000E-03    109.55       -.53219E-04** at limit **
  22  Normalizat    1.0747        .25727       -.54080E-07   -.84960E-04
  23  Prefactor     .97467        .12784       -.71808E-06   -.10311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11905
  Prefactor  = 10.7269
  norm       = 15.5811
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 33.9929
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.07472
  Prefactor  = 0.97467
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.063     FROM HESSE     STATUS=OK           360 CALLS     2846 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9382        .17320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1190        1.3422        .91581E-04   -1.5496    
   9  Prefactor     10.727        14.310        .12235E-03   -1.5053    
  10  norm          15.581        13.091        .10149E-03   -1.4918    
  11  Prefactor     .10002E-03    29.050        .36249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          33.993        40.889        .68743E-04   -1.4541    
  14  Prefactor     .10000E-03    12.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2288        .12762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6298        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    110.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0747        .30612        .33968E-03   -.90568    
  23  Prefactor     .97467        .15546        .17627E-03   -.93579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04374e-10
Minuit parameter uncertainties:
  1  6.48022e-06
  2  2.96878e-06
  3  8.00194e-06
  4  4.29027e-06
  5  9.74e-06
  6  7.60487e-06
  7  3.33732e-06
  8  1.34219
  9  14.3147
  10  13.0932
  11  0.00139784
  12  1.05151e-05
  13  40.9227
  14  3.67573e-06
  15  2.97207e-06
  16  4.86414e-06
  17  1.99981e-06
  18  0.000185757
  19  1.31898e-06
  20  3.60041e-06
  21  0.000838549
  22  0.306625
  23  0.155533
Done.

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

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.398e-03  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.747e-01  1.555e-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.075e+00  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58036/likelihoodResults_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5389.06353777
delta logL = -0.000162226712746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5389.06338165
delta logL = -6.10725601291e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11835E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6721       1.0000          .0000       10.000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97486       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=   5389.038     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      331 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70262        4.2985        .24768E-02   -.22173E-03
   2  Index         3.4016        2.1924        .74831E-02    .48570E-05
   3  Normalizat    1.0538        .31823        .34273E-03    .35626E-04
   4  Prefactor     .97961        .15430        .17588E-03    .14996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.702618
  Index      = 3.4016
  Normalizat = 1.05383
  Prefactor  = 0.979612
 **********
 **   18 **HESSE 
 **********

 FCN=   5389.038     FROM HESSE     STATUS=OK            27 CALLS      358 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70262        5.2996        .99070E-04   -1.5876    
   2  Index         3.4016        2.3860        .29933E-03   -.32539    
   3  Normalizat    1.0538        .31896        .13709E-04   -.91248    
   4  Prefactor     .97961        .15444        .70352E-05   -.93412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1138e-11
Minuit parameter uncertainties:
  1  3.85951
  2  2.50051
  3  0.319543
  4  0.154511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58036': 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) = 5389.03813399
delta logL = 0.0252415520263

Extracting fit parameters...

4FGL J1147.2-2627
   Spectrum: PowerLaw
296    Prefactor:  7.026e-01  3.860e+00  1.000e-04  1.000e+04 ( 1.000e-12)
297        Index:  3.402e+00  2.501e+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.796e-01  1.545e-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.054e+00  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/58036/cmap_HighResolution_457056001_457315201_4FGL_J1147.2-2627_daily_bin840.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-04 10:54:21.749481', job_id='58036', GAL2='0.98', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1630778061.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.52e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='840' AND source_name='4FGL J1147.2-2627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:54:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 58036: <4FGL_J1147.2-2627_daily_bin840> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.2-2627_daily_bin840 176.811 -26.4649 457056001 457315201 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 :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

