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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1696
RA = 310.136, Dec = -17.0901
tmin = 678931201, tmax = 679190401
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='792838', job_status='RUN', time_executed='2022-07-11 00:31:02.006685', time_epoch_executed='1657524662.01' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792838/ft1_4FGL_J2040.5-1705_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792838/ft1_4FGL_J2040.5-1705_daily_bin1696.fits outfile=/scratch/kocevski/792838/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1696.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=678931201.0 tmax=679190401.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.57
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.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/792838/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1696.fits evtable="EVENTS" outfile="/scratch/kocevski/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.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

Number of photons that the gtmktime cut: 573

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/792838/ltcube_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.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/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits
.....................!
real 12.01
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/792838/ltcube_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.fits outfile=/scratch/kocevski/792838/expmap_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.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/792838/ltcube_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.fits
.....................!
real 190.74
user 185.07
sys 5.33

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/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.fits scfile=/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits outfile=/scratch/kocevski/792838/cmap_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.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.56
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.fits scfile=/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits outfile=/scratch/kocevski/792838/cmap_HighResolution_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/792838/ft2_4FGL_J2040.5-1705_daily_bin1696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792838/Model_4FGL_J2040.5-1705_daily_bin1696.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/792838/ft1_filtered_4FGL_J2040.5-1705_daily_bin1696.fits.....................!
real 61.40
user 60.09
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6350       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3224       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    36.063       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6129       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.416       1.0000         .10000E-03   10000.    
    16 'norm      '    23.625       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.777       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74824       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0430       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=   6509.699     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2342 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.397        .23176E-06** at limit **
   2  Prefactor     64.818        42.460        .42904E-06   -.15041E-04
   3  Prefactor     2.2033        1.7638        .25995E-07   -.64363E-04
   4  Prefactor     7.6374        16.666        .49382E-06   -.68458E-05
   5  norm          6.3294        16.183        .82189E-06   -.69276E-05
   6  norm          .10000E-03    3.8633        .96215E-07** at limit **
   7  Prefactor     .10000E-03    38.991        .10011E-06** at limit **
   8  norm          .10000E-03    4.8053        .54323E-07** at limit **
   9  norm          36.064        28.726        .48710E-07   -.14289E-04
  10  norm          2.1408        1.2593        .44449E-06    .78614E-03
  11  Prefactor     .10000E-03    3.9253        .76382E-07** at limit **
  12  Prefactor     3.6079        9.6913        .69508E-07   -.66813E-05
  13  norm          .10000E-03    .98698        .10457E-06** at limit **
  14  Prefactor     .10000E-03    2.9152        .35899E-06** at limit **
  15  Prefactor     41.958        115.07       -.92908E-09   -.17381E-04
  16  norm          23.588        41.066       -.12471E-05   -.44977E-04
  17  Prefactor     16.449        17.923       -.25836E-06   -.14337E-04
  18  Prefactor     .10000E-03    5.5164       -.14058E-05** at limit **
  19  Prefactor     18.775        18.292       -.80624E-07   -.15283E-04
  20  Prefactor     .10000E-03    13.704        .69867E-06** at limit **
  21  Normalizat    .74947        .29694        .56218E-05   -.57758E-04
  22  Prefactor     1.0425        .12941       -.23551E-05    .97824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.8179
  Prefactor  = 2.20328
  Prefactor  = 7.63736
  norm       = 6.32936
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 36.064
  norm       = 2.14077
  Prefactor  = 0.0001
  Prefactor  = 3.60792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9583
  norm       = 23.5878
  Prefactor  = 16.4486
  Prefactor  = 0.0001
  Prefactor  = 18.7752
  Prefactor  = 0.0001
  Normalizat = 0.749467
  Prefactor  = 1.04252
 **********
 **   18 **HESSE 
 **********

 FCN=   6509.699     FROM HESSE     STATUS=OK           342 CALLS     2684 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.818        42.496        .49854E-04   -1.4096    
   3  Prefactor     2.2033        1.7523        .87504E-04   -1.5411    
   4  Prefactor     7.6374        16.531        .14513E-03   -1.5155    
   5  norm          6.3294        16.170        .15964E-03   -1.5205    
   6  norm          .10000E-03    3.8724        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.8066        .17274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          36.064        28.730        .66736E-04   -1.4506    
  10  norm          2.1408        1.2787        .34213E-03   -1.5415    
  11  Prefactor     .10000E-03    3.9272        .15609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6079        9.6694        .21257E-03   -1.5328    
  13  norm          .10000E-03    .98840        .78285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9685        .13439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.958        115.39        .30777E-03   -1.4412    
  16  norm          23.588        41.200        .82411E-04   -1.4736    
  17  Prefactor     16.449        17.928        .98722E-04   -1.4897    
  18  Prefactor     .10000E-03    5.6485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.775        18.286        .92428E-04   -1.4841    
  20  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74947        .31029        .43241E-03   -1.0197    
  22  Prefactor     1.0425        .13552        .16069E-03   -.91325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01246e-10
