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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1728
RA = 311.72, Dec = -42.9694
tmin = 687225601, tmax = 687484801
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='304336', job_status='RUN', time_executed='2022-10-15 00:36:02.644084', time_epoch_executed='1665819362.64' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304336/ft1_4FGL_J2046.8-4258_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304336/ft1_4FGL_J2046.8-4258_daily_bin1728.fits outfile=/scratch/kocevski/304336/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1728.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=687225601.0 tmax=687484801.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.74
user 2.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.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/304336/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 1096

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304336/ltcube_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.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/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits
.....................!
real 12.70
user 12.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304336/ltcube_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.fits outfile=/scratch/kocevski/304336/expmap_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.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/304336/ltcube_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.fits
.....................!
real 190.38
user 184.99
sys 5.01

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/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits scfile=/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits outfile=/scratch/kocevski/304336/cmap_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits scfile=/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits outfile=/scratch/kocevski/304336/cmap_HighResolution_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304336/Model_4FGL_J2046.8-4258_daily_bin1728.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/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits.....................!
real 87.47
user 86.02
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits', '/scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits', expMap='/scratch/kocevski/304336/expmap_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.fits', expCube='/scratch/kocevski/304336/ltcube_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/304336/Model_4FGL_J2046.8-4258_daily_bin1728.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/304336/ft1_filtered_4FGL_J2046.8-4258_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/304336/ft2_4FGL_J2046.8-4258_daily_bin1728.fits
Exposure map: /scratch/kocevski/304336/expmap_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.fits
Exposure cube: /scratch/kocevski/304336/ltcube_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/304336/Model_4FGL_J2046.8-4258_daily_bin1728.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) = 11578.0805565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79381E-08   1.0000          .0000       .10000E+07
     2 'norm      '    8.0636       1.0000          .0000       .10000E+07
     3 'norm      '     .0000       1.0000          .0000       .10000E+07
     4 'norm      '    11.031       1.0000          .0000       .10000E+07
     5 'norm      '    .55511E-09   1.0000          .0000       .10000E+07
     6 'norm      '    3.7687       1.0000          .0000       .10000E+07
     7 'norm      '    8.8340       1.0000          .0000       .10000E+07
     8 'norm      '    14.349       1.0000          .0000       .10000E+07
     9 'Prefactor '    20.715       1.0000          .0000       .10000E+07
    10 'Prefactor '    34.463       1.0000          .0000       .10000E+07
    11 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11878E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.5068       1.0000          .0000       .10000E+07
    14 'Prefactor '    .30898       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19941       1.0000          .0000       .10000E+07
    16 'norm      '    40.476       1.0000          .0000       .10000E+07
    17 'Prefactor '    13.096       1.0000          .0000       .10000E+07
    18 'Prefactor '    .72164E-08   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2935       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99493       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=   11576.92     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      949 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.8994       -.28800E-07** at limit **
   2  norm          8.0633        1.3826       -.79491E-08   -.14176E-01
   3  norm          .16653E-09    2.4523        .10911E-06** at limit **
   4  norm          10.976        2.2279       -.68520E-08    .70433E-01
   5  norm           .0000        .32252        .27176E-08** at limit **
   6  norm          3.7705        3.2282        .21729E-07    .26113E-03
   7  norm          8.7915        9.9408       -.53602E-08    .17906E-01
   8  norm          14.286        10.318        .60606E-08   -.93956E-01
   9  Prefactor     20.271        52.044        .47834E-08    .67379E-02
  10  Prefactor     34.332        17.022       -.89669E-08    .92996E-01
  11  norm          .55511E-10    .47082        .42783E-07** at limit **
  12  Prefactor     .55511E-10    9.9198       -.68234E-07** at limit **
  13  Prefactor     7.5062        7.3097       -.10719E-07    .16827E-02
  14  Prefactor     .55916E-06    201.45       -.11847E-06** at limit **
  15  Prefactor     .26185        15.612       -.23491E-06   -.68120E-03
  16  norm          40.504        7.8747       -.60301E-08   -.20767E-02
  17  Prefactor     13.103        2.3049       -.56751E-09    .29618E-01
  18  Prefactor     .27756E-09    3.9616       -.77169E-07** at limit **
  19  Normalizat    1.2935        .24275       -.92939E-06   -.46368E-03
  20  Prefactor     .99508        .11538       -.37185E-06   -.78122E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 8.06328
  norm       = 1.66533e-10
  norm       = 10.9761
  norm       = 0
  norm       = 3.77048
  norm       = 8.79152
  norm       = 14.2863
  Prefactor  = 20.2714
  Prefactor  = 34.3325
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 7.5062
  Prefactor  = 5.59164e-07
  Prefactor  = 0.261854
  norm       = 40.5038
  Prefactor  = 13.1033
  Prefactor  = 2.77556e-10
  Normalizat = 1.29354
  Prefactor  = 0.995077
 **********
 **   18 **HESSE 
 **********

 FCN=   11576.92     FROM HESSE     STATUS=OK           349 CALLS     1298 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.9102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0633        1.3815        .35284E-03   -1.5651    
   3  norm          .16653E-09    2.4481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.976        14.643        .30140E-03   -1.5642    
   5  norm           .0000        .32261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7705        3.2632        .51980E-03   -1.5669    
   7  norm          8.7915        10.168        .33699E-03   -1.5649    
   8  norm          14.286        17.636        .26415E-03   -1.5632    
   9  Prefactor     20.271        52.904        .21978E-03   -1.5618    
  10  Prefactor     34.332        20.592        .17036E-03   -1.5591    
  11  norm          .55511E-10    .47125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    9.9244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5062        7.3502        .36580E-03   -1.5653    
  14  Prefactor     .55916E-06    23.112        .13701E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .26185        1.6974        .82040E-02   -1.5698    
  16  norm          40.504        8.3651        .15720E-03   -1.5581    
  17  Prefactor     13.103        10.925        .27653E-03   -1.5636    
  18  Prefactor     .27756E-09    3.9608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2935        .20972        .81357E-01   -.83759    
  20  Prefactor     .99508        .97055E-01    .46204E-01   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32116e-07
