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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1720
RA = 311.72, Dec = -42.9694
tmin = 685152001, tmax = 685411201
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='848611', job_status='RUN', time_executed='2022-09-21 00:56:13.180950', time_epoch_executed='1663746973.18' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848611

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848611/ft1_4FGL_J2046.8-4258_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848611/ft1_4FGL_J2046.8-4258_daily_bin1720.fits outfile=/scratch/kocevski/848611/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1720.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=685152001.0 tmax=685411201.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.79
user 3.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.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/848611/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1720.fits evtable="EVENTS" outfile="/scratch/kocevski/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.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.50
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 715

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.fits" evtable="EVENTS" scfile=/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits sctable="SC_DATA" outfile=/scratch/kocevski/848611/ltcube_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.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/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits
.....................!
real 13.66
user 13.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/848611/ltcube_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.fits outfile=/scratch/kocevski/848611/expmap_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.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/848611/ltcube_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.fits
.....................!
real 192.00
user 185.94
sys 5.56

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/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.fits scfile=/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits outfile=/scratch/kocevski/848611/cmap_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.fits scfile=/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits outfile=/scratch/kocevski/848611/cmap_HighResolution_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.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.66
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/848611/ft2_4FGL_J2046.8-4258_daily_bin1720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/848611/Model_4FGL_J2046.8-4258_daily_bin1720.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/848611/ft1_filtered_4FGL_J2046.8-4258_daily_bin1720.fits.....................!
real 62.19
user 60.79
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11405E-03   1.0000          .0000       .10000E+07
     2 'norm      '    5.6715       1.0000          .0000       .10000E+07
     3 'norm      '    .20236E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .27342       1.0000          .0000       .10000E+07
     5 'norm      '    .42022E-07   1.0000          .0000       .10000E+07
     6 'norm      '    6.0654       1.0000          .0000       .10000E+07
     7 'norm      '    10.048       1.0000          .0000       .10000E+07
     8 'norm      '    .73124E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .54072E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .66008E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.9178       1.0000          .0000       .10000E+07
    12 'Prefactor '    .95897E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .96834E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .61499E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.0117       1.0000          .0000       .10000E+07
    16 'norm      '    11.925       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18554E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .43112E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97223       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=   7628.319     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1203 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53291E-08    7.2006        .18159E-06** at limit **
   2  norm          5.6724        1.2778       -.12087E-07   -.18807E-02
   3  norm          .55511E-09    51.077        .82975E-06** at limit **
   4  norm          .72043E-04    22.119       -.32305E-06** at limit **
   5  norm           .0000        .48318       -.76037E-07** at limit **
   6  norm          6.0746        3.3954       -.22562E-07   -.54698E-03
   7  norm          9.9749        9.6940        .32472E-06    .64286E-01
   8  norm          .19195E-05    10.364       -.11857E-06** at limit **
   9  Prefactor     .11339E-05    14.234        .48817E-06** at limit **
  10  Prefactor     .32363E-07    4.0271        .13036E-07** at limit **
  11  norm          1.9168        1.5581       -.32063E-07   -.49655E-03
  12  Prefactor     .19490E-06    9.0510       -.20119E-06** at limit **
  13  Prefactor      .0000        3.5806       -.20463E-06** at limit **
  14  Prefactor     .16886E-06    32.061        .49379E-06** at limit **
  15  Prefactor     6.0438        6.5488       -.63786E-07    .11151E-02
  16  norm          12.078        7.2337        .12828E-06    .26802E-02
  17  Prefactor      .0000        4.2769        .11821E-06** at limit **
  18  Prefactor     .15743E-06    7.6966        .59965E-08** at limit **
  19  Normalizat    1.1587        .26647        .63359E-05   -.25488E-04
  20  Prefactor     .97251        .12696       -.55988E-05   -.90187E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32907e-09
  norm       = 5.67236
  norm       = 5.55112e-10
  norm       = 7.20429e-05
  norm       = 0
  norm       = 6.07463
  norm       = 9.97493
  norm       = 1.91946e-06
  Prefactor  = 1.13393e-06
  Prefactor  = 3.2363e-08
  norm       = 1.91679
  Prefactor  = 1.949e-07
  Prefactor  = 0
  Prefactor  = 1.68865e-07
  Prefactor  = 6.0438
  norm       = 12.0778
  Prefactor  = 0
  Prefactor  = 1.5743e-07
  Normalizat = 1.1587
  Prefactor  = 0.972512
 **********
 **   18 **HESSE 
 **********

 FCN=   7628.319     FROM HESSE     STATUS=OK           337 CALLS     1540 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53291E-08    7.2161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6724        1.2764        .42156E-03   -1.5660    
   3  norm          .55511E-09    3.3774        .10548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .72043E-04    13.107        .10592E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .48139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0746        3.4276        .40744E-03   -1.5659    
   7  norm          9.9749        10.310        .31586E-03   -1.5645    
   8  norm          .19195E-05    19.729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11339E-05    21.697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32363E-07    10.605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9168        1.5676        .75013E-03   -1.5680    
  12  Prefactor     .19490E-06    11.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.5843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16886E-06    34.158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0438        6.5297        .40928E-03   -1.5659    
  16  norm          12.078        7.2245        .28983E-03   -1.5638    
  17  Prefactor      .0000        4.2758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15743E-06    9.9918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1587        .22551        .78280E-01   -.87889    
  20  Prefactor     .97251        .10674        .45919E-01   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48955e-07
