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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1746
RA = 311.72, Dec = -42.9694
tmin = 691891201, tmax = 692150401
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='739047', job_status='RUN', time_executed='2022-12-08 01:41:09.138067', time_epoch_executed='1670492469.14' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739047

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739047/ft1_4FGL_J2046.8-4258_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739047/ft1_4FGL_J2046.8-4258_daily_bin1746.fits outfile=/scratch/kocevski/739047/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1746.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.71
user 4.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.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/739047/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.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.14

Number of photons that the gtmktime cut: 650

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/739047/ltcube_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.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/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/739047/ltcube_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.fits outfile=/scratch/kocevski/739047/expmap_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.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/739047/ltcube_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.fits
.....................!
real 190.87
user 184.89
sys 5.67

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/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits scfile=/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits outfile=/scratch/kocevski/739047/cmap_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits scfile=/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits outfile=/scratch/kocevski/739047/cmap_HighResolution_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739047/Model_4FGL_J2046.8-4258_daily_bin1746.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/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits.....................!
real 58.68
user 57.34
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits', '/scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits', expMap='/scratch/kocevski/739047/expmap_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.fits', expCube='/scratch/kocevski/739047/ltcube_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/739047/Model_4FGL_J2046.8-4258_daily_bin1746.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  0.000e+00  1.000e+06 ( 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/739047/ft1_filtered_4FGL_J2046.8-4258_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/739047/ft2_4FGL_J2046.8-4258_daily_bin1746.fits
Exposure map: /scratch/kocevski/739047/expmap_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.fits
Exposure cube: /scratch/kocevski/739047/ltcube_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/739047/Model_4FGL_J2046.8-4258_daily_bin1746.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) = 7027.93800024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29184E-02   1.0000          .0000       .10000E+07
     2 'norm      '    12.896       1.0000          .0000       .10000E+07
     3 'norm      '    3.1348       1.0000          .0000       .10000E+07
     4 'norm      '    .75828E-01   1.0000          .0000       .10000E+07
     5 'norm      '    1.9497       1.0000          .0000       .10000E+07
     6 'norm      '    1.9000       1.0000          .0000       .10000E+07
     7 'norm      '    4.3306       1.0000          .0000       .10000E+07
     8 'norm      '    .31898E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    67.553       1.0000          .0000       .10000E+07
    10 'Prefactor '    .84675E-04   1.0000          .0000       .10000E+07
    11 'norm      '    4.9303       1.0000          .0000       .10000E+07
    12 'Prefactor '    22.557       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87170E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    88.686       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29977E-02   1.0000          .0000       .10000E+07
    16 'norm      '    26.806       1.0000          .0000       .10000E+07
    17 'Prefactor '    .52680E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.3574       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.8548       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7027.937     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1534 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95812E-07    4.9940        .16606E-05** at limit **
   2  norm          12.899        2.2928       -.12875E-07   -.41209E-02
   3  norm          3.0281        2.9589        .44320E-06    .18727E-01
   4  norm          .23870E-08    27.833       -.12649E-05** at limit **
   5  norm          1.9505        1.6446       -.30395E-07    .45940E-02
   6  norm          1.9006        3.1780        .20192E-06    .65974E-02
   7  norm          4.3535        4.1907       -.19475E-05   -.15780E-01
   8  norm          .10547E-08    8.2720       -.40384E-05** at limit **
   9  Prefactor     67.571        1.1158        .61656E-07   -.14495E-01
  10  Prefactor     .28533E-07    13.242        .98196E-06** at limit **
  11  norm          4.9317        2.7068       -.49819E-07   -.72938E-02
  12  Prefactor     22.610        4.2839       -.89415E-06    .62105E-01
  13  Prefactor     .80935E-07    3.8896        .70687E-06** at limit **
  14  Prefactor     88.673        2.8501        .28516E-06   -.91554E-01
  15  Prefactor     .58509E-07    10.607        .46871E-05** at limit **
  16  norm          26.794        5.5590       -.25241E-06   -.31461E-01
  17  Prefactor     .57454E-07    3.8398       -.16915E-05** at limit **
  18  Prefactor     9.3666        6.3976       -.13944E-06   -.50843E-03
  19  Normalizat    1.8551        .32897       -.63220E-05   -.26992E-03
  20  Prefactor     .77596        .15056        .43637E-05   -.21800E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.58122e-08
  norm       = 12.8992
  norm       = 3.02815
  norm       = 2.38698e-09
  norm       = 1.95045
  norm       = 1.90057
  norm       = 4.35351
  norm       = 1.05471e-09
  Prefactor  = 67.5714
  Prefactor  = 2.85327e-08
  norm       = 4.93167
  Prefactor  = 22.6097
  Prefactor  = 8.09353e-08
  Prefactor  = 88.6726
  Prefactor  = 5.85088e-08
  norm       = 26.7942
  Prefactor  = 5.7454e-08
  Prefactor  = 9.36656
  Normalizat = 1.85512
  Prefactor  = 0.775961
 **********
 **   18 **HESSE 
 **********

 FCN=   7027.937     FROM HESSE     STATUS=OK           337 CALLS     1871 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95812E-07    10.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.899        2.3038        .27868E-03   -1.5636    
   3  norm          3.0281        8.6163        .57233E-03   -1.5673    
   4  norm          .23870E-08    27.394        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9505        1.6402        .74294E-03   -1.5680    
   6  norm          1.9006        3.2145        .75426E-03   -1.5680    
   7  norm          4.3535        13.677        .48382E-03   -1.5666    
   8  norm          .10547E-08    10.552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     67.571        88.524        .12168E-03   -1.5544    
  10  Prefactor     .28533E-07    14.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9317        2.7022        .45272E-03   -1.5664    
  12  Prefactor     22.610        39.802        .21061E-03   -1.5613    
  13  Prefactor     .80935E-07    7.2603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     88.673        58.028        .10619E-03   -1.5520    
  15  Prefactor     .58509E-07    15.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.794        9.5834        .19318E-03   -1.5604    
  17  Prefactor     .57454E-07    6.9567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3666        8.9833        .32738E-03   -1.5647    
  19  Normalizat    1.8551        .28486        .77406E-01   -.68233    
  20  Prefactor     .77596        .12928        .43403E-01   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34021e-07
