/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1147.0-3812_daily_bin19
RA = 176.76, Dec = -38.2006
tmin = 244252801, tmax = 244512001
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='41408', job_status='RUN', time_executed='2021-09-04 10:03:21.426088', time_epoch_executed='1630775001.43' WHERE source_name='4FGL J1147.0-3812' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41408

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41408/ft1_4FGL_J1147.0-3812_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41408/ft1_4FGL_J1147.0-3812_daily_bin19.fits outfile=/scratch/kocevski/41408/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin19.fits ra=176.76 dec=-38.2006 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.44
user 2.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.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/41408/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.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.62
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/41408/ltcube_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.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/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits
.....................!
real 13.83
user 13.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/41408/ltcube_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.fits outfile=/scratch/kocevski/41408/expmap_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.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/41408/ltcube_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.fits
.....................!
real 192.92
user 187.29
sys 5.14

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/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits scfile=/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits outfile=/scratch/kocevski/41408/cmap_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits scfile=/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits outfile=/scratch/kocevski/41408/cmap_HighResolution_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41408/Model_4FGL_J1147.0-3812_daily_bin19.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/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits.....................!
real 177.90
user 175.65
sys 1.79

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits', '/scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits', expMap='/scratch/kocevski/41408/expmap_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.fits', expCube='/scratch/kocevski/41408/ltcube_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/41408/Model_4FGL_J1147.0-3812_daily_bin19.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/41408/ft1_filtered_4FGL_J1147.0-3812_daily_bin19.fits
Spacecraft file(s): /scratch/kocevski/41408/ft2_4FGL_J1147.0-3812_daily_bin19.fits
Exposure map: /scratch/kocevski/41408/expmap_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.fits
Exposure cube: /scratch/kocevski/41408/ltcube_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/41408/Model_4FGL_J1147.0-3812_daily_bin19.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) = 9477.24464187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11518E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.200       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.003       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.720       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.813       1.0000         .10000E-03   10000.    
    10 'norm      '    18.810       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    115.16       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.7910       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .81321       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=   9477.240     FROM MIGRAD    STATUS=CONVERGED    270 CALLS     1325 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8665        .77207E-07** at limit **
   2  norm          .10000E-03    .89356        .47932E-07** at limit **
   3  norm          17.197        22.968       -.24914E-05   -.57141E-04
   4  Prefactor     44.005        50.845        .15057E-05    .17415E-04
   5  norm          .10000E-03    15.328        .12287E-06** at limit **
   6  Prefactor     12.719        15.183       -.36287E-06   -.14183E-04
   7  norm          6.1124        3.8875        .38379E-06   -.12794E-02
   8  Prefactor     .10000E-03    4.3640        .62715E-07** at limit **
   9  Prefactor     16.811        24.519       -.28302E-05   -.52490E-04
  10  norm          18.808        25.135       -.25317E-05   -.47690E-04
  11  Prefactor     13.540        14.755        .85639E-08   -.66834E-05
  12  Prefactor     115.16        54.916        .16224E-05    .41815E-04
  13  Prefactor     .10000E-03    40.871        .14687E-06** at limit **
  14  Normalizat    1.7907        .24657       -.10241E-06    .12214E-04
  15  Prefactor     .81331        .90713E-01    .32937E-06   -.66034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.1971
  Prefactor  = 44.0047
  norm       = 0.0001
  Prefactor  = 12.7187
  norm       = 6.1124
  Prefactor  = 0.0001
  Prefactor  = 16.8108
  norm       = 18.808
  Prefactor  = 13.5398
  Prefactor  = 115.163
  Prefactor  = 0.0001
  Normalizat = 1.79075
  Prefactor  = 0.813309
 **********
 **   18 **HESSE 
 **********

 FCN=   9477.240     FROM HESSE     STATUS=OK           184 CALLS     1509 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.9164        .17706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.197        23.003        .96572E-04   -1.4878    
   4  Prefactor     44.005        50.870        .60437E-04   -1.4380    
   5  norm          .10000E-03    15.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.719        15.345        .11232E-03   -1.4995    
   7  norm          6.1124        9.4359        .81195E-03   -1.5213    
   8  Prefactor     .10000E-03    4.3968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.811        25.208        .97678E-04   -1.4888    
  10  norm          18.808        25.159        .92348E-04   -1.4840    
  11  Prefactor     13.540        14.763        .10886E-03   -1.4972    
  12  Prefactor     115.16        55.115        .37491E-04   -1.3558    
  13  Prefactor     .10000E-03    40.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.7907        .29827        .34941E-03   -.69905    
  15  Prefactor     .81331        .10903        .18254E-03   -.99240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30563e-09
Minuit parameter uncertainties:
  1  1.21105e-06
  2  2.01054e-05
  3  23.0145
  4  50.9204
  5  3.13119e-06
  6  15.3499
  7  9.43819
  8  3.0803e-06
  9  25.2242
  10  25.173
  11  14.7671
  12  55.1394
  13  4.52064e-06
  14  0.298572
  15  0.109054
Done.

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

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  6.112e+00  9.438e+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:  8.133e-01  1.091e-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:  1.791e+00  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/41408/likelihoodResults_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.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) = 9474.62222896
delta logL = 2.61797315339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.56869027
delta logL = 2.67151184299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77331       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6036       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86037       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=   9474.569     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      282 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77056        5.7677        .87492E-02   -.16655E-02
   2  alpha         4.6059        4.7642        .42907       -.48479E-04
   3  Normalizat    1.5996        .92979E-01    .82313E-01   -.53942E-04
   4  Prefactor     .86040        .34418E-01    .44498E-01   -.56476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.770558
  alpha      = 4.6059
  Normalizat = 1.59959
  Prefactor  = 0.860401
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.569     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      315 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77056        8.6339        .39468E-04   -1.5532    
   2  alpha         4.6059        4.7479        .23231E-01    1.0016    
   3  Normalizat    1.5996        .26589        .36434E-03   -.75017    
   4  Prefactor     .86040        .99072E-01    .17776E-03   -.97539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61663e-10
Minuit parameter uncertainties:
  1  5.15927
  2  3.86717
  3  0.266121
  4  0.099093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41408': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9474.56868888
delta logL = 2.67151323321

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  7.706e-01  5.159e+00  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  4.606e+00  3.867e+00  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:  8.604e-01  9.909e-02  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:  1.600e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 176.760 -38.201
Photon Index (Free Index): 4.61 +/- 3.87
Photon Flux (Free Index): 1.83e-07 +/- 8.75e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.78e-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/41408/cmap_HighResolution_244252801_244512001_4FGL_J1147.0-3812_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-05', comment='SUCCESS', energy_flux2='2.57e-05', dlogl='2.67e+00', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-04 10:16:36.592404', photon_index_error2='3.87', photon_index2='4.61', ts='0.54', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.78e-05', EG='1.79', time_epoch_completed='1630775796.59', return_code='0', job_id='41408', GAL2='0.86', EG2='1.60', return_code2='102', photon_flux_error2='8.75e-08', ts2='6.28', photon_index='2.16' WHERE bin_id='19' AND source_name='4FGL J1147.0-3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 41408: <4FGL_J1147.0-3812_daily_bin19> in cluster <slac> Done

Job <4FGL_J1147.0-3812_daily_bin19> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 10:01:28 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:01:29 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:01:29 2021
Terminated at Sat Sep  4 10:16:37 2021
Results reported at Sat Sep  4 10:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.0-3812_daily_bin19 176.76 -38.2006 244252801 244512001 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

