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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin547
RA = 299.581, Dec = -30.181
tmin = 381110401, tmax = 381369601
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='435186', job_status='RUN', time_executed='2021-09-24 01:20:16.327695', time_epoch_executed='1632471616.33' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435186/ft1_4FGL_J1958.3-3010_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435186/ft2_4FGL_J1958.3-3010_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435186/ft1_4FGL_J1958.3-3010_daily_bin547.fits outfile=/scratch/kocevski/435186/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin547.fits ra=299.581 dec=-30.181 rad=12.0 tmin=381110401.0 tmax=381369601.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.77
user 4.55
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435186/ft2_4FGL_J1958.3-3010_daily_bin547.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/435186/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/435186/ft1_filtered_4FGL_J1958.3-3010_daily_bin547.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/435186/ft1_filtered_4FGL_J1958.3-3010_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/435186/ft2_4FGL_J1958.3-3010_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/435186/ltcube_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.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/435186/ft2_4FGL_J1958.3-3010_daily_bin547.fits
.....................!
real 12.00
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435186/ft1_filtered_4FGL_J1958.3-3010_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/435186/ft2_4FGL_J1958.3-3010_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/435186/ltcube_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.fits outfile=/scratch/kocevski/435186/expmap_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.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/435186/ltcube_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.fits
.....................!
real 190.70
user 186.05
sys 4.33

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/435186/ft1_filtered_4FGL_J1958.3-3010_daily_bin547.fits scfile=/scratch/kocevski/435186/ft2_4FGL_J1958.3-3010_daily_bin547.fits outfile=/scratch/kocevski/435186/cmap_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435186/ft1_filtered_4FGL_J1958.3-3010_daily_bin547.fits scfile=/scratch/kocevski/435186/ft2_4FGL_J1958.3-3010_daily_bin547.fits outfile=/scratch/kocevski/435186/cmap_HighResolution_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21102E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.657       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.149       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.726       1.0000         .10000E-03   10000.    
    11 'norm      '    .11365E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    41.231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4861       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .37434       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2313       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=   8886.802     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1625 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3864        8.4517        .85622E-07   -.47479E-05
   2  Prefactor     .10000E-03    1.7953        .34294E-07** at limit **
   3  Prefactor     .10000E-03    289.61       -.38457E-06** at limit **
   4  Prefactor     16.954        13.883        .30138E-06    .17840E-04
   5  Prefactor     25.672        25.142       -.82921E-06    .56087E-05
   6  norm          .10000E-03    15.606       -.33928E-07** at limit **
   7  Prefactor     11.150        7.3759        .30707E-06    .27236E-04
   8  norm          1.9929        1.3181        .12517E-06   -.20274E-03
   9  Prefactor     47.194        41.919       -.10583E-05    .14527E-04
  10  Prefactor     68.704        37.147        .43275E-06   -.22279E-04
  11  norm          .10000E-03    53.676        .25869E-05** at limit **
  12  Prefactor     .10000E-03    28.933        .13641E-06** at limit **
  13  norm          41.237        18.235        .17730E-06    .56557E-04
  14  Prefactor     .10000E-03    53.981       -.21508E-05** at limit **
  15  Prefactor     1.4959        13.367        .28687E-05   -.22517E-03
  16  Normalizat    .37407        .37427       -.13085E-04   -.67351E-04
  17  Prefactor     1.2313        .10883        .19756E-05   -.86807E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.38644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9544
  Prefactor  = 25.6718
  norm       = 0.0001
  Prefactor  = 11.15
  norm       = 1.99293
  Prefactor  = 47.1935
  Prefactor  = 68.7036
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 41.2367
  Prefactor  = 0.0001
  Prefactor  = 1.49587
  Normalizat = 0.374075
  Prefactor  = 1.23134
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.802     FROM HESSE     STATUS=OK           227 CALLS     1852 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3864        8.4598        .13839E-03   -1.5129    
   2  Prefactor     .10000E-03    1.8065        .12333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    294.67        .20180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.954        13.891        .97263E-04   -1.4884    
   5  Prefactor     25.672        25.111        .79086E-04   -1.4694    
   6  norm          .10000E-03    15.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.150        7.3949        .11998E-03   -1.5040    
   8  norm          1.9929        1.3140        .84078E-04   -1.5426    
   9  Prefactor     47.194        41.850        .58352E-04   -1.4333    
  10  Prefactor     68.704        37.205        .48418E-04   -1.4048    
  11  norm          .10000E-03    55.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          41.237        18.134        .62428E-04   -1.4423    
  14  Prefactor     .10000E-03    53.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4959        14.249        .35185E-03   -1.5463    
  16  Normalizat    .37407        .37140        .83938E-03   -1.1866    
  17  Prefactor     1.2313        .10769        .14781E-03   -.85372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94543e-10