Minuit parameter uncertainties:
  1  0.00205149
  2  2.30382
  3  8.61638
  4  0.000510928
  5  1.64016
  6  3.21453
  7  13.6774
  8  0.000211377
  9  88.5258
  10  0.00129499
  11  2.70222
  12  39.802
  13  0.00153296
  14  58.0279
  15  0.00191
  16  9.58336
  17  0.00126445
  18  8.98332
  19  0.285119
  20  0.129334
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  6.757e+01  8.853e+01  0.000e+00  1.000e+06 ( 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:  7.760e-01  1.293e-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.855e+00  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 311.720 -42.969
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/739047/likelihoodResults_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.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) = 7027.90595103
delta logL = 0.0309481794584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7027.89055986
delta logL = 0.0463393492109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.929       1.0000          .0000       .10000E+07
     2 'Index     '    2.4233       1.0000          .0000       10.000    
     3 'Normalizat'    1.8388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78022       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.

 FCN=   7027.891     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.929        2230.6        .14014E-03    .14057E-02
   2  Index         2.4233        6.1643        .13942        .14830E-03
   3  Normalizat    1.8388        .13127        .77671E-01   -.27033E-04
   4  Prefactor     .78022        .45741E-01    .43459E-01    .22354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9287
  Index      = 2.42333
  Normalizat = 1.83882
  Prefactor  = 0.780217
 **********
 **   18 **HESSE 
 **********

 FCN=   7027.891     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.929        107.32        .56055E-05   -1.5565    
   2  Index         2.4233        1.1464        .90464E-02   -.54140    
   3  Normalizat    1.8388        .33207        .34367E-03   -.68655    
   4  Prefactor     .78022        .15075        .22855E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74992e-10
Minuit parameter uncertainties:
  1  107.325
  2  1.16056
  3  0.332476
  4  0.150826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739047': 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) = 7027.89055986
delta logL = 0.0463393494774

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  5.093e+01  1.073e+02  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.423e+00  1.161e+00  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:  7.802e-01  1.508e-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.839e+00  3.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 2.42 +/- 1.16
Photon Flux (Free Index): 4.62e-08 +/- 7.05e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.99e-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/739047/cmap_HighResolution_691891201_692150401_4FGL_J2046.8-4258_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='4.63e-02', photon_flux2='4.62e-08', job_status='DONE', time_completed='2022-12-08 01:50:51.615754', photon_index_error2='1.16', photon_index2='2.42', ts='0.93', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.99e-05', EG='1.86', time_epoch_completed='1670493051.62', return_code='0', job_id='739047', GAL2='0.78', EG2='1.84', return_code2='0', photon_flux_error2='7.05e-08', ts2='1.02', photon_index='2.13' WHERE bin_id='1746' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:50:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 739047: <4FGL_J2046.8-4258_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Dec  8 01:40:14 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:40:16 2022
Terminated at Thu Dec  8 01:50:52 2022
Results reported at Thu Dec  8 01:50:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1746 311.72 -42.9694 691891201 692150401 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 :                                   583.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            638 sec.

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

