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 216 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1761
RA = 310.136, Dec = -17.0901
tmin = 695779201, tmax = 696038401
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='931992', job_status='RUN', time_executed='2023-01-22 01:35:34.483023', time_epoch_executed='1674380134.48' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931992/ft1_4FGL_J2040.5-1705_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931992/ft1_4FGL_J2040.5-1705_daily_bin1761.fits outfile=/scratch/kocevski/931992/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1761.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.07
user 4.81
sys 0.23

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

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

Number of photons that the gtmktime cut: 679

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/931992/ltcube_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.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/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits
.....................!
real 15.06
user 14.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/931992/ltcube_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.fits outfile=/scratch/kocevski/931992/expmap_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.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/931992/ltcube_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.fits
.....................!
real 195.13
user 189.00
sys 5.31

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/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits scfile=/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits outfile=/scratch/kocevski/931992/cmap_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits scfile=/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits outfile=/scratch/kocevski/931992/cmap_HighResolution_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.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.67
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931992/Model_4FGL_J2040.5-1705_daily_bin1761.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/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits.....................!
real 71.62
user 70.14
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits', '/scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits', expMap='/scratch/kocevski/931992/expmap_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.fits', expCube='/scratch/kocevski/931992/ltcube_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/931992/Model_4FGL_J2040.5-1705_daily_bin1761.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  0.000e+00  1.000e+06 ( 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/931992/ft1_filtered_4FGL_J2040.5-1705_daily_bin1761.fits
Spacecraft file(s): /scratch/kocevski/931992/ft2_4FGL_J2040.5-1705_daily_bin1761.fits
Exposure map: /scratch/kocevski/931992/expmap_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.fits
Exposure cube: /scratch/kocevski/931992/ltcube_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/931992/Model_4FGL_J2040.5-1705_daily_bin1761.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) = 7542.55077502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.901       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.8015       1.0000          .0000       .10000E+07
     3 'norm      '    6.1880       1.0000          .0000       .10000E+07
     4 'norm      '    12.997       1.0000          .0000       .10000E+07
     5 'Prefactor '    .79129E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .79831E-05   1.0000          .0000       .10000E+07
     7 'norm      '    .17791E-06   1.0000          .0000       .10000E+07
     8 'norm      '    2.4807       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8274       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.2436       1.0000          .0000       .10000E+07
    11 'norm      '    .57176E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .78604E-07   1.0000          .0000       .10000E+07
    13 'norm      '     .0000       1.0000          .0000       .10000E+07
    14 'Prefactor '    11.305       1.0000          .0000       .10000E+07
    15 'Prefactor '    .50479E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    17.683       1.0000          .0000       .10000E+07
    17 'Normalizat'    .52289       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7542.426     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1343 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.735        53.408        .45277E-07   -.92384E-02
   2  Prefactor     1.7951        2.5487       -.71079E-07   -.24100E-02
   3  norm          6.0439        12.755        .41789E-07    .21151E-01
   4  norm          12.981        8.3886        .14941E-07    .45906E-01
   5  Prefactor     .11435E-07    67.917       -.37939E-06** at limit **
   6  norm           .0000        7.3984        .18414E-06** at limit **
   7  norm          .10547E-08    9.5981       -.35107E-08** at limit **
   8  norm          2.4786        1.6367       -.21870E-07   -.15095E-02
   9  Prefactor     3.8917        11.479       -.53150E-08    .44798E-04
  10  Prefactor     4.2788        6.0456       -.33686E-07   -.26372E-03
  11  norm           .0000        1.1595        .98728E-07** at limit **
  12  Prefactor      .0000        1.5453        .87447E-07** at limit **
  13  norm          .53291E-08    8.8595       -.44817E-07** at limit **
  14  Prefactor     11.297        9.4717        .11015E-07    .35589E-03
  15  Prefactor     .32752E-08    18.637        .27309E-06** at limit **
  16  Prefactor     17.608        9.9527        .16351E-07   -.94429E-01
  17  Normalizat    .52334        .32243        .61583E-05   -.18924E-04
  18  Prefactor     1.3800        .14508       -.23106E-05   -.16684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.7346
  Prefactor  = 1.79514
  norm       = 6.04395
  norm       = 12.9811
  Prefactor  = 1.14353e-08
  norm       = 0
  norm       = 1.05471e-09
  norm       = 2.4786
  Prefactor  = 3.89173
  Prefactor  = 4.27877
  norm       = 0
  Prefactor  = 0
  norm       = 5.32907e-09
  Prefactor  = 11.2969
  Prefactor  = 3.27516e-09
  Prefactor  = 17.6085
  Normalizat = 0.523342
  Prefactor  = 1.38003
 **********
 **   18 **HESSE 
 **********

 FCN=   7542.426     FROM HESSE     STATUS=OK           282 CALLS     1625 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.735        54.021        .14450E-03   -1.5568    
   2  Prefactor     1.7951        2.6226        .77851E-03   -1.5681    
   3  norm          6.0439        16.889        .40333E-03   -1.5659    
   4  norm          12.981        16.124        .27759E-03   -1.5636    
   5  Prefactor     .11435E-07    67.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        7.3979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10547E-08    9.5992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4786        1.6448        .64882E-03   -1.5676    
   9  Prefactor     3.8917        11.534        .51565E-03   -1.5669    
  10  Prefactor     4.2788        6.0574        .48889E-03   -1.5667    
  11  norm           .0000        1.1600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.5445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .53291E-08    8.8731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.297        9.5359        .29772E-03   -1.5641    
  15  Prefactor     .32752E-08    18.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.608        19.553        .23790E-03   -1.5624    
  17  Normalizat    .52334        .33212        .13323       -1.1135    
  18  Prefactor     1.3800        .14400        .31340E-01   -.80957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78238e-07
