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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1748
RA = 311.72, Dec = -42.9694
tmin = 692409601, tmax = 692668801
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='895504', job_status='RUN', time_executed='2022-12-14 01:14:34.421614', time_epoch_executed='1671009274.42' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895504/ft1_4FGL_J2046.8-4258_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895504/ft1_4FGL_J2046.8-4258_daily_bin1748.fits outfile=/scratch/kocevski/895504/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1748.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=692409601.0 tmax=692668801.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.56
user 3.36
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.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/895504/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.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.48
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 652

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/895504/ltcube_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.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/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits
.....................!
real 11.92
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/895504/ltcube_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.fits outfile=/scratch/kocevski/895504/expmap_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.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/895504/ltcube_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.fits
.....................!
real 190.26
user 185.46
sys 4.49

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/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.fits scfile=/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits outfile=/scratch/kocevski/895504/cmap_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.fits scfile=/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits outfile=/scratch/kocevski/895504/cmap_HighResolution_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.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/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/895504/ft2_4FGL_J2046.8-4258_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/895504/Model_4FGL_J2046.8-4258_daily_bin1748.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/895504/ft1_filtered_4FGL_J2046.8-4258_daily_bin1748.fits.....................!
real 59.95
user 58.76
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.762       1.0000          .0000       .10000E+07
     2 'norm      '    16.113       1.0000          .0000       .10000E+07
     3 'norm      '    .14308E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .20398E-02   1.0000          .0000       .10000E+07
     5 'norm      '    4.1105       1.0000          .0000       .10000E+07
     6 'norm      '    .48126E-05   1.0000          .0000       .10000E+07
     7 'norm      '    18.222       1.0000          .0000       .10000E+07
     8 'norm      '    .11418       1.0000          .0000       .10000E+07
     9 'Prefactor '    86.707       1.0000          .0000       .10000E+07
    10 'Prefactor '    33.878       1.0000          .0000       .10000E+07
    11 'norm      '    .11972E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    15.766       1.0000          .0000       .10000E+07
    13 'Prefactor '    13.826       1.0000          .0000       .10000E+07
    14 'Prefactor '    .68959E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12207E-02   1.0000          .0000       .10000E+07
    16 'norm      '    17.013       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20438E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .49322E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4223       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91062       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=   7059.966     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1607 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.767        1.3810       -.87791E-08   -.15342E-01
   2  norm          16.119        2.4698        .65336E-08   -.19757E-03
   3  norm           .0000        2.9245        .19596E-07** at limit **
   4  norm           .0000        7.2197        .20883E-06** at limit **
   5  norm          4.1107        2.1631        .29807E-08   -.58679E-04
   6  norm           .0000        1.8636       -.32674E-08** at limit **
   7  norm          18.222        13.178        .14265E-06    .64563E-02
   8  norm           .0000        30.817        .11676E-06** at limit **
   9  Prefactor     87.233        97.053        .82120E-06   -.18274E-02
  10  Prefactor     33.816        29.439        .56138E-08   -.32921E-02
  11  norm           .0000        1.5895       -.23797E-07** at limit **
  12  Prefactor     15.763        3.6839        .38269E-07    .53657E-01
  13  Prefactor     13.823        3.6719        .42008E-07   -.54806E-01
  14  Prefactor     .27200E-08    11.939       -.85684E-07** at limit **
  15  Prefactor      .0000        3.8696       -.17044E-07** at limit **
  16  norm          17.030        6.4342       -.45325E-08    .26080E-02
  17  Prefactor     .48850E-08    12.788       -.18539E-06** at limit **
  18  Prefactor      .0000        3.3284       -.92708E-08** at limit **
  19  Normalizat    1.4224        .30567       -.32459E-06    .10645E-05
  20  Prefactor     .91050        .14264       -.57843E-06    .15828E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.7666
  norm       = 16.1188
  norm       = 0
  norm       = 0
  norm       = 4.11074
  norm       = 0
  norm       = 18.2216
  norm       = 0
  Prefactor  = 87.2333
  Prefactor  = 33.8155
  norm       = 0
  Prefactor  = 15.7629
  Prefactor  = 13.8229
  Prefactor  = 2.72005e-09
  Prefactor  = 0
  norm       = 17.0302
  Prefactor  = 4.88498e-09
  Prefactor  = 0
  Normalizat = 1.42242
  Prefactor  = 0.910503
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.966     FROM HESSE     STATUS=OK           331 CALLS     1938 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.767        24.268        .20965E-03   -1.5613    
   2  norm          16.119        2.4691        .24925E-03   -1.5628    
   3  norm           .0000        2.9241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        7.2158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1107        2.1639        .49698E-03   -1.5667    
   6  norm           .0000        1.8604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.222        13.812        .23436E-03   -1.5623    
   8  norm           .0000        30.285        .13563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.233        97.085        .10740E-03   -1.5521    
  10  Prefactor     33.816        29.263        .17183E-03   -1.5592    
  11  norm           .0000        1.5776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.763        17.866        .25197E-03   -1.5629    
  13  Prefactor     13.823        11.594        .26911E-03   -1.5634    
  14  Prefactor     .27200E-08    12.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.8377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.030        6.4460        .24255E-03   -1.5625    
  17  Prefactor     .48850E-08    12.870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.3281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4224        .26615        .80850E-01   -.79982    
  20  Prefactor     .91050        .12248        .45140E-01   -.95775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35262e-08