Minuit parameter uncertainties:
  1  2.06879e-05
  2  1.38146
  3  4.33962e-05
  4  14.6435
  5  5.83233e-07
  6  3.26324
  7  10.1685
  8  17.6366
  9  52.9053
  10  20.5923
  11  8.5735e-06
  12  4.59984e-05
  13  7.3502
  14  0.00718977
  15  1.33337
  16  8.36515
  17  10.9251
  18  6.69032e-05
  19  0.209863
  20  0.0970717
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  2.027e+01  5.291e+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:  9.951e-01  9.707e-02  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.294e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/304336/likelihoodResults_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.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) = 11575.9669978
delta logL = 0.951504789644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11575.8839231
delta logL = 1.03457945529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9959       1.0000          .0000       .10000E+07
     2 'Index     '    4.0538       1.0000          .0000       10.000    
     3 'Normalizat'    1.1598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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=   11575.88     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      292 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9963        41.113        .97031E-05    .44626E-01
   2  Index         4.0538        3.1844        .43324E-02    .99687E-03
   3  Normalizat    1.1598        .20073        .37778E-03    .46584E-03
   4  Prefactor     1.0333        .95322E-01    .19421E-03    .51799E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99634
  Index      = 4.05381
  Normalizat = 1.15985
  Prefactor  = 1.03327
 **********
 **   18 **HESSE 
 **********

 FCN=   11575.88     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9963        11.576        .38812E-06   -1.5680    
   2  Index         4.0538        1.7942        .17330E-03   -.19039    
   3  Normalizat    1.1598        .24607        .15111E-04   -.87853    
   4  Prefactor     1.0333        .11573        .38842E-04   -.91629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90598e-09
Minuit parameter uncertainties:
  1  9.61434
  2  1.83678
  3  0.246311
  4  0.115762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304336': 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) = 11575.8839229
delta logL = 1.03457970298

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.996e+00  9.614e+00  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  4.054e+00  1.837e+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:  1.033e+00  1.158e-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.160e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 4.05 +/- 1.84
Photon Flux (Free Index): 1.05e-07 +/- 7.53e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.17e-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/304336/cmap_HighResolution_687225601_687484801_4FGL_J2046.8-4258_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='1.03e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2022-10-15 00:47:03.024997', photon_index_error2='1.84', photon_index2='4.05', ts='0.18', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.16e-08', energy_flux_error2='1.17e-05', EG='1.29', time_epoch_completed='1665820023.03', return_code='0', job_id='304336', GAL2='1.03', EG2='1.16', return_code2='0', photon_flux_error2='7.53e-08', ts2='2.54', photon_index='2.13' WHERE bin_id='1728' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:47:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 304336: <4FGL_J2046.8-4258_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:35:45 2022
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:35:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:35:47 2022
Terminated at Sat Oct 15 00:47:03 2022
Results reported at Sat Oct 15 00:47:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1728 311.72 -42.9694 687225601 687484801 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 :                                   662.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

