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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1726
RA = 311.72, Dec = -42.9694
tmin = 686707201, tmax = 686966401
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='88168', job_status='RUN', time_executed='2022-10-09 00:38:58.032483', time_epoch_executed='1665301138.03' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88168/ft1_4FGL_J2046.8-4258_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88168/ft1_4FGL_J2046.8-4258_daily_bin1726.fits outfile=/scratch/kocevski/88168/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1726.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=686707201.0 tmax=686966401.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.06
user 2.83
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.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/88168/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1364

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/88168/ltcube_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.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/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits
.....................!
real 13.44
user 12.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/88168/ltcube_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.fits outfile=/scratch/kocevski/88168/expmap_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.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/88168/ltcube_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.fits
.....................!
real 191.35
user 185.34
sys 5.38

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/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits scfile=/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits outfile=/scratch/kocevski/88168/cmap_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=311.72 yref=-42.9694 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits scfile=/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits outfile=/scratch/kocevski/88168/cmap_HighResolution_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/88168/ft2_4FGL_J2046.8-4258_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88168/Model_4FGL_J2046.8-4258_daily_bin1726.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/88168/ft1_filtered_4FGL_J2046.8-4258_daily_bin1726.fits.....................!
real 105.28
user 103.80
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1717       1.0000          .0000       .10000E+07
     2 'norm      '    4.8635       1.0000          .0000       .10000E+07
     3 'norm      '    1.6421       1.0000          .0000       .10000E+07
     4 'norm      '    1.2807       1.0000          .0000       .10000E+07
     5 'norm      '    1.0107       1.0000          .0000       .10000E+07
     6 'norm      '    .87153E-08   1.0000          .0000       .10000E+07
     7 'norm      '    .13635E-03   1.0000          .0000       .10000E+07
     8 'norm      '    8.0708       1.0000          .0000       .10000E+07
     9 'Prefactor '    .90797E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    19.807       1.0000          .0000       .10000E+07
    11 'norm      '    1.1849       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.1453       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.178       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.745       1.0000          .0000       .10000E+07
    15 'Prefactor '    .66133E-03   1.0000          .0000       .10000E+07
    16 'norm      '    11.251       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12666E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.7724       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0031       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=   14376.00     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1177 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1599        4.0257       -.17100E-05    .21936E-01
   2  norm          4.8655        .99557        .40228E-07    .18428E-01
   3  norm          1.6317        4.6823        .53778E-07   -.10182E-01
   4  norm          1.4645        15.473        .30735E-05    .31032E-01
   5  norm          1.0108        .74035       -.32916E-07    .55231E-02
   6  norm          .27756E-09    1.8905       -.37242E-07** at limit **
   7  norm          .27200E-08    2.5188       -.11912E-06** at limit **
   8  norm          8.0821        1.0739        .96178E-07    .31646E-02
   9  Prefactor     .17208E-08    20.483       -.17233E-06** at limit **
  10  Prefactor     19.897        8.7542        .15962E-05   -.11737    
  11  norm          1.1858        .97080        .10804E-07   -.52446E-02
  12  Prefactor     3.9341        2.6333        .19835E-06   -.35213E-02
  13  Prefactor     14.122        6.8267       -.11667E-05   -.10536    
  14  Prefactor     18.294        26.566        .12360E-05   -.66325E-02
  15  Prefactor     .32752E-07    3.6782        .37675E-06** at limit **
  16  norm          11.198        4.6392       -.54454E-08    .40987E-02
  17  Prefactor     .77716E-09    1.9657       -.17154E-06** at limit **
  18  Prefactor     4.7905        1.4308       -.23837E-06   -.12047E-01
  19  Normalizat    1.1904        .19925       -.35358E-05   -.20583E-03
  20  Prefactor     1.0036        .96301E-01    .21446E-06   -.26370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15986
  norm       = 4.86545
  norm       = 1.63168
  norm       = 1.46445
  norm       = 1.01078
  norm       = 2.77556e-10
  norm       = 2.72005e-09
  norm       = 8.08205
  Prefactor  = 1.72085e-09
  Prefactor  = 19.8974
  norm       = 1.18583
  Prefactor  = 3.93412
  Prefactor  = 14.1221
  Prefactor  = 18.2939
  Prefactor  = 3.27516e-08
  norm       = 11.198
  Prefactor  = 7.77156e-10
  Prefactor  = 4.79046
  Normalizat = 1.19044
  Prefactor  = 1.00356
 **********
 **   18 **HESSE 
 **********

 FCN=   14376.00     FROM HESSE     STATUS=OK           337 CALLS     1514 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1599        18.837        .56881E-03   -1.5672    
   2  norm          4.8655        .99689        .45589E-04   -1.5664    
   3  norm          1.6317        4.7802        .82413E-03   -1.5682    
   4  norm          1.4645        19.772        .98036E-03   -1.5684    
   5  norm          1.0108        .73965        .44142E-03   -1.5688    
   6  norm          .27756E-09    1.8654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27200E-08    2.5301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0821        9.3124        .35268E-03   -1.5651    
   9  Prefactor     .17208E-08    20.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.897        14.621        .22477E-03   -1.5619    
  11  norm          1.1858        .98028        .10482E-02   -1.5686    
  12  Prefactor     3.9341        28.487        .49483E-03   -1.5668    
  13  Prefactor     14.122        7.3949        .26575E-03   -1.5633    
  14  Prefactor     18.294        26.608        .24449E-03   -1.5622    
  15  Prefactor     .32752E-07    3.6846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.198        4.7020        .29843E-03   -1.5641    
  17  Prefactor     .77716E-09    1.9690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7905        6.5806        .46031E-03   -1.5664    
  19  Normalizat    1.1904        .17215        .77805E-01   -.86899    
  20  Prefactor     1.0036        .81826E-01    .44654E-01   -.92611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3186e-06
