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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin210
RA = 299.581, Dec = -30.181
tmin = 293760001, tmax = 294019201
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='432518', job_status='RUN', time_executed='2021-09-24 01:09:01.710382', time_epoch_executed='1632470941.71' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432518/ft1_4FGL_J1958.3-3010_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432518/ft2_4FGL_J1958.3-3010_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432518/ft1_4FGL_J1958.3-3010_daily_bin210.fits outfile=/scratch/kocevski/432518/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin210.fits ra=299.581 dec=-30.181 rad=12.0 tmin=293760001.0 tmax=294019201.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.52
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432518/ft1_filtered_4FGL_J1958.3-3010_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/432518/ft2_4FGL_J1958.3-3010_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/432518/ltcube_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.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/432518/ft2_4FGL_J1958.3-3010_daily_bin210.fits
.....................!
real 11.93
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432518/ft1_filtered_4FGL_J1958.3-3010_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/432518/ft2_4FGL_J1958.3-3010_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/432518/ltcube_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.fits outfile=/scratch/kocevski/432518/expmap_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.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/432518/ltcube_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.fits
.....................!
real 190.03
user 185.26
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/432518/ft1_filtered_4FGL_J1958.3-3010_daily_bin210.fits scfile=/scratch/kocevski/432518/ft2_4FGL_J1958.3-3010_daily_bin210.fits outfile=/scratch/kocevski/432518/cmap_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432518/ft1_filtered_4FGL_J1958.3-3010_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/432518/ft2_4FGL_J1958.3-3010_daily_bin210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432518/Model_4FGL_J1958.3-3010_daily_bin210.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/432518/ft1_filtered_4FGL_J1958.3-3010_daily_bin210.fits.....................!
real 76.92
user 75.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    78.980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.982       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3340       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93327E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.884       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.247       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0662       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8532.180     FROM MIGRAD    STATUS=CONVERGED    356 CALLS     1596 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6107         .0000    ** at limit **
   2  Prefactor     1.5553        8.0198         .0000        .18166E-01
   3  Prefactor     78.982        79.223         .0000       -.91501E-03
   4  Prefactor     .10000E-03    3.7691         .0000    ** at limit **
   5  Prefactor     41.982        33.700         .0000        .94229E-05
   6  norm          .10000E-03    12.042         .0000    ** at limit **
   7  Prefactor     5.3349        8.5005         .0000        .32897E-03
   8  norm          1.4070        1.0083         .0000        .68150E-04
   9  Prefactor     21.415        29.863         .0000        .44870E-05
  10  Prefactor     .10000E-03    11.805         .0000    ** at limit **
  11  norm          7.4016        18.558         .0000        .20918E-03
  12  Prefactor     23.885        30.789         .0000        .55703E-05
  13  norm          .10000E-03    6.1616         .0000    ** at limit **
  14  Prefactor     .10006E-03    192.16         .0000    ** at limit **
  15  Prefactor     15.213        12.733         .0000        .44333E-03
  16  Normalizat    1.2410        .35003         .0000        .18827E-03
  17  Prefactor     1.0662        .95462E-01     .0000        .23147E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.55535
  Prefactor  = 78.982
  Prefactor  = 0.0001
  Prefactor  = 41.9818
  norm       = 0.0001
  Prefactor  = 5.33489
  norm       = 1.407
  Prefactor  = 21.4152
  Prefactor  = 0.000100002
  norm       = 7.40155
  Prefactor  = 23.8855
  norm       = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 15.2127
  Normalizat = 1.24104
  Prefactor  = 1.06618
 **********
 **   18 **HESSE 
 **********

 FCN=   8532.180     FROM HESSE     STATUS=OK           221 CALLS     1817 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6257        .17141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5553        7.9815        .17082E-02   -1.5459    
   3  Prefactor     78.982        79.222        .45189E-04   -1.3928    
   4  Prefactor     .10000E-03    3.7762        .17513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.982        33.701        .61869E-04   -1.4411    
   6  norm          .10000E-03    12.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3349        8.4827        .17401E-03   -1.5246    
   8  norm          1.4070        1.0097        .75722E-04   -1.5471    
   9  Prefactor     21.415        29.835        .86552E-04   -1.4782    
  10  Prefactor     .10000E-03    70.076        .61434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4016        18.533        .14736E-03   -1.5164    
  12  Prefactor     23.885        30.789        .81965E-04   -1.4730    
  13  norm          .10000E-03    6.1938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    192.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.213        12.916        .10257E-03   -1.4928    
  16  Normalizat    1.2410        .40305        .50445E-03   -.85344    
  17  Prefactor     1.0662        .11137        .15922E-03   -.90555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40856e-09
