/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 23 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1958.3-3010_daily_bin1402
RA = 299.581, Dec = -30.181
tmin = 602726401, tmax = 602985601
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='439516', job_status='RUN', time_executed='2021-09-24 01:33:14.326223', time_epoch_executed='1632472394.33' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439516/ft1_4FGL_J1958.3-3010_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439516/ft1_4FGL_J1958.3-3010_daily_bin1402.fits outfile=/scratch/kocevski/439516/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin1402.fits ra=299.581 dec=-30.181 rad=12.0 tmin=602726401.0 tmax=602985601.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.11
user 2.88
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/439516/ltcube_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.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/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits
.....................!
real 12.31
user 11.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/439516/ltcube_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits outfile=/scratch/kocevski/439516/expmap_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.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/439516/ltcube_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits
.....................!
real 192.37
user 186.99
sys 5.07

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/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits scfile=/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits outfile=/scratch/kocevski/439516/cmap_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits scfile=/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits outfile=/scratch/kocevski/439516/cmap_HighResolution_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=299.581 yref=-30.181 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439516/Model_4FGL_J1958.3-3010_daily_bin1402.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/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits.....................!
real 43.84
user 42.55
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits', '/scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits', expMap='/scratch/kocevski/439516/expmap_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits', expCube='/scratch/kocevski/439516/ltcube_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439516/Model_4FGL_J1958.3-3010_daily_bin1402.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/439516/ft1_filtered_4FGL_J1958.3-3010_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/439516/ft2_4FGL_J1958.3-3010_daily_bin1402.fits
Exposure map: /scratch/kocevski/439516/expmap_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits
Exposure cube: /scratch/kocevski/439516/ltcube_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439516/Model_4FGL_J1958.3-3010_daily_bin1402.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3732.59595201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62829       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    25.503       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.309       1.0000         .10000E-03   10000.    
     8 'norm      '    .95012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.878       1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.749       1.0000         .10000E-03   10000.    
    11 'norm      '    15.449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6597       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0355       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0077       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=   3732.551     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1621 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.165        13.105        .20953E-05   -.38506E-04
   2  Prefactor     .60009        6.1029       -.54269E-07   -.47567E-04
   3  Prefactor     .10000E-03    78.859       -.63072E-05** at limit **
   4  Prefactor     1.1241        16.232        .26290E-05   -.33619E-03
   5  Prefactor     .10000E-03    26.289       -.10357E-05** at limit **
   6  norm          25.486        31.650       -.32187E-05   -.43052E-04
   7  Prefactor     15.314        14.408        .86435E-06   -.23398E-04
   8  norm          .95366        1.9825       -.37290E-06   -.83738E-03
   9  Prefactor     73.877        64.284       -.42205E-06    .45810E-05
  10  Prefactor     74.807        74.218        .51219E-04    .72783E-05
  11  norm          15.404        37.482       -.33484E-04   -.11952E-04
  12  Prefactor     .10000E-03    153.57        .23941E-05** at limit **
  13  norm          .10000E-03    46.759       -.71631E-06** at limit **
  14  Prefactor     .10000E-03    149.23        .15561E-04** at limit **
  15  Prefactor     3.6359        90.081       -.21946E-04   -.12713E-04
  16  Normalizat    1.0331        .56856       -.88699E-05   -.38708E-04
  17  Prefactor     1.0080        .13629        .16040E-05   -.26922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1654
  Prefactor  = 0.600089
  Prefactor  = 0.0001
  Prefactor  = 1.12407
  Prefactor  = 0.0001
  norm       = 25.4856
  Prefactor  = 15.3138
  norm       = 0.953665
  Prefactor  = 73.8772
  Prefactor  = 74.8065
  norm       = 15.4043
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63587
  Normalizat = 1.03312
  Prefactor  = 1.00802
 **********
 **   18 **HESSE 
 **********

 FCN=   3732.551     FROM HESSE     STATUS=OK           229 CALLS     1850 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.165        13.141        .11988E-03   -1.5040    
   2  Prefactor     .60009        35.051        .26705E-02   -1.5553    
   3  Prefactor     .10000E-03    78.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1241        90.603        .44037E-02   -1.5496    
   5  Prefactor     .10000E-03    26.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.486        31.594        .79324E-04   -1.4698    
   7  Prefactor     15.314        14.416        .10237E-03   -1.4925    
   8  norm          .95366        1.7459        .11431E-02   -1.5513    
   9  Prefactor     73.877        64.284        .46712E-04   -1.3987    
  10  Prefactor     74.807        73.911        .23220E-03   -1.3976    
  11  norm          15.404        37.522        .10190E-03   -1.4923    
  12  Prefactor     .10000E-03    153.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    47.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    149.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6359        90.453        .21115E-03   -1.5327    
  16  Normalizat    1.0331        .63464        .57409E-03   -.91929    
  17  Prefactor     1.0080        .15816        .15231E-03   -.92463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86908e-09
