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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1695
RA = 311.72, Dec = -42.9694
tmin = 678672001, tmax = 678931201
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='729927', job_status='RUN', time_executed='2022-07-08 00:32:08.207540', time_epoch_executed='1657265528.21' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/729927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/729927/ft1_4FGL_J2046.8-4258_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/729927/ft1_4FGL_J2046.8-4258_daily_bin1695.fits outfile=/scratch/kocevski/729927/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1695.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=678672001.0 tmax=678931201.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.62
user 3.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.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/729927/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.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.52
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 579

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/729927/ltcube_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.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/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits
.....................!
real 11.86
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/729927/ltcube_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.fits outfile=/scratch/kocevski/729927/expmap_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.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/729927/ltcube_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.fits
.....................!
real 189.75
user 185.09
sys 4.34

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2046.8-4258 @ 311.72 -42.9694

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits scfile=/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits outfile=/scratch/kocevski/729927/cmap_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.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=311.72 yref=-42.9694 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits scfile=/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits outfile=/scratch/kocevski/729927/cmap_HighResolution_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.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=311.72 yref=-42.9694 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/729927/Model_4FGL_J2046.8-4258_daily_bin1695.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/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits.....................!
real 53.20
user 51.85
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits', '/scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits', expMap='/scratch/kocevski/729927/expmap_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.fits', expCube='/scratch/kocevski/729927/ltcube_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/729927/Model_4FGL_J2046.8-4258_daily_bin1695.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2046.8-4258'

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  5.589e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.134e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.921e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/729927/ft1_filtered_4FGL_J2046.8-4258_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/729927/ft2_4FGL_J2046.8-4258_daily_bin1695.fits
Exposure map: /scratch/kocevski/729927/expmap_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.fits
Exposure cube: /scratch/kocevski/729927/ltcube_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/729927/Model_4FGL_J2046.8-4258_daily_bin1695.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) = 6327.70429407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9577       1.0000         .10000E-03   10000.    
     3 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8912       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.782       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0993       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6415       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.521       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20581E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4334       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1087       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6327.665     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2606 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.704        .44185E-07** at limit **
   2  norm          9.9567        2.1371        .59031E-08    .64457E-04
   3  norm          .10000E-03    16.545        .49884E-06** at limit **
   4  norm          .10000E-03    10.540        .53089E-06** at limit **
   5  norm          2.8910        1.9431        .13546E-06    .69758E-03
   6  Prefactor     43.769        60.498        .10561E-05    .19302E-04
   7  norm          1.0988        2.5406       -.21957E-05   -.40674E-04
   8  norm          5.6367        17.297        .51173E-06    .16898E-03
   9  norm          .10000E-03    7.8892       -.29986E-07** at limit **
  10  Prefactor     .10000E-03    15.497       -.53201E-06** at limit **
  11  Prefactor     .10000E-03    42.895       -.22313E-05** at limit **
  12  Prefactor     12.507        22.397        .32173E-06    .14001E-03
  13  norm          .10000E-03    .96426        .87069E-07** at limit **
  14  Prefactor     25.238        33.120        .31681E-06   -.18482E-04
  15  Prefactor     .10000E-03    48.516       -.17157E-05** at limit **
  16  Prefactor     .10000E-03    2.5993        .36218E-07** at limit **
  17  Prefactor     .10000E-03    24.084        .97501E-06** at limit **
  18  Prefactor     .10000E-03    5.9009        .24762E-06** at limit **
  19  norm          .10001E-03    64.679       -.42885E-04** at limit **
  20  Prefactor     .10000E-03    5.3708       -.18547E-07** at limit **
  21  Prefactor     5.4356        5.7327       -.23168E-06   -.43739E-03
  22  Normalizat    1.1088        .24477        .38111E-05    .57249E-03
  23  Prefactor     .98060        .12106       -.13234E-05    .20193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.95675
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 2.89096
  Prefactor  = 43.7687
  norm       = 1.09879
  norm       = 5.63668
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.507
  norm       = 0.0001
  Prefactor  = 25.2375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 5.4356
  Normalizat = 1.10881
  Prefactor  = 0.980598
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.665     FROM HESSE     STATUS=OK           370 CALLS     2976 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9567        2.1397        .51454E-04   -1.5077    
   3  norm          .10000E-03    17.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8910        1.9458        .88149E-04   -1.5368    
   6  Prefactor     43.769        60.595        .60589E-04   -1.4384    
   7  norm          1.0988        2.5406        .21135E-02   -1.5498    
   8  norm          5.6367        17.376        .16913E-03   -1.5233    
   9  norm          .10000E-03    7.8922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.507        22.542        .11321E-03   -1.5001    
  13  norm          .10000E-03    .99890        .15245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.238        33.170        .79719E-04   -1.4703    
  15  Prefactor     .10000E-03    48.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6036        .12525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    3.6282        .46802E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3969        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4356        5.7368        .17239E-03   -1.5242    
  22  Normalizat    1.1088        .29300        .35294E-03   -.89469    
  23  Prefactor     .98060        .14496        .18291E-03   -.93379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06779e-08
Minuit parameter uncertainties:
  1  5.37608e-06
  2  2.13972
  3  0.000281674
  4  0.000133925
  5  1.94581
  6  60.6805
  7  2.5408
  8  17.392
  9  1.87011e-05
  10  0.000103318
  11  0.000292479
  12  22.5577
  13  1.97981e-05
  14  33.1946
  15  0.000163274
  16  2.0944e-05
  17  3.50421e-05
  18  0.000157364
  19  0.0002827
  20  1.70032e-05
  21  5.73742
  22  0.293435
  23  0.145019
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.925e-04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.134e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.921e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.806e-01  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.109e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 311.720 -42.969
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/729927/likelihoodResults_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.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) = 6327.66545541
delta logL = -0.00011070943674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6327.66534529
delta logL = -5.8443765738e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3535       1.0000          .0000       10.000    
     3 'Normalizat'    1.1088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   6327.665     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10346E-03    12.081        .18142E-01** at limit **
   2  Index         2.2696        8.8640        .50000        .12206E-04
   3  Normalizat    1.1088        .38002E-02    .35293E-03   -.30641E-03
   4  Prefactor     .98061        .18769E-02    .18291E-03   -.37254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103462
  Index      = 2.26961
  Normalizat = 1.10879
  Prefactor  = 0.980606
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.665     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10346E-03    87.727        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2696        6.1283        .50000       -.57768    
   3  Normalizat    1.1088        .10260E-01    .70587E-04   -.89470    
   4  Prefactor     .98061        .50672E-02    .36583E-04   -.93379    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47797e-09
Minuit parameter uncertainties:
  1  0.0349075
  2  188.085
  3  0.0102598
  4  0.00506719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/729927': 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) = 6327.66534508
delta logL = -3.73691364075e-07

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.035e-04  3.491e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.270e+00  1.881e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.921e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.806e-01  5.067e-03  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.109e+00  1.026e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 311.720 -42.969

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/729927/cmap_HighResolution_678672001_678931201_4FGL_J2046.8-4258_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2022-07-08 00:42:40.287062', job_id='729927', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1657266160.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-3.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1695' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:42:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 729927: <4FGL_J2046.8-4258_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1695> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul  8 00:30:38 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:30:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:30:40 2022
Terminated at Fri Jul  8 00:42:41 2022
Results reported at Fri Jul  8 00:42:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1695 311.72 -42.9694 678672001 678931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2046.8-4258 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

