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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin780
RA = 309.252, Dec = -28.4383
tmin = 441504001, tmax = 441763201
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='73545', job_status='RUN', time_executed='2021-09-25 13:48:15.379667', time_epoch_executed='1632602895.38' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73545

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73545/ft1_4FGL_J2037.0-2826_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73545/ft1_4FGL_J2037.0-2826_daily_bin780.fits outfile=/scratch/kocevski/73545/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin780.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=441504001.0 tmax=441763201.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.57
user 3.17
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.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/73545/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/73545/ltcube_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.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/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits
.....................!
real 18.22
user 17.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/73545/ltcube_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.fits outfile=/scratch/kocevski/73545/expmap_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.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/73545/ltcube_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.fits
.....................!
real 191.29
user 185.73
sys 4.82

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2037.0-2826 @ 309.252 -28.4383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits scfile=/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits outfile=/scratch/kocevski/73545/cmap_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.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=309.252 yref=-28.4383 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits scfile=/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits outfile=/scratch/kocevski/73545/cmap_HighResolution_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.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=309.252 yref=-28.4383 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73545/Model_4FGL_J2037.0-2826_daily_bin780.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/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits.....................!
real 60.56
user 59.06
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits', '/scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits', expMap='/scratch/kocevski/73545/expmap_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.fits', expCube='/scratch/kocevski/73545/ltcube_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73545/Model_4FGL_J2037.0-2826_daily_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2037.0-2826'

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.729e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73545/ft1_filtered_4FGL_J2037.0-2826_daily_bin780.fits
Spacecraft file(s): /scratch/kocevski/73545/ft2_4FGL_J2037.0-2826_daily_bin780.fits
Exposure map: /scratch/kocevski/73545/expmap_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.fits
Exposure cube: /scratch/kocevski/73545/ltcube_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73545/Model_4FGL_J2037.0-2826_daily_bin780.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) = 6717.00053032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10389E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49186E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15162E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.2948       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1900       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4445       1.0000         .10000E-03   10000.    
    14 'norm      '    .10434E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .44888       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6716.979     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1479 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7663        6.5132        .14404E-06   -.12753E-04
   2  Prefactor     .10000E-03    15.120       -.26212E-05** at limit **
   3  norm          14.823        18.862       -.13275E-06   -.16129E-04
   4  Prefactor     .10000E-03    29.117       -.14181E-06** at limit **
   5  norm          .10000E-03    15.233        .13213E-05** at limit **
   6  Prefactor     .10000E-03    77.427        .49168E-05** at limit **
   7  Prefactor     14.180        12.041       -.33180E-06   -.10642E-03
   8  Prefactor     .10000E-03    4.0485       -.46795E-07** at limit **
   9  Prefactor     .10000E-03    89.546       -.16990E-05** at limit **
  10  norm          8.1142        49.893        .15365E-05   -.11487E-05
  11  Prefactor     2.1904        58.342        .81872E-05   -.13642E-04
  12  Prefactor     .10000E-03    7.1425       -.44340E-08** at limit **
  13  Prefactor     2.4459        9.2846        .61373E-06   -.11101E-04
  14  norm          .10000E-03    14.596        .10192E-05** at limit **
  15  Normalizat    .44906        .31053       -.10164E-05   -.33753E-04
  16  Prefactor     1.1837        .11995       -.10030E-06   -.89896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76627
  Prefactor  = 0.0001
  norm       = 14.823
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.18
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.11418
  Prefactor  = 2.19038
  Prefactor  = 0.0001
  Prefactor  = 2.44585
  norm       = 0.0001
  Normalizat = 0.449061
  Prefactor  = 1.18374
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.979     FROM HESSE     STATUS=OK           201 CALLS     1680 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7663        6.5232        .18420E-03   -1.5271    
   2  Prefactor     .10000E-03    15.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.823        18.915        .10405E-03   -1.4938    
   4  Prefactor     .10000E-03    29.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.748        .21166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.180        11.891        .10640E-03   -1.4955    
   8  Prefactor     .10000E-03    4.1138        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    89.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1142        49.882        .13920E-03   -1.5138    
  11  Prefactor     2.1904        58.560        .13906E-02   -1.5412    
  12  Prefactor     .10000E-03    7.1473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4459        9.1349        .26166E-03   -1.5395    
  14  norm          .10000E-03    14.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .44906        .30350        .56387E-03   -1.1484    
  16  Prefactor     1.1837        .12170        .14853E-03   -.86833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47589e-11
