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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin1360
RA = 299.503, Dec = -38.7547
tmin = 591840001, tmax = 592099201
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='419670', job_status='RUN', time_executed='2021-09-24 00:26:26.651069', time_epoch_executed='1632468386.65' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419670/ft1_4FGL_J1958.0-3845_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419670/ft2_4FGL_J1958.0-3845_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419670/ft1_4FGL_J1958.0-3845_daily_bin1360.fits outfile=/scratch/kocevski/419670/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1360.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=591840001.0 tmax=592099201.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.24
user 4.96
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/419670/ft2_4FGL_J1958.0-3845_daily_bin1360.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/419670/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/419670/ft1_filtered_4FGL_J1958.0-3845_daily_bin1360.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419670/ft1_filtered_4FGL_J1958.0-3845_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/419670/ft2_4FGL_J1958.0-3845_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/419670/ltcube_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.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/419670/ft2_4FGL_J1958.0-3845_daily_bin1360.fits
.....................!
real 11.63
user 11.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419670/ft1_filtered_4FGL_J1958.0-3845_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/419670/ft2_4FGL_J1958.0-3845_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/419670/ltcube_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.fits outfile=/scratch/kocevski/419670/expmap_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.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/419670/ltcube_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.fits
.....................!
real 190.19
user 185.03
sys 4.85

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/419670/ft1_filtered_4FGL_J1958.0-3845_daily_bin1360.fits scfile=/scratch/kocevski/419670/ft2_4FGL_J1958.0-3845_daily_bin1360.fits outfile=/scratch/kocevski/419670/cmap_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.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.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.402       1.0000         .10000E-03   10000.    
     2 'norm      '    .11355E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9554       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.016       1.0000         .10000E-03   10000.    
     8 'norm      '    10.151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4110       1.0000         .10000E-03   10000.    
    10 'norm      '    .96387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8698       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4858       1.0000         .10000E-03   10000.    
    13 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    120.94       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .14604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    102.04       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5973       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93706       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=   6922.974     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2642 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.393        13.607        .70534E-05   -.66215E-04
   2  norm          .10000E-03    1.7160       -.28349E-06** at limit **
   3  Prefactor     3.9516        9.7544        .73300E-05   -.19174E-03
   4  Prefactor     .10000E-03    52.604        .27711E-05** at limit **
   5  Prefactor     .10000E-03    6.2502        .12158E-06** at limit **
   6  Prefactor     .10000E-03    10.723        .12597E-06** at limit **
   7  Prefactor     20.003        19.398        .18620E-04   -.39072E-04
   8  norm          10.150        16.896       -.35746E-05   -.17013E-04
   9  Prefactor     4.4100        8.0122        .56542E-06   -.32823E-03
  10  norm          .96379        1.5235       -.19617E-06   -.14906E-02
  11  Prefactor     4.8675        69.010       -.98599E-05   -.19090E-04
  12  norm          6.4847        11.724       -.10074E-04   -.14474E-03
  13  norm          .10000E-03    15.981        .33156E-06** at limit **
  14  norm          2.3527        2.3176        .39648E-06   -.43126E-03
  15  Prefactor     120.92        83.650        .34169E-05   -.56510E-04
  16  norm          .10000E-03    2.4723        .14968E-06** at limit **
  17  norm          .81746E-03    15.140        .32295E-05** at limit **
  18  Prefactor     .10000E-03    46.254       -.31552E-05** at limit **
  19  norm          .10000E-03    7.8150        .20169E-07** at limit **
  20  Prefactor     .10000E-03    12.545        .33659E-07** at limit **
  21  Prefactor     102.17        136.85        .70165E-04   -.24091E-04
  22  Normalizat    1.5971        .33216       -.10858E-04   -.99960E-04
  23  Prefactor     .93723        .10629       -.14939E-05   -.47822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3928
  norm       = 0.0001
  Prefactor  = 3.95163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.003
  norm       = 10.1502
  Prefactor  = 4.40999
  norm       = 0.96379
  Prefactor  = 4.86749
  norm       = 6.48472
  norm       = 0.0001
  norm       = 2.35275
  Prefactor  = 120.915
  norm       = 0.0001
  norm       = 0.000817464
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.175
  Normalizat = 1.59708
  Prefactor  = 0.937234
 **********
 **   18 **HESSE 
 **********

 FCN=   6922.974     FROM HESSE     STATUS=OK           380 CALLS     3022 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.393        13.710        .96012E-04   -1.4874    
   2  norm          .10000E-03    6.9216        .20989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9516        9.7411        .20282E-03   -1.5310    
   4  Prefactor     .10000E-03    52.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.003        19.404        .89525E-04   -1.4813    
   8  norm          10.150        16.897        .12577E-03   -1.5071    
   9  Prefactor     4.4100        7.9842        .19175E-03   -1.5288    
  10  norm          .96379        1.4828        .12074E-03   -1.5512    
  11  Prefactor     4.8675        69.136        .18228E-03   -1.5267    
  12  norm          6.4847        11.740        .15759E-03   -1.5199    
  13  norm          .10000E-03    16.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3527        2.3056        .12116E-03   -1.5401    
  15  Prefactor     120.92        83.599        .36596E-04   -1.3504    
  16  norm          .10000E-03    2.4955        .12772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .81746E-03    22.575        .85661E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.8159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     102.17        137.16        .19901E-03   -1.3683    
  22  Normalizat    1.5971        .38871        .42730E-03   -.75086    
  23  Prefactor     .93723        .12523        .17385E-03   -.94852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20752e-10
