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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin248
RA = 299.581, Dec = -30.181
tmin = 303609601, tmax = 303868801
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='433648', job_status='RUN', time_executed='2021-09-24 01:14:12.271841', time_epoch_executed='1632471252.27' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433648/ft1_4FGL_J1958.3-3010_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433648/ft2_4FGL_J1958.3-3010_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433648/ft1_4FGL_J1958.3-3010_daily_bin248.fits outfile=/scratch/kocevski/433648/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin248.fits ra=299.581 dec=-30.181 rad=12.0 tmin=303609601.0 tmax=303868801.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.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433648/ft1_filtered_4FGL_J1958.3-3010_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/433648/ft2_4FGL_J1958.3-3010_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/433648/ltcube_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.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/433648/ft2_4FGL_J1958.3-3010_daily_bin248.fits
.....................!
real 12.05
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433648/ft1_filtered_4FGL_J1958.3-3010_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/433648/ft2_4FGL_J1958.3-3010_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/433648/ltcube_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.fits outfile=/scratch/kocevski/433648/expmap_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.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/433648/ltcube_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.fits
.....................!
real 189.91
user 185.12
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/433648/ft1_filtered_4FGL_J1958.3-3010_daily_bin248.fits scfile=/scratch/kocevski/433648/ft2_4FGL_J1958.3-3010_daily_bin248.fits outfile=/scratch/kocevski/433648/cmap_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433648/ft1_filtered_4FGL_J1958.3-3010_daily_bin248.fits scfile=/scratch/kocevski/433648/ft2_4FGL_J1958.3-3010_daily_bin248.fits outfile=/scratch/kocevski/433648/cmap_HighResolution_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14760E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22177E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.383       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .69388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.101       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.589       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0468       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=   8936.128     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1602 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0049       -.20039E-07** at limit **
   2  Prefactor     7.2241        6.3777       -.25272E-05    .25065E-03
   3  Prefactor     .10000E-03    287.84       -.34324E-05** at limit **
   4  Prefactor     .10000E-03    40.848        .40492E-06** at limit **
   5  Prefactor     38.390        47.101        .40356E-05   -.81033E-04
   6  norm          .10000E-03    7.4908        .19427E-06** at limit **
   7  Prefactor     .10000E-03    2.6748       -.27058E-07** at limit **
   8  norm          .69289        .98235       -.23938E-06   -.18316E-02
   9  Prefactor     12.099        20.517        .14374E-05   -.53226E-04
  10  Prefactor     18.586        22.880        .18359E-05   -.86730E-04
  11  norm          .10000E-03    7.2530       -.22817E-06** at limit **
  12  Prefactor     .10000E-03    34.864       -.36812E-06** at limit **
  13  norm          .10000E-03    2.8534       -.25157E-07** at limit **
  14  Prefactor     .10000E-03    12.624       -.96826E-09** at limit **
  15  Prefactor     .10000E-03    3.2819       -.27228E-07** at limit **
  16  Normalizat    1.1248        .28646        .10710E-06    .18160E-04
  17  Prefactor     1.0468        .87473E-01    .18799E-06    .55514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.22413
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 38.39
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.692888
  Prefactor  = 12.0987
  Prefactor  = 18.5859
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12476
  Prefactor  = 1.04681
 **********
 **   18 **HESSE 
 **********

 FCN=   8936.128     FROM HESSE     STATUS=OK           221 CALLS     1823 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2241        6.4536        .14922E-03   -1.5170    
   3  Prefactor     .10000E-03    289.57        .20483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.502        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.390        46.696        .64694E-04   -1.4468    
   6  norm          .10000E-03    7.4960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7040        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .69289        .91756        .11083E-02   -1.5541    
   9  Prefactor     12.099        20.473        .11516E-03   -1.5012    
  10  Prefactor     18.586        22.748        .92896E-04   -1.4845    
  11  norm          .10000E-03    7.2790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8564        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3051        .16720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1248        .32886        .48408E-03   -.88961    
  17  Prefactor     1.0468        .10187        .15201E-03   -.91185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1648e-10
Minuit parameter uncertainties:
  1  8.08891e-07
  2  6.45425
  3  0.00134106
  4  1.95112e-05
  5  46.7406
  6  5.6948e-06
  7  1.71014e-07
  8  0.917583
  9  20.4846
  10  22.7587
  11  2.7935e-06
  12  2.45012e-05
  13  5.5828e-08
  14  1.40701e-06
  15  1.07022e-06
  16  0.32946
  17  0.101892
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.210e+01  2.048e+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.047e+00  1.019e-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.125e+00  3.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433648/likelihoodResults_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.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): 0
logL (Free Index) = 8936.05270861
delta logL = 0.075687861603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8936.04922307
delta logL = 0.0791733978494

Fit tolerance = 1e-08

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

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

 FCN=   8936.049     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      306 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.244        27.988        .96454E-04   -.40075E-05
   2  Index         1.5475        .74972        .13089E-01    .24465E-03
   3  Normalizat    1.1275        .32765        .48357E-03   -.91594E-04
   4  Prefactor     1.0466        .10076        .15201E-03   -.23427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2444
  Index      = 1.54746
  Normalizat = 1.12747
  Prefactor  = 1.04661
 **********
 **   18 **HESSE 
 **********

 FCN=   8936.049     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.244        27.647        .38581E-05   -1.4877    
   2  Index         1.5475        .74123        .26177E-02   -.76219    
   3  Normalizat    1.1275        .32785        .19343E-04   -.88875    
   4  Prefactor     1.0466        .10083        .30403E-04   -.91191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.369e-11
Minuit parameter uncertainties:
  1  27.6674
  2  0.746517
  3  0.328446
  4  0.10085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433648': 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) = 8936.04922222
delta logL = 0.0791742428464

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.724e+01  2.767e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.547e+00  7.465e-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.047e+00  1.008e-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.127e+00  3.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/433648/cmap_HighResolution_303609601_303868801_4FGL_J1958.3-3010_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-24 01:26:30.724934', job_id='433648', GAL2='1.05', fit_tolerance='1e-08', EG2='1.13', EG='1.12', time_epoch_completed='1632471990.72', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.92e-02', ts2='0.70', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='248' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:26:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 433648: <4FGL_J1958.3-3010_daily_bin248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin248 299.581 -30.181 303609601 303868801 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 :                                   739.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             271.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            894 sec.

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