Minuit parameter uncertainties:
  1  3.80561e-05
  2  42.5157
  3  1.75233
  4  16.5414
  5  16.1815
  6  3.01156e-06
  7  9.81392e-06
  8  9.34451e-07
  9  28.7409
  10  1.27874
  11  1.50931e-06
  12  9.6736
  13  1.23577e-06
  14  3.80819e-06
  15  116.017
  16  41.2497
  17  17.934
  18  5.24665e-05
  19  18.2916
  20  3.44161e-05
  21  0.311021
  22  0.135569
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.808e-06  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:  1.043e+00  1.356e-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:  7.495e-01  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792838/likelihoodResults_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6509.70021019
delta logL = -0.00160570329081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6509.69860511
delta logL = -6.2762228481e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5455       1.0000          .0000       10.000    
     3 'Normalizat'    .74928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0426       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6509.699     FROM MIGRAD    STATUS=FAILED        86 CALLS      239 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    464.96        .13445E-02** at limit **
   2  Index         2.6374        5.9524        .50000       -.10872E-04
   3  Normalizat    .74947        .10645        .43238E-03    .11288E-03
   4  Prefactor     1.0425        .45894E-01    .16069E-03    .26615E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6509.699     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      390 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    464.96        .32389E-03** at limit **
   2  Index         2.6374        5.9524        .78034E-04   -.10872E-04
   3  Normalizat    .74947        .10645        .40815E-05    .11288E-03
   4  Prefactor     1.0425        .45894E-01    .11335E-05    .26615E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6509.699     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      493 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .79763E-02    .16476E-01** at limit **
   2  Index         4.7154        7.2370        .50000        .19206E-05
   3  Normalizat    .74942        .20602E-02    .17295E-04   -.21035E-05
   4  Prefactor     1.0425        .89739E-03    .32139E-04   -.67210E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 4.7154
  Normalizat = 0.749419
  Prefactor  = 1.04253
 **********
 **   18 **HESSE 
 **********

 FCN=   6509.699     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      532 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .33968E-01    .78096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.7154        6.6792        .50000       -.56950E-01
   3  Normalizat    .74942        .25597E-02    .34591E-05   -1.0197    
   4  Prefactor     1.0425        .11149E-02    .64277E-05   -.91325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89578e-11
Minuit parameter uncertainties:
  1  3.72501e-08
  2  11.3235
  3  0.00255973
  4  0.00111494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792838': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6509.6985944
delta logL = 1.00897186712e-05

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.725e-08  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.715e+00  1.132e+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:  1.043e+00  1.115e-03  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:  7.494e-01  2.560e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 310.136 -17.090

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/792838/cmap_HighResolution_678931201_679190401_4FGL_J2040.5-1705_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2022-07-11 00:41:59.463181', job_id='792838', GAL2='1.04', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1657525319.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.01e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1696' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:41:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 792838: <4FGL_J2040.5-1705_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1696> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jul 11 00:30:26 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:30:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:30:27 2022
Terminated at Mon Jul 11 00:42:00 2022
Results reported at Mon Jul 11 00:42:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1696 310.136 -17.0901 678931201 679190401 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 :                                   659.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

