/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 233 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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1147.0-3812_daily_bin272
RA = 176.76, Dec = -38.2006
tmin = 309830401, tmax = 310089601
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='41817', job_status='RUN', time_executed='2021-09-04 10:06:11.312578', time_epoch_executed='1630775171.31' WHERE source_name='4FGL J1147.0-3812' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41817/ft1_4FGL_J1147.0-3812_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41817/ft1_4FGL_J1147.0-3812_daily_bin272.fits outfile=/scratch/kocevski/41817/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin272.fits ra=176.76 dec=-38.2006 rad=12.0 tmin=309830401.0 tmax=310089601.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.77
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.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/41817/ft1_filteredMKT_4FGL_J1147.0-3812_daily_bin272.fits evtable="EVENTS" outfile="/scratch/kocevski/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.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.60
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/41817/ltcube_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.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/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits
.....................!
real 12.06
user 11.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/41817/ltcube_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.fits outfile=/scratch/kocevski/41817/expmap_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.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/41817/ltcube_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.fits
.....................!
real 190.78
user 186.04
sys 4.25

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/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.fits scfile=/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits outfile=/scratch/kocevski/41817/cmap_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.fits scfile=/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits outfile=/scratch/kocevski/41817/cmap_HighResolution_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.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.75
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/41817/ft2_4FGL_J1147.0-3812_daily_bin272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/41817/Model_4FGL_J1147.0-3812_daily_bin272.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/41817/ft1_filtered_4FGL_J1147.0-3812_daily_bin272.fits.....................!
real 137.86
user 135.82
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1473       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9426       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.692       1.0000         .10000E-03   10000.    
     5 'norm      '    22.983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.078       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13205E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    34.829       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.072       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14519E-02   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.5715       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .83351       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=   7352.148     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1360 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1504        10.606       -.20494E-05   -.78757E-04
   2  norm          2.9403        3.1993       -.56547E-06   -.10088E-02
   3  norm          .10003E-03    179.44        .31056E-04** at limit **
   4  Prefactor     30.699        38.276        .28579E-05   -.29616E-04
   5  norm          22.985        27.446       -.76043E-06    .63602E-05
   6  Prefactor     13.075        17.627        .22716E-05    .86350E-05
   7  norm          1.2437        9.1046       -.60094E-05   -.83528E-03
   8  Prefactor     .10000E-03    3.9405        .20792E-06** at limit **
   9  Prefactor     .10000E-03    11.188        .62908E-06** at limit **
  10  norm          34.826        25.435        .89009E-06   -.12143E-04
  11  Prefactor     .10000E-03    5.5303       -.51899E-07** at limit **
  12  Prefactor     30.038        45.107       -.25508E-04    .20264E-03
  13  Prefactor     .10008E-03    316.43       -.10255E-03** at limit **
  14  Normalizat    1.5711        .26943        .18301E-05    .11302E-04
  15  Prefactor     .83354        .98937E-01    .40046E-06    .81955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15045
  norm       = 2.94032
  norm       = 0.000100029
  Prefactor  = 30.6989
  norm       = 22.985
  Prefactor  = 13.0746
  norm       = 1.24367
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 34.8264
  Prefactor  = 0.0001
  Prefactor  = 30.038
  Prefactor  = 0.000100078
  Normalizat = 1.57112
  Prefactor  = 0.83354
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.148     FROM HESSE     STATUS=OK           184 CALLS     1544 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1504        10.615        .17720E-03   -1.5254    
   2  norm          2.9403        3.2006        .15136E-03   -1.5365    
   3  norm          .10003E-03    185.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.699        38.259        .72322E-04   -1.4599    
   5  norm          22.985        27.470        .83552E-04   -1.4749    
   6  Prefactor     13.075        17.589        .11076E-03   -1.4985    
   7  norm          1.2437        9.7397        .40218E-03   -1.5485    
   8  Prefactor     .10000E-03    41.838        .33028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          34.826        25.437        .67904E-04   -1.4527    
  11  Prefactor     .10000E-03    5.5386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.038        44.816        .73062E-04   -1.4611    
  13  Prefactor     .10008E-03    311.95        .20496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.5711        .32741        .35370E-03   -.75799    
  15  Prefactor     .83354        .12096        .17151E-03   -.98504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86496e-09
