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


Performing analysis on: 4FGL_J1147.0-3812_daily_bin928
RA = 176.76, Dec = -38.2006
tmin = 479865601, tmax = 480124801
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='46705', job_status='RUN', time_executed='2021-09-04 10:19:24.124880', time_epoch_executed='1630775964.12' WHERE source_name='4FGL J1147.0-3812' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46705/ft1_4FGL_J1147.0-3812_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46705/ft1_4FGL_J1147.0-3812_daily_bin928.fits outfile=/scratch/kocevski/46705/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin928.fits ra=176.76 dec=-38.2006 rad=12.0 tmin=479865601.0 tmax=480124801.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.60
user 3.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.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/46705/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin928.fits evtable="EVENTS" outfile="/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.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.53
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/46705/ltcube_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.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/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits
.....................!
real 12.88
user 12.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/46705/ltcube_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.fits outfile=/scratch/kocevski/46705/expmap_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.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/46705/ltcube_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.fits
.....................!
real 190.94
user 185.75
sys 4.66

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 204 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1147.0-3812 @ 176.76 -38.2006

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits scfile=/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits outfile=/scratch/kocevski/46705/cmap_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.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.76 yref=-38.2006 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.65
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits scfile=/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits outfile=/scratch/kocevski/46705/cmap_HighResolution_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.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.76 yref=-38.2006 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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/46705/Model_4FGL_J1147.0-3812_daily_bin928.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 CenA Lobes
adding source EG_v02
adding source G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits.....................!
real 122.36
user 120.62
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits', '/scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits', expMap='/scratch/kocevski/46705/expmap_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.fits', expCube='/scratch/kocevski/46705/ltcube_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46705/Model_4FGL_J1147.0-3812_daily_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1147.0-3812'

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  5.752e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  5.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  7.398e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/46705/ft1_filtered_4FGL_J1147.0-3812_daily_bin928.fits
Spacecraft file(s): /scratch/kocevski/46705/ft2_4FGL_J1147.0-3812_daily_bin928.fits
Exposure map: /scratch/kocevski/46705/expmap_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.fits
Exposure cube: /scratch/kocevski/46705/ltcube_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46705/Model_4FGL_J1147.0-3812_daily_bin928.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) = 6562.5430513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .45046E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    55.742       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.129       1.0000         .10000E-03   10000.    
     7 'norm      '    8.5412       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9657       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .19677E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3742       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.280       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .61778       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6562.506     FROM MIGRAD    STATUS=CONVERGED    298 CALLS     1422 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4627        .19281E-06** at limit **
   2  norm          .51436E-01    1.1257       -.77943E-06    .26191E-03
   3  norm          .10000E-03    9.2222       -.25786E-06** at limit **
   4  Prefactor     .10000E-03    15.084       -.82341E-06** at limit **
   5  norm          55.754        38.864       -.36824E-04    .19137E-04
   6  Prefactor     12.129        13.028       -.79432E-05    .17063E-04
   7  norm          8.5420        7.6029        .24836E-05   -.44282E-04
   8  Prefactor     7.9660        10.103        .57458E-05    .17597E-04
   9  Prefactor     .10000E-03    5.3506       -.14595E-06** at limit **
  10  norm          .68012E-03    14.632       -.40306E-05** at limit **
  11  Prefactor     8.3650        14.187       -.78589E-06   -.37931E-04
  12  Prefactor     14.931        51.177       -.83360E-04    .99126E-05
  13  Prefactor     64.200        133.59       -.65777E-04   -.31655E-05
  14  Normalizat    .61797        .28539        .96791E-05    .28497E-03
  15  Prefactor     1.0134        .10758        .15419E-05    .47368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0514364
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 55.7538
  Prefactor  = 12.1293
  norm       = 8.542
  Prefactor  = 7.96596
  Prefactor  = 0.0001
  norm       = 0.00068012
  Prefactor  = 8.36496
  Prefactor  = 14.931
  Prefactor  = 64.1996
  Normalizat = 0.61797
  Prefactor  = 1.0134
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.506     FROM HESSE     STATUS=OK           196 CALLS     1618 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4689        .14721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .51436E-01    35.121        .16283E-02   -1.5663    
   3  norm          .10000E-03    9.2274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          55.754        38.855        .26864E-03   -1.4213    
   6  Prefactor     12.129        13.027        .11502E-03   -1.5011    
   7  norm          8.5420        7.6001        .13716E-03   -1.5123    
   8  Prefactor     7.9660        10.096        .14206E-03   -1.5143    
   9  Prefactor     .10000E-03    5.3561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .68012E-03    15.995        .11089       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3650        14.177        .13853E-03   -1.5129    
  12  Prefactor     14.931        51.335        .10376E-03   -1.4935    
  13  Prefactor     64.200        134.00        .25027E-03   -1.4104    
  14  Normalizat    .61797        .31345        .46763E-03   -1.0723    
  15  Prefactor     1.0134        .12032        .14352E-03   -.92284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9616e-09
