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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1730
RA = 309.758, Dec = -10.7731
tmin = 687744001, tmax = 688003201
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='467845', job_status='RUN', time_executed='2022-10-21 00:31:39.467941', time_epoch_executed='1666337499.47' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467845/ft1_4FGL_J2039.0-1046_daily_bin1730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467845/ft1_4FGL_J2039.0-1046_daily_bin1730.fits outfile=/scratch/kocevski/467845/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1730.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=687744001.0 tmax=688003201.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 4.95
user 4.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.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/467845/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1730.fits evtable="EVENTS" outfile="/scratch/kocevski/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.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.62
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 553

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits" evtable="EVENTS" scfile=/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits sctable="SC_DATA" outfile=/scratch/kocevski/467845/ltcube_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.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/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits
.....................!
real 11.69
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits evtable="EVENTS" scfile=/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits sctable="SC_DATA" expcube=/scratch/kocevski/467845/ltcube_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.fits outfile=/scratch/kocevski/467845/expmap_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.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/467845/ltcube_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.fits
.....................!
real 191.72
user 186.14
sys 5.18

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/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits scfile=/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits outfile=/scratch/kocevski/467845/cmap_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits scfile=/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits outfile=/scratch/kocevski/467845/cmap_HighResolution_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.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.56
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits evtable="EVENTS" scfile=/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467845/Model_4FGL_J2039.0-1046_daily_bin1730.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/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits.....................!
real 63.16
user 61.74
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits', '/scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits', expMap='/scratch/kocevski/467845/expmap_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.fits', expCube='/scratch/kocevski/467845/ltcube_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467845/Model_4FGL_J2039.0-1046_daily_bin1730.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/467845/ft1_filtered_4FGL_J2039.0-1046_daily_bin1730.fits
Spacecraft file(s): /scratch/kocevski/467845/ft2_4FGL_J2039.0-1046_daily_bin1730.fits
Exposure map: /scratch/kocevski/467845/expmap_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.fits
Exposure cube: /scratch/kocevski/467845/ltcube_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467845/Model_4FGL_J2039.0-1046_daily_bin1730.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) = 6037.73642982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17960E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28838E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    56.973       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5231       1.0000          .0000       .10000E+07
     5 'Prefactor '    70.404       1.0000          .0000       .10000E+07
     6 'norm      '    .29997E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .67779E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .97930E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .24361E-03   1.0000          .0000       .10000E+07
    10 'norm      '    23.517       1.0000          .0000       .10000E+07
    11 'norm      '    1.6784       1.0000          .0000       .10000E+07
    12 'Prefactor '    50.166       1.0000          .0000       .10000E+07
    13 'norm      '    9.0371       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.7621       1.0000          .0000       .10000E+07
    15 'Prefactor '    .26267E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .64083E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.6466       1.0000          .0000       .10000E+07
    18 'Normalizat'    .98125       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89694       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=   6037.580     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1395 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-08    9.7675       -.12927E-05** at limit **
   2  Prefactor     .45491E-06    40.902        .13781E-05** at limit **
   3  Prefactor     60.057        41.617        .36435E-05   -.11825    
   4  Prefactor     1.5244        2.2573        .12378E-05    .12562E-02
   5  Prefactor     71.776        16.779        .72525E-06    .20487    
   6  norm           .0000        5.0656        .92111E-06** at limit **
   7  Prefactor     .11269E-07    12.967       -.11696E-05** at limit **
   8  Prefactor     .13638E-04    4.7855        .35383E-05** at limit **
   9  norm          .11102E-09    5.0229       -.44750E-06** at limit **
  10  norm          22.538        10.628        .49303E-07   -.12046    
  11  norm          1.6889        1.3936       -.35523E-06    .29097E-02
  12  Prefactor     49.710        22.613       -.34295E-05   -.64374E-01
  13  norm          8.9935        5.6690        .18438E-06    .11350E-02
  14  Prefactor     1.7701        5.4171       -.35040E-05   -.80242E-03
  15  Prefactor      .0000        1.5436       -.11246E-05** at limit **
  16  Prefactor      .0000        7.4881        .47563E-06** at limit **
  17  Prefactor     9.6745        1.1000       -.85715E-07    .12391E-01
  18  Normalizat    .98496        .33878       -.64743E-04   -.26632E-04
  19  Prefactor     .89510        .13197        .42416E-04   -.65312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-09
  Prefactor  = 4.54914e-07
  Prefactor  = 60.0572
  Prefactor  = 1.52445
  Prefactor  = 71.7757
  norm       = 0
  Prefactor  = 1.12688e-08
  Prefactor  = 1.36376e-05
  norm       = 1.11022e-10
  norm       = 22.5381
  norm       = 1.68885
  Prefactor  = 49.7095
  norm       = 8.99352
  Prefactor  = 1.77007
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 9.67454
  Normalizat = 0.984964
  Prefactor  = 0.895097
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.580     FROM HESSE     STATUS=OK           304 CALLS     1699 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-08    9.5688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .45491E-06    41.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.057        52.777        .13249E-03   -1.5553    
   4  Prefactor     1.5244        2.2748        .86515E-03   -1.5683    
   5  Prefactor     71.776        65.128        .11919E-03   -1.5539    
   6  norm           .0000        5.0597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11269E-07    13.079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13638E-04    139.47        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11102E-09    5.0232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.538        40.462        .20626E-03   -1.5613    
  11  norm          1.6889        1.4145        .81294E-03   -1.5682    
  12  Prefactor     49.710        23.185        .14120E-03   -1.5567    
  13  norm          8.9935        5.6725        .33316E-03   -1.5648    
  14  Prefactor     1.7701        5.4281        .78897E-03   -1.5681    
  15  Prefactor      .0000        1.5417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        7.4714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6745        12.593        .32240E-03   -1.5646    
  18  Normalizat    .98496        .28550        .89678E-01   -.93536    
  19  Prefactor     .89510        .10965        .44966E-01   -.96313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28181e-06
