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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin1080
RA = 299.503, Dec = -38.7547
tmin = 519264001, tmax = 519523201
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='417750', job_status='RUN', time_executed='2021-09-24 00:17:58.226916', time_epoch_executed='1632467878.23' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417750/ft1_4FGL_J1958.0-3845_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417750/ft1_4FGL_J1958.0-3845_daily_bin1080.fits outfile=/scratch/kocevski/417750/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1080.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=519264001.0 tmax=519523201.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.47
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417750/ft1_filtered_4FGL_J1958.0-3845_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/417750/ltcube_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.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/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits
.....................!
real 12.18
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417750/ft1_filtered_4FGL_J1958.0-3845_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/417750/ltcube_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.fits outfile=/scratch/kocevski/417750/expmap_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.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/417750/ltcube_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.fits
.....................!
real 190.20
user 185.40
sys 4.47

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/417750/ft1_filtered_4FGL_J1958.0-3845_daily_bin1080.fits scfile=/scratch/kocevski/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits outfile=/scratch/kocevski/417750/cmap_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.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/417750/ft1_filtered_4FGL_J1958.0-3845_daily_bin1080.fits scfile=/scratch/kocevski/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits outfile=/scratch/kocevski/417750/cmap_HighResolution_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.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/417750/ft1_filtered_4FGL_J1958.0-3845_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/417750/ft2_4FGL_J1958.0-3845_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417750/Model_4FGL_J1958.0-3845_daily_bin1080.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/417750/ft1_filtered_4FGL_J1958.0-3845_daily_bin1080.fits.....................!
real 74.31
user 72.94
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.140       1.0000         .10000E-03   10000.    
     8 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8962       1.0000         .10000E-03   10000.    
    10 'norm      '    .74707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.790       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1950       1.0000         .10000E-03   10000.    
    13 'norm      '    38.073       1.0000         .10000E-03   10000.    
    14 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.127       1.0000         .10000E-03   10000.    
    16 'norm      '    .10508E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.848       1.0000         .10000E-03   10000.    
    19 'norm      '    14.702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.381       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0796       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96211       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=   8166.494     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2591 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9739       -.22793E-06** at limit **
   2  norm          .10000E-03    1.4389       -.16769E-06** at limit **
   3  Prefactor     .10000E-03    4.4319       -.56880E-06** at limit **
   4  Prefactor     .10000E-03    53.582        .47962E-05** at limit **
   5  Prefactor     18.521        10.431       -.18929E-05    .10478E-04
   6  Prefactor     .10000E-03    14.105        .14648E-06** at limit **
   7  Prefactor     34.136        16.847       -.25634E-05   -.32364E-04
   8  norm          .10000E-03    21.322       -.11993E-05** at limit **
   9  Prefactor     9.8958        7.6538       -.17530E-05   -.14551E-03
  10  norm          .74732        .75456        .54188E-06    .17301E-02
  11  Prefactor     31.791        25.698       -.40059E-07   -.29885E-05
  12  norm          4.1908        7.8416        .17094E-05   -.13502E-03
  13  norm          38.062        24.561       -.75060E-05    .91380E-04
  14  norm          .10000E-03    .96180       -.60237E-06** at limit **
  15  Prefactor     34.037        63.568       -.13566E-03    .29491E-04
  16  norm          .10000E-03    2.3318       -.54798E-07** at limit **
  17  norm          .10000E-03    4.2808        .37303E-06** at limit **
  18  Prefactor     36.845        43.488       -.51034E-05    .73832E-05
  19  norm          14.691        24.094       -.85497E-05   -.17421E-05
  20  Prefactor     15.296        26.646        .80361E-05    .25408E-04
  21  Prefactor     73.349        71.895       -.34321E-04    .20999E-04
  22  Normalizat    1.0803        .28454        .27556E-04   -.21142E-03
  23  Prefactor     .96194        .88692E-01   -.13596E-05    .92260E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5206
  Prefactor  = 0.0001
  Prefactor  = 34.1363
  norm       = 0.0001
  Prefactor  = 9.89576
  norm       = 0.747318
  Prefactor  = 31.791
  norm       = 4.19076
  norm       = 38.0624
  norm       = 0.000100001
  Prefactor  = 34.037
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.8446
  norm       = 14.691
  Prefactor  = 15.2955
  Prefactor  = 73.3486
  Normalizat = 1.08031
  Prefactor  = 0.961937
 **********
 **   18 **HESSE 
 **********

 FCN=   8166.494     FROM HESSE     STATUS=OK           366 CALLS     2957 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9896        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4549        .10583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.521        10.434        .93065E-04   -1.4847    
   6  Prefactor     .10000E-03    14.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.136        16.832        .68583E-04   -1.4539    
   8  norm          .10000E-03    21.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8958        7.6491        .12738E-03   -1.5079    
  10  norm          .74732        .75414        .76110E-04   -1.5535    
  11  Prefactor     31.791        25.699        .71066E-04   -1.4580    
  12  norm          4.1908        7.8144        .19676E-03   -1.5299    
  13  norm          38.062        24.577        .64955E-04   -1.4473    
  14  norm          .10000E-03    2.7158        .17220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.037        63.613        .68596E-04   -1.4540    
  16  norm          .10000E-03    2.3747        .13467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.2976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.845        43.489        .66023E-04   -1.4493    
  19  norm          14.691        24.099        .10446E-03   -1.4941    
  20  Prefactor     15.296        26.655        .10242E-03   -1.4926    
  21  Prefactor     73.349        71.944        .23434E-03   -1.3993    
  22  Normalizat    1.0803        .32137        .45314E-03   -.90387    
  23  Prefactor     .96194        .10204        .15926E-03   -.94009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50167e-09