Minuit parameter uncertainties:
  1  1.61286e-05
  2  2.68709
  3  7.42885e-06
  4  8.39415e-07
  5  38.8731
  6  13.03
  7  7.60099
  8  10.0984
  9  1.5431e-05
  10  0.192707
  11  14.1832
  12  51.4876
  13  134.632
  14  0.314354
  15  0.120351
Done.

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

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  8.542e+00  7.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  5.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  7.398e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.013e+00  1.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  6.180e-01  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 176.760 -38.201
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.96e-05

TS (Fixed Index): 1.78
Ra Dec: 176.760 -38.201
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46705/likelihoodResults_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.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) = 6562.18156071
delta logL = 0.324066579462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6562.17453439
delta logL = 0.331092895395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3953       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5977       1.0000          .0000       5.0000    
     3 'Normalizat'    .63604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6562.175     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      224 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4010        7.9986        .32686E-02    .18704E-02
   2  alpha         1.5982        .53079        .31467       -.10451E-04
   3  Normalizat    .63616        .27275        .10411        .10135E-04
   4  Prefactor     1.0087        .10592        .32535E-01   -.11114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.40103
  alpha      = 1.5982
  Normalizat = 0.636162
  Prefactor  = 1.00875
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.175     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4010        8.2152        .65373E-03   -1.5095    
   2  alpha         1.5982        .72591        .17277E-01   -.36904    
   3  Normalizat    .63616        .30237        .46147E-03   -1.0647    
   4  Prefactor     1.0087        .11817        .14377E-03   -.92438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14551e-12
Minuit parameter uncertainties:
  1  8.21614
  2  0.738179
  3  0.303165
  4  0.118197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46705': 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) = 6562.17453369
delta logL = 0.331093595554

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  9.401e+00  8.216e+00  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  1.598e+00  7.382e-01  0.000e+00  5.000e+00 ( 1.000e+00)
318         beta:  5.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  7.398e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.009e+00  1.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  6.362e-01  3.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 176.760 -38.201
Photon Index (Free Index): 1.60 +/- 0.74
Photon Flux (Free Index): 3.39e-08 +/- 3.64e-08
Energy Flux (Free Index): 5.13e-05 +/- 8.00e-05

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/46705/cmap_HighResolution_479865601_480124801_4FGL_J1147.0-3812_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='5.13e-05', photon_flux_error='4.43e-08', dlogl='3.31e-01', energy_flux='2.20e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-09-04 10:30:16.564862', photon_index_error2='0.74', photon_index2='1.60', ts='1.78', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='8.00e-05', EG='0.62', time_epoch_completed='1630776616.56', return_code='0', job_id='46705', GAL2='1.01', EG2='0.64', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='3.64e-08', ts2='2.45', photon_index='2.16' WHERE bin_id='928' AND source_name='4FGL J1147.0-3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 46705: <4FGL_J1147.0-3812_daily_bin928> in cluster <slac> Done

Job <4FGL_J1147.0-3812_daily_bin928> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 10:16:33 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:16:35 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:16:35 2021
Terminated at Sat Sep  4 10:30:17 2021
Results reported at Sat Sep  4 10:30:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.0-3812_daily_bin928 176.76 -38.2006 479865601 480124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1147.0-3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

