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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin570
RA = 299.503, Dec = -38.7547
tmin = 387072001, tmax = 387331201
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='414720', job_status='RUN', time_executed='2021-09-24 00:07:19.947058', time_epoch_executed='1632467239.95' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414720/ft1_4FGL_J1958.0-3845_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414720/ft1_4FGL_J1958.0-3845_daily_bin570.fits outfile=/scratch/kocevski/414720/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin570.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=387072001.0 tmax=387331201.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.54
user 3.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414720/ft1_filtered_4FGL_J1958.0-3845_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/414720/ltcube_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.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/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits
.....................!
real 12.48
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414720/ft1_filtered_4FGL_J1958.0-3845_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/414720/ltcube_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.fits outfile=/scratch/kocevski/414720/expmap_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.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/414720/ltcube_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.fits
.....................!
real 192.97
user 186.31
sys 5.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/414720/ft1_filtered_4FGL_J1958.0-3845_daily_bin570.fits scfile=/scratch/kocevski/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits outfile=/scratch/kocevski/414720/cmap_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414720/ft1_filtered_4FGL_J1958.0-3845_daily_bin570.fits scfile=/scratch/kocevski/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits outfile=/scratch/kocevski/414720/cmap_HighResolution_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414720/ft1_filtered_4FGL_J1958.0-3845_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/414720/ft2_4FGL_J1958.0-3845_daily_bin570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414720/Model_4FGL_J1958.0-3845_daily_bin570.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/414720/ft1_filtered_4FGL_J1958.0-3845_daily_bin570.fits.....................!
real 96.60
user 95.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2581       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0413       1.0000         .10000E-03   10000.    
     8 'norm      '    .10349E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5722       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5892       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.916       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16463E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .44776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90344       1.0000         .10000E-03   10000.    
    17 'norm      '    15.857       1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.661       1.0000         .10000E-03   10000.    
    19 'norm      '    .52930       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50393E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0591       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=   11491.42     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2601 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.132        .90712E-02** at limit **
   2  norm          2.2583        1.7392        .68346E-02   -.11589E-03
   3  Prefactor     2.7825        2.9703        .61009E-02    .16046E-03
   4  Prefactor     .10000E-03    39.529        .90712E-02** at limit **
   5  Prefactor     .10000E-03    2.1803        .90712E-02** at limit **
   6  Prefactor     .10000E-03    17.388        .90712E-02** at limit **
   7  Prefactor     9.0518        9.1717        .33324E-02   -.17326E-03
   8  norm          .10000E-03    8.9955        .90712E-02** at limit **
   9  Prefactor     8.5749        4.7404        .34228E-02    .28276E-03
  10  norm          2.5895        1.0078        .63397E-02    .75879E-04
  11  Prefactor     28.908        23.509        .18626E-02   -.10309E-02
  12  norm          .10000E-03    5.1463        .90712E-02** at limit **
  13  norm          .10000E-03    7.8276        .11159    ** at limit **
  14  norm          .44817        1.0462        .33947E-01    .21961E-02
  15  Prefactor     .10000E-03    11.041        .90712E-02** at limit **
  16  norm          .90323        2.5866        .12820E-01    .21008E-02
  17  norm          15.856        10.027        .25145E-02    .34797E-03
  18  Prefactor     40.638        45.750        .15715E-02    .60739E-03
  19  norm          .52506        10.735        .11390        .83943E-03
  20  Prefactor     .10000E-03    12.866        .90712E-02** at limit **
  21  Prefactor     .10001E-03    406.93        .95958E-02** at limit **
  22  Normalizat    1.0978        .22918        .10016        .38546E-04
  23  Prefactor     1.0591        .78246E-01    .39405E-01   -.41288E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.25835
  Prefactor  = 2.78249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.05182
  norm       = 0.0001
  Prefactor  = 8.57488
  norm       = 2.58947
  Prefactor  = 28.9082
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.448166
  Prefactor  = 0.0001
  norm       = 0.903228
  norm       = 15.8563
  Prefactor  = 40.6377
  norm       = 0.525058
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.0978
  Prefactor  = 1.05911
 **********
 **   18 **HESSE 
 **********

 FCN=   11491.42     FROM HESSE     STATUS=OK           376 CALLS     2977 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2583        1.7434        .12068E-03   -1.5407    
   3  Prefactor     2.7825        2.9678        .18595E-03   -1.5374    
   4  Prefactor     .10000E-03    39.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1916        .15456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0518        9.1612        .13329E-03   -1.5106    
   8  norm          .10000E-03    9.0191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5749        4.7354        .13691E-03   -1.5122    
  10  norm          2.5895        1.0055        .64545E-04   -1.5386    
  11  Prefactor     28.908        23.518        .74505E-04   -1.4632    
  12  norm          .10000E-03    5.2090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    86.203        .57166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44817        .89508        .16202E-02   -1.5574    
  15  Prefactor     .10000E-03    11.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90323        2.5302        .27902E-03   -1.5518    
  17  norm          15.856        10.026        .10058E-03   -1.4911    
  18  Prefactor     40.638        45.739        .62862E-04   -1.4432    
  19  norm          .52506        82.778        .68267E-02   -1.5563    
  20  Prefactor     .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    413.39        .19192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0978        .25496        .44384E-03   -.89822    
  23  Prefactor     1.0591        .89159E-01    .15816E-03   -.90784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53797e-08