Minuit parameter uncertainties:
  1  13.7129
  2  7.40514e-05
  3  9.745
  4  7.99698e-05
  5  3.18889e-05
  6  2.05703e-05
  7  19.4102
  8  16.9049
  9  7.98612
  10  1.48284
  11  36.7398
  12  11.7442
  13  0.000153522
  14  2.30569
  15  83.6809
  16  1.11329e-05
  17  0.254628
  18  6.93255e-05
  19  4.90951e-06
  20  4.68267e-05
  21  137.589
  22  0.38945
  23  0.125271
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  9.638e-01  1.483e+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.372e-01  1.253e-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.597e+00  3.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/419670/likelihoodResults_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.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) = 6922.82358901
delta logL = 0.15044526943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6922.81566226
delta logL = 0.158372011867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84778       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8696       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94289       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=   6922.816     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84514        20.492        .12617E-01    .65115E-03
   2  alpha         2.8705        3.5245        .41734        .22990E-04
   3  Normalizat    1.5608        .80172E-01    .97331E-01   -.54834E-03
   4  Prefactor     .94291        .25721E-01    .45549E-01   -.16089E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845144
  alpha      = 2.87049
  Normalizat = 1.5608
  Prefactor  = 0.942908
 **********
 **   18 **HESSE 
 **********

 FCN=   6922.816     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84514        1.5977        .87803E-04   -1.5524    
   2  alpha         2.8705        1.4560        .24753E-01    .14874    
   3  Normalizat    1.5608        .37253        .43113E-03   -.76084    
   4  Prefactor     .94291        .11948        .17334E-03   -.94657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18333e-09
Minuit parameter uncertainties:
  1  1.59782
  2  1.55685
  3  0.373189
  4  0.119514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419670': 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) = 6922.81565999
delta logL = 0.158374280164

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  8.451e-01  1.598e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.870e+00  1.557e+00  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.429e-01  1.195e-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.561e+00  3.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
Ra Dec: 299.503 -38.755

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/419670/cmap_HighResolution_591840001_592099201_4FGL_J1958.0-3845_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-05', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-24 00:39:16.080080', job_id='419670', GAL2='0.94', fit_tolerance='1e-08', EG2='1.56', EG='1.60', time_epoch_completed='1632469156.08', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.58e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1360' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:39:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 419670: <4FGL_J1958.0-3845_daily_bin1360> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin1360> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 00:23:14 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:23:17 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:23:17 2021
Terminated at Fri Sep 24 00:39:16 2021
Results reported at Fri Sep 24 00:39:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin1360 299.503 -38.7547 591840001 592099201 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 :                                   753.26 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

