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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin192
RA = 299.581, Dec = -30.181
tmin = 289094401, tmax = 289353601
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='432497', job_status='RUN', time_executed='2021-09-24 01:09:31.915223', time_epoch_executed='1632470971.92' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432497/ft1_4FGL_J1958.3-3010_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432497/ft1_4FGL_J1958.3-3010_daily_bin192.fits outfile=/scratch/kocevski/432497/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin192.fits ra=299.581 dec=-30.181 rad=12.0 tmin=289094401.0 tmax=289353601.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.53
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432497/ft1_filtered_4FGL_J1958.3-3010_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/432497/ltcube_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.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/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432497/ft1_filtered_4FGL_J1958.3-3010_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/432497/ltcube_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.fits outfile=/scratch/kocevski/432497/expmap_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.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/432497/ltcube_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.fits
.....................!
real 190.30
user 185.26
sys 4.75

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/432497/ft1_filtered_4FGL_J1958.3-3010_daily_bin192.fits scfile=/scratch/kocevski/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits outfile=/scratch/kocevski/432497/cmap_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432497/ft1_filtered_4FGL_J1958.3-3010_daily_bin192.fits scfile=/scratch/kocevski/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits outfile=/scratch/kocevski/432497/cmap_HighResolution_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432497/ft1_filtered_4FGL_J1958.3-3010_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/432497/ft2_4FGL_J1958.3-3010_daily_bin192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432497/Model_4FGL_J1958.3-3010_daily_bin192.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/432497/ft1_filtered_4FGL_J1958.3-3010_daily_bin192.fits.....................!
real 70.57
user 69.22
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2404       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2681       1.0000         .10000E-03   10000.    
     3 'Prefactor '    113.80       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.245       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6641       1.0000         .10000E-03   10000.    
     8 'norm      '    .89494       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0400       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67987E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1414       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0044       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=   7942.050     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1599 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2410        5.0790       -.15265E-05   -.61383E-04
   2  Prefactor     8.2688        5.7410        .23883E-06   -.36231E-03
   3  Prefactor     113.78        106.62       -.17774E-04   -.30247E-04
   4  Prefactor     .10000E-03    6.5965       -.15726E-06** at limit **
   5  Prefactor     68.247        54.094        .19433E-05    .12837E-04
   6  norm          .10000E-03    9.0661       -.18850E-06** at limit **
   7  Prefactor     2.6627        3.4538        .56693E-06   -.14723E-02
   8  norm          .89507        1.1645       -.43527E-07   -.19829E-03
   9  Prefactor     34.560        41.138        .15380E-05    .12762E-04
  10  Prefactor     .10000E-03    7.5032        .31877E-06** at limit **
  11  norm          3.0394        24.094       -.52895E-06   -.22251E-03
  12  Prefactor     .10000E-03    22.418       -.17919E-05** at limit **
  13  norm          5.9545        14.981       -.14739E-05    .13215E-04
  14  Prefactor     .10000E-03    19.799        .25821E-05** at limit **
  15  Prefactor     .10001E-03    5.3546       -.10208E-05** at limit **
  16  Normalizat    1.1414        .31576        .18725E-05    .94375E-04
  17  Prefactor     1.0044        .91959E-01    .16224E-06    .18390E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.24096
  Prefactor  = 8.26876
  Prefactor  = 113.78
  Prefactor  = 0.0001
  Prefactor  = 68.2468
  norm       = 0.0001
  Prefactor  = 2.66271
  norm       = 0.895071
  Prefactor  = 34.5599
  Prefactor  = 0.0001
  norm       = 3.03943
  Prefactor  = 0.0001
  norm       = 5.95447
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 1.14138
  Prefactor  = 1.00435
 **********
 **   18 **HESSE 
 **********

 FCN=   7942.050     FROM HESSE     STATUS=OK           225 CALLS     1824 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2410        5.0699        .22501E-03   -1.5348    
   2  Prefactor     8.2688        5.7900        .69712E-03   -1.5133    
   3  Prefactor     113.78        106.95        .37711E-04   -1.3571    
   4  Prefactor     .10000E-03    6.6212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     68.247        54.145        .48587E-04   -1.4054    
   6  norm          .10000E-03    9.0719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6627        6.7461        .12485E-02   -1.5382    
   8  norm          .89507        1.0363        .10428E-02   -1.5519    
   9  Prefactor     34.560        41.462        .68168E-04   -1.4532    
  10  Prefactor     .10000E-03    7.5065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0394        27.856        .11636E-02   -1.5359    
  12  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9545        14.990        .16453E-03   -1.5220    
  14  Prefactor     .10000E-03    19.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    21.189        .39080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1414        .36059        .49110E-03   -.88434    
  17  Prefactor     1.0044        .10724        .15549E-03   -.92585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36686e-09