Minuit parameter uncertainties:
  1  2.77497e-05
  2  1.96405e-05
  3  6.48368e-05
  4  0.000255259
  5  10.4347
  6  3.25606e-05
  7  16.8348
  8  2.55122e-05
  9  7.64982
  10  0.754154
  11  25.708
  12  7.81625
  13  24.5838
  14  0.000102744
  15  63.7402
  16  6.10942e-06
  17  3.8538e-06
  18  43.5267
  19  24.1154
  20  26.676
  21  72.0291
  22  0.321953
  23  0.102059
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  7.473e-01  7.542e-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.619e-01  1.021e-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.080e+00  3.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 299.503 -38.755
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.08e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/417750/likelihoodResults_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.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) = 8164.94208569
delta logL = 1.55146327205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8164.92612391
delta logL = 1.56742505381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20767       1.0000         .10000E-03   10000.    
     2 'alpha     '    .62292       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96175       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=   8164.926     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20757        .23455        .90854E-02   -.82474E-03
   2  alpha         .62273        .57960        .50000       -.27232E-04
   3  Normalizat    1.0960        .26161        .10162       -.15420E-03
   4  Prefactor     .96176        .87831E-01    .45787E-01   -.59625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.207566
  alpha      = 0.622731
  Normalizat = 1.09598
  Prefactor  = 0.961758
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.926     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20757        .37007        .36945E-03   -1.5617    
   2  alpha         .62273        .74317        .25744E-01   -.84944    
   3  Normalizat    1.0960        .29963        .45033E-03   -.89881    
   4  Prefactor     .96176        .10093        .15926E-03   -.94015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51125e-09
Minuit parameter uncertainties:
  1  0.370079
  2  0.770876
  3  0.3001
  4  0.100951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417750': 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) = 8164.92612387
delta logL = 1.56742509374

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  2.076e-01  3.701e-01  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  6.227e-01  7.709e-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.618e-01  1.010e-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.096e+00  3.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 0.62 +/- 0.77
Photon Flux (Free Index): 6.95e-09 +/- 8.04e-09
Energy Flux (Free Index): 4.38e-05 +/- 6.06e-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/417750/cmap_HighResolution_519264001_519523201_4FGL_J1958.0-3845_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', photon_flux='3.08e-08', energy_flux2='4.38e-05', photon_flux_error='3.11e-08', dlogl='1.57e+00', energy_flux='1.23e-05', photon_flux2='6.95e-09', job_status='DONE', time_completed='2021-09-24 00:31:42.713828', photon_index_error2='0.77', photon_index2='0.62', ts='2.94', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='6.06e-05', EG='1.08', time_epoch_completed='1632468702.71', return_code='0', job_id='417750', GAL2='0.96', EG2='1.10', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='8.04e-09', ts2='6.07', photon_index='2.18' WHERE bin_id='1080' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 417750: <4FGL_J1958.0-3845_daily_bin1080> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin1080> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 00:16:41 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:16:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 00:16:44 2021
Terminated at Fri Sep 24 00:31:43 2021
Results reported at Fri Sep 24 00:31:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin1080 299.503 -38.7547 519264001 519523201 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 :                                   822.23 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             333.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            902 sec.

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

