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 50 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 = 7526
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1673
RA = 310.136, Dec = -17.0901
tmin = 672969601, tmax = 673228801
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='364972', job_status='RUN', time_executed='2022-05-03 00:53:52.255790', time_epoch_executed='1651564432.26' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364972/ft1_4FGL_J2040.5-1705_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364972/ft1_4FGL_J2040.5-1705_daily_bin1673.fits outfile=/scratch/kocevski/364972/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1673.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=672969601.0 tmax=673228801.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.04
user 2.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.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/364972/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 883

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/364972/ltcube_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.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/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits
.....................!
real 15.17
user 14.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/364972/ltcube_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.fits outfile=/scratch/kocevski/364972/expmap_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.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/364972/ltcube_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.fits
.....................!
real 192.40
user 185.85
sys 5.80

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/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits scfile=/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits outfile=/scratch/kocevski/364972/cmap_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits scfile=/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits outfile=/scratch/kocevski/364972/cmap_HighResolution_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364972/Model_4FGL_J2040.5-1705_daily_bin1673.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/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits.....................!
real 80.82
user 79.16
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits', '/scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits', expMap='/scratch/kocevski/364972/expmap_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.fits', expCube='/scratch/kocevski/364972/ltcube_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364972/Model_4FGL_J2040.5-1705_daily_bin1673.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/364972/ft1_filtered_4FGL_J2040.5-1705_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/364972/ft2_4FGL_J2040.5-1705_daily_bin1673.fits
Exposure map: /scratch/kocevski/364972/expmap_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.fits
Exposure cube: /scratch/kocevski/364972/ltcube_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364972/Model_4FGL_J2040.5-1705_daily_bin1673.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) = 9416.29426819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .29896E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    53.049       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1469       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4801       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    45.393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9179       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20940E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90669       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=   9416.269     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2392 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.097        32.857       -.11787E-05    .88355E-05
   2  Prefactor     .10000E-03    8.1099        .14945E-06** at limit **
   3  Prefactor     2.6878        1.4123        .21104E-07   -.17487E-04
   4  Prefactor     .10000E-03    4.6128       -.10168E-07** at limit **
   5  norm          .10000E-03    5.6682        .15181E-06** at limit **
   6  norm          .10000E-03    53.190       -.20322E-04** at limit **
   7  Prefactor     .10000E-03    138.95       -.21230E-04** at limit **
   8  norm          .10000E-03    2.7639       -.16179E-07** at limit **
   9  norm          53.045        27.199       -.12439E-06    .43398E-05
  10  norm          .10000E-03    .33475        .31739E-08** at limit **
  11  Prefactor     .10000E-03    6.0261       -.12932E-07** at limit **
  12  Prefactor     6.1457        5.9961       -.20971E-05   -.49199E-05
  13  norm          .10000E-03    1.6564        .11200E-06** at limit **
  14  Prefactor     5.4795        3.5143       -.76054E-07   -.14815E-04
  15  Prefactor     .10000E-03    70.669        .17296E-04** at limit **
  16  norm          45.389        24.896       -.28476E-06   -.71661E-04
  17  Prefactor     .10000E-03    11.251        .38943E-07** at limit **
  18  Prefactor     16.496        7.3316       -.70481E-07   -.85816E-04
  19  Prefactor     4.8922        17.594       -.42807E-07   -.41473E-05
  20  Prefactor     .10000E-03    18.995       -.29892E-06** at limit **
  21  Normalizat    1.0494        .21017        .25731E-06   -.11241E-03
  22  Prefactor     .90662        .89606E-01   -.20690E-06   -.15409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.097
  Prefactor  = 0.0001
  Prefactor  = 2.68776
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 53.0454
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14568
  norm       = 0.0001
  Prefactor  = 5.47952
  Prefactor  = 0.000100001
  norm       = 45.3888
  Prefactor  = 0.0001
  Prefactor  = 16.4963
  Prefactor  = 4.89219
  Prefactor  = 0.0001
  Normalizat = 1.04944
  Prefactor  = 0.906624
 **********
 **   18 **HESSE 
 **********

 FCN=   9416.269     FROM HESSE     STATUS=OK           346 CALLS     2738 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.097        32.920        .68613E-04   -1.4539    
   2  Prefactor     .10000E-03    8.1148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6878        1.4098        .79855E-04   -1.5380    
   4  Prefactor     .10000E-03    4.6311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.8313        .62043E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    139.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7644        .15755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          53.045        27.209        .55068E-04   -1.4250    
  10  norm          .10000E-03    .51329        .10880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1457        6.0004        .80964E-03   -1.5212    
  13  norm          .10000E-03    1.7111        .24384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4795        3.5210        .13858E-03   -1.5240    
  15  Prefactor     .10000E-03    70.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          45.389        24.904        .59509E-04   -1.4360    
  17  Prefactor     .10000E-03    11.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.496        7.3569        .98605E-04   -1.4895    
  19  Prefactor     4.8922        17.580        .18137E-03   -1.5266    
  20  Prefactor     .10000E-03    19.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0494        .25878        .35235E-03   -.91392    
  22  Prefactor     .90662        .11110        .16439E-03   -.95910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11742e-10
