aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 203 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 = 7524
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1706
RA = 310.136, Dec = -17.0901
tmin = 681523201, tmax = 681782401
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='506348', job_status='RUN', time_executed='2022-08-10 02:18:11.893100', time_epoch_executed='1660123091.89' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506348/ft1_4FGL_J2040.5-1705_daily_bin1706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506348/ft1_4FGL_J2040.5-1705_daily_bin1706.fits outfile=/scratch/kocevski/506348/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1706.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=681523201.0 tmax=681782401.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 2.61
user 2.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.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/506348/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1706.fits evtable="EVENTS" outfile="/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits" evtable="EVENTS" scfile=/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits sctable="SC_DATA" outfile=/scratch/kocevski/506348/ltcube_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.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/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits
.....................!
real 15.43
user 14.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits sctable="SC_DATA" expcube=/scratch/kocevski/506348/ltcube_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.fits outfile=/scratch/kocevski/506348/expmap_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.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/506348/ltcube_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.fits
.....................!
real 191.47
user 186.18
sys 4.81

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2040.5-1705 @ 310.136 -17.0901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits scfile=/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits outfile=/scratch/kocevski/506348/cmap_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.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=310.136 yref=-17.0901 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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits scfile=/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits outfile=/scratch/kocevski/506348/cmap_HighResolution_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.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=310.136 yref=-17.0901 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506348/Model_4FGL_J2040.5-1705_daily_bin1706.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/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits......................!
real 19.88
user 18.50
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits', '/scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits', expMap='/scratch/kocevski/506348/expmap_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.fits', expCube='/scratch/kocevski/506348/ltcube_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506348/Model_4FGL_J2040.5-1705_daily_bin1706.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2040.5-1705'

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.223e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/506348/ft1_filtered_4FGL_J2040.5-1705_daily_bin1706.fits
Spacecraft file(s): /scratch/kocevski/506348/ft2_4FGL_J2040.5-1705_daily_bin1706.fits
Exposure map: /scratch/kocevski/506348/expmap_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.fits
Exposure cube: /scratch/kocevski/506348/ltcube_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506348/Model_4FGL_J2040.5-1705_daily_bin1706.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) = 726.524741181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    173.60       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    64.566       1.0000         .10000E-03   10000.    
     6 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25563E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    71.521       1.0000         .10000E-03   10000.    
     9 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5641       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.462       1.0000         .10000E-03   10000.    
    13 'norm      '    12.927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.680       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    93.523       1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.161       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    99.391       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3058       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .55555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   726.4646     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2292 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    96.062       -.41628E-05** at limit **
   2  Prefactor     173.59        179.79       -.76859E-05    .54021E-05
   3  Prefactor     .10000E-03    3.5138        .19346E-06** at limit **
   4  Prefactor     .10000E-03    32.049       -.12531E-04** at limit **
   5  norm          64.584        90.728        .15479E-04   -.29829E-05
   6  norm          .10000E-03    36.495       -.13013E-04** at limit **
   7  Prefactor     .10000E-03    436.59        .48098E-04** at limit **
   8  norm          71.489        100.30       -.24872E-04    .53793E-05
   9  norm          .10000E-03    98.849        .12769E-04** at limit **
  10  norm          3.5645        6.3148        .37989E-05    .10906E-04
  11  Prefactor     .10000E-03    63.083       -.18471E-04** at limit **
  12  Prefactor     21.459        27.874        .48492E-06   -.76713E-05
  13  norm          12.926        17.606        .99559E-06   -.25194E-04
  14  Prefactor     26.692        28.749       -.26574E-05   -.26100E-04
  15  Prefactor     .10000E-03    479.19       -.11725E-04** at limit **
  16  norm          93.642        155.00        .10583E-03   -.13680E-04
  17  Prefactor     72.160        58.023        .16665E-05   -.84145E-05
  18  Prefactor     .10000E-03    33.055        .20732E-04** at limit **
  19  Prefactor     .10000E-03    51.361        .16402E-04** at limit **
  20  Prefactor     99.426        79.886        .19075E-04   -.33226E-04
  21  Normalizat    1.3047        .80519       -.11254E-04   -.93830E-05
  22  Prefactor     .55587        .32584       -.78507E-05   -.48538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 173.589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 64.5836
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 71.4887
  norm       = 0.0001
  norm       = 3.56448
  Prefactor  = 0.0001
  Prefactor  = 21.4594
  norm       = 12.9264
  Prefactor  = 26.6922
  Prefactor  = 0.000100003
  norm       = 93.6421
  Prefactor  = 72.1598
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 99.4263
  Normalizat = 1.30472
  Prefactor  = 0.555868
 **********
 **   18 **HESSE 
 **********

 FCN=   726.4646     FROM HESSE     STATUS=OK           336 CALLS     2628 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     173.59        179.79        .15313E-03   -1.3065    
   3  Prefactor     .10000E-03    3.5164        .49352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.057        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          64.584        90.899        .49943E-04   -1.4099    
   6  norm          .10000E-03    36.537        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    436.77        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          71.489        100.57        .47469E-04   -1.4015    
   9  norm          .10000E-03    98.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5645        6.3167        .79052E-04   -1.5330    
  11  Prefactor     .10000E-03    63.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.459        27.879        .86460E-04   -1.4781    
  13  norm          12.926        17.616        .11141E-03   -1.4989    
  14  Prefactor     26.692        29.023        .77558E-04   -1.4674    
  15  Prefactor     .10000E-03    479.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          93.642        154.94        .20779E-03   -1.3770    
  17  Prefactor     72.160        58.028        .47260E-04   -1.4007    
  18  Prefactor     .10000E-03    33.023        .15128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     99.426        79.927        .20162E-03   -1.3710    
  21  Normalizat    1.3047        .93052        .35601E-03   -.83426    
  22  Prefactor     .55587        .37640        .21019E-03   -1.0948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67701e-11
