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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1736
RA = 309.758, Dec = -10.7731
tmin = 689299201, tmax = 689558401
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='962054', job_status='RUN', time_executed='2022-11-08 00:39:27.213608', time_epoch_executed='1667896767.21' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/962054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/962054/ft1_4FGL_J2039.0-1046_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/962054/ft2_4FGL_J2039.0-1046_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/962054/ft1_4FGL_J2039.0-1046_daily_bin1736.fits outfile=/scratch/kocevski/962054/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1736.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=689299201.0 tmax=689558401.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.57
user 3.32
sys 0.23

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

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

Number of photons that the gtmktime cut: 861

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/962054/ft1_filtered_4FGL_J2039.0-1046_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/962054/ft2_4FGL_J2039.0-1046_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/962054/ltcube_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.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/962054/ft2_4FGL_J2039.0-1046_daily_bin1736.fits
.....................!
real 12.53
user 12.11
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/962054/ft1_filtered_4FGL_J2039.0-1046_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/962054/ft2_4FGL_J2039.0-1046_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/962054/ltcube_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.fits outfile=/scratch/kocevski/962054/expmap_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.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/962054/ltcube_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.fits
.....................!
real 191.68
user 187.15
sys 4.22

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/962054/ft1_filtered_4FGL_J2039.0-1046_daily_bin1736.fits scfile=/scratch/kocevski/962054/ft2_4FGL_J2039.0-1046_daily_bin1736.fits outfile=/scratch/kocevski/962054/cmap_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/962054/ft1_filtered_4FGL_J2039.0-1046_daily_bin1736.fits scfile=/scratch/kocevski/962054/ft2_4FGL_J2039.0-1046_daily_bin1736.fits outfile=/scratch/kocevski/962054/cmap_HighResolution_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33889E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .24643E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    23.779       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0735       1.0000          .0000       .10000E+07
     5 'Prefactor '    .49383       1.0000          .0000       .10000E+07
     6 'norm      '    .12443E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22064E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .39930       1.0000          .0000       .10000E+07
     9 'norm      '    .10290       1.0000          .0000       .10000E+07
    10 'norm      '    .14553E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .65170E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.1335       1.0000          .0000       .10000E+07
    13 'norm      '    .17113E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.3856       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9763       1.0000          .0000       .10000E+07
    16 'Prefactor '    .57440E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .19002E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3154       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89490       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=   9160.625     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1429 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.4937        .85266E-06** at limit **
   2  Prefactor     .38247E-07    77.616        .57730E-05** at limit **
   3  Prefactor     23.814        1.9354       -.10743E-06   -.96768E-02
   4  Prefactor     1.0728        1.5305       -.87507E-07    .47989E-03
   5  Prefactor     .36637E-08    83.947       -.50369E-05** at limit **
   6  norm          .14433E-08    6.4080        .42030E-06** at limit **
   7  Prefactor     .65892E-07    92.198       -.36416E-05** at limit **
   8  Prefactor     .64273E-05    6.7044       -.18830E-05** at limit **
   9  norm          .16653E-09    30.471        .42318E-05** at limit **
  10  norm          .11102E-08    9.0979       -.33910E-05** at limit **
  11  norm           .0000        .66620        .88553E-06** at limit **
  12  Prefactor     9.1520        10.273        .69359E-06    .11594E-03
  13  norm          .63283E-08    8.9689       -.27451E-05** at limit **
  14  Prefactor     2.3871        3.3037        .20950E-06    .35346E-03
  15  Prefactor     2.9628        3.8626        .13706E-05    .20350E-02
  16  Prefactor     .13600E-06    12.386       -.34087E-05** at limit **
  17  Prefactor     .11657E-08    5.3346       -.12655E-05** at limit **
  18  Normalizat    1.3151        .25581        .20642E-04   -.23969E-04
  19  Prefactor     .89515        .10261       -.12987E-04   -.34569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 3.82472e-08
  Prefactor  = 23.8137
  Prefactor  = 1.0728
  Prefactor  = 3.66374e-09
  norm       = 1.44329e-09
  Prefactor  = 6.58917e-08
  Prefactor  = 6.4273e-06
  norm       = 1.66533e-10
  norm       = 1.11022e-09
  norm       = 0
  Prefactor  = 9.15201
  norm       = 6.32827e-09
  Prefactor  = 2.38712
  Prefactor  = 2.96284
  Prefactor  = 1.36002e-07
  Prefactor  = 1.16573e-09
  Normalizat = 1.31506
  Prefactor  = 0.895151
 **********
 **   18 **HESSE 
 **********

 FCN=   9160.625     FROM HESSE     STATUS=OK           306 CALLS     1735 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.4877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38247E-07    77.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.814        35.430        .20512E-03   -1.5610    
   4  Prefactor     1.0728        1.7685        .31763E-02   -1.5687    
   5  Prefactor     .36637E-08    83.917        .79333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .14433E-08    6.3929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .65892E-07    92.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64273E-05    61.706        .89568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16653E-09    29.202        .13852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-08    9.1324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .65751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1520        10.278        .33139E-03   -1.5647    
  13  norm          .63283E-08    1.7472        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3871        3.3086        .66288E-03   -1.5677    
  15  Prefactor     2.9628        3.8724        .58826E-03   -1.5674    
  16  Prefactor     .13600E-06    13.545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11657E-08    5.3362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3151        .21333        .77429E-01   -.83118    
  19  Prefactor     .89515        .86314E-01    .44940E-01   -.96311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21831e-07
