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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin845
RA = 299.581, Dec = -30.181
tmin = 458352001, tmax = 458611201
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='437739', job_status='RUN', time_executed='2021-09-24 01:26:56.527860', time_epoch_executed='1632472016.53' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='845'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437739

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437739/ft1_4FGL_J1958.3-3010_daily_bin845.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437739/ft2_4FGL_J1958.3-3010_daily_bin845.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437739/ft1_4FGL_J1958.3-3010_daily_bin845.fits outfile=/scratch/kocevski/437739/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin845.fits ra=299.581 dec=-30.181 rad=12.0 tmin=458352001.0 tmax=458611201.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 4.48
user 4.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437739/ft2_4FGL_J1958.3-3010_daily_bin845.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/437739/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin845.fits evtable="EVENTS" outfile="/scratch/kocevski/437739/ft1_filtered_4FGL_J1958.3-3010_daily_bin845.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/437739/ft1_filtered_4FGL_J1958.3-3010_daily_bin845.fits" evtable="EVENTS" scfile=/scratch/kocevski/437739/ft2_4FGL_J1958.3-3010_daily_bin845.fits sctable="SC_DATA" outfile=/scratch/kocevski/437739/ltcube_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.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/437739/ft2_4FGL_J1958.3-3010_daily_bin845.fits
.....................!
real 11.73
user 11.31
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437739/ft1_filtered_4FGL_J1958.3-3010_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/437739/ft2_4FGL_J1958.3-3010_daily_bin845.fits sctable="SC_DATA" expcube=/scratch/kocevski/437739/ltcube_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.fits outfile=/scratch/kocevski/437739/expmap_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.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/437739/ltcube_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.fits
.....................!
real 192.90
user 186.86
sys 5.73

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/437739/ft1_filtered_4FGL_J1958.3-3010_daily_bin845.fits scfile=/scratch/kocevski/437739/ft2_4FGL_J1958.3-3010_daily_bin845.fits outfile=/scratch/kocevski/437739/cmap_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.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.58
user 0.38
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437739/ft1_filtered_4FGL_J1958.3-3010_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/437739/ft2_4FGL_J1958.3-3010_daily_bin845.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437739/Model_4FGL_J1958.3-3010_daily_bin845.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/437739/ft1_filtered_4FGL_J1958.3-3010_daily_bin845.fits.....................!
real 106.16
user 104.52
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.024       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.168       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56165       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .88487       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1532       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=   12447.84     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1375 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.025        7.0574       -.10913E-06   -.30636E-04
   2  Prefactor     1.1913        2.4292       -.54731E-06   -.14019E-02
   3  Prefactor     .10000E-03    30.172        .71556E-05** at limit **
   4  Prefactor     .10000E-03    3.2683       -.33507E-06** at limit **
   5  Prefactor     20.154        25.024       -.16002E-04   -.94436E-05
   6  norm          .10000E-03    4.9855        .45347E-06** at limit **
   7  Prefactor     .56550        2.0006       -.31840E-06   -.67183E-03
   8  norm          1.3565        .90320       -.12017E-06   -.89800E-03
   9  Prefactor     .10000E-03    20.985        .99935E-05** at limit **
  10  Prefactor     .10000E-03    7.4766       -.87091E-05** at limit **
  11  norm          .10000E-03    8.3826        .14040E-04** at limit **
  12  Prefactor     .10000E-03    33.181       -.15435E-04** at limit **
  13  norm          .88250        5.1928       -.17333E-05   -.16799E-03
  14  Prefactor     .10000E-03    11.429       -.99671E-05** at limit **
  15  Prefactor     .10000E-03    4.2343       -.37983E-06** at limit **
  16  Normalizat    1.0509        .26065        .88254E-06    .10346E-03
  17  Prefactor     1.1531        .79492E-01    .27826E-06    .19059E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.0247
  Prefactor  = 1.19128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1539
  norm       = 0.0001
  Prefactor  = 0.565499
  norm       = 1.35646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.882504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05087
  Prefactor  = 1.15313
 **********
 **   18 **HESSE 
 **********

 FCN=   12447.84     FROM HESSE     STATUS=OK           225 CALLS     1600 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.025        7.0673        .10696E-03   -1.4959    
   2  Prefactor     1.1913        2.3866        .24133E-03   -1.5490    
   3  Prefactor     .10000E-03    30.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.154        25.028        .89186E-04   -1.4810    
   6  norm          .10000E-03    4.9878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .56550        6.8585        .27966E-02   -1.5558    
   8  norm          1.3565        .89143        .83104E-04   -1.5475    
   9  Prefactor     .10000E-03    21.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.3846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .88250        19.753        .48520E-02   -1.5520    
  14  Prefactor     .10000E-03    11.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0509        .29113        .50747E-03   -.91345    
  17  Prefactor     1.1531        .90800E-01    .15129E-03   -.87786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53448e-08
Minuit parameter uncertainties:
  1  7.06777
  2  2.3868
  3  1.61904e-05
  4  2.0708e-06
  5  25.0414
  6  4.6902e-07
  7  3.93898
  8  0.891438
  9  2.69894e-05
  10  1.51139e-06
  11  3.01948e-05
  12  1.7657e-05
  13  8.35296
  14  8.76602e-08
  15  1.97374e-06
  16  0.291569
  17  0.0908123
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  2.699e-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.153e+00  9.081e-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.051e+00  2.916e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/437739/likelihoodResults_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.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) = 12447.8427694
delta logL = -0.000226240508709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12447.8425433
delta logL = -2.32565071201e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8755       1.0000          .0000       10.000    
     3 'Normalizat'    1.0507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1532       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=   12447.84     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.721        .90712E-02** at limit **
   2  Index         1.9023        5.4376        .50000       -.10091E-04
   3  Normalizat    1.0509        .12824E-01    .11444       -.11943E-04
   4  Prefactor     1.1531        .40051E-02    .35845E-01   -.24158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.90231
  Normalizat = 1.05086
  Prefactor  = 1.15313
 **********
 **   18 **HESSE 
 **********

 FCN=   12447.84     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1618.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9023        6.6694        .50000       -.66815    
   3  Normalizat    1.0509        .61320E-01    .50747E-03   -.91345    
   4  Prefactor     1.1531        .19222E-01    .15129E-03   -.87786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39786e-09
Minuit parameter uncertainties:
  1  0.00230296
  2  34.5576
  3  0.0613245
  4  0.0192221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437739': 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) = 12447.842543
delta logL = 1.3064709492e-07

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  2.303e-03  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.902e+00  3.456e+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.153e+00  1.922e-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.051e+00  6.132e-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/437739/cmap_HighResolution_458352001_458611201_4FGL_J1958.3-3010_daily_bin845.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-24 01:41:29.790328', job_id='437739', GAL2='1.15', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632472889.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='845' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 437739: <4FGL_J1958.3-3010_daily_bin845> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin845> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 01:26:39 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:26:42 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:42 2021
Terminated at Fri Sep 24 01:41:30 2021
Results reported at Fri Sep 24 01:41:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin845 299.581 -30.181 458352001 458611201 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 :                                   871.50 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

