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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin904
RA = 299.581, Dec = -30.181
tmin = 473644801, tmax = 473904001
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='437832', job_status='RUN', time_executed='2021-09-24 01:29:19.980000', time_epoch_executed='1632472159.98' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437832/ft1_4FGL_J1958.3-3010_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437832/ft1_4FGL_J1958.3-3010_daily_bin904.fits outfile=/scratch/kocevski/437832/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin904.fits ra=299.581 dec=-30.181 rad=12.0 tmin=473644801.0 tmax=473904001.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.77
user 3.56
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.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/437832/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin904.fits evtable="EVENTS" outfile="/scratch/kocevski/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/437832/ltcube_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.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/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits
.....................!
real 11.90
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/437832/ltcube_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.fits outfile=/scratch/kocevski/437832/expmap_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.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/437832/ltcube_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.fits
.....................!
real 190.12
user 185.26
sys 4.45

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/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.fits scfile=/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits outfile=/scratch/kocevski/437832/cmap_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.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.64
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.fits scfile=/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits outfile=/scratch/kocevski/437832/cmap_HighResolution_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.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.71
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/437832/ft2_4FGL_J1958.3-3010_daily_bin904.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437832/Model_4FGL_J1958.3-3010_daily_bin904.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/437832/ft1_filtered_4FGL_J1958.3-3010_daily_bin904.fits.....................!
real 85.95
user 84.40
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    148.55       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2154       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.038       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.557       1.0000         .10000E-03   10000.    
    13 'norm      '    .96047       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.685       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.6376       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0590       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=   9437.806     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1563 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2746        .21084E-07** at limit **
   2  Prefactor     .10000E-03    4.4051       -.34569E-07** at limit **
   3  Prefactor     148.54        119.02       -.17234E-06   -.48854E-04
   4  Prefactor     .10000E-03    5.4395        .64893E-07** at limit **
   5  Prefactor     .10001E-03    12.489       -.14482E-05** at limit **
   6  norm          .10000E-03    6.4376       -.98788E-07** at limit **
   7  Prefactor     1.2165        12.024        .55673E-05    .23907E-03
   8  norm          1.0612        .84400        .17474E-07   -.10185E-03
   9  Prefactor     10.037        25.515       -.10446E-05   -.64208E-04
  10  Prefactor     .10000E-03    15.470        .83354E-06** at limit **
  11  norm          .10000E-03    10.791        .90054E-06** at limit **
  12  Prefactor     35.556        40.079       -.67123E-07   -.47064E-04
  13  norm          .93698        14.725        .38158E-05   -.69601E-03
  14  Prefactor     .10000E-03    57.829       -.36707E-06** at limit **
  15  Prefactor     12.681        8.9157        .10367E-06   -.16173E-03
  16  Normalizat    1.6377        .32901       -.17039E-05   -.29497E-03
  17  Prefactor     1.0590        .93848E-01   -.85163E-07   -.74949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 148.543
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 1.21647
  norm       = 1.06118
  Prefactor  = 10.0373
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 35.5564
  norm       = 0.936978
  Prefactor  = 0.0001
  Prefactor  = 12.6807
  Normalizat = 1.63772
  Prefactor  = 1.05897
 **********
 **   18 **HESSE 
 **********

 FCN=   9437.806     FROM HESSE     STATUS=OK           219 CALLS     1782 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     148.54        119.20        .33066E-04   -1.3264    
   4  Prefactor     .10000E-03    5.4628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    12.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.4406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2165        12.924        .40979E-03   -1.5487    
   8  norm          1.0612        .82732        .77227E-04   -1.5502    
   9  Prefactor     10.037        25.553        .12647E-03   -1.5074    
  10  Prefactor     .10000E-03    15.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.556        40.086        .67207E-04   -1.4515    
  13  norm          .93698        45.322        .48750E-02   -1.5514    
  14  Prefactor     .10000E-03    57.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.681        8.9530        .11247E-03   -1.4996    
  16  Normalizat    1.6377        .38517        .47135E-03   -.73979    
  17  Prefactor     1.0590        .11155        .16801E-03   -.90789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29085e-09
Minuit parameter uncertainties:
  1  5.27474e-06
  2  3.17134e-06
  3  119.389
  4  1.5579e-05
  5  0.000518731
  6  2.52374e-05
  7  7.93196
  8  0.827333
  9  25.5807
  10  0.000313844
  11  0.000277932
  12  40.1164
  13  13.0429
  14  0.000293656
  15  8.95393
  16  0.385869
  17  0.11157
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.004e+01  2.558e+01  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.059e+00  1.116e-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.638e+00  3.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437832/likelihoodResults_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.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) = 9435.64559062
delta logL = 2.16002315679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9434.98307222
delta logL = 2.82254156431

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9434.983     FROM MIGRAD    STATUS=CONVERGED    446 CALLS      841 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26574E-02   -.10405E-06** at limit **
   2  Index         6.3086        .14215       -.69535E-05   -.67461E-05
   3  Normalizat    1.3544        .38676       -.19451E-04   -.73819E-04
   4  Prefactor     1.1113        .11385       -.28206E-05    .11261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.30862
  Normalizat = 1.35441
  Prefactor  = 1.11132
 **********
 **   18 **HESSE 
 **********

 FCN=   9434.983     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      884 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14170E-02    .30861E-03   -120.95    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.3086        1.1512        .58637E-01   -1049.0    
   3  Normalizat    1.3544        .93284E-01    .11466       -14.888    
   4  Prefactor     1.1113        .26971E-01    .37173E-01   -38.590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.99158e-09
Minuit parameter uncertainties:
  1  4.85483e-08
  2  1.1624
  3  0.0932959
  4  0.0269715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437832': 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) = 9434.98306363
delta logL = 2.82255014784

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  4.855e-08  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  6.309e+00  1.162e+00  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.111e+00  2.697e-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:  1.354e+00  9.330e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 299.581 -30.181
Photon Index (Free Index): 6.31 +/- 1.16
Photon Flux (Free Index): 2.64e-07 +/- 1.07e-06
Energy Flux (Free Index): 3.24e-05 +/- 1.30e-04

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/437832/cmap_HighResolution_473644801_473904001_4FGL_J1958.3-3010_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', comment='SUCCESS', energy_flux2='3.24e-05', dlogl='2.82e+00', photon_flux2='2.64e-07', job_status='DONE', time_completed='2021-09-24 01:43:15.701591', photon_index_error2='1.16', photon_index2='6.31', ts='0.21', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.95e-08', energy_flux_error2='1.30e-04', EG='1.64', time_epoch_completed='1632472995.7', return_code='0', job_id='437832', GAL2='1.11', EG2='1.35', return_code2='102', photon_flux_error2='1.07e-06', ts2='6.34', photon_index='1.85' WHERE bin_id='904' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:43:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 437832: <4FGL_J1958.3-3010_daily_bin904> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin904> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 01:26:45 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:26:48 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:26:48 2021
Terminated at Fri Sep 24 01:43:16 2021
Results reported at Fri Sep 24 01:43:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin904 299.581 -30.181 473644801 473904001 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 :                                   835.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             332.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            991 sec.

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

