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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1776
RA = 309.758, Dec = -10.7731
tmin = 699667201, tmax = 699926401
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='842137', job_status='RUN', time_executed='2023-03-08 01:13:25.213149', time_epoch_executed='1678266805.21' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/842137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/842137/ft1_4FGL_J2039.0-1046_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/842137/ft1_4FGL_J2039.0-1046_daily_bin1776.fits outfile=/scratch/kocevski/842137/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1776.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=699667201.0 tmax=699926401.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.91
user 3.66
sys 0.22

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

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

Number of photons that the gtmktime cut: 1037

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/842137/ft1_filtered_4FGL_J2039.0-1046_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/842137/ltcube_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.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/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/842137/ft1_filtered_4FGL_J2039.0-1046_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/842137/ltcube_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.fits outfile=/scratch/kocevski/842137/expmap_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.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/842137/ltcube_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.fits
.....................!
real 191.76
user 186.41
sys 5.00

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/842137/ft1_filtered_4FGL_J2039.0-1046_daily_bin1776.fits scfile=/scratch/kocevski/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits outfile=/scratch/kocevski/842137/cmap_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/842137/ft1_filtered_4FGL_J2039.0-1046_daily_bin1776.fits scfile=/scratch/kocevski/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits outfile=/scratch/kocevski/842137/cmap_HighResolution_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/842137/ft1_filtered_4FGL_J2039.0-1046_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/842137/ft2_4FGL_J2039.0-1046_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/842137/Model_4FGL_J2039.0-1046_daily_bin1776.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/842137/ft1_filtered_4FGL_J2039.0-1046_daily_bin1776.fits.....................!
real 103.30
user 101.95
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1396       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10554E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    30.641       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.2158       1.0000          .0000       .10000E+07
     5 'Prefactor '    35.133       1.0000          .0000       .10000E+07
     6 'norm      '    4.2263       1.0000          .0000       .10000E+07
     7 'Prefactor '    .59726E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0730       1.0000          .0000       .10000E+07
     9 'norm      '    .30281E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .80902E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .61380E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .90534E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.8950       1.0000          .0000       .10000E+07
    14 'Prefactor '    .42591E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .83194E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.2669       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.0017       1.0000          .0000       .10000E+07
    18 'Normalizat'    .94544       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97159       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=   10950.34     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1469 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1417        3.3224       -.13227E-07   -.23501E-03
   2  Prefactor     .27089E-07    23.315        .71948E-07** at limit **
   3  Prefactor     30.670        4.3203        .79358E-08   -.10483E-01
   4  Prefactor     6.2157        1.9847       -.76018E-08   -.81306E-03
   5  Prefactor     35.323        17.449       -.27848E-07    .74719E-01
   6  norm          4.2904        6.5167        .27164E-07    .35648E-03
   7  Prefactor     .31863E-07    18.856       -.30436E-07** at limit **
   8  Prefactor     .34958E-05    2422.1       -.17157E-05** at limit **
   9  norm           .0000        2.4219        .30989E-07** at limit **
  10  norm           .0000        33.524       -.21420E-07** at limit **
  11  norm          .60286E-01    1.2495        .11753E-06** at limit **
  12  Prefactor     .86597E-08    20.389       -.58892E-07** at limit **
  13  norm          1.8975        1.9835        .10317E-07    .24010E-03
  14  Prefactor      .0000        1.1182        .14244E-07** at limit **
  15  Prefactor      .0000        1.1533        .32913E-07** at limit **
  16  Prefactor     7.3932        16.248       -.88483E-08    .87765E-02
  17  Prefactor     1.1972        25.335       -.14753E-06   -.19807E-01
  18  Normalizat    .94444        .22404       -.77371E-06   -.16353E-06
  19  Prefactor     .97167        .92944E-01    .50831E-06    .45967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14167
  Prefactor  = 2.70894e-08
  Prefactor  = 30.6702
  Prefactor  = 6.21566
  Prefactor  = 35.3228
  norm       = 4.29038
  Prefactor  = 3.18634e-08
  Prefactor  = 3.49581e-06
  norm       = 0
  norm       = 0
  norm       = 0.0602861
  Prefactor  = 8.65974e-09
  norm       = 1.89746
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.39325
  Prefactor  = 1.19721
  Normalizat = 0.944445
  Prefactor  = 0.971674
 **********
 **   18 **HESSE 
 **********

 FCN=   10950.34     FROM HESSE     STATUS=OK           324 CALLS     1793 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1417        3.3310        .57186E-03   -1.5673    
   2  Prefactor     .27089E-07    23.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.670        23.133        .18068E-03   -1.5597    
   4  Prefactor     6.2157        1.9903        .40241E-03   -1.5658    
   5  Prefactor     35.323        34.562        .16873E-03   -1.5589    
   6  norm          4.2904        6.5502        .48992E-03   -1.5667    
   7  Prefactor     .31863E-07    19.068        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .34958E-05    41.697        .22153E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.4322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        8.2984        .14474E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .60286E-01    .38338        .23435E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .86597E-08    20.261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8975        1.9952        .75544E-03   -1.5680    
  14  Prefactor      .0000        1.1184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.1519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3932        17.383        .37184E-03   -1.5654    
  17  Prefactor     1.1972        34.746        .43825E-03   -1.5686    
  18  Normalizat    .94444        .19433        .86578E-01   -.94916    
  19  Prefactor     .97167        .80721E-01    .35171E-01   -.93680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67435e-07
