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 189 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1692
RA = 311.72, Dec = -42.9694
tmin = 677894401, tmax = 678153601
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='484100', job_status='RUN', time_executed='2022-06-29 04:57:02.305259', time_epoch_executed='1656503822.31' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484100

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484100/ft1_4FGL_J2046.8-4258_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484100/ft1_4FGL_J2046.8-4258_daily_bin1692.fits outfile=/scratch/kocevski/484100/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1692.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=677894401.0 tmax=678153601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.44
user 4.18
sys 0.23

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

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

Number of photons that the gtmktime cut: 523

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/484100/ltcube_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.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/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits
.....................!
real 12.58
user 12.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/484100/ltcube_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.fits outfile=/scratch/kocevski/484100/expmap_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.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/484100/ltcube_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.fits
.....................!
real 192.39
user 186.20
sys 5.58

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/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits scfile=/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits outfile=/scratch/kocevski/484100/cmap_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits scfile=/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits outfile=/scratch/kocevski/484100/cmap_HighResolution_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484100/Model_4FGL_J2046.8-4258_daily_bin1692.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/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits.....................!
real 50.43
user 49.12
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits', '/scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits', expMap='/scratch/kocevski/484100/expmap_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.fits', expCube='/scratch/kocevski/484100/ltcube_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484100/Model_4FGL_J2046.8-4258_daily_bin1692.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  1.000e-04  1.000e+04 ( 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/484100/ft1_filtered_4FGL_J2046.8-4258_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/484100/ft2_4FGL_J2046.8-4258_daily_bin1692.fits
Exposure map: /scratch/kocevski/484100/expmap_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.fits
Exposure cube: /scratch/kocevski/484100/ltcube_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484100/Model_4FGL_J2046.8-4258_daily_bin1692.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) = 5630.66748644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.108       1.0000         .10000E-03   10000.    
     2 'norm      '    20.581       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8264       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5059       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    147.50       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1003       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .44389       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1452       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.

 FCN=   5630.657     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2501 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.107        30.291        .83289E-06    .51091E-06
   2  norm          20.581        2.8733       -.54765E-07    .80728E-04
   3  norm          .10000E-03    7.4959       -.34094E-05** at limit **
   4  norm          5.8256        18.717        .75044E-06   -.17034E-04
   5  norm          .10000E-03    .74598       -.97861E-07** at limit **
   6  Prefactor     .10000E-03    338.56       -.58482E-05** at limit **
   7  norm          7.5061        4.5489       -.43364E-06    .20250E-04
   8  norm          .10000E-03    8.5325        .17861E-05** at limit **
   9  norm          .10000E-03    22.827       -.87448E-05** at limit **
  10  Prefactor     .10000E-03    10.715       -.22090E-05** at limit **
  11  Prefactor     147.46        90.828       -.24200E-04    .40241E-06
  12  Prefactor     .10000E-03    10.349        .14396E-05** at limit **
  13  norm          4.9175        2.9285        .90988E-07   -.23967E-03
  14  Prefactor     .10000E-03    19.447        .50307E-05** at limit **
  15  Prefactor     .10000E-03    26.460        .48724E-05** at limit **
  16  Prefactor     .10000E-03    6.0361       -.17230E-06** at limit **
  17  Prefactor     .10000E-03    15.156       -.55019E-06** at limit **
  18  Prefactor     .10000E-03    2.9036       -.15512E-06** at limit **
  19  norm          5.1004        4.5043       -.16424E-05   -.67167E-05
  20  Prefactor     10.292        13.940       -.11165E-05   -.73270E-04
  21  Prefactor     .10000E-03    7.1031        .20197E-05** at limit **
  22  Normalizat    .44392        .29106        .46003E-05   -.20244E-05
  23  Prefactor     1.1452        .14401       -.63513E-07    .11074E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.1065
  norm       = 20.5811
  norm       = 0.0001
  norm       = 5.82563
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.50608
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 147.462
  Prefactor  = 0.0001
  norm       = 4.91746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.10036
  Prefactor  = 10.2917
  Prefactor  = 0.0001
  Normalizat = 0.443917
  Prefactor  = 1.14516
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.657     FROM HESSE     STATUS=OK           364 CALLS     2865 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.107        30.298        .78401E-04   -1.4686    
   2  norm          20.581        2.8751        .45555E-04   -1.4800    
   3  norm          .10000E-03    7.5566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8256        18.648        .16638E-03   -1.5225    
   5  norm          .10000E-03    .75294        .63278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    343.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5061        4.5431        .11987E-03   -1.5160    
   8  norm          .10000E-03    8.5614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     147.46        90.753        .16591E-03   -1.3273    
  12  Prefactor     .10000E-03    10.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9175        2.9064        .91405E-04   -1.5264    
  14  Prefactor     .10000E-03    19.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1014        .17992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9320        .12478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1004        4.5022        .14489E-03   -1.5256    
  20  Prefactor     10.292        13.902        .12490E-03   -1.5066    
  21  Prefactor     .10000E-03    7.1455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .44392        .29372        .51252E-03   -1.1509    
  23  Prefactor     1.1452        .14846        .17024E-03   -.88036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39784e-11
