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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin903
RA = 299.503, Dec = -38.7547
tmin = 473385601, tmax = 473644801
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='416280', job_status='RUN', time_executed='2021-09-24 00:12:04.306018', time_epoch_executed='1632467524.31' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416280/ft1_4FGL_J1958.0-3845_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416280/ft1_4FGL_J1958.0-3845_daily_bin903.fits outfile=/scratch/kocevski/416280/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin903.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=473385601.0 tmax=473644801.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.55
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.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/416280/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin903.fits evtable="EVENTS" outfile="/scratch/kocevski/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/416280/ltcube_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.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/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits
.....................!
real 11.98
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/416280/ltcube_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.fits outfile=/scratch/kocevski/416280/expmap_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.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/416280/ltcube_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.fits
.....................!
real 190.19
user 185.32
sys 4.53

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/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.fits scfile=/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits outfile=/scratch/kocevski/416280/cmap_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.fits scfile=/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits outfile=/scratch/kocevski/416280/cmap_HighResolution_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.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/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/416280/ft2_4FGL_J1958.0-3845_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416280/Model_4FGL_J1958.0-3845_daily_bin903.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/416280/ft1_filtered_4FGL_J1958.0-3845_daily_bin903.fits.....................!
real 72.97
user 71.64
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.896       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.606       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0082       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1936       1.0000         .10000E-03   10000.    
    17 'norm      '    14.157       1.0000         .10000E-03   10000.    
    18 'Prefactor '    97.239       1.0000         .10000E-03   10000.    
    19 'norm      '    8.6547       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.040       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4578       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95250       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=   8062.366     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2549 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9507        .74458E-07** at limit **
   2  norm          2.3834        2.1314        .24678E-08   -.41591E-05
   3  Prefactor     .10000E-03    6.8946        .15929E-06** at limit **
   4  Prefactor     12.914        167.43        .15015E-05    .86342E-05
   5  Prefactor     9.4991        9.7066        .99372E-07   -.10227E-04
   6  Prefactor     .10000E-03    8.3103       -.48097E-07** at limit **
   7  Prefactor     .10000E-03    11.830        .12786E-06** at limit **
   8  norm          .10000E-03    23.412       -.46449E-07** at limit **
   9  Prefactor     .10000E-03    3.5291        .16183E-06** at limit **
  10  norm          1.4523        1.0163        .36674E-07   -.49747E-04
  11  Prefactor     54.633        34.284        .36403E-06    .11788E-03
  12  norm          .10000E-03    7.1976        .22336E-06** at limit **
  13  norm          .10000E-03    12.753       -.51152E-07** at limit **
  14  norm          1.0082        1.1161       -.27764E-07   -.19574E-04
  15  Prefactor     .10000E-03    82.131       -.89564E-06** at limit **
  16  norm          3.1928        3.4369        .16395E-05   -.17820E-03
  17  norm          14.157        12.722        .70873E-08   -.12560E-05
  18  Prefactor     97.189        109.20       -.55863E-06   -.58066E-04
  19  norm          8.6547        29.622        .23715E-06   -.36217E-05
  20  Prefactor     58.039        60.202       -.39101E-06   -.11732E-04
  21  Prefactor     .10000E-03    71.358        .69277E-06** at limit **
  22  Normalizat    1.4582        .29237        .10217E-05   -.58349E-04
  23  Prefactor     .95235        .93601E-01   -.65037E-06    .65057E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.38338
  Prefactor  = 0.0001
  Prefactor  = 12.9136
  Prefactor  = 9.49907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45231
  Prefactor  = 54.633
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.0082
  Prefactor  = 0.000100001
  norm       = 3.19278
  norm       = 14.1575
  Prefactor  = 97.1891
  norm       = 8.65474
  Prefactor  = 58.0386
  Prefactor  = 0.000100001
  Normalizat = 1.4582
  Prefactor  = 0.952347
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.366     FROM HESSE     STATUS=OK           366 CALLS     2915 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3834        2.1410        .12048E-03   -1.5399    
   3  Prefactor     .10000E-03    6.9993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.914        167.60        .11154E-03   -1.4989    
   5  Prefactor     9.4991        9.7252        .13003E-03   -1.5091    
   6  Prefactor     .10000E-03    8.3123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5799        .16468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4523        1.0048        .73068E-04   -1.5467    
  11  Prefactor     54.633        34.310        .27141E-03   -1.4228    
  12  norm          .10000E-03    7.4524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0082        1.1096        .97221E-04   -1.5507    
  15  Prefactor     .10000E-03    82.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1928        3.4640        .84181E-03   -1.5351    
  17  norm          14.157        12.726        .10645E-03   -1.4955    
  18  Prefactor     97.189        109.45        .20382E-03   -1.3733    
  19  norm          8.6547        29.508        .13626E-03   -1.5120    
  20  Prefactor     58.039        60.194        .52659E-04   -1.4183    
  21  Prefactor     .10000E-03    71.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4582        .33899        .42103E-03   -.78960    
  23  Prefactor     .95235        .10864        .16690E-03   -.94335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60766e-10
