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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin516
RA = 299.581, Dec = -30.181
tmin = 373075201, tmax = 373334401
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='435150', job_status='RUN', time_executed='2021-09-24 01:19:01.476479', time_epoch_executed='1632471541.48' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435150/ft1_4FGL_J1958.3-3010_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435150/ft1_4FGL_J1958.3-3010_daily_bin516.fits outfile=/scratch/kocevski/435150/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin516.fits ra=299.581 dec=-30.181 rad=12.0 tmin=373075201.0 tmax=373334401.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.70
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.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/435150/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin516.fits evtable="EVENTS" outfile="/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/435150/ltcube_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.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/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits
.....................!
real 12.06
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/435150/ltcube_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.fits outfile=/scratch/kocevski/435150/expmap_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.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/435150/ltcube_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.fits
.....................!
real 191.11
user 186.46
sys 4.30

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

Setting source of interest to:
4FGL J1958.3-3010 @ 299.581 -30.181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits scfile=/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits outfile=/scratch/kocevski/435150/cmap_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.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=299.581 yref=-30.181 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits scfile=/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits outfile=/scratch/kocevski/435150/cmap_HighResolution_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.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=299.581 yref=-30.181 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435150/Model_4FGL_J1958.3-3010_daily_bin516.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/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits.....................!
real 88.47
user 87.10
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits', '/scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits', expMap='/scratch/kocevski/435150/expmap_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.fits', expCube='/scratch/kocevski/435150/ltcube_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435150/Model_4FGL_J1958.3-3010_daily_bin516.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1958.3-3010'

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  6.150e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
459        Scale:  4.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/435150/ft1_filtered_4FGL_J1958.3-3010_daily_bin516.fits
Spacecraft file(s): /scratch/kocevski/435150/ft2_4FGL_J1958.3-3010_daily_bin516.fits
Exposure map: /scratch/kocevski/435150/expmap_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.fits
Exposure cube: /scratch/kocevski/435150/ltcube_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435150/Model_4FGL_J1958.3-3010_daily_bin516.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) = 9834.91961613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80975E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4108       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.931       1.0000         .10000E-03   10000.    
    11 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8430       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4287       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .79315       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9834.918     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1647 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1477       -.15718E-06** at limit **
   2  Prefactor     .12059        3.1959       -.24205E-05    .10233E-02
   3  Prefactor     .10000E-03    91.308       -.76965E-06** at limit **
   4  Prefactor     16.597        13.119       -.21053E-05   -.87873E-05
   5  Prefactor     .10000E-03    9.7623        .22271E-05** at limit **
   6  norm          .10000E-03    10.723       -.20338E-05** at limit **
   7  Prefactor     6.4103        5.7371       -.14611E-05   -.16507E-03
   8  norm          1.2861        1.0410       -.43223E-07   -.81435E-03
   9  Prefactor     .10000E-03    18.596       -.88455E-05** at limit **
  10  Prefactor     25.931        25.480        .59599E-06    .58804E-05
  11  norm          .10000E-03    10.634       -.19788E-05** at limit **
  12  Prefactor     .10000E-03    14.131        .50805E-05** at limit **
  13  norm          6.8435        7.3197       -.20464E-06   -.83004E-04
  14  Prefactor     .10000E-03    15.352       -.78532E-06** at limit **
  15  Prefactor     5.4288        4.5007       -.24271E-06   -.57659E-04
  16  Normalizat    .79338        .28158        .26536E-05    .17912E-03
  17  Prefactor     1.0789        .84095E-01    .15830E-06    .86837E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.120588
  Prefactor  = 0.0001
  Prefactor  = 16.5974
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.41032
  norm       = 1.28612
  Prefactor  = 0.0001
  Prefactor  = 25.9313
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.84353
  Prefactor  = 0.0001
  Prefactor  = 5.42879
  Normalizat = 0.793375
  Prefactor  = 1.07885
 **********
 **   18 **HESSE 
 **********

 FCN=   9834.918     FROM HESSE     STATUS=OK           223 CALLS     1870 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1580        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12059        21.888        .31632E-02   -1.5639    
   3  Prefactor     .10000E-03    91.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.597        13.134        .98314E-04   -1.4893    
   5  Prefactor     .10000E-03    9.7637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4103        5.8002        .15852E-03   -1.5202    
   8  norm          1.2861        1.0249        .86526E-04   -1.5481    
   9  Prefactor     .10000E-03    18.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.931        25.434        .78667E-04   -1.4689    
  11  norm          .10000E-03    10.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8435        7.3192        .15338E-03   -1.5185    
  14  Prefactor     .10000E-03    15.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4288        4.5023        .17247E-03   -1.5242    
  16  Normalizat    .79338        .30664        .53696E-03   -1.0031    
  17  Prefactor     1.0789        .93651E-01    .14539E-03   -.90145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12372e-08
Minuit parameter uncertainties:
  1  9.00026e-07
  2  3.24913
  3  1.03321e-05
  4  13.1364
  5  3.12189e-06
  6  9.81297e-06
  7  5.80071
  8  1.02495
  9  2.30267e-05
  10  25.4446
  11  1.66542e-05
  12  6.38309e-06
  13  7.32019
  14  6.27723e-06
  15  4.50254
  16  0.307314
  17  0.0936654
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  2.303e-05  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
459        Scale:  4.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
749    Prefactor:  1.079e+00  9.367e-02  0.000e+00  1.000e+01 ( 1.000e+00)
750        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
751        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
748   Normalization:  7.934e-01  3.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.581 -30.181
Photon Flux Upper Limit: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435150/likelihoodResults_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.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) = 9834.91788124
delta logL = -0.000255882154306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9834.91762532
delta logL = 3.95648385165e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9834.918     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    294.78        .90712E-02** at limit **
   2  Index         1.8900        9.0445        .50000       -.94870E-05
   3  Normalizat    .79338        .26665E-01    .12105        .38627E-04
   4  Prefactor     1.0789        .83529E-02    .38452E-01   -.37163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88996
  Normalizat = 0.793376
  Prefactor  = 1.07885
 **********
 **   18 **HESSE 
 **********

 FCN=   9834.918     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    449.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8900        8.2139        .50000       -.67130    
   3  Normalizat    .79338        .33155E-01    .53696E-03   -1.0031    
   4  Prefactor     1.0789        .10428E-01    .14539E-03   -.90145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.70985e-09
Minuit parameter uncertainties:
  1  0.000859549
  2  19.1302
  3  0.0331559
  4  0.0104285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435150': 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) = 9834.91762527
delta logL = 9.01545718079e-08

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  8.595e-04  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.890e+00  1.913e+01  0.000e+00  1.000e+01 (-1.000e+00)
459        Scale:  4.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
749    Prefactor:  1.079e+00  1.043e-02  0.000e+00  1.000e+01 ( 1.000e+00)
750        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
751        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
748   Normalization:  7.934e-01  3.316e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.581 -30.181

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/435150/cmap_HighResolution_373075201_373334401_4FGL_J1958.3-3010_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-24 01:32:01.064896', job_id='435150', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632472321.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='516' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:32:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 435150: <4FGL_J1958.3-3010_daily_bin516> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin516> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 24 01:16:52 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:16:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 01:16:54 2021
Terminated at Fri Sep 24 01:32:01 2021
Results reported at Fri Sep 24 01:32:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin516 299.581 -30.181 373075201 373334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1958.3-3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.50 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.