Minuit parameter uncertainties:
  1  0.000393202
  2  1.27641
  3  8.63556e-05
  4  0.0614581
  5  4.15341e-07
  6  3.42761
  7  10.3096
  8  0.0123077
  9  0.00992018
  10  0.00117125
  11  1.56764
  12  0.00300615
  13  3.30857e-06
  14  0.00480365
  15  6.52971
  16  7.22453
  17  1.94795e-05
  18  0.00250824
  19  0.225701
  20  0.106759
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.134e-06  9.920e-03  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.725e-01  1.068e-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.159e+00  2.257e-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: 5.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/848611/likelihoodResults_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.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) = 7628.3407511
delta logL = -0.0219992167868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7628.31875245
delta logL = -5.64071342524e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11002E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .65300       1.0000          .0000       10.000    
     3 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97248       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=   7628.319     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      240 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    2174.9        .42118E-03** at limit **
   2  Index         2.7538        6.3444        .41772        .81648E-10
   3  Normalizat    1.1587        .11740        .78281E-01    .19216E-03
   4  Prefactor     .97251        .56702E-01    .45922E-01    .37199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.75381
  Normalizat = 1.1587
  Prefactor  = 0.972512
 **********
 **   18 **HESSE 
 **********

 FCN=   7628.319     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    1794.8        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7538        5.0088        .50000       -.46591    
   3  Normalizat    1.1587        .95437E-01    .34650E-03   -.87889    
   4  Prefactor     .97251        .46226E-01    .18013E-03   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.58072e-09
Minuit parameter uncertainties:
  1  0.00153281
  2  56.1172
  3  0.0954516
  4  0.046228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848611': 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) = 7628.31875186
delta logL = 2.6087036531e-08

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  3.331e-10  1.533e-03  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.754e+00  5.612e+01  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.725e-01  4.623e-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.159e+00  9.545e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/848611/cmap_HighResolution_685152001_685411201_4FGL_J2046.8-4258_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2022-09-21 01:05:57.404100', job_id='848611', GAL2='0.97', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1663747557.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1720' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:05:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 848611: <4FGL_J2046.8-4258_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1720> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep 21 00:50:45 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:53:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:53:30 2022
Terminated at Wed Sep 21 01:05:58 2022
Results reported at Wed Sep 21 01:05:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1720 311.72 -42.9694 685152001 685411201 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 :                                   586.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             283.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            913 sec.

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