Minuit parameter uncertainties:
  1  2.89742e-06
  2  2.14102
  3  7.59931e-06
  4  93.3679
  5  9.72679
  6  1.36041e-05
  7  7.14674e-06
  8  7.41629e-06
  9  8.0456e-07
  10  1.00477
  11  34.3228
  12  1.50315e-05
  13  1.66139e-05
  14  1.10966
  15  0.000636215
  16  3.46421
  17  12.7289
  18  109.679
  19  29.5574
  20  60.2577
  21  0.000569972
  22  0.339521
  23  0.108669
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.452e+00  1.005e+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.523e-01  1.087e-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.458e+00  3.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.76
Ra Dec: 299.503 -38.755
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/416280/likelihoodResults_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.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) = 8061.20729281
delta logL = 1.1589536054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8061.12437806
delta logL = 1.24186835405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99057       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1713       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94941       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=   8061.124     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99009        .74527        .13132E-01   -.56020E-04
   2  alpha         1.1711        .42902        .39923       -.43002E-04
   3  Normalizat    1.4890        .27535        .94244E-01    .15091E-04
   4  Prefactor     .94938        .91177E-01    .45632E-01    .13607E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.990094
  alpha      = 1.17107
  Normalizat = 1.48901
  Prefactor  = 0.949382
 **********
 **   18 **HESSE 
 **********

 FCN=   8061.124     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99009        1.0225        .61832E-04   -1.5509    
   2  alpha         1.1711        .61196        .16870E-01   -.56046    
   3  Normalizat    1.4890        .32196        .41742E-03   -.78088    
   4  Prefactor     .94938        .10698        .16710E-03   -.94436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54535e-09
Minuit parameter uncertainties:
  1  1.02248
  2  0.620812
  3  0.3224
  4  0.107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416280': 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) = 8061.12437789
delta logL = 1.24186852249

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  9.901e-01  1.022e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  1.171e+00  6.208e-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:  9.494e-01  1.070e-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.489e+00  3.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.25
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 1.17 +/- 0.62
Photon Flux (Free Index): 2.39e-08 +/- 2.37e-08
Energy Flux (Free Index): 4.80e-05 +/- 4.42e-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/416280/cmap_HighResolution_473385601_473644801_4FGL_J1958.0-3845_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-05', comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='4.80e-05', photon_flux_error='4.14e-08', dlogl='1.24e+00', energy_flux='2.40e-05', photon_flux2='2.39e-08', job_status='DONE', time_completed='2021-09-24 00:25:28.308557', photon_index_error2='0.62', photon_index2='1.17', ts='3.76', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='4.42e-05', EG='1.46', time_epoch_completed='1632468328.31', return_code='0', job_id='416280', GAL2='0.95', EG2='1.49', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='2.37e-08', ts2='6.25', photon_index='2.18' WHERE bin_id='903' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:25:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 416280: <4FGL_J1958.0-3845_daily_bin903> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin903> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 00:11:47 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:11:51 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:11:51 2021
Terminated at Fri Sep 24 00:25:29 2021
Results reported at Fri Sep 24 00:25:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin903 299.503 -38.7547 473385601 473644801 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 :                                   802.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            822 sec.

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

