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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1729
RA = 310.136, Dec = -17.0901
tmin = 687484801, tmax = 687744001
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='377450', job_status='RUN', time_executed='2022-10-18 00:32:49.994151', time_epoch_executed='1666078369.99' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377450/ft1_4FGL_J2040.5-1705_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377450/ft1_4FGL_J2040.5-1705_daily_bin1729.fits outfile=/scratch/kocevski/377450/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1729.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=687484801.0 tmax=687744001.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.64
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.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/377450/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1729.fits evtable="EVENTS" outfile="/scratch/kocevski/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.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.53
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 635

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/377450/ltcube_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.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/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits
.....................!
real 15.03
user 14.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/377450/ltcube_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.fits outfile=/scratch/kocevski/377450/expmap_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.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/377450/ltcube_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.fits
.....................!
real 189.99
user 184.76
sys 4.83

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/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.fits scfile=/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits outfile=/scratch/kocevski/377450/cmap_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.fits scfile=/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits outfile=/scratch/kocevski/377450/cmap_HighResolution_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.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/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/377450/ft2_4FGL_J2040.5-1705_daily_bin1729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377450/Model_4FGL_J2040.5-1705_daily_bin1729.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/377450/ft1_filtered_4FGL_J2040.5-1705_daily_bin1729.fits.....................!
real 63.51
user 62.18
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0914       1.0000          .0000       .10000E+07
     2 'Prefactor '    .42847       1.0000          .0000       .10000E+07
     3 'norm      '    8.3327       1.0000          .0000       .10000E+07
     4 'norm      '    .30411E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    42.204       1.0000          .0000       .10000E+07
     6 'norm      '    .11615E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .10669E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .30570E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.6639       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0575       1.0000          .0000       .10000E+07
    11 'norm      '    .92259E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .28590E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .16660E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    9.3394       1.0000          .0000       .10000E+07
    15 'Prefactor '    23.992       1.0000          .0000       .10000E+07
    16 'Prefactor '    .58055E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .34543       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2312       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=   6962.435     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1413 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4673        43.106       -.42067E-05   -.30684E-02
   2  Prefactor     .42988        1.0290       -.11448E-07    .64131E-04
   3  norm          8.3518        12.702       -.67813E-06   -.79022E-01
   4  norm          .68279E-08    14.159        .13445E-05** at limit **
   5  Prefactor     38.870        98.463        .46796E-05    .29537E-02
   6  norm           .0000        3.8034        .26238E-06** at limit **
   7  norm          .70499E-08    17.720       -.41966E-06** at limit **
   8  norm           .0000        .91743       -.79939E-07** at limit **
   9  Prefactor     4.6189        11.669        .78222E-06    .60614E-01
  10  Prefactor     2.1012        6.0807        .22187E-06    .18583E-03
  11  norm          .30531E-08    7.2855       -.29473E-06** at limit **
  12  Prefactor      .0000        4.8787       -.17234E-07** at limit **
  13  norm           .0000        22.059       -.28570E-06** at limit **
  14  Prefactor     9.0641        8.1464       -.93297E-07   -.80559E-04
  15  Prefactor     24.084        13.884        .91007E-06   -.14661    
  16  Prefactor     .23315E-08    6.7716       -.20556E-06** at limit **
  17  Normalizat    .34597        .28857        .44510E-05   -.34937E-05
  18  Prefactor     1.2318        .12981        .47436E-06   -.33276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46727
  Prefactor  = 0.429884
  norm       = 8.35181
  norm       = 6.82787e-09
  Prefactor  = 38.8699
  norm       = 0
  norm       = 7.04992e-09
  norm       = 0
  Prefactor  = 4.61887
  Prefactor  = 2.1012
  norm       = 3.05311e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 9.06406
  Prefactor  = 24.0842
  Prefactor  = 2.33147e-09
  Normalizat = 0.345971
  Prefactor  = 1.23179
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.435     FROM HESSE     STATUS=OK           288 CALLS     1701 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4673        43.505        .40656E-03   -1.5661    
   2  Prefactor     .42988        1.1249        .29579E-02   -1.5695    
   3  norm          8.3518        14.371        .34705E-03   -1.5650    
   4  norm          .68279E-08    14.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.870        98.398        .15394E-03   -1.5583    
   6  norm           .0000        3.8043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .70499E-08    17.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .88916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6189        12.702        .46577E-03   -1.5665    
  10  Prefactor     2.1012        6.1442        .72021E-03   -1.5679    
  11  norm          .30531E-08    1.9040        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        4.8487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        21.716        .17267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0641        8.2827        .32769E-03   -1.5648    
  15  Prefactor     24.084        22.516        .20421E-03   -1.5610    
  16  Prefactor     .23315E-08    6.7855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .34597        .32171        .13363       -1.2019    
  18  Prefactor     1.2318        .14009        .33932E-01   -.85359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31142e-07
