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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin229
RA = 299.581, Dec = -30.181
tmin = 298684801, tmax = 298944001
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='433620', job_status='RUN', time_executed='2021-09-24 01:15:07.088613', time_epoch_executed='1632471307.09' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433620/ft1_4FGL_J1958.3-3010_daily_bin229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433620/ft1_4FGL_J1958.3-3010_daily_bin229.fits outfile=/scratch/kocevski/433620/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin229.fits ra=299.581 dec=-30.181 rad=12.0 tmin=298684801.0 tmax=298944001.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.44
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.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/433620/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin229.fits evtable="EVENTS" outfile="/scratch/kocevski/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.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/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.fits" evtable="EVENTS" scfile=/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits sctable="SC_DATA" outfile=/scratch/kocevski/433620/ltcube_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.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/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits
.....................!
real 13.10
user 12.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits sctable="SC_DATA" expcube=/scratch/kocevski/433620/ltcube_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.fits outfile=/scratch/kocevski/433620/expmap_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.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/433620/ltcube_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.fits
.....................!
real 192.36
user 187.27
sys 4.78

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/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.fits scfile=/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits outfile=/scratch/kocevski/433620/cmap_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.fits scfile=/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits outfile=/scratch/kocevski/433620/cmap_HighResolution_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.fits', '/scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits', expMap='/scratch/kocevski/433620/expmap_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.fits', expCube='/scratch/kocevski/433620/ltcube_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433620/Model_4FGL_J1958.3-3010_daily_bin229.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/433620/ft1_filtered_4FGL_J1958.3-3010_daily_bin229.fits
Spacecraft file(s): /scratch/kocevski/433620/ft2_4FGL_J1958.3-3010_daily_bin229.fits
Exposure map: /scratch/kocevski/433620/expmap_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.fits
Exposure cube: /scratch/kocevski/433620/ltcube_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433620/Model_4FGL_J1958.3-3010_daily_bin229.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) = 8134.43364782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26984E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16263E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59755       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
    11 'norm      '    .10495E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.3357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.717       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5376       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89917       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=   8134.420     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1623 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10013E-03    5.2807        .98637E-06** at limit **
   2  Prefactor     22.305        8.5766       -.75680E-07    .67452E-03
   3  Prefactor     .10000E-03    280.94       -.28962E-03** at limit **
   4  Prefactor     13.996        15.138        .11037E-06   -.16524E-04
   5  Prefactor     .10000E-03    17.980        .17422E-04** at limit **
   6  norm          .10000E-03    63.769        .27347E-04** at limit **
   7  Prefactor     .56818        3.4146       -.19818E-05    .98820E-03
   8  norm          4.9248        1.6381       -.31361E-09    .28241E-03
   9  Prefactor     .10000E-03    13.059        .36573E-05** at limit **
  10  Prefactor     17.163        27.303        .47840E-05   -.18624E-04
  11  norm          .10000E-03    26.881        .64929E-05** at limit **
  12  Prefactor     .10000E-03    16.545       -.16485E-04** at limit **
  13  norm          9.3426        15.318        .22124E-06    .43163E-04
  14  Prefactor     .10000E-03    32.289       -.20814E-04** at limit **
  15  Prefactor     18.722        10.728        .14255E-06    .98138E-04
  16  Normalizat    1.5371        .33192        .85373E-06    .45286E-03
  17  Prefactor     .89924        .91854E-01    .12978E-07    .10968E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100125
  Prefactor  = 22.3046
  Prefactor  = 0.000100005
  Prefactor  = 13.9962
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.568176
  norm       = 4.92476
  Prefactor  = 0.0001
  Prefactor  = 17.1632
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.34255
  Prefactor  = 0.0001
  Prefactor  = 18.7216
  Normalizat = 1.53714
  Prefactor  = 0.899235
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.420     FROM HESSE     STATUS=OK           225 CALLS     1848 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10013E-03    58.775        .40084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.305        8.5852        .84797E-04   -1.4763    
   3  Prefactor     .10000E-03    281.52        .20406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.996        15.136        .10701E-03   -1.4960    
   5  Prefactor     .10000E-03    17.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    65.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .56818        20.386        .30950E-02   -1.5557    
   8  norm          4.9248        1.6384        .63689E-04   -1.5264    
   9  Prefactor     .10000E-03    13.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.163        27.302        .96705E-04   -1.4879    
  11  norm          .10000E-03    27.622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.3426        15.350        .13116E-03   -1.5097    
  14  Prefactor     .10000E-03    32.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.722        10.805        .92578E-04   -1.4842    
  16  Normalizat    1.5371        .39206        .45484E-03   -.76740    
  17  Prefactor     .89924        .10891        .16648E-03   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04131e-08
Minuit parameter uncertainties:
  1  0.00543487
  2  8.58567
  3  0.00231732
  4  15.1398
  5  1.07349e-05
  6  0.000655261
  7  6.80856
  8  1.63845
  9  1.12306e-05
  10  27.3223
  11  0.000182106
  12  9.44948e-07
  13  15.3567
  14  5.41857e-07
  15  10.8062
  16  0.392844
  17  0.108939
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  1.123e-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:  8.992e-01  1.089e-01  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:  1.537e+00  3.928e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433620/likelihoodResults_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.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) = 8134.42015169
delta logL = -0.000364809859093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8134.41978686
delta logL = 1.93231244339e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8381       1.0000          .0000       10.000    
     3 'Normalizat'    1.5371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89924       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.

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

 FCN=   8134.420     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    232.16        .18142E-02** at limit **
   2  Index         1.7482        5.7000        .50000        .53467E-05
   3  Normalizat    1.5371        .34906E-01    .45484E-03    .12498E-05
   4  Prefactor     .89924        .10187E-01    .16648E-03    .19121E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8134.420     FROM SIMPLEX   STATUS=UNCHANGED    135 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    232.16        .59673E-03** at limit **
   2  Index         1.7482        5.7000        .10360E-03    .53467E-05
   3  Normalizat    1.5371        .34906E-01    .13164E-05    .12498E-05
   4  Prefactor     .89924        .10187E-01    .48390E-06    .19121E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8134.420     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      423 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1209.0        .36285E-02** at limit **
   2  Index         1.4208        8.8504        .20000       -.81059E-07
   3  Normalizat    1.5371        .85977E-01    .18194E-04    .19246E-04
   4  Prefactor     .89924        .25101E-01    .66592E-05    .48485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.42082
  Normalizat = 1.53714
  Prefactor  = 0.899235
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.420     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.590        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4208        6.8086        .80000E-02   -.79782    
   3  Normalizat    1.5371        .36773        .36387E-05   -.76740    
   4  Prefactor     .89924        .10750        .13318E-05   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16595e-10
Minuit parameter uncertainties:
  1  0.000126343
  2  435.923
  3  0.368369
  4  0.107527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433620': 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) = 8134.41978648
delta logL = 3.97124495066e-07

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  1.263e-04  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.421e+00  4.359e+02  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:  8.992e-01  1.075e-01  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:  1.537e+00  3.684e-01  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/433620/cmap_HighResolution_298684801_298944001_4FGL_J1958.3-3010_daily_bin229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-24 01:27:00.309001', job_id='433620', GAL2='0.90', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632472020.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='229' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 433620: <4FGL_J1958.3-3010_daily_bin229> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin229> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 01:11:35 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:11:38 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:11:38 2021
Terminated at Fri Sep 24 01:27:01 2021
Results reported at Fri Sep 24 01:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin229 299.581 -30.181 298684801 298944001 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 :                                   712.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            926 sec.

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