Minuit parameter uncertainties:
  1  0.000355808
  2  0.00864318
  3  52.7774
  4  2.27476
  5  65.1285
  6  1.33449e-05
  7  0.000767927
  8  0.0872268
  9  4.59299e-05
  10  40.4621
  11  1.41446
  12  23.1849
  13  5.67249
  14  5.42814
  15  8.5031e-06
  16  2.05562e-05
  17  12.5935
  18  0.285939
  19  0.109682
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  8.994e+00  5.672e+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:  8.951e-01  1.097e-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:  9.850e-01  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.04
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 2.87e-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) = 6036.95005552
delta logL = 0.630323455453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6036.94473626
delta logL = 0.635642712953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3959       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7169       1.0000          .0000       5.0000    
     3 'Normalizat'    .88241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91845       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=   6036.945     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3970        54.632        .39663E-03    .14265E-02
   2  alpha         2.7168        3.8492        .26111        .65580E-04
   3  Normalizat    .88276        .15663        .94039E-01    .34519E-04
   4  Prefactor     .91836        .42835E-01    .45240E-01    .17448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.39701
  alpha      = 2.71678
  Normalizat = 0.882764
  Prefactor  = 0.918355
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.945     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3970        5.6290        .95250E-05   -1.5657    
   2  alpha         2.7168        .69309        .98001E-02    .86820E-01
   3  Normalizat    .88276        .34352        .41658E-03   -.97068    
   4  Prefactor     .91836        .13124        .16086E-03   -.95503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31109e-12
Minuit parameter uncertainties:
  1  5.62904
  2  0.702362
  3  0.344372
  4  0.131285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467845': 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) = 6036.94473556
delta logL = 0.63564341046

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  6.397e+00  5.629e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.717e+00  7.024e-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.184e-01  1.313e-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:  8.828e-01  3.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.42
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.72 +/- 0.70
Photon Flux (Free Index): 1.51e-07 +/- 1.04e-07
Energy Flux (Free Index): 3.90e-05 +/- 2.03e-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/467845/cmap_HighResolution_687744001_688003201_4FGL_J2039.0-1046_daily_bin1730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='3.90e-05', photon_flux_error='4.39e-08', dlogl='6.36e-01', energy_flux='4.55e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2022-10-21 00:40:18.053454', photon_index_error2='0.70', photon_index2='2.72', ts='8.04', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.98', time_epoch_completed='1666338018.05', return_code='0', job_id='467845', GAL2='0.92', EG2='0.88', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='1.04e-07', ts2='9.42', photon_index='1.96' WHERE bin_id='1730' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct 21 00:40:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 467845: <4FGL_J2039.0-1046_daily_bin1730> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1730> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Oct 21 00:30:31 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 21 00:30:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 21 00:30:32 2022
Terminated at Fri Oct 21 00:40:18 2022
Results reported at Fri Oct 21 00:40:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1730 309.758 -10.7731 687744001 688003201 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 :                                   520.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            587 sec.

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

