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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin735
RA = 299.503, Dec = -38.7547
tmin = 429840001, tmax = 430099201
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='414979', job_status='RUN', time_executed='2021-09-24 00:09:17.925761', time_epoch_executed='1632467357.93' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414979/ft1_4FGL_J1958.0-3845_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414979/ft1_4FGL_J1958.0-3845_daily_bin735.fits outfile=/scratch/kocevski/414979/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin735.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.92
user 5.61
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.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/414979/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.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/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/414979/ltcube_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.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/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits
.....................!
real 12.18
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/414979/ltcube_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.fits outfile=/scratch/kocevski/414979/expmap_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.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/414979/ltcube_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.fits
.....................!
real 190.93
user 186.12
sys 4.48

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1958.0-3845 @ 299.503 -38.7547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits scfile=/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits outfile=/scratch/kocevski/414979/cmap_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.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.503 yref=-38.7547 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits scfile=/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits outfile=/scratch/kocevski/414979/cmap_HighResolution_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.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.503 yref=-38.7547 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/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414979/Model_4FGL_J1958.0-3845_daily_bin735.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/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits.....................!
real 64.29
user 62.91
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits', '/scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits', expMap='/scratch/kocevski/414979/expmap_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.fits', expCube='/scratch/kocevski/414979/ltcube_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414979/Model_4FGL_J1958.0-3845_daily_bin735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1958.0-3845'

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.044e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/414979/ft1_filtered_4FGL_J1958.0-3845_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/414979/ft2_4FGL_J1958.0-3845_daily_bin735.fits
Exposure map: /scratch/kocevski/414979/expmap_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.fits
Exposure cube: /scratch/kocevski/414979/ltcube_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414979/Model_4FGL_J1958.0-3845_daily_bin735.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) = 6462.7216713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.393       1.0000         .10000E-03   10000.    
    12 'norm      '    17.341       1.0000         .10000E-03   10000.    
    13 'norm      '    .20559       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.155       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4031       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2799       1.0000         .10000E-03   10000.    
    19 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    113.87       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+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=   6462.708     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     2973 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9993        .13564E-02** at limit **
   2  norm          .10001E-03    5.5280        .23696E-02** at limit **
   3  Prefactor     .21178        11.358        .23401E-02   -.22379E-03
   4  Prefactor     .10000E-03    45.578        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.939        .36285E-02** at limit **
   6  Prefactor     34.853        33.488        .67879E-04    .32492E-05
   7  Prefactor     14.231        16.289        .10617E-03    .21149E-03
   8  norm          .10000E-03    8.2858        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.6519        .12724E-02** at limit **
  10  norm          3.2589        1.6119        .69121E-04    .77467E-04
  11  Prefactor     18.378        42.764        .93390E-04    .52345E-05
  12  norm          17.347        13.531        .96178E-04    .86762E-04
  13  norm          .78448E-01    36.760        .11095        .76831E-04
  14  norm          .10000E-03    .74964        .67845E-03** at limit **
  15  Prefactor     60.152        61.968        .51731E-04    .30460E-04
  16  norm          5.4050        4.9598        .81775E-03    .40456E-04
  17  norm          .10000E-03    9.8831        .18142E-02** at limit **
  18  Prefactor     5.2805        255.77        .17492E-03    .16053E-04
  19  norm          .10000E-03    12.111        .18142E-02** at limit **
  20  Prefactor     11.766        44.036        .11649E-03   -.18102E-03
  21  Prefactor     113.88        102.59        .18850E-03   -.63096E-04
  22  Normalizat    1.2437        .37469        .43346E-03    .30317E-03
  23  Prefactor     .90316        .11000        .15450E-03    .53270E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.211784
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.8531
  Prefactor  = 14.2315
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25893
  Prefactor  = 18.3784
  norm       = 17.347
  norm       = 0.0784482
  norm       = 0.0001
  Prefactor  = 60.1523
  norm       = 5.40497
  norm       = 0.0001
  Prefactor  = 5.28052
  norm       = 0.0001
  Prefactor  = 11.7664
  Prefactor  = 113.879
  Normalizat = 1.24374
  Prefactor  = 0.903162
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.708     FROM HESSE     STATUS=OK           360 CALLS     3333 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9996        .27128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    5.5640        .47392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .21178        11.404        .93603E-04   -1.5616    
   4  Prefactor     .10000E-03    45.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.084        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.853        33.487        .13576E-04   -1.4527    
   7  Prefactor     14.231        16.286        .42468E-05   -1.4953    
   8  norm          .10000E-03    8.2858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6523        .25449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2589        1.6118        .27649E-05   -1.5347    
  11  Prefactor     18.378        42.774        .37356E-05   -1.4850    
  12  norm          17.347        13.525        .38471E-05   -1.4875    
  13  norm          .78448E-01    34.296        .11560       -1.5652    
  14  norm          .10000E-03    .74965        .13569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     60.152        61.969        .10346E-04   -1.4155    
  16  norm          5.4050        4.9568        .32710E-04   -1.5243    
  17  norm          .10000E-03    9.8848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2805        255.74        .69968E-05   -1.5248    
  19  norm          .10000E-03    12.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.766        44.033        .23298E-04   -1.5022    
  21  Prefactor     113.88        102.58        .37701E-04   -1.3570    
  22  Normalizat    1.2437        .37461        .17338E-04   -.85262    
  23  Prefactor     .90316        .10991        .30899E-04   -.96031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14695e-09