Minuit parameter uncertainties:
  1  0.000143755
  2  180.366
  3  4.40872e-06
  4  1.78118e-06
  5  91.0955
  6  0.000170325
  7  0.000548346
  8  100.812
  9  0.000147387
  10  6.31792
  11  2.58316e-05
  12  27.8957
  13  17.623
  14  29.0385
  15  0.0022379
  16  155.616
  17  58.0737
  18  0.000292687
  19  0.000265189
  20  80.0142
  21  0.942882
  22  0.37811
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  2.669e+01  2.904e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  5.559e-01  3.781e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.305e+00  9.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 310.136 -17.090
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 3.13e-07 +/- 3.40e-07
Energy Flux (Fixed Index): 8.68e-05 +/- 9.45e-05

TS (Fixed Index): 1.52
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 1.14e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506348/likelihoodResults_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.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) = 726.020992839
delta logL = 0.443578809804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 725.99626486
delta logL = 0.468306788764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7608       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8449       1.0000          .0000       10.000    
     3 'Normalizat'    1.2144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   725.9963     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      277 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7589        16.339        .51726E-04    .30511E-03
   2  Index         3.8472        1.8566        .26679E-03    .49122E-04
   3  Normalizat    1.2118        .91280        .36580E-03   -.10569E-03
   4  Prefactor     .58269        .36282        .20551E-03   -.12176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7589
  Index      = 3.84724
  Normalizat = 1.21184
  Prefactor  = 0.582695
 **********
 **   18 **HESSE 
 **********

 FCN=   725.9963     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7589        15.729        .10345E-04   -1.5272    
   2  Index         3.8472        1.7905        .10672E-04   -.23264    
   3  Normalizat    1.2118        .91324        .73159E-04   -.86238    
   4  Prefactor     .58269        .36309        .41102E-04   -1.0832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0924e-10
Minuit parameter uncertainties:
  1  15.7428
  2  1.83359
  3  0.925702
  4  0.364556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506348': 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) = 725.996254879
delta logL = 0.468316770077

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  4.759e+00  1.574e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.847e+00  1.834e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  5.827e-01  3.646e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.212e+00  9.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 310.136 -17.090
Photon Index (Free Index): 3.85 +/- 1.83
Photon Flux (Free Index): 4.37e-07 +/- 4.15e-07
Energy Flux (Free Index): 6.72e-05 +/- 6.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/506348/cmap_HighResolution_681523201_681782401_4FGL_J2040.5-1705_daily_bin1706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-02', comment='SUCCESS', photon_flux='3.13e-07', energy_flux2='6.72e-05', photon_flux_error='3.40e-07', dlogl='4.68e-01', energy_flux='8.68e-05', photon_flux2='4.37e-07', job_status='DONE', time_completed='2022-08-10 02:24:08.686095', photon_index_error2='1.83', photon_index2='3.85', ts='1.52', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.14e-06', energy_flux_error2='6.95e-05', EG='1.30', time_epoch_completed='1660123448.69', return_code='0', job_id='506348', GAL2='0.58', EG2='1.21', return_code2='0', energy_flux_error='9.45e-05', photon_flux_error2='4.15e-07', ts2='2.49', photon_index='2.54' WHERE bin_id='1706' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 10 02:24:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 506348: <4FGL_J2040.5-1705_daily_bin1706> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1706> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 10 02:10:40 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 10 02:14:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 10 02:14:38 2022
Terminated at Wed Aug 10 02:24:09 2022
Results reported at Wed Aug 10 02:24:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1706 310.136 -17.0901 681523201 681782401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2040.5-1705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   359.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            809 sec.

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

