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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin1380
RA = 299.503, Dec = -38.7547
tmin = 597024001, tmax = 597283201
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='419698', job_status='RUN', time_executed='2021-09-24 00:24:29.207568', time_epoch_executed='1632468269.21' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='1380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419698

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419698/ft1_4FGL_J1958.0-3845_daily_bin1380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419698/ft1_4FGL_J1958.0-3845_daily_bin1380.fits outfile=/scratch/kocevski/419698/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1380.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=597024001.0 tmax=597283201.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.60
user 3.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419698/ft1_filtered_4FGL_J1958.0-3845_daily_bin1380.fits" evtable="EVENTS" scfile=/scratch/kocevski/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits sctable="SC_DATA" outfile=/scratch/kocevski/419698/ltcube_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.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/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits
.....................!
real 12.65
user 12.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419698/ft1_filtered_4FGL_J1958.0-3845_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits sctable="SC_DATA" expcube=/scratch/kocevski/419698/ltcube_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.fits outfile=/scratch/kocevski/419698/expmap_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.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/419698/ltcube_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.fits
.....................!
real 190.72
user 185.47
sys 4.93

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/419698/ft1_filtered_4FGL_J1958.0-3845_daily_bin1380.fits scfile=/scratch/kocevski/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits outfile=/scratch/kocevski/419698/cmap_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419698/ft1_filtered_4FGL_J1958.0-3845_daily_bin1380.fits scfile=/scratch/kocevski/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits outfile=/scratch/kocevski/419698/cmap_HighResolution_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/419698/ft1_filtered_4FGL_J1958.0-3845_daily_bin1380.fits evtable="EVENTS" scfile=/scratch/kocevski/419698/ft2_4FGL_J1958.0-3845_daily_bin1380.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419698/Model_4FGL_J1958.0-3845_daily_bin1380.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/419698/ft1_filtered_4FGL_J1958.0-3845_daily_bin1380.fits.....................!
real 76.71
user 75.42
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0509       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.494       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.300       1.0000         .10000E-03   10000.    
    10 'norm      '    .29937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    199.49       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7936       1.0000         .10000E-03   10000.    
    17 'norm      '    8.1109       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2466       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93247       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=   8697.302     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2185 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0510        6.2217       -.22058E-06   -.11282E-03
   2  norm          1.6618        2.1780       -.22506E-06   -.63288E-03
   3  Prefactor     18.420        10.150       -.28203E-06   -.78415E-04
   4  Prefactor     .10000E-03    45.784        .31790E-04** at limit **
   5  Prefactor     .10000E-03    5.1783        .17743E-06** at limit **
   6  Prefactor     5.8035        22.094       -.16756E-04   -.24449E-04
   7  Prefactor     30.494        14.330       -.87285E-07    .70720E-04
   8  norm          .10000E-03    6.5739       -.29656E-08** at limit **
   9  Prefactor     10.300        6.7540       -.24873E-06   -.12202E-03
  10  norm          .29916        .73224       -.43397E-06   -.23271E-02
  11  Prefactor     .10000E-03    14.454        .97007E-05** at limit **
  12  norm          .10000E-03    3.0501       -.24754E-07** at limit **
  13  norm          199.49        37.066       -.76766E-06    .50824E-04
  14  norm          .10000E-03    .82001       -.30177E-08** at limit **
  15  Prefactor     .10000E-03    15.695       -.76748E-05** at limit **
  16  norm          6.7932        5.1090        .78768E-06   -.21792E-03
  17  norm          8.1105        9.6019       -.29013E-06   -.32019E-04
  18  Prefactor     .10000E-03    36.748       -.16300E-04** at limit **
  19  norm          .10000E-03    9.4545        .14683E-05** at limit **
  20  Prefactor     .10000E-03    10.833       -.35077E-05** at limit **
  21  Prefactor     .10000E-03    68.537       -.16298E-04** at limit **
  22  Normalizat    1.2467        .27939        .68519E-06    .70183E-04
  23  Prefactor     .93244        .90576E-01    .45095E-06    .51270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.05097
  norm       = 1.66181
  Prefactor  = 18.4202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.8035
  Prefactor  = 30.4941
  norm       = 0.0001
  Prefactor  = 10.3001
  norm       = 0.29916
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 199.485
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.79317
  norm       = 8.11051
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24672
  Prefactor  = 0.932445
 **********
 **   18 **HESSE 
 **********

 FCN=   8697.302     FROM HESSE     STATUS=OK           368 CALLS     2553 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0510        6.2246        .17892E-03   -1.5258    
   2  norm          1.6618        2.1614        .15284E-03   -1.5450    
   3  Prefactor     18.420        10.161        .93319E-04   -1.4849    
   4  Prefactor     .10000E-03    45.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8035        22.148        .16624E-03   -1.5226    
   7  Prefactor     30.494        14.293        .72556E-04   -1.4603    
   8  norm          .10000E-03    6.5748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.300        6.7555        .12485E-03   -1.5066    
  10  norm          .29916        .72028        .11990E-03   -1.5599    
  11  Prefactor     .10000E-03    14.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0549        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          199.49        37.180        .14304E-03   -1.2874    
  14  norm          .10000E-03    1.4777        .16434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7932        5.0963        .15394E-03   -1.5187    
  17  norm          8.1105        9.6012        .14078E-03   -1.5138    
  18  Prefactor     .10000E-03    36.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.4693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2467        .32074        .44887E-03   -.85171    
  23  Prefactor     .93244        .10544        .16846E-03   -.95016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19707e-09