Minuit parameter uncertainties:
  1  3.33102
  2  0.0015969
  3  23.133
  4  1.99032
  5  34.5621
  6  6.55021
  7  0.00155947
  8  0.0241469
  9  5.03255e-06
  10  3.13398e-06
  11  0.304056
  12  0.000837002
  13  1.99522
  14  1.40743e-06
  15  2.15927e-06
  16  17.3835
  17  12.8995
  18  0.194476
  19  0.0807312
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.897e+00  1.995e+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.717e-01  8.073e-02  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.444e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 9.59e-06 +/- 1.01e-05

TS (Fixed Index): 1.78
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/842137/likelihoodResults_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.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) = 10950.329814
delta logL = 0.0127416479954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10950.3295213
delta logL = 0.0130343114142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8609       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1061       1.0000          .0000       5.0000    
     3 'Normalizat'    .94084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97242       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=   10950.33     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      213 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8608        69.407        .76357E-03    .43787E-02
   2  alpha         2.1073        3.2079        .41816        .15330E-04
   3  Normalizat    .94080        .10923        .86730E-01    .39214E-04
   4  Prefactor     .97242        .31083E-01    .35159E-01   -.19905E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86076
  alpha      = 2.10733
  Normalizat = 0.940804
  Prefactor  = 0.972423
 **********
 **   18 **HESSE 
 **********

 FCN=   10950.33     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8608        2.0025        .14355E-04   -1.5681    
   2  alpha         2.1073        .94624        .29177E-01   -.15772    
   3  Normalizat    .94080        .22154        .38403E-03   -.95041    
   4  Prefactor     .97242        .91157E-01    .15535E-03   -.93654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02182e-13
Minuit parameter uncertainties:
  1  2.00254
  2  0.97108
  3  0.221759
  4  0.0911711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/842137': 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) = 10950.3295205
delta logL = 0.0130351157986

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.861e+00  2.003e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.107e+00  9.711e-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.724e-01  9.117e-02  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.408e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.11 +/- 0.97
Photon Flux (Free Index): 1.74e-08 +/- 2.48e-08
Energy Flux (Free Index): 8.80e-06 +/- 1.02e-05

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/842137/cmap_HighResolution_699667201_699926401_4FGL_J2039.0-1046_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='8.80e-06', photon_flux_error='1.54e-08', dlogl='1.30e-02', energy_flux='9.59e-06', photon_flux2='1.74e-08', job_status='DONE', time_completed='2023-03-08 01:26:06.284449', photon_index_error2='0.97', photon_index2='2.11', ts='1.78', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='5.63e-08', energy_flux_error2='1.02e-05', EG='0.94', time_epoch_completed='1678267566.28', return_code='0', job_id='842137', GAL2='0.97', EG2='0.94', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.48e-08', ts2='1.80', photon_index='1.96' WHERE bin_id='1776' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:26:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 842137: <4FGL_J2039.0-1046_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 01:10:17 2023
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:10:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:10:18 2023
Terminated at Wed Mar  8 01:26:06 2023
Results reported at Wed Mar  8 01:26:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1776 309.758 -10.7731 699667201 699926401 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 :                                   763.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            949 sec.

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