Minuit parameter uncertainties:
  1  24.2683
  2  2.46911
  3  2.67122e-06
  4  4.68699e-06
  5  2.1639
  6  1.04922e-06
  7  13.812
  8  3.24105e-05
  9  97.0865
  10  29.2633
  11  3.42899e-07
  12  17.8664
  13  11.5944
  14  0.000362455
  15  4.24931e-06
  16  6.44602
  17  0.000501744
  18  3.67497e-06
  19  0.266406
  20  0.122514
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  8.723e+01  9.709e+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.105e-01  1.225e-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.422e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 311.720 -42.969
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 2.40e-05

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

Saving results to:
/scratch/kocevski/895504/likelihoodResults_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.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) = 7059.94749088
delta logL = 0.0185597231848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7059.93652252
delta logL = 0.0295280893642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.965       1.0000          .0000       .10000E+07
     2 'Index     '    2.3506       1.0000          .0000       10.000    
     3 'Normalizat'    1.4069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91456       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=   7059.937     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.965        2299.8        .11871E-03    .17138E-02
   2  Index         2.3511        6.1621        .13047        .13996E-03
   3  Normalizat    1.4068        .12774        .81222E-01    .11565E-04
   4  Prefactor     .91456        .45587E-01    .45190E-01    .91209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.9652
  Index      = 2.35106
  Normalizat = 1.40683
  Prefactor  = 0.914561
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.937     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.965        130.25        .47486E-05   -1.5539    
   2  Index         2.3511        1.0627        .81594E-02   -.55835    
   3  Normalizat    1.4068        .30435        .35954E-03   -.80431    
   4  Prefactor     .91456        .14244        .20736E-03   -.95634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48528e-08
Minuit parameter uncertainties:
  1  130.25
  2  1.07413
  3  0.304738
  4  0.142499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895504': 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) = 7059.93652227
delta logL = 0.0295283380719

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  7.097e+01  1.303e+02  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.351e+00  1.074e+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:  9.146e-01  1.425e-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.407e+00  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 2.35 +/- 1.07
Photon Flux (Free Index): 5.48e-08 +/- 7.50e-08
Energy Flux (Free Index): 1.92e-05 +/- 2.39e-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/895504/cmap_HighResolution_692409601_692668801_4FGL_J2046.8-4258_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.92e-05', photon_flux_error='4.70e-08', dlogl='2.95e-02', energy_flux='2.16e-05', photon_flux2='5.48e-08', job_status='DONE', time_completed='2022-12-14 01:24:09.567748', photon_index_error2='1.07', photon_index2='2.35', ts='1.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='2.39e-05', EG='1.42', time_epoch_completed='1671009849.57', return_code='0', job_id='895504', GAL2='0.91', EG2='1.41', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='7.50e-08', ts2='1.23', photon_index='2.13' WHERE bin_id='1748' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:24:09 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 895504: <4FGL_J2046.8-4258_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1748> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 14 01:10:26 2022
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:10:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:10:27 2022
Terminated at Wed Dec 14 01:24:10 2022
Results reported at Wed Dec 14 01:24:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1748 311.72 -42.9694 692409601 692668801 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 :                                   577.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