Minuit parameter uncertainties:
  1  13.1448
  2  9.17745
  3  5.85169e-07
  4  20.2143
  5  2.02852e-05
  6  31.6148
  7  14.4192
  8  1.746
  9  64.3445
  10  74.0021
  11  37.579
  12  0.000195845
  13  0.00017597
  14  0.000493063
  15  36.331
  16  0.639381
  17  0.158229
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  7.388e+01  6.434e+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.008e+00  1.582e-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.033e+00  6.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 299.581 -30.181
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 8.15e-08 +/- 7.10e-08
Energy Flux (Fixed Index): 8.44e-05 +/- 7.35e-05

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

Saving results to:
/scratch/kocevski/439516/likelihoodResults_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.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) = 3732.4953923
delta logL = 0.0552226680779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3732.49380735
delta logL = 0.0568076116479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.662       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6507       1.0000          .0000       10.000    
     3 'Normalizat'    1.0456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0070       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=   3732.494     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      297 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.609        90.637        .21101E-03    .10452E-04
   2  Index         1.6504        .59023        .69858E-02    .19678E-03
   3  Normalizat    1.0465        .57525        .57096E-03    .16208E-04
   4  Prefactor     1.0070        .15308        .15241E-03   -.49754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.6087
  Index      = 1.65035
  Normalizat = 1.04651
  Prefactor  = 1.00697
 **********
 **   18 **HESSE 
 **********

 FCN=   3732.494     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.609        89.049        .84404E-05   -1.3801    
   2  Index         1.6504        .57993        .13972E-02   -.73411    
   3  Normalizat    1.0465        .57547        .22838E-04   -.91488    
   4  Prefactor     1.0070        .15317        .60964E-05   -.92498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18032e-11
Minuit parameter uncertainties:
  1  89.1806
  2  0.582319
  3  0.578951
  4  0.153239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439516': 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) = 3732.49380318
delta logL = 0.056811784772

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  9.061e+01  8.918e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.650e+00  5.823e-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.007e+00  1.532e-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.047e+00  5.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 299.581 -30.181
Photon Index (Free Index): 1.65 +/- 0.58
Photon Flux (Free Index): 6.20e-08 +/- 7.62e-08
Energy Flux (Free Index): 1.19e-04 +/- 1.62e-04

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/439516/cmap_HighResolution_602726401_602985601_4FGL_J1958.3-3010_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-02', comment='SUCCESS', photon_flux='8.15e-08', energy_flux2='1.19e-04', photon_flux_error='7.10e-08', dlogl='5.68e-02', energy_flux='8.44e-05', photon_flux2='6.20e-08', job_status='DONE', time_completed='2021-09-24 01:42:19.975930', photon_index_error2='0.58', photon_index2='1.65', ts='3.08', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='2.63e-07', energy_flux_error2='1.62e-04', EG='1.03', time_epoch_completed='1632472939.98', return_code='0', job_id='439516', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='7.35e-05', photon_flux_error2='7.62e-08', ts2='3.20', photon_index='1.85' WHERE bin_id='1402' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 439516: <4FGL_J1958.3-3010_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin1402> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 24 01:32:34 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:32:36 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:32:36 2021
Terminated at Fri Sep 24 01:42:20 2021
Results reported at Fri Sep 24 01:42:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin1402 299.581 -30.181 602726401 602985601 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 :                                   495.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            586 sec.

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

