aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 141 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 = 7706
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1958.3-3010_daily_bin1690
RA = 299.581, Dec = -30.181
tmin = 677376001, tmax = 677635201
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='158093', job_status='RUN', time_executed='2022-06-23 01:13:25.846465', time_epoch_executed='1655972005.85' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='1690'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158093/ft1_4FGL_J1958.3-3010_daily_bin1690.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158093/ft1_4FGL_J1958.3-3010_daily_bin1690.fits outfile=/scratch/kocevski/158093/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin1690.fits ra=299.581 dec=-30.181 rad=12.0 tmin=677376001.0 tmax=677635201.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 2.54
user 2.32
sys 0.19

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

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

Number of photons that the gtmktime cut: 115

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158093/ft1_filtered_4FGL_J1958.3-3010_daily_bin1690.fits" evtable="EVENTS" scfile=/scratch/kocevski/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits sctable="SC_DATA" outfile=/scratch/kocevski/158093/ltcube_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.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/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits
.....................!
real 15.60
user 15.13
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158093/ft1_filtered_4FGL_J1958.3-3010_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits sctable="SC_DATA" expcube=/scratch/kocevski/158093/ltcube_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.fits outfile=/scratch/kocevski/158093/expmap_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.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/158093/ltcube_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.fits
.....................!
real 192.81
user 187.01
sys 5.20

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/158093/ft1_filtered_4FGL_J1958.3-3010_daily_bin1690.fits scfile=/scratch/kocevski/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits outfile=/scratch/kocevski/158093/cmap_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158093/ft1_filtered_4FGL_J1958.3-3010_daily_bin1690.fits scfile=/scratch/kocevski/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits outfile=/scratch/kocevski/158093/cmap_HighResolution_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158093/ft1_filtered_4FGL_J1958.3-3010_daily_bin1690.fits evtable="EVENTS" scfile=/scratch/kocevski/158093/ft2_4FGL_J1958.3-3010_daily_bin1690.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158093/Model_4FGL_J1958.3-3010_daily_bin1690.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/158093/ft1_filtered_4FGL_J1958.3-3010_daily_bin1690.fits.......................!
real 24.63
user 23.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.980       1.0000         .10000E-03   10000.    
     3 'Prefactor '    455.05       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1035       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13884E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.028       1.0000         .10000E-03   10000.    
     8 'norm      '    22.548       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    21.326       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .21066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    120.74       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.248       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.6333       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84173       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=   1333.642     FROM MIGRAD    STATUS=CONVERGED    313 CALLS     1568 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    61.097        .10807E-04** at limit **
   2  Prefactor     27.976        57.429       -.54501E-05   -.55394E-05
   3  Prefactor     455.66        894.68        .29199E-03   -.32199E-05
   4  Prefactor     9.1257        74.619        .13355E-04   -.11240E-04
   5  Prefactor     .10000E-03    661.31       -.56562E-03** at limit **
   6  norm          .10000E-03    58.035       -.98247E-05** at limit **
   7  Prefactor     63.027        49.772       -.13006E-05   -.13379E-03
   8  norm          22.549        7.3713        .25654E-06   -.32585E-03
   9  Prefactor     .10000E-03    100.78       -.14927E-04** at limit **
  10  Prefactor     .10000E-03    63.750        .32862E-05** at limit **
  11  norm          21.339        79.051        .18933E-04   -.18001E-05
  12  Prefactor     .10000E-03    324.37        .16207E-03** at limit **
  13  norm          .10000E-03    354.75        .53762E-04** at limit **
  14  Prefactor     120.82        272.16        .71399E-04   -.39102E-04
  15  Prefactor     20.244        32.202       -.57932E-05   -.11909E-03
  16  Normalizat    1.6342        .88895       -.95072E-05   -.11925E-03
  17  Prefactor     .84138        .29344       -.10561E-04   -.90083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 27.9759
  Prefactor  = 455.66
  Prefactor  = 9.12565
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 63.027
  norm       = 22.5493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.3392
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 120.822
  Prefactor  = 20.2443
  Normalizat = 1.63418
  Prefactor  = 0.841377
 **********
 **   18 **HESSE 
 **********

 FCN=   1333.642     FROM HESSE     STATUS=OK           213 CALLS     1781 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    61.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.976        57.471        .75738E-04   -1.4650    
   3  Prefactor     455.66        896.07        .95965E-04   -1.1406    
   4  Prefactor     9.1257        74.540        .13284E-03   -1.5104    
   5  Prefactor     .10000E-03    661.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    58.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     63.027        49.860        .50545E-04   -1.4119    
   8  norm          22.549        7.3728        .53204E-04   -1.4758    
   9  Prefactor     .10000E-03    100.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    63.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.339        79.227        .86734E-04   -1.4784    
  12  Prefactor     .10000E-03    325.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    365.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     120.82        272.22        .18312E-03   -1.3505    
  15  Prefactor     20.244        32.336        .89010E-04   -1.4808    
  16  Normalizat    1.6342        1.0247        .49140E-03   -.74075    
  17  Prefactor     .84138        .33996        .21779E-03   -.98221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10178e-10
Minuit parameter uncertainties:
  1  0.00051835
  2  57.5846
  3  926.228
  4  52.2512
  5  0.00160095
  6  1.5707e-05
  7  49.8935
  8  7.37309
  9  1.77741e-05
  10  2.20353e-05
  11  79.6212
  12  0.00100552
  13  0.00193716
  14  275.116
  15  32.364
  16  1.03839
  17  0.340816
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  1.777e-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.414e-01  3.408e-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.634e+00  1.038e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.581 -30.181
Photon Flux Upper Limit: 5.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158093/likelihoodResults_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.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) = 1333.64248454
delta logL = -4.60461253624e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1333.64243894
delta logL = -4.49111894341e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18224E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8821       1.0000          .0000       10.000    
     3 'Normalizat'    1.6344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84131       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=   1333.642     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    550.24        .90712E-02** at limit **
   2  Index         1.8627        6.4440        .50000        .14739E-05
   3  Normalizat    1.6342        .81536        .11087        .25562E-05
   4  Prefactor     .84137        .27603        .44252E-01    .27285E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86272
  Normalizat = 1.6342
  Prefactor  = 0.841372
 **********
 **   18 **HESSE 
 **********

 FCN=   1333.642     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9996.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8627        8.1760        .50000       -.67828    
   3  Normalizat    1.6342        .86603        .49140E-03   -.74074    
   4  Prefactor     .84137        .29414        .21779E-03   -.98221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.52183e-10
Minuit parameter uncertainties:
  1  0.00153958
  2  61.2333
  3  0.8742
  4  0.294695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158093': 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) = 1333.6424385
delta logL = -4.73596628581e-09

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  1.540e-03  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.863e+00  6.123e+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:  8.414e-01  2.947e-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.634e+00  8.742e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/158093/cmap_HighResolution_677376001_677635201_4FGL_J1958.3-3010_daily_bin1690.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-02', job_status='DONE', photon_flux_upper_limit='5.01e-07', time_completed='2022-06-23 01:19:51.469581', job_id='158093', GAL2='0.84', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1655972391.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-4.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1690' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jun 23 01:19:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 158093: <4FGL_J1958.3-3010_daily_bin1690> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin1690> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:10:20 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:10:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:10:55 2022
Terminated at Thu Jun 23 01:19:52 2022
Results reported at Thu Jun 23 01:19:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin1690 299.581 -30.181 677376001 677635201 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 :                                   388.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            572 sec.

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