Minuit parameter uncertainties:
  1  1.77173e-05
  2  0.00345339
  3  35.4301
  4  1.76849
  5  0.00111245
  6  0.000193473
  7  0.00493861
  8  0.0398303
  9  0.000127545
  10  0.000201405
  11  1.55962e-06
  12  10.2779
  13  0.000210543
  14  3.30857
  15  3.87242
  16  0.00271467
  17  0.000158343
  18  0.213474
  19  0.0863271
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  6.328e-09  2.105e-04  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.952e-01  8.633e-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:  1.315e+00  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/962054/likelihoodResults_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.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) = 9160.75440589
delta logL = -0.129243220696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9159.77835955
delta logL = 0.846803119284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11790       1.0000          .0000       .10000E+07
     2 'alpha     '    4.5557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92217       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=   9159.778     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11797        1.5534        .57727E-03** at limit **
   2  alpha         4.5558        4.5414        .50000        .10545E-04
   3  Normalizat    1.1986        .55032E-01    .80530E-01   -.47937E-05
   4  Prefactor     .92213        .22232E-01    .45287E-01    .92956E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.117969
  alpha      = 4.55576
  Normalizat = 1.19857
  Prefactor  = 0.922134
 **********
 **   18 **HESSE 
 **********

 FCN=   9159.778     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11797        3.6712        .26214E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5558        3.8525        .33269E-01    .96545    
   3  Normalizat    1.1986        .18802        .35649E-03   -.86647    
   4  Prefactor     .92213        .74450E-01    .16202E-03   -.95372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.5331e-08
Minuit parameter uncertainties:
  1  1.31618
  2  5.46899
  3  0.188124
  4  0.0744583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/962054': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9159.77835902
delta logL = 0.846803643935

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.180e-01  1.316e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  4.556e+00  5.469e+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.221e-01  7.446e-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:  1.199e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 4.56 +/- 5.47
Photon Flux (Free Index): 8.81e-08 +/- 6.96e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.45e-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/962054/cmap_HighResolution_689299201_689558401_4FGL_J2039.0-1046_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='8.47e-01', photon_flux2='8.81e-08', job_status='DONE', time_completed='2022-11-08 00:50:47.126709', photon_index_error2='5.47', photon_index2='4.56', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='5.32e-08', energy_flux_error2='1.45e-05', EG='1.32', time_epoch_completed='1667897447.13', return_code='0', job_id='962054', GAL2='0.92', EG2='1.20', return_code2='102', photon_flux_error2='6.96e-08', ts2='1.86', photon_index='1.96' WHERE bin_id='1736' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:50:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 962054: <4FGL_J2039.0-1046_daily_bin1736> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1736> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Nov  8 00:35:31 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:35:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:35:32 2022
Terminated at Tue Nov  8 00:50:47 2022
Results reported at Tue Nov  8 00:50:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1736 309.758 -10.7731 689299201 689558401 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 :                                   682.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

