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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1760
RA = 309.758, Dec = -10.7731
tmin = 695520001, tmax = 695779201
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='750011', job_status='RUN', time_executed='2023-01-19 01:45:18.932763', time_epoch_executed='1674121518.93' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750011

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750011/ft1_4FGL_J2039.0-1046_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750011/ft1_4FGL_J2039.0-1046_daily_bin1760.fits outfile=/scratch/kocevski/750011/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1760.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=695520001.0 tmax=695779201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.45
user 2.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.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/750011/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.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.35
sys 0.15

Number of photons that the gtmktime cut: 421

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/750011/ltcube_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.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/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits
.....................!
real 14.97
user 14.55
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/750011/ltcube_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.fits outfile=/scratch/kocevski/750011/expmap_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.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/750011/ltcube_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.fits
.....................!
real 191.38
user 186.18
sys 4.81

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2039.0-1046 @ 309.758 -10.7731

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits scfile=/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits outfile=/scratch/kocevski/750011/cmap_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.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=309.758 yref=-10.7731 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits scfile=/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits outfile=/scratch/kocevski/750011/cmap_HighResolution_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.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=309.758 yref=-10.7731 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750011/Model_4FGL_J2039.0-1046_daily_bin1760.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/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits.....................!
real 55.76
user 54.26
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits', '/scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits', expMap='/scratch/kocevski/750011/expmap_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.fits', expCube='/scratch/kocevski/750011/ltcube_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750011/Model_4FGL_J2039.0-1046_daily_bin1760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2039.0-1046'

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.263e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/750011/ft1_filtered_4FGL_J2039.0-1046_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/750011/ft2_4FGL_J2039.0-1046_daily_bin1760.fits
Exposure map: /scratch/kocevski/750011/expmap_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.fits
Exposure cube: /scratch/kocevski/750011/ltcube_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750011/Model_4FGL_J2039.0-1046_daily_bin1760.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) = 4966.58073386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1437       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12122       1.0000          .0000       .10000E+07
     3 'Prefactor '    85.275       1.0000          .0000       .10000E+07
     4 'Prefactor '    30.857       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.126       1.0000          .0000       .10000E+07
     6 'norm      '    .14995E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    30.935       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16112E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .25193E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .68891E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .33862E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16898E-06   1.0000          .0000       .10000E+07
    13 'norm      '    9.8924       1.0000          .0000       .10000E+07
    14 'Prefactor '    .15648E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5090       1.0000          .0000       .10000E+07
    16 'Prefactor '    41.615       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.0270       1.0000          .0000       .10000E+07
    18 'Normalizat'    .74733       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4966.391     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1464 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1100        10.866       -.16428E-05    .34625E-03
   2  Prefactor     .89221E-05    106.89       -.64525E-05** at limit **
   3  Prefactor     92.019        48.077        .14405E-05   -.51852E-01
   4  Prefactor     30.599        15.908        .12412E-05    .66394E-01
   5  Prefactor     17.179        48.314        .28724E-05    .12592E-01
   6  norm          .53624E-07    49.902        .18749E-05** at limit **
   7  Prefactor     30.318        10.274       -.17788E-06    .57708E-01
   8  Prefactor     .12442E-05    75.443        .11628E-05** at limit **
   9  norm          .52736E-08    26.784        .28048E-05** at limit **
  10  norm          .55511E-09    21.248        .29933E-06** at limit **
  11  norm          .55511E-10    .50589       -.15586E-07** at limit **
  12  Prefactor     .16653E-09    8.9354        .14724E-05** at limit **
  13  norm          9.8873        6.8745       -.41958E-06   -.16262E-02
  14  Prefactor     .33307E-09    25.882        .16814E-05** at limit **
  15  Prefactor     1.5507        6.7540        .11468E-06   -.62817E-03
  16  Prefactor     43.038        17.735       -.12099E-05    .10553    
  17  Prefactor     3.7240        9.7036       -.17049E-05   -.10959E-01
  18  Normalizat    .75298        .38098       -.49543E-05    .12701E-04
  19  Prefactor     .98870        .15037        .49237E-05    .10847E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.10997
  Prefactor  = 8.92209e-06
  Prefactor  = 92.0195
  Prefactor  = 30.599
  Prefactor  = 17.1787
  norm       = 5.36238e-08
  Prefactor  = 30.3183
  Prefactor  = 1.24423e-06
  norm       = 5.27356e-09
  norm       = 5.55112e-10
  norm       = 5.55112e-11
  Prefactor  = 1.66533e-10
  norm       = 9.88734
  Prefactor  = 3.33067e-10
  Prefactor  = 1.55066
  Prefactor  = 43.0377
  Prefactor  = 3.72398
  Normalizat = 0.752985
  Prefactor  = 0.9887
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.391     FROM HESSE     STATUS=OK           314 CALLS     1778 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1100        10.866        .37507E-03   -1.5655    
   2  Prefactor     .89221E-05    138.53        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     92.019        96.238        .10830E-03   -1.5516    
   4  Prefactor     30.599        17.484        .18005E-03   -1.5597    
   5  Prefactor     17.179        194.94        .30010E-03   -1.5625    
   6  norm          .53624E-07    50.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.318        39.736        .17982E-03   -1.5598    
   8  Prefactor     .12442E-05    85.237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52736E-08    26.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-09    21.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    .50472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    8.9790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.8873        6.8955        .31835E-03   -1.5645    
  14  Prefactor     .33307E-09    6.0083        .94460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5507        7.0726        .87056E-03   -1.5683    
  16  Prefactor     43.038        43.529        .15503E-03   -1.5577    
  17  Prefactor     3.7240        67.003        .44826E-03   -1.5669    
  18  Normalizat    .75298        .34371        .10595       -1.0184    
  19  Prefactor     .98870        .12796        .46183E-01   -.93107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61324e-06