Minuit parameter uncertainties:
  1  6.22544
  2  2.16145
  3  10.1624
  4  2.17459e-05
  5  3.45095e-05
  6  22.1798
  7  14.2944
  8  5.40997e-07
  9  6.75604
  10  0.720298
  11  9.28565e-06
  12  2.22752e-06
  13  37.1841
  14  5.6433e-06
  15  3.5678e-07
  16  5.09665
  17  9.60298
  18  1.87736e-06
  19  3.65565e-06
  20  3.27066e-06
  21  1.00824e-05
  22  0.321245
  23  0.105465
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  2.992e-01  7.203e-01  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.324e-01  1.055e-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.247e+00  3.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/419698/likelihoodResults_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.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): 102
logL (Free Index) = 8696.97155583
delta logL = 0.330196194871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8696.95052494
delta logL = 0.351227080937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18874       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9852       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94464       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=   8696.951     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18777        2.5292        .94471E-02    .33932E-02
   2  alpha         3.9894        4.4553        .50000        .74364E-04
   3  Normalizat    1.1726        .52698E-01    .10392        .20559E-04
   4  Prefactor     .94461        .17470E-01    .45571E-01   -.10926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.187768
  alpha      = 3.98942
  Normalizat = 1.17257
  Prefactor  = 0.944614
 **********
 **   18 **HESSE 
 **********

 FCN=   8696.951     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18777        10.240        .42141E-04   -1.5621    
   2  alpha         3.9894        2.9992        .32600E-01    .63822    
   3  Normalizat    1.1726        .32914        .46057E-03   -.87455    
   4  Prefactor     .94461        .98523E-01    .16740E-03   -.94599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81321e-06
Minuit parameter uncertainties:
  1  2.77298
  2  10.9413
  3  0.329726
  4  0.0985417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419698': 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): 102
logL (Free Index) = 8696.95052339
delta logL = 0.35122863341

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.878e-01  2.773e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  3.989e+00  1.094e+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.446e-01  9.854e-02  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.173e+00  3.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/419698/cmap_HighResolution_597024001_597283201_4FGL_J1958.0-3845_daily_bin1380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-24 00:38:23.966838', job_id='419698', GAL2='0.94', fit_tolerance='1e-08', EG2='1.17', EG='1.25', time_epoch_completed='1632469103.97', return_code2='102', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.51e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1380' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 419698: <4FGL_J1958.0-3845_daily_bin1380> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin1380 299.503 -38.7547 597024001 597283201 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 :                                   812.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