Minuit parameter uncertainties:
  1  10.6186
  2  3.2008
  3  0.00463207
  4  38.2891
  5  27.4847
  6  17.5964
  7  6.96204
  8  0.000483152
  9  2.20919e-06
  10  25.4452
  11  9.99708e-07
  12  44.8658
  13  0.00992052
  14  0.327859
  15  0.120994
Done.

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

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  1.244e+00  6.962e+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.335e-01  1.210e-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.571e+00  3.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/41817/likelihoodResults_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.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) = 7352.00214961
delta logL = 0.145362333749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7351.88470128
delta logL = 0.262810665622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16792       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8448       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85196       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7351.885     FROM MIGRAD    STATUS=FAILED        96 CALLS      284 TOTAL
                     EDM=   .29E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16438        16.178        .46798E-04    .18436E-02
   2  alpha         4.8564        3.3976        .10447       -.38454E-03
   3  Normalizat    1.4963        .35228        .36083E-03    .26151E-05
   4  Prefactor     .85203        .11951        .16979E-03   -.12634E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7351.885     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      375 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16438        16.178        .49933E-04    .18436E-02
   2  alpha         4.8564        3.3976        .46365E-02   -.38454E-03
   3  Normalizat    1.4963        .35228        .20205E-03    .26151E-05
   4  Prefactor     .85203        .11951        .45229E-04   -.12634E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7351.885     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      404 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16437        1.9654        .18719E-05    .15985E-02
   2  alpha         4.8564        3.2779        .20894E-01    .89630E-05
   3  Normalizat    1.4963        .33989        .14433E-04    .30089E-04
   4  Prefactor     .85203        .12249        .33959E-04   -.81217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.164374
  alpha      = 4.8564
  Normalizat = 1.4963
  Prefactor  = 0.852034
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.885     FROM HESSE     STATUS=OK            25 CALLS      429 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16437        1.3524        .37439E-06   -1.5627    
   2  alpha         4.8564        4.2438        .83577E-03    1.2302    
   3  Normalizat    1.4963        .34014        .28867E-05   -.77882    
   4  Prefactor     .85203        .12258        .67918E-05   -.97838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0015e-10
Minuit parameter uncertainties:
  1  0.942708
  2  3.25871
  3  0.34066
  4  0.122618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41817': 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) = 7351.88469337
delta logL = 0.262818572257

Extracting fit parameters...

4FGL J1147.0-3812
   Spectrum: LogParabola
316         norm:  1.644e-01  9.427e-01  1.000e-04  1.000e+04 ( 1.000e-12)
317        alpha:  4.856e+00  3.259e+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.520e-01  1.226e-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.496e+00  3.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 176.760 -38.201

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/41817/cmap_HighResolution_309830401_310089601_4FGL_J1147.0-3812_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-04 10:17:42.190296', job_id='41817', GAL2='0.85', fit_tolerance='1e-08', EG2='1.50', EG='1.57', time_epoch_completed='1630775862.19', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.63e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='272' AND source_name='4FGL J1147.0-3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:17:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 41817: <4FGL_J1147.0-3812_daily_bin272> in cluster <slac> Done

Job <4FGL_J1147.0-3812_daily_bin272> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 10:02:05 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 10:02:07 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:02:07 2021
Terminated at Sat Sep  4 10:17:42 2021
Results reported at Sat Sep  4 10:17:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1147.0-3812_daily_bin272 176.76 -38.2006 309830401 310089601 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 :                                   686.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