Minuit parameter uncertainties:
  1  10.8662
  2  0.0703153
  3  96.2394
  4  17.4836
  5  115.743
  6  0.00327629
  7  39.7361
  8  0.020597
  9  0.000752845
  10  0.000213975
  11  7.82302e-06
  12  8.03175e-05
  13  6.89551
  14  8.57237e-05
  15  6.62339
  16  43.5293
  17  31.5926
  18  0.344706
  19  0.128
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  9.887e+00  6.896e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.887e-01  1.280e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  7.530e-01  3.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 7.65e-08 +/- 5.33e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 3.49e-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) = 4966.39030824
delta logL = 0.00090427867508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4966.39026421
delta logL = 0.000948312074797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8873       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9281       1.0000          .0000       5.0000    
     3 'Normalizat'    .75541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4966.390     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      201 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8467        19.376        .31844E-03   -.80314E-03
   2  alpha         1.9263        1.4928        .30532        .70367E-04
   3  Normalizat    .75567        .34340        .10578       -.16936E-04
   4  Prefactor     .98832        .12738        .46121E-01   -.47807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.8467
  alpha      = 1.92631
  Normalizat = 0.75567
  Prefactor  = 0.988321
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.390     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8467        6.9193        .12737E-04   -1.5645    
   2  alpha         1.9263        .66465        .15420E-01   -.23154    
   3  Normalizat    .75567        .37025        .46899E-03   -1.0173    
   4  Prefactor     .98832        .14280        .16024E-03   -.93120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58958e-10
Minuit parameter uncertainties:
  1  6.91926
  2  0.67321
  3  0.371489
  4  0.142855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750011': 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) = 4966.39024567
delta logL = 0.000966846122537

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  9.847e+00  6.919e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.926e+00  6.732e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.883e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  7.557e-01  3.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.53
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.93 +/- 0.67
Photon Flux (Free Index): 7.35e-08 +/- 8.22e-08
Energy Flux (Free Index): 5.08e-05 +/- 4.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/750011/cmap_HighResolution_695520001_695779201_4FGL_J2039.0-1046_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.65e-08', energy_flux2='5.08e-05', photon_flux_error='5.33e-08', dlogl='9.67e-04', energy_flux='5.00e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2023-01-19 01:53:14.393607', photon_index_error2='0.67', photon_index2='1.93', ts='5.54', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.10e-05', EG='0.75', time_epoch_completed='1674121994.39', return_code='0', job_id='750011', GAL2='0.99', EG2='0.76', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='8.22e-08', ts2='5.53', photon_index='1.96' WHERE bin_id='1760' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:53:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 750011: <4FGL_J2039.0-1046_daily_bin1760> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1760> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Jan 19 01:40:19 2023
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:41:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:41:46 2023
Terminated at Thu Jan 19 01:53:15 2023
Results reported at Thu Jan 19 01:53:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1760 309.758 -10.7731 695520001 695779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2039.0-1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   478.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            776 sec.

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