Minuit parameter uncertainties:
  1  2.40671e-05
  2  0.000425031
  3  3.10801
  4  0.000221919
  5  0.000204329
  6  33.5055
  7  16.2909
  8  3.65379e-06
  9  1.89663e-05
  10  1.61185
  11  42.8454
  12  13.5271
  13  3.28034
  14  9.39186e-07
  15  62.035
  16  4.95718
  17  6.26984e-05
  18  73.8331
  19  5.86848e-05
  20  44.1549
  21  102.743
  22  0.375421
  23  0.109933
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  3.259e+00  1.612e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.032e-01  1.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.244e+00  3.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.78
Ra Dec: 299.503 -38.755
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 5.38e-05 +/- 2.66e-05

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) = 6461.87776349
delta logL = 0.830647158583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6461.8555918
delta logL = 0.852818845482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8954       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4585       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89432       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6461.856     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8953        1.5143        .59704E-02    .18452E-02
   2  alpha         1.4585        .41843        .34904       -.23725E-04
   3  Normalizat    1.3014        .29444        .96054E-01   -.14469E-03
   4  Prefactor     .89433        .91231E-01    .44933E-01   -.50348E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89535
  alpha      = 1.45849
  Normalizat = 1.30141
  Prefactor  = 0.894325
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.856     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8953        1.8009        .69530E-04   -1.5368    
   2  alpha         1.4585        .52875        .14438E-01   -.42971    
   3  Normalizat    1.3014        .34090        .42552E-03   -.83524    
   4  Prefactor     .89433        .10599        .15520E-03   -.96340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23553e-10
Minuit parameter uncertainties:
  1  1.8009
  2  0.53364
  3  0.34149
  4  0.106017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414979': 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) = 6461.85559179
delta logL = 0.852818850957

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  2.895e+00  1.801e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  1.458e+00  5.336e-01  0.000e+00  5.000e+00 ( 1.000e+00)
385         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  8.943e-01  1.060e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.301e+00  3.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.52
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 1.46 +/- 0.53
Photon Flux (Free Index): 7.25e-08 +/- 5.31e-08
Energy Flux (Free Index): 8.27e-05 +/- 5.84e-05

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/414979/cmap_HighResolution_429840001_430099201_4FGL_J1958.0-3845_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='8.27e-05', photon_flux_error='6.65e-08', dlogl='8.53e-01', energy_flux='5.38e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-24 00:20:42.055332', photon_index_error2='0.53', photon_index2='1.46', ts='10.78', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='5.84e-05', EG='1.24', time_epoch_completed='1632468042.06', return_code='0', job_id='414979', GAL2='0.89', EG2='1.30', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='5.31e-08', ts2='12.52', photon_index='2.18' WHERE bin_id='735' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 414979: <4FGL_J1958.0-3845_daily_bin735> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin735> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 24 00:07:23 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:07:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 00:07:27 2021
Terminated at Fri Sep 24 00:20:42 2021
Results reported at Fri Sep 24 00:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin735 299.503 -38.7547 429840001 430099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1958.0-3845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            799 sec.

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

