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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1774
RA = 309.758, Dec = -10.7731
tmin = 699148801, tmax = 699408001
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='695275', job_status='RUN', time_executed='2023-03-02 01:30:27.713300', time_epoch_executed='1677749427.71' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695275/ft1_4FGL_J2039.0-1046_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695275/ft1_4FGL_J2039.0-1046_daily_bin1774.fits outfile=/scratch/kocevski/695275/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1774.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=699148801.0 tmax=699408001.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.87
user 2.60
sys 0.18

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

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

Number of photons that the gtmktime cut: 470

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695275/ft1_filtered_4FGL_J2039.0-1046_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/695275/ltcube_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.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/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits
.....................!
real 12.88
user 12.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695275/ft1_filtered_4FGL_J2039.0-1046_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/695275/ltcube_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.fits outfile=/scratch/kocevski/695275/expmap_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.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/695275/ltcube_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.fits
.....................!
real 191.02
user 184.98
sys 5.63

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/695275/ft1_filtered_4FGL_J2039.0-1046_daily_bin1774.fits scfile=/scratch/kocevski/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits outfile=/scratch/kocevski/695275/cmap_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695275/ft1_filtered_4FGL_J2039.0-1046_daily_bin1774.fits scfile=/scratch/kocevski/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits outfile=/scratch/kocevski/695275/cmap_HighResolution_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695275/ft1_filtered_4FGL_J2039.0-1046_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/695275/ft2_4FGL_J2039.0-1046_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695275/Model_4FGL_J2039.0-1046_daily_bin1774.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/695275/ft1_filtered_4FGL_J2039.0-1046_daily_bin1774.fits.....................!
real 59.65
user 58.19
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1442       1.0000          .0000       .10000E+07
     2 'Prefactor '    35.943       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5420       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.6683       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12544E-02   1.0000          .0000       .10000E+07
     6 'norm      '    1.8513       1.0000          .0000       .10000E+07
     7 'Prefactor '    23.420       1.0000          .0000       .10000E+07
     8 'Prefactor '    64.459       1.0000          .0000       .10000E+07
     9 'norm      '    .26896E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .27525E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .94036E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5945       1.0000          .0000       .10000E+07
    13 'norm      '    3.9642       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.4168       1.0000          .0000       .10000E+07
    15 'Prefactor '    .99052E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20752E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .54289E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    .98921       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94344       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=   5318.966     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1408 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1470        3.6840        .32598E-06    .50847E-02
   2  Prefactor     34.109        68.014       -.76364E-05   -.18197E-01
   3  Prefactor     2.5414        1.3586       -.13388E-05   -.28934E-02
   4  Prefactor     1.6986        2.8856        .87402E-06    .54996E-02
   5  Prefactor     .94369E-09    16.357       -.15078E-04** at limit **
   6  norm          1.7892        10.054       -.22448E-05   -.12874E-02
   7  Prefactor     23.472        1.3504        .18182E-06   -.10685E-01
   8  Prefactor     63.947        19.806       -.21502E-05    .93965E-01
   9  norm          .11102E-09    10.171        .18730E-05** at limit **
  10  norm          .72164E-09    12.501       -.16480E-05** at limit **
  11  norm           .0000        .44475       -.21214E-06** at limit **
  12  Prefactor     2.8854        11.646       -.16855E-05    .49281E-02
  13  norm          3.9626        4.7718        .27319E-06    .20643E-02
  14  Prefactor     8.4201        8.3424        .48357E-06    .72257E-02
  15  Prefactor     .16098E-08    34.255       -.19749E-05** at limit **
  16  Prefactor     .55511E-08    15.488        .15706E-04** at limit **
  17  Prefactor     .22204E-09    32.233       -.61818E-06** at limit **
  18  Normalizat    .98740        .41092       -.18685E-04   -.36137E-04
  19  Prefactor     .94411        .14396        .57643E-05   -.13388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14698
  Prefactor  = 34.1089
  Prefactor  = 2.54143
  Prefactor  = 1.6986
  Prefactor  = 9.4369e-10
  norm       = 1.7892
  Prefactor  = 23.472
  Prefactor  = 63.9474
  norm       = 1.11022e-10
  norm       = 7.21645e-10
  norm       = 0
  Prefactor  = 2.88537
  norm       = 3.9626
  Prefactor  = 8.42014
  Prefactor  = 1.60982e-09
  Prefactor  = 5.55112e-09
  Prefactor  = 2.22045e-10
  Normalizat = 0.987402
  Prefactor  = 0.944114
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.966     FROM HESSE     STATUS=OK           306 CALLS     1714 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1470        3.6858        .57142E-03   -1.5672    
   2  Prefactor     34.109        71.034        .16682E-03   -1.5591    
   3  Prefactor     2.5414        28.036        .64024E-03   -1.5676    
   4  Prefactor     1.6986        2.9443        .81601E-03   -1.5682    
   5  Prefactor     .94369E-09    16.390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7892        10.182        .76591E-03   -1.5681    
   7  Prefactor     23.472        27.954        .20669E-03   -1.5611    
   8  Prefactor     63.947        79.935        .12456E-03   -1.5548    
   9  norm          .11102E-09    10.184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .72164E-09    12.519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .44667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8854        11.828        .63318E-03   -1.5674    
  13  norm          3.9626        4.7818        .50637E-03   -1.5668    
  14  Prefactor     8.4201        8.3016        .34530E-03   -1.5650    
  15  Prefactor     .16098E-08    33.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-08    15.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22204E-09    32.170        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .98740        .33820        .98313E-01   -.93454    
  19  Prefactor     .94411        .11719        .45556E-01   -.94616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22762e-06