Minuit parameter uncertainties:
  1  6.18019e-06
  2  7.04798
  3  79.3286
  4  9.93353e-06
  5  33.7165
  6  2.83249e-05
  7  8.48462
  8  1.00976
  9  29.8562
  10  0.000836266
  11  18.5478
  12  30.8097
  13  1.12507e-05
  14  0.00667217
  15  12.9187
  16  0.404069
  17  0.111399
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  2.142e+01  2.986e+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.066e+00  1.114e-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.241e+00  4.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 299.581 -30.181
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432518/likelihoodResults_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.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) = 8531.62520183
delta logL = 0.554565453402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8531.59559458
delta logL = 0.584172703078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7635       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8817       1.0000          .0000       10.000    
     3 'Normalizat'    1.1683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0743       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8531.596     FROM MIGRAD    STATUS=FAILED       103 CALLS      345 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7385        153.51        .79538E-03   -.28087E-03
   2  Index         2.8836        3.6846        .48020E-02    .11139E-02
   3  Normalizat    1.1682        .39557        .51741E-03   -.14897E-04
   4  Prefactor     1.0743        .99708E-01    .15857E-03   -.31832E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8531.596     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      431 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7385        153.51        .22019E-03   -.28087E-03
   2  Index         2.8836        3.6846        .77704E-03    .11139E-02
   3  Normalizat    1.1682        .39557        .38016E-03   -.14897E-04
   4  Prefactor     1.0743        .99708E-01    .11214E-03   -.31832E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8531.596     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      464 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7385        14.920        .31815E-04   -.21726E-03
   2  Index         2.8836        1.1771        .96041E-03   -.64372E-04
   3  Normalizat    1.1682        .37706        .20696E-04   -.11426E-04
   4  Prefactor     1.0743        .10913        .63428E-05   -.21508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73855
  Index      = 2.88364
  Normalizat = 1.16816
  Prefactor  = 1.0743
 **********
 **   18 **HESSE 
 **********

 FCN=   8531.596     FROM HESSE     STATUS=OK            23 CALLS      487 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7385        12.416        .12726E-05   -1.5273    
   2  Index         2.8836        .98225        .38416E-04   -.43705    
   3  Normalizat    1.1682        .37365        .41393E-05   -.87592    
   4  Prefactor     1.0743        .10864        .12686E-05   -.90292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12793e-11
Minuit parameter uncertainties:
  1  12.4231
  2  0.990117
  3  0.374507
  4  0.108666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432518': 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) = 8531.59559246
delta logL = 0.584174818674

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  4.739e+00  1.242e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  2.884e+00  9.901e-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.074e+00  1.087e-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.168e+00  3.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 299.581 -30.181
Photon Index (Free Index): 2.88 +/- 0.99
Photon Flux (Free Index): 1.09e-07 +/- 1.16e-07
Energy Flux (Free Index): 2.31e-05 +/- 1.94e-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/432518/cmap_HighResolution_293760001_294019201_4FGL_J1958.3-3010_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', comment='SUCCESS', energy_flux2='2.31e-05', dlogl='5.84e-01', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-24 01:21:09.349866', photon_index_error2='0.99', photon_index2='2.88', ts='0.92', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.94e-05', EG='1.24', time_epoch_completed='1632471669.35', return_code='0', job_id='432518', GAL2='1.07', EG2='1.17', return_code2='0', photon_flux_error2='1.16e-07', ts2='2.11', photon_index='1.85' WHERE bin_id='210' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:21:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 432518: <4FGL_J1958.3-3010_daily_bin210> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin210> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 01:06:53 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:06:55 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:06:55 2021
Terminated at Fri Sep 24 01:21:10 2021
Results reported at Fri Sep 24 01:21:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin210 299.581 -30.181 293760001 294019201 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 :                                   727.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             287.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