Minuit parameter uncertainties:
  1  54.0215
  2  2.62263
  3  16.8887
  4  16.1241
  5  0.00176161
  6  6.67865e-06
  7  0.000203856
  8  1.64484
  9  11.5338
  10  6.0574
  11  6.53684e-06
  12  7.03817e-06
  13  0.000434062
  14  9.53588
  15  0.000494773
  16  19.5535
  17  0.333388
  18  0.144045
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  7.038e-06  0.000e+00  1.000e+06 ( 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.380e+00  1.440e-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:  5.233e-01  3.334e-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: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931992/likelihoodResults_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.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) = 7542.42736304
delta logL = -0.00133355011167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7542.42603173
delta logL = -2.23971073865e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32258E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .77962       1.0000          .0000       10.000    
     3 'Normalizat'    .52361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3800       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7542.426     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      250 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4808        .42118E-03** at limit **
   2  Index         2.6846        1.8656       -.10204E-04     .0000    
   3  Normalizat    .52334        .85655        .18147E-04   -.28461E-06
   4  Prefactor     1.3800        1.0634        .11328E-06   -.31967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68465
  Normalizat = 0.523344
  Prefactor  = 1.38003
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7542.426     FROM HESSE     STATUS=FAILED         9 CALLS      259 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81588        2.0839       -.10204E-04   -.48146    
   3  Normalizat    .52334        .85655        .18147E-04   -1.1135    
   4  Prefactor     1.3800        1.0634        .11328E-06   -.80958    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.03804e-10
Minuit parameter uncertainties:
  1  2.15374e-06
  2  1.9256
  3  0.879683
  4  1.08103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931992': 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): 101
logL (Free Index) = 7542.42602949
delta logL = -7.09405867383e-11

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  2.154e-06  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.685e+00  1.926e+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:  1.380e+00  1.081e+00  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:  5.233e-01  8.797e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/931992/cmap_HighResolution_695779201_696038401_4FGL_J2040.5-1705_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2023-01-22 01:45:33.488199', job_id='931992', GAL2='1.38', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1674380733.49', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='-7.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1761' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:45:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 931992: <4FGL_J2040.5-1705_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1761> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jan 22 01:30:28 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:31:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:31:47 2023
Terminated at Sun Jan 22 01:45:34 2023
Results reported at Sun Jan 22 01:45:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1761 310.136 -17.0901 695779201 696038401 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 :                                   600.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            906 sec.

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