Minuit parameter uncertainties:
  1  8.461
  2  1.21356e-06
  3  0.000241663
  4  13.8932
  5  25.1211
  6  4.76799e-06
  7  7.39554
  8  1.31406
  9  41.8761
  10  37.2175
  11  0.000153049
  12  1.32878e-06
  13  18.1362
  14  6.13249e-05
  15  9.23617
  16  0.373882
  17  0.107704
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  4.719e+01  4.188e+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.231e+00  1.077e-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:  3.741e-01  3.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 299.581 -30.181
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 5.39e-05 +/- 4.78e-05

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

Saving results to:
/scratch/kocevski/435186/likelihoodResults_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.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) = 8886.76435108
delta logL = 0.0378923695371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8886.76247819
delta logL = 0.0397652558167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.189       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0035       1.0000          .0000       10.000    
     3 'Normalizat'    .36453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2321       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=   8886.762     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      311 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.189        51.361        .64027E-04   -.15625E-04
   2  Index         2.0034        .61343        .66904E-02    .67028E-03
   3  Normalizat    .36454        .33944        .84926E-03   -.94830E-04
   4  Prefactor     1.2321        .10488        .14776E-03   -.70195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1893
  Index      = 2.00344
  Normalizat = 0.36454
  Prefactor  = 1.23206
 **********
 **   18 **HESSE 
 **********

 FCN=   8886.762     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.189        47.190        .25611E-05   -1.4455    
   2  Index         2.0034        .56372        .13381E-02   -.64264    
   3  Normalizat    .36454        .33829        .33970E-04   -1.1918    
   4  Prefactor     1.2321        .10466        .29552E-04   -.85350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3906e-10
Minuit parameter uncertainties:
  1  47.2346
  2  0.565597
  3  0.340209
  4  0.104682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435186': 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) = 8886.76247816
delta logL = 0.0397652865395

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  3.919e+01  4.723e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  2.003e+00  5.656e-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.232e+00  1.047e-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:  3.645e-01  3.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 299.581 -30.181
Photon Index (Free Index): 2.00 +/- 0.57
Photon Flux (Free Index): 6.49e-08 +/- 7.05e-08
Energy Flux (Free Index): 4.45e-05 +/- 4.91e-05

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/435186/cmap_HighResolution_381110401_381369601_4FGL_J1958.3-3010_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='4.45e-05', photon_flux_error='4.62e-08', dlogl='3.98e-02', energy_flux='5.39e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-24 01:32:37.137663', photon_index_error2='0.57', photon_index2='2.00', ts='1.98', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='4.91e-05', EG='0.37', time_epoch_completed='1632472357.14', return_code='0', job_id='435186', GAL2='1.23', EG2='0.36', return_code2='0', energy_flux_error='4.78e-05', photon_flux_error2='7.05e-08', ts2='2.06', photon_index='1.85' WHERE bin_id='547' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:32:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 435186: <4FGL_J1958.3-3010_daily_bin547> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin547> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 24 01:16:56 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:16:58 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:16:58 2021
Terminated at Fri Sep 24 01:32:37 2021
Results reported at Fri Sep 24 01:32:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin547 299.581 -30.181 381110401 381369601 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 :                                   740.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