Minuit parameter uncertainties:
  1  30.3155
  2  2.87515
  3  6.25028e-06
  4  18.6668
  5  1.53678e-06
  6  0.000254271
  7  4.54327
  8  1.16911e-05
  9  7.39888e-05
  10  2.47621e-05
  11  90.8393
  12  1.43408e-05
  13  2.90646
  14  2.3143e-05
  15  1.7786e-05
  16  9.31547e-06
  17  1.79704e-05
  18  9.68402e-06
  19  4.50248
  20  13.906
  21  1.11839e-05
  22  0.294744
  23  0.14851
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.475e+02  9.084e+01  1.000e-04  1.000e+04 ( 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.145e+00  1.485e-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:  4.439e-01  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 311.720 -42.969
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 7.14e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 3.64e-05 +/- 2.25e-05

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) = 5630.65316151
delta logL = 0.00369441327803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5630.65019735
delta logL = 0.00665857387685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    156.44       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0790       1.0000          .0000       10.000    
     3 'Normalizat'    .44757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1443       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=   5630.650     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      221 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     156.44        2028.1        .80585E-03    .17075E-03
   2  Index         2.0790        3.1363        .15013        .86424E-04
   3  Normalizat    .44770        .15783        .11512        .43134E-04
   4  Prefactor     1.1443        .55862E-01    .36103E-01   -.43576E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 156.439
  Index      = 2.07902
  Normalizat = 0.447698
  Prefactor  = 1.14427
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.650     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     156.44        127.07        .16117E-03   -1.3200    
   2  Index         2.0790        .49457        .52292E-02   -.62389    
   3  Normalizat    .44770        .28294        .51048E-03   -1.1490    
   4  Prefactor     1.1443        .14666        .17031E-03   -.88064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1478e-09
Minuit parameter uncertainties:
  1  127.297
  2  0.495803
  3  0.283854
  4  0.146716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484100': 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) = 5630.65019725
delta logL = 0.00665868131637

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  1.564e+02  1.273e+02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.079e+00  4.958e-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:  1.144e+00  1.467e-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:  4.477e-01  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.96
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 2.08 +/- 0.50
Photon Flux (Free Index): 6.76e-08 +/- 5.31e-08
Energy Flux (Free Index): 3.88e-05 +/- 3.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/484100/cmap_HighResolution_677894401_678153601_4FGL_J2046.8-4258_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.14e-08', energy_flux2='3.88e-05', photon_flux_error='4.40e-08', dlogl='6.66e-03', energy_flux='3.64e-05', photon_flux2='6.76e-08', job_status='DONE', time_completed='2022-06-29 05:06:21.414202', photon_index_error2='0.50', photon_index2='2.08', ts='7.96', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='3.40e-05', EG='0.44', time_epoch_completed='1656504381.41', return_code='0', job_id='484100', GAL2='1.14', EG2='0.45', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='5.31e-08', ts2='7.96', photon_index='2.13' WHERE bin_id='1692' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:06:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 484100: <4FGL_J2046.8-4258_daily_bin1692> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1692> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jun 29 04:50:12 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:53:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:53:45 2022
Terminated at Wed Jun 29 05:06:22 2022
Results reported at Wed Jun 29 05:06:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1692 311.72 -42.9694 677894401 678153601 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 :                                   561.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            970 sec.

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