Minuit parameter uncertainties:
  1  32.937
  2  3.06412e-06
  3  1.40986
  4  1.74088e-06
  5  2.15397e-06
  6  0.000189734
  7  0.00131855
  8  5.44886e-07
  9  27.2154
  10  5.91161e-07
  11  2.33541e-06
  12  6.00098
  13  3.29463e-07
  14  3.52112
  15  0.000598427
  16  24.9098
  17  8.27748e-06
  18  7.35727
  19  17.5987
  20  2.46531e-05
  21  0.259096
  22  0.111127
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  5.480e+00  3.521e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  9.066e-01  1.111e-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.049e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 310.136 -17.090
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.15e-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) = 9416.16376973
delta logL = 0.105196416202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9416.15978895
delta logL = 0.109177191527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3445       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8265       1.0000          .0000       10.000    
     3 'Normalizat'    1.0303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91221       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.

 FCN=   9416.160     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      269 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3450        51.232        .48313E-02    .51977E-03
   2  Index         2.8270        3.5268        .14350        .17070E-03
   3  Normalizat    1.0301        .83352E-01    .80248E-01    .56553E-04
   4  Prefactor     .91229        .33154E-01    .45160E-01    .67840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.34502
  Index      = 2.82699
  Normalizat = 1.03011
  Prefactor  = 0.912289
 **********
 **   18 **HESSE 
 **********

 FCN=   9416.160     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3450        4.3072        .11598E-03   -1.5291    
   2  Index         2.8270        .70370        .72602E-02   -.44960    
   3  Normalizat    1.0301        .25218        .35522E-03   -.92029    
   4  Prefactor     .91229        .10901        .16392E-03   -.95713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24302e-11
Minuit parameter uncertainties:
  1  4.30753
  2  0.706592
  3  0.252469
  4  0.10904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364972': 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) = 9416.15978774
delta logL = 0.109178402314

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  4.345e+00  4.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.827e+00  7.066e-01  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:  9.123e-01  1.090e-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.030e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 310.136 -17.090
Photon Index (Free Index): 2.83 +/- 0.71
Photon Flux (Free Index): 7.70e-08 +/- 5.11e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.07e-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/364972/cmap_HighResolution_672969601_673228801_4FGL_J2040.5-1705_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='1.69e-05', photon_flux_error='4.12e-08', dlogl='1.09e-01', energy_flux='1.78e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2022-05-03 01:06:23.602115', photon_index_error2='0.71', photon_index2='2.83', ts='4.20', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.05', time_epoch_completed='1651565183.6', return_code='0', job_id='364972', GAL2='0.91', EG2='1.03', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='5.11e-08', ts2='4.44', photon_index='2.54' WHERE bin_id='1673' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 01:06:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 364972: <4FGL_J2040.5-1705_daily_bin1673> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1673> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue May  3 00:50:25 2022
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:52:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:52:54 2022
Terminated at Tue May  3 01:06:24 2022
Results reported at Tue May  3 01:06:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1673 310.136 -17.0901 672969601 673228801 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 :                                   752.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            959 sec.

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