Minuit parameter uncertainties:
  1  30.8452
  2  1.12491
  3  14.3715
  4  0.000621457
  5  98.4025
  6  2.04878e-05
  7  0.000708427
  8  8.36564e-06
  9  12.7018
  10  6.14423
  11  0.000152624
  12  5.93722e-06
  13  1.58849e-05
  14  8.28273
  15  22.5158
  16  0.000251789
  17  0.323449
  18  0.140129
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  0.000e+00  5.937e-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.232e+00  1.401e-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:  3.460e-01  3.234e-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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377450/likelihoodResults_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.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) = 6962.43783783
delta logL = -0.00251250474776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6962.43530568
delta logL = 1.96365745069e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26245E-02   1.0000          .0000       .10000E+07
     2 'Index     '    2.9733       1.0000          .0000       10.000    
     3 'Normalizat'    .34591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2318       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=   6961.798     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      393 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14409E-03    .23195E-02    .24732E-04** at limit **
   2  Index         8.4761        2.8906        .22169        .82865E-04
   3  Normalizat    .24737        .46509E-01    .15810        .14791E-03
   4  Prefactor     1.2603        .20853E-01    .33918E-01    .31130E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00014409
  Index      = 8.47609
  Normalizat = 0.247372
  Prefactor  = 1.26034
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.798     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      428 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14409E-03    .73202E-02    .10487E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4761        9.1155        .10174E-01    .76872    
   3  Normalizat    .24737        .19228        .69458E-03   -1.2613    
   4  Prefactor     1.2603        .84271E-01    .14287E-03   -.84494    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.53273e-07
Minuit parameter uncertainties:
  1  0.00205404
  2  7.27831
  3  0.192791
  4  0.0842804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377450': 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) = 6961.79809422
delta logL = 0.637231104979

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.441e-04  2.054e-03  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  8.476e+00  7.278e+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.260e+00  8.428e-02  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:  2.474e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 310.136 -17.090
Photon Index (Free Index): 8.48 +/- 7.28
Photon Flux (Free Index): 6.61e-08 +/- 6.49e-08
Energy Flux (Free Index): 7.58e-06 +/- 7.92e-06

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/377450/cmap_HighResolution_687484801_687744001_4FGL_J2040.5-1705_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', comment='SUCCESS', energy_flux2='7.58e-06', dlogl='6.37e-01', photon_flux2='6.61e-08', job_status='DONE', time_completed='2022-10-18 00:42:46.305607', photon_index_error2='7.28', photon_index2='8.48', ts='0.00', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='7.92e-06', EG='0.35', time_epoch_completed='1666078966.31', return_code='0', job_id='377450', GAL2='1.26', EG2='0.25', return_code2='102', photon_flux_error2='6.49e-08', ts2='1.40', photon_index='2.54' WHERE bin_id='1729' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:42:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 377450: <4FGL_J2040.5-1705_daily_bin1729> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1729> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 00:30:46 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:30:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:30:47 2022
Terminated at Tue Oct 18 00:42:47 2022
Results reported at Tue Oct 18 00:42:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1729 310.136 -17.0901 687484801 687744001 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 :                                   598.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

