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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin1167
RA = 299.503, Dec = -38.7547
tmin = 541814401, tmax = 542073601
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='417892', job_status='RUN', time_executed='2021-09-24 00:17:15.830446', time_epoch_executed='1632467835.83' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417892/ft1_4FGL_J1958.0-3845_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417892/ft1_4FGL_J1958.0-3845_daily_bin1167.fits outfile=/scratch/kocevski/417892/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1167.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=541814401.0 tmax=542073601.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.64
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.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/417892/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/417892/ltcube_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.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/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits
.....................!
real 12.09
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/417892/ltcube_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.fits outfile=/scratch/kocevski/417892/expmap_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.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/417892/ltcube_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.fits
.....................!
real 190.56
user 185.28
sys 4.95

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/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits scfile=/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits outfile=/scratch/kocevski/417892/cmap_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits scfile=/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits outfile=/scratch/kocevski/417892/cmap_HighResolution_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417892/Model_4FGL_J1958.0-3845_daily_bin1167.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/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits.....................!
real 77.28
user 75.99
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits', '/scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits', expMap='/scratch/kocevski/417892/expmap_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.fits', expCube='/scratch/kocevski/417892/ltcube_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/417892/Model_4FGL_J1958.0-3845_daily_bin1167.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/417892/ft1_filtered_4FGL_J1958.0-3845_daily_bin1167.fits
Spacecraft file(s): /scratch/kocevski/417892/ft2_4FGL_J1958.0-3845_daily_bin1167.fits
Exposure map: /scratch/kocevski/417892/expmap_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.fits
Exposure cube: /scratch/kocevski/417892/ltcube_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/417892/Model_4FGL_J1958.0-3845_daily_bin1167.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) = 8939.3171845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6835       1.0000         .10000E-03   10000.    
     4 'Prefactor '    110.34       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78522       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.838       1.0000         .10000E-03   10000.    
    12 'norm      '    12.192       1.0000         .10000E-03   10000.    
    13 'norm      '    12.756       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1503       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5009       1.0000         .10000E-03   10000.    
    16 'norm      '    10.646       1.0000         .10000E-03   10000.    
    17 'norm      '    36.614       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .91886       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85996       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0988       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.

 FCN=   8939.314     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2517 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7672       -.10002E-06** at limit **
   2  norm          .10000E-03    .60743       -.50889E-07** at limit **
   3  Prefactor     3.6837        4.6462       -.50902E-06    .99073E-04
   4  Prefactor     110.34        81.762        .98397E-07   -.24419E-05
   5  Prefactor     .10000E-03    3.0546       -.26937E-06** at limit **
   6  Prefactor     .10000E-03    11.232       -.86103E-06** at limit **
   7  Prefactor     .10000E-03    14.272        .20771E-05** at limit **
   8  norm          .10000E-03    6.1241       -.25004E-06** at limit **
   9  Prefactor     .81378        3.5660       -.34858E-06   -.12005E-03
  10  norm          1.0698        1.1138       -.92442E-06    .36300E-03
  11  Prefactor     42.828        36.790        .13530E-05    .17264E-04
  12  norm          12.193        9.8933        .16020E-06    .42151E-04
  13  norm          12.759        21.613       -.76408E-06    .14296E-04
  14  norm          5.1506        2.3712       -.70116E-07    .43962E-04
  15  Prefactor     6.5011        51.025       -.43409E-06    .11635E-04
  16  norm          10.648        5.7351       -.84492E-07    .46331E-04
  17  norm          36.616        15.556       -.37575E-06    .56615E-04
  18  Prefactor     .10000E-03    24.268       -.23040E-06** at limit **
  19  norm          .10000E-03    6.3724        .40259E-06** at limit **
  20  Prefactor     .88257        127.42       -.79763E-05    .11857E-04
  21  Prefactor     .10000E-03    21.708       -.14659E-05** at limit **
  22  Normalizat    .85960        .29531        .28222E-05    .25613E-04
  23  Prefactor     1.0988        .93397E-01   -.12897E-06    .13138E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.68366
  Prefactor  = 110.339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.813776
  norm       = 1.06976
  Prefactor  = 42.8275
  norm       = 12.1933
  norm       = 12.7586
  norm       = 5.15065
  Prefactor  = 6.50109
  norm       = 10.6475
  norm       = 36.6161
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.882569
  Prefactor  = 0.0001
  Normalizat = 0.859601
  Prefactor  = 1.09884
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.314     FROM HESSE     STATUS=OK           376 CALLS     2893 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7751        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .60900        .71965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6837        4.6426        .21044E-03   -1.5324    
   4  Prefactor     110.34        81.831        .38292E-04   -1.3603    
   5  Prefactor     .10000E-03    3.0679        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81378        16.487        .31346E-02   -1.5528    
  10  norm          1.0698        1.1174        .99710E-04   -1.5501    
  11  Prefactor     42.828        37.407        .61250E-04   -1.4398    
  12  norm          12.193        9.8784        .11472E-03   -1.5009    
  13  norm          12.759        21.626        .11216E-03   -1.4993    
  14  norm          5.1506        2.3701        .95580E-04   -1.5254    
  15  Prefactor     6.5011        50.914        .15740E-03   -1.5198    
  16  norm          10.648        5.7280        .12279E-03   -1.5055    
  17  norm          36.616        15.535        .66233E-04   -1.4497    
  18  Prefactor     .10000E-03    24.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.3773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .88257        126.14        .68672E-02   -1.5520    
  21  Prefactor     .10000E-03    21.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85960        .31908        .51768E-03   -.97895    
  23  Prefactor     1.0988        .10339        .15610E-03   -.89504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99554e-08