Minuit parameter uncertainties:
  1  1.31458e-05
  2  1.74348
  3  2.968
  4  0.000115681
  5  8.11269e-06
  6  9.35294e-06
  7  9.1626
  8  1.66104e-05
  9  4.7356
  10  1.00549
  11  23.525
  12  1.19747e-05
  13  9.58517e-05
  14  0.895102
  15  1.79462e-05
  16  2.53052
  17  10.0266
  18  45.7788
  19  13.2027
  20  3.99883e-05
  21  0.00291049
  22  0.255248
  23  0.0891711
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  2.589e+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:  1.059e+00  8.917e-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.098e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.54
Ra Dec: 299.503 -38.755
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.15e-08
Energy Flux (Fixed Index): 4.28e-05 +/- 1.66e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11490.8340491
delta logL = 0.58438901533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11490.8101699
delta logL = 0.608268222313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5788       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7470       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0552       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=   11490.81     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5788        1.2817        .63537E-02    .64483E-04
   2  alpha         1.7470        .40342        .36581       -.75648E-04
   3  Normalizat    1.1279        .22156        .99040E-01   -.34405E-03
   4  Prefactor     1.0552        .77707E-01    .39614E-01   -.12583E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57877
  alpha      = 1.74701
  Normalizat = 1.12787
  Prefactor  = 1.05521
 **********
 **   18 **HESSE 
 **********

 FCN=   11490.81     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5788        1.1106        .68745E-04   -1.5387    
   2  alpha         1.7470        .38613        .14557E-01   -.30595    
   3  Normalizat    1.1279        .25082        .43885E-03   -.88862    
   4  Prefactor     1.0552        .88475E-01    .15846E-03   -.90911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10068e-10
Minuit parameter uncertainties:
  1  1.11066
  2  0.38784
  3  0.251087
  4  0.0884873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414720': 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) = 11490.8101699
delta logL = 0.608268222737

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  2.579e+00  1.111e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  1.747e+00  3.878e-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.055e+00  8.849e-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.128e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.76
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 1.75 +/- 0.39
Photon Flux (Free Index): 7.45e-08 +/- 4.16e-08
Energy Flux (Free Index): 5.21e-05 +/- 2.43e-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/414720/cmap_HighResolution_387072001_387331201_4FGL_J1958.0-3845_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='5.21e-05', photon_flux_error='4.15e-08', dlogl='6.08e-01', energy_flux='4.28e-05', photon_flux2='7.45e-08', job_status='DONE', time_completed='2021-09-24 00:22:38.672459', photon_index_error2='0.39', photon_index2='1.75', ts='16.54', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.10', time_epoch_completed='1632468158.67', return_code='0', job_id='414720', GAL2='1.06', EG2='1.13', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.16e-08', ts2='17.76', photon_index='2.18' WHERE bin_id='570' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:22:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 414720: <4FGL_J1958.0-3845_daily_bin570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin570 299.503 -38.7547 387072001 387331201 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 :                                   917.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             353.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            937 sec.

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