Minuit parameter uncertainties:
  1  3.68576
  2  71.0357
  3  16.8821
  4  2.94428
  5  0.000251923
  6  8.53628
  7  27.9538
  8  79.9367
  9  7.07805e-05
  10  0.000190044
  11  5.96547e-06
  12  11.6841
  13  4.78176
  14  8.30161
  15  0.000462196
  16  0.000587976
  17  0.000176662
  18  0.338933
  19  0.117219
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.963e+00  4.782e+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.441e-01  1.172e-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.874e-01  3.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 2.42e-05

TS (Fixed Index): 1.31
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695275/likelihoodResults_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.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) = 5318.92751049
delta logL = 0.0386682067983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5318.91583688
delta logL = 0.0503418210956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1430       1.0000          .0000       .10000E+07
     2 'alpha     '    1.5479       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94097       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=   5318.916     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1447        3.9591        .57154E-03    .37231E-03
   2  alpha         1.5478        .74735        .45759       -.32431E-04
   3  Normalizat    1.0063        .32397        .97479E-01    .26812E-04
   4  Prefactor     .94098        .11394        .45525E-01   -.65322E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14474
  alpha      = 1.54782
  Normalizat = 1.00627
  Prefactor  = 0.940977
 **********
 **   18 **HESSE 
 **********

 FCN=   5318.916     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1447        4.9714        .15731E-04   -1.5672    
   2  alpha         1.5478        1.1120        .23045E-01   -.39074    
   3  Normalizat    1.0063        .39167        .43184E-03   -.92821    
   4  Prefactor     .94098        .13843        .15629E-03   -.94724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58736e-09
Minuit parameter uncertainties:
  1  4.97144
  2  1.16011
  3  0.392796
  4  0.138483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695275': 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) = 5318.91583674
delta logL = 0.0503419535698

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.145e+00  4.971e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  1.548e+00  1.160e+00  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.410e-01  1.385e-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:  1.006e+00  3.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.55 +/- 1.16
Photon Flux (Free Index): 1.64e-08 +/- 3.55e-08
Energy Flux (Free Index): 2.64e-05 +/- 4.46e-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/695275/cmap_HighResolution_699148801_699408001_4FGL_J2039.0-1046_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-05', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='2.64e-05', photon_flux_error='3.70e-08', dlogl='5.03e-02', energy_flux='2.00e-05', photon_flux2='1.64e-08', job_status='DONE', time_completed='2023-03-02 01:38:55.682725', photon_index_error2='1.16', photon_index2='1.55', ts='1.31', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='4.46e-05', EG='0.99', time_epoch_completed='1677749935.68', return_code='0', job_id='695275', GAL2='0.94', EG2='1.01', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='3.55e-08', ts2='1.41', photon_index='1.96' WHERE bin_id='1774' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:38:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 695275: <4FGL_J2039.0-1046_daily_bin1774> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 01:30:15 2023
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 01:30:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 01:30:15 2023
Terminated at Thu Mar  2 01:38:56 2023
Results reported at Thu Mar  2 01:38:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1774 309.758 -10.7731 699148801 699408001 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 :                                   510.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            521 sec.

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