Minuit parameter uncertainties:
  1  5.07054
  2  5.79037
  3  107.127
  4  3.29511e-06
  5  54.1837
  6  2.30339e-06
  7  6.74802
  8  1.0363
  9  41.4967
  10  2.40293e-06
  11  18.4141
  12  2.30952e-05
  13  14.9998
  14  2.16371e-05
  15  0.000952588
  16  0.36137
  17  0.107259
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  3.456e+01  4.150e+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.004e+00  1.073e-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.141e+00  3.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/432497/likelihoodResults_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.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) = 7941.82910629
delta logL = 0.2207652284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7941.80187429
delta logL = 0.247997224886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.560       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4180       1.0000          .0000       10.000    
     3 'Normalizat'    1.1055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0086       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=   7941.802     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      309 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.538        110.58        .10497E-03    .12033E-03
   2  Index         2.4186        2.1599        .56868E-02    .10114E-03
   3  Normalizat    1.1053        .38921        .49787E-03    .18555E-03
   4  Prefactor     1.0086        .11118        .15514E-03   -.80558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5379
  Index      = 2.41862
  Normalizat = 1.10534
  Prefactor  = 1.00859
 **********
 **   18 **HESSE 
 **********

 FCN=   7941.802     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.538        33.023        .41987E-05   -1.4945    
   2  Index         2.4186        .92204        .22747E-03   -.54250    
   3  Normalizat    1.1053        .35653        .19915E-04   -.89581    
   4  Prefactor     1.0086        .10609        .31029E-04   -.92444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24019e-09
Minuit parameter uncertainties:
  1  33.0642
  2  0.929321
  3  0.357309
  4  0.10611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432497': 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) = 7941.80187385
delta logL = 0.247997666585

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.454e+01  3.306e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  2.419e+00  9.293e-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.009e+00  1.061e-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.105e+00  3.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 299.581 -30.181
Photon Index (Free Index): 2.42 +/- 0.93
Photon Flux (Free Index): 7.92e-08 +/- 9.56e-08
Energy Flux (Free Index): 2.53e-05 +/- 2.71e-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/432497/cmap_HighResolution_289094401_289353601_4FGL_J1958.3-3010_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='2.53e-05', dlogl='2.48e-01', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-09-24 01:20:52.756037', photon_index_error2='0.93', photon_index2='2.42', ts='0.99', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='2.71e-05', EG='1.14', time_epoch_completed='1632471652.76', return_code='0', job_id='432497', GAL2='1.01', EG2='1.11', return_code2='0', photon_flux_error2='9.56e-08', ts2='1.49', photon_index='1.85' WHERE bin_id='192' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:20:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 432497: <4FGL_J1958.3-3010_daily_bin192> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin192> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 01:06:52 2021
Job was executed on host(s) <bullet0211>, 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:20:53 2021
Results reported at Fri Sep 24 01:20:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin192 299.581 -30.181 289094401 289353601 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 :                                   680.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