Minuit parameter uncertainties:
  1  1.03195e-08
  2  6.32041e-08
  3  4.64305
  4  81.915
  5  7.36248e-07
  6  1.10789e-05
  7  7.34034e-05
  8  4.58531e-06
  9  7.32762
  10  1.11744
  11  37.4279
  12  9.87967
  13  21.6391
  14  2.37014
  15  36.4292
  16  5.72825
  17  15.5372
  18  4.55333e-07
  19  5.17063e-06
  20  21.147
  21  2.53525e-05
  22  0.319778
  23  0.103412
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.070e+00  1.117e+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:  1.099e+00  1.034e-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:  8.596e-01  3.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 299.503 -38.755
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.84e-05

TS (Fixed Index): 1.21
Ra Dec: 299.503 -38.755
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/417892/likelihoodResults_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.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) = 8939.25179722
delta logL = 0.0623897134865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8939.24947375
delta logL = 0.0647131825772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0084       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4521       1.0000          .0000       5.0000    
     3 'Normalizat'    .84771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1007       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=   8939.249     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0083        1.1315        .94577E-03   -.93743E-03
   2  alpha         2.4521        .81185        .22560E-01   -.26970E-04
   3  Normalizat    .84773        .30073        .52097E-03    .13167E-03
   4  Prefactor     1.1007        .10180        .15598E-03    .44822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00827
  alpha      = 2.4521
  Normalizat = 0.847734
  Prefactor  = 1.1007
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.249     FROM HESSE     STATUS=OK            27 CALLS      268 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0083        1.0756        .37831E-04   -1.5507    
   2  alpha         2.4521        .77308        .90240E-03   -.19161E-01
   3  Normalizat    .84773        .30067        .20839E-04   -.98322    
   4  Prefactor     1.1007        .10175        .31196E-04   -.89444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69458e-10
Minuit parameter uncertainties:
  1  1.07558
  2  0.785965
  3  0.301263
  4  0.101765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417892': 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) = 8939.24947375
delta logL = 0.0647131893274

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.008e+00  1.076e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.452e+00  7.860e-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:  1.101e+00  1.018e-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:  8.477e-01  3.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 2.45 +/- 0.79
Photon Flux (Free Index): 5.57e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.72e-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/417892/cmap_HighResolution_541814401_542073601_4FGL_J1958.0-3845_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-05', comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='1.72e-05', photon_flux_error='4.61e-08', dlogl='6.47e-02', energy_flux='1.77e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-24 00:31:43.467220', photon_index_error2='0.79', photon_index2='2.45', ts='1.21', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.72e-05', EG='0.86', time_epoch_completed='1632468703.47', return_code='0', job_id='417892', GAL2='1.10', EG2='0.85', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.14e-08', ts2='1.34', photon_index='2.18' WHERE bin_id='1167' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:31:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 417892: <4FGL_J1958.0-3845_daily_bin1167> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin1167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 00:16:51 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:16:54 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:16:54 2021
Terminated at Fri Sep 24 00:31:44 2021
Results reported at Fri Sep 24 00:31:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin1167 299.503 -38.7547 541814401 542073601 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 :                                   863.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            893 sec.

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