Minuit parameter uncertainties:
  1  6.52415
  2  1.93034e-05
  3  18.9222
  4  2.33449e-06
  5  1.07865e-05
  6  0.000114623
  7  11.8931
  8  1.19206e-06
  9  0.00013553
  10  40.2867
  11  22.6754
  12  7.59041e-07
  13  9.14013
  14  2.78638e-06
  15  0.304619
  16  0.121727
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.418e+01  1.189e+01  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.184e+00  1.217e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  4.491e-01  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 309.252 -28.438
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 9.08e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 2.46e-05

TS (Fixed Index): 1.89
Ra Dec: 309.252 -28.438
Photon Flux Upper Limit: 2.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73545/likelihoodResults_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.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) = 6714.46312608
delta logL = 2.51628788065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6714.31173674
delta logL = 2.66767721941

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61305E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5754       1.0000          .0000       10.000    
     3 'Normalizat'    .29018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6714.312     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      315 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60663E-01    .40363        .20531E-02   -.32411E-02
   2  Index         6.5822        2.6130        .10053        .34910E-04
   3  Normalizat    .29040        .87710E-01    .15706       -.60117E-04
   4  Prefactor     1.2353        .36596E-01    .33842E-01   -.88799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0606627
  Index      = 6.58221
  Normalizat = 0.290405
  Prefactor  = 1.23534
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.312     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      346 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60663E-01    .66810        .91727E-05   -1.5659    
   2  Index         6.5822        3.4040        .42112E-02    .32198    
   3  Normalizat    .29040        .26613        .69261E-03   -1.2341    
   4  Prefactor     1.2353        .10744        .14556E-03   -.85251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49791e-10
Minuit parameter uncertainties:
  1  0.402308
  2  3.79672
  3  0.267298
  4  0.107462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73545': 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) = 6714.31173096
delta logL = 2.66768300204

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  6.066e-02  4.023e-01  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  6.582e+00  3.797e+00  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  1.235e+00  1.075e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  2.904e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.94
Ra Dec: 309.252 -28.438
Photon Index (Free Index): 6.58 +/- 3.80
Photon Flux (Free Index): 2.34e-07 +/- 1.20e-07
Energy Flux (Free Index): 2.84e-05 +/- 1.69e-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/73545/cmap_HighResolution_441504001_441763201_4FGL_J2037.0-2826_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-02', comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.84e-05', photon_flux_error='9.08e-08', dlogl='2.67e+00', energy_flux='2.93e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2021-09-25 13:57:31.439462', photon_index_error2='3.80', photon_index2='6.58', ts='1.89', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.74e-07', energy_flux_error2='1.69e-05', EG='0.45', time_epoch_completed='1632603451.44', return_code='0', job_id='73545', GAL2='1.24', EG2='0.29', return_code2='102', energy_flux_error='2.46e-05', photon_flux_error2='1.20e-07', ts2='7.94', photon_index='2.57' WHERE bin_id='780' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 13:57:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 73545: <4FGL_J2037.0-2826_daily_bin780> in cluster <slac> Done

Job <4FGL_J2037.0-2826_daily_bin780> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 25 13:45:34 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 13:47:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 13:47:10 2021
Terminated at Sat Sep 25 13:57:31 2021
Results reported at Sat Sep 25 13:57:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin780 309.252 -28.4383 441504001 441763201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2037.0-2826 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   554.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            717 sec.

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

