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 12 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1702
RA = 309.758, Dec = -10.7731
tmin = 680486401, tmax = 680745601
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='257569', job_status='RUN', time_executed='2022-07-29 01:32:06.405054', time_epoch_executed='1659083526.41' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257569/ft1_4FGL_J2039.0-1046_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257569/ft1_4FGL_J2039.0-1046_daily_bin1702.fits outfile=/scratch/kocevski/257569/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1702.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=680486401.0 tmax=680745601.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.96
user 2.74
sys 0.19

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

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

Number of photons that the gtmktime cut: 14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/257569/ltcube_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.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/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits
.....................!
real 15.56
user 15.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/257569/ltcube_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.fits outfile=/scratch/kocevski/257569/expmap_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.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/257569/ltcube_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.fits
.....................!
real 192.38
user 187.13
sys 4.72

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/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits scfile=/scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits outfile=/scratch/kocevski/257569/cmap_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257569/Model_4FGL_J2039.0-1046_daily_bin1702.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/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits..............!
real 15.40
user 14.15
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits', '/scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits', expMap='/scratch/kocevski/257569/expmap_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.fits', expCube='/scratch/kocevski/257569/ltcube_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257569/Model_4FGL_J2039.0-1046_daily_bin1702.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  1.000e-04  1.000e+04 ( 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  0.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/257569/ft1_filtered_4FGL_J2039.0-1046_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/257569/ft2_4FGL_J2039.0-1046_daily_bin1702.fits
Exposure map: /scratch/kocevski/257569/expmap_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.fits
Exposure cube: /scratch/kocevski/257569/ltcube_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257569/Model_4FGL_J2039.0-1046_daily_bin1702.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 191.186704915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 190.912184304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85126E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0720       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12564E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9053       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.714       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6042       1.0000         .10000E-03   10000.    
    11 'norm      '    .43175E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    8.1802       1.0000         .10000E-03   10000.    
    13 'norm      '    .30668       1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.973       1.0000         .10000E-03   10000.    
    15 'norm      '    .11572E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27814E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74045E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54790       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .35026       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=   190.8981     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      414 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.813       -.18753E-05** at limit **
   2  Prefactor     3.5978        193.95       -.20080E-05    .27736E-02
   3  Prefactor     .10000E-03    98.644        .58901E-06** at limit **
   4  Prefactor     .12723E-03    1177.4       -.16642E-04** at limit **
   5  Prefactor     1.0720        1.2126         .0000         .0000    
   6  Prefactor     .10000E-03    139.81       -.28186E-05** at limit **
   7  Prefactor     1.9053        1.0394         .0000         .0000    
   8  norm          3.4772        1.0107         .0000         .0000    
   9  Prefactor     55.652        146.63        .22655E-04   -.34553E-03
  10  Prefactor     3.6042        1.0100         .0000         .0000    
  11  norm          .10000E-03    118.67        .88457E-07** at limit **
  12  norm          .17688E-02    6462.4       -.38089E-05** at limit **
  13  norm          .10000E-03    45.801        .71528E-05** at limit **
  14  Prefactor     54.498        120.92        .88228E-05    .16390E-02
  15  norm          .10000E-03    446.35        .40515E-05** at limit **
  16  Prefactor     1.2226        1.1268         .0000         .0000    
  17  Prefactor     .10000E-03    19.833        .16992E-05** at limit **
  18  Prefactor     .10000E-03    224.49       -.89313E-06** at limit **
  19  Prefactor     .10000E-03    581.17       -.93119E-05** at limit **
  20  Prefactor     .10000E-03    634.11       -.24042E-05** at limit **
  21  Normalizat    .57156        1.1537        .26816E-04   -.91973E-06
  22  Prefactor     .33459        .37895       -.96828E-05   -.35705E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.59779
  Prefactor  = 0.0001
  Prefactor  = 0.00012723
  Prefactor  = 1.07204
  Prefactor  = 0.0001
  Prefactor  = 1.90534
  norm       = 3.47723
  Prefactor  = 55.6523
  Prefactor  = 3.60423
  norm       = 0.0001
  norm       = 0.00176881
  norm       = 0.0001
  Prefactor  = 54.4977
  norm       = 0.0001
  Prefactor  = 1.22262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.571557
  Prefactor  = 0.334586
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   190.8981     FROM HESSE     STATUS=FAILED        25 CALLS      439 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.763        .91843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5978        9668.1        .41452E-02   -1.5329    
   3  Prefactor     .10000E-03    98.965        .10628E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12723E-03    1178.4        .38771E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     586.67        585.26         .0000       -1.5501    
   6  Prefactor     .10000E-03    .20637       -.28186E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9053        1.0394         .0000       -1.5432    
   8  norm          3.4772        1.0107         .0000       -1.5335    
   9  Prefactor     55.652        1.1408        .22655E-04   -1.4215    
  10  Prefactor     3.6042        1.0100         .0000       -1.5328    
  11  norm          .10000E-03    .21329        .88457E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .17688E-02    .30702E-01   -.38089E-05   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .27323        .71528E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.498        1.0441        .88228E-05   -1.4230    
  15  norm          .10000E-03    .20571        .40515E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2226        1.1268         .0000       -1.5487    
  17  Prefactor     .10000E-03    .20571        .16992E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20982       -.89313E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .32941       -.93119E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .21640       -.24042E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .57156        .90075        .26816E-04   -1.0921    
  22  Prefactor     .33459        .65917       -.96828E-05   -1.2029    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.97345e-11
Minuit parameter uncertainties:
  1  5.97985e-06
  2  701.531
  3  8.40106e-05
  4  0.365695
  5  1.21259
  6  5.201e-07
  7  1.03941
  8  1.01073
  9  1.14079
  10  1.00996
  11  1.4349e-06
  12  0.0143158
  13  6.43222e-06
  14  1.0441
  15  5.3842e-06
  16  1.12677
  17  6.10302e-07
  18  6.16654e-07
  19  5.65447e-06
  20  1.49439e-05
  21  0.925499
  22  0.674901
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 190.898140779

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  5.384e-06  1.000e-04  1.000e+04 ( 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  0.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:  3.346e-01  6.749e-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:  5.716e-01  9.255e-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: 2.10e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257569/likelihoodResults_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.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): 102
logL (Free Index) = 190.898150152
delta logL = -9.37309727078e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 190.898140964
delta logL = -1.84648683899e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0098       1.0000          .0000       5.0000    
     3 'Normalizat'    .57154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33459       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   190.8981     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      282 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10023E-03    9273.8        .18142E-01** at limit **
   2  alpha         1.5560        2.5017        .16915        .11598E-07
   3  Normalizat    .57153        .13821        .33766E-03   -.26969E-03
   4  Prefactor     .33458        .39657E-01    .12362E-03   -.72177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100229
  alpha      = 1.55601
  Normalizat = 0.571533
  Prefactor  = 0.334581
 **********
 **   18 **HESSE 
 **********

 FCN=   190.8981     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10023E-03    7757.5        .30418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5560        3.4203        .33831E-01   -.38720    
   3  Normalizat    .57153        1.1296        .67532E-04   -1.0921    
   4  Prefactor     .33458        .33663        .24724E-04   -1.2029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72988e-09
Minuit parameter uncertainties:
  1  0.0800402
  2  10552.4
  3  1.1808
  4  0.33863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257569': 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) = 190.89814077
delta logL = 9.06254626898e-09

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.002e-04  8.004e-02  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.556e+00  1.055e+04  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00  0.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:  3.346e-01  3.386e-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:  5.715e-01  1.181e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.758 -10.773

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/257569/cmap_HighResolution_680486401_680745601_4FGL_J2039.0-1046_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', job_status='DONE', photon_flux_upper_limit='2.10e-05', time_completed='2022-07-29 01:37:31.456385', job_id='257569', GAL2='0.33', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1659083851.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.33', dlogl='9.06e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1702' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:37:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 257569: <4FGL_J2039.0-1046_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1702> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul 29 01:30:25 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:31:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:31:44 2022
Terminated at Fri Jul 29 01:37:32 2022
Results reported at Fri Jul 29 01:37:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1702 309.758 -10.7731 680486401 680745601 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 :                                   327.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             449.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   348 sec.
    Turnaround time :                            427 sec.

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