Minuit parameter uncertainties:
  1  15.4303
  2  0.996889
  3  4.78019
  4  10.7622
  5  0.739654
  6  4.62153e-05
  7  0.000166139
  8  9.31238
  9  0.000375027
  10  14.6206
  11  0.98028
  12  21.173
  13  7.39487
  14  26.6083
  15  0.000694902
  16  4.70204
  17  7.71749e-05
  18  6.58057
  19  0.172229
  20  0.0818362
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.721e-09  3.750e-04  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:  1.004e+00  8.184e-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.190e+00  1.722e-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: 3.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88168/likelihoodResults_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.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) = 14376.0192742
delta logL = -0.0232745608773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14375.9960002
delta logL = -5.21078618476e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30210E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .42307       1.0000          .0000       10.000    
     3 'Normalizat'    1.1904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0036       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=   14376.00     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      208 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    24.077        .32388E-05** at limit **
   2  Index         1.8710        5.7780       -.51664E-04    .18939E-10
   3  Normalizat    1.1904        .18906        .17678E-04    .71429E-04
   4  Prefactor     1.0036        .94591E-01   -.13483E-04    .11095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Index      = 1.87102
  Normalizat = 1.19045
  Prefactor  = 1.00356
 **********
 **   18 **HESSE 
 **********

 FCN=   14376.00     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    .63041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8710        8.1031        .38583       -.67615    
   3  Normalizat    1.1904        .68623E-03    .77805E-01   -.86899    
   4  Prefactor     1.0036        .34298E-03    .44515E-01   -.92611    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79058e-13
Minuit parameter uncertainties:
  1  4.62934e-05
  2  13244.4
  3  0.000686228
  4  0.000342978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88168': 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) = 14375.9959996
delta logL = 4.18367562816e-11

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  8.327e-10  4.629e-05  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  1.871e+00  1.324e+04  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.004e+00  3.430e-04  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.190e+00  6.862e-04  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/88168/cmap_HighResolution_686707201_686966401_4FGL_J2046.8-4258_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2022-10-09 00:51:47.323159', job_id='88168', GAL2='1.00', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1665301907.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.18e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1726' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:51:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 88168: <4FGL_J2046.8-4258_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1726> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Oct  9 00:35:36 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:35:38 2022
Terminated at Sun Oct  9 00:51:48 2022
Results reported at Sun Oct  9 00:51:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1726 311.72 -42.9694 686707201 686966401 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

