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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1749
RA = 311.72, Dec = -42.9694
tmin = 692668801, tmax = 692928001
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='961987', job_status='RUN', time_executed='2022-12-17 01:24:07.381331', time_epoch_executed='1671269047.38' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961987

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961987/ft1_4FGL_J2046.8-4258_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961987/ft1_4FGL_J2046.8-4258_daily_bin1749.fits outfile=/scratch/kocevski/961987/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1749.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=692668801.0 tmax=692928001.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.65
user 3.41
sys 0.22

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

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

Number of photons that the gtmktime cut: 704

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961987/ft1_filtered_4FGL_J2046.8-4258_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/961987/ltcube_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.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/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits
.....................!
real 11.86
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961987/ft1_filtered_4FGL_J2046.8-4258_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/961987/ltcube_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.fits outfile=/scratch/kocevski/961987/expmap_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.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/961987/ltcube_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.fits
.....................!
real 190.50
user 184.85
sys 5.34

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/961987/ft1_filtered_4FGL_J2046.8-4258_daily_bin1749.fits scfile=/scratch/kocevski/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits outfile=/scratch/kocevski/961987/cmap_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961987/ft1_filtered_4FGL_J2046.8-4258_daily_bin1749.fits scfile=/scratch/kocevski/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits outfile=/scratch/kocevski/961987/cmap_HighResolution_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961987/ft1_filtered_4FGL_J2046.8-4258_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/961987/ft2_4FGL_J2046.8-4258_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961987/Model_4FGL_J2046.8-4258_daily_bin1749.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/961987/ft1_filtered_4FGL_J2046.8-4258_daily_bin1749.fits.....................!
real 63.49
user 62.18
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.604       1.0000          .0000       .10000E+07
     2 'norm      '    20.548       1.0000          .0000       .10000E+07
     3 'norm      '    .15544E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .96012E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .27756E-06   1.0000          .0000       .10000E+07
     6 'norm      '    6.0760       1.0000          .0000       .10000E+07
     7 'norm      '    .57504       1.0000          .0000       .10000E+07
     8 'norm      '    .13712       1.0000          .0000       .10000E+07
     9 'Prefactor '    84.680       1.0000          .0000       .10000E+07
    10 'Prefactor '    .20410E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .28415       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35149       1.0000          .0000       .10000E+07
    13 'Prefactor '    .61886E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12212E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .71665E-03   1.0000          .0000       .10000E+07
    16 'norm      '    11.742       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22024E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .96344E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4478       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91128       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=   7580.962     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1596 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.409        9.9303        .89799E-07   -.95393E-01
   2  norm          20.544        2.6658        .46026E-07   -.64594E-03
   3  norm           .0000        6.9684        .16052E-06** at limit **
   4  norm          .59897E-07    87.939       -.93810E-06** at limit **
   5  norm           .0000        .44260        .95923E-07** at limit **
   6  norm          6.0581        4.0781       -.31635E-07    .27909E-03
   7  norm          .16728E-05    214.52       -.59451E-06** at limit **
   8  norm          .37026        258.98       -.22471E-05   -.36420E-02
   9  Prefactor     83.263        100.04       -.22438E-07    .28860E-02
  10  Prefactor      .0000        7.8892        .96608E-07** at limit **
  11  norm          .27994        2.7447        .11006E-06    .90328E-04
  12  Prefactor      .0000        52.643       -.61278E-07** at limit **
  13  Prefactor      .0000        4.9065       -.93245E-07** at limit **
  14  Prefactor      .0000        10.898        .95020E-07** at limit **
  15  Prefactor      .0000        2.7804        .92908E-07** at limit **
  16  norm          11.684        5.5655        .88190E-08   -.14570E-03
  17  Prefactor     .16098E-08    39.204       -.28584E-06** at limit **
  18  Prefactor      .0000        2.9838       -.11744E-06** at limit **
  19  Normalizat    1.4489        .28543       -.41212E-05    .88944E-05
  20  Prefactor     .91177        .13837        .48285E-05    .26430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 38.4086
  norm       = 20.5442
  norm       = 0
  norm       = 5.98965e-08
  norm       = 0
  norm       = 6.05806
  norm       = 1.67283e-06
  norm       = 0.370255
  Prefactor  = 83.2631
  Prefactor  = 0
  norm       = 0.279944
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 11.6843
  Prefactor  = 1.60982e-09
  Prefactor  = 0
  Normalizat = 1.44889
  Prefactor  = 0.911772
 **********
 **   18 **HESSE 
 **********

 FCN=   7580.962     FROM HESSE     STATUS=OK           339 CALLS     1935 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.409        31.222        .16096E-03   -1.5584    
   2  norm          20.544        2.6717        .22067E-03   -1.5617    
   3  norm           .0000        6.9808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .59897E-07    87.596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .44277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0581        4.0793        .40708E-03   -1.5659    
   7  norm          .16728E-05    13.436        .95068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .37026        17.219        .13023E-01   -1.5696    
   9  Prefactor     83.263        100.48        .10868E-03   -1.5525    
  10  Prefactor      .0000        7.9152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27994        1.3787        .32249E-02   -1.5697    
  12  Prefactor      .0000        51.949        .95337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.9152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        10.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.7828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.684        5.5683        .29210E-03   -1.5640    
  17  Prefactor     .16098E-08    38.643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.9943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4489        .24364        .78040E-01   -.79225    
  20  Prefactor     .91177        .11743        .45149E-01   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34806e-07
Minuit parameter uncertainties:
  1  31.2223
  2  2.67171
  3  3.65708e-07
  4  0.00458146
  5  3.2085e-07
  6  4.0793
  7  0.00948184
  8  5.04987
  9  100.48
  10  9.08377e-06
  11  1.24252
  12  2.82901e-05
  13  5.35851e-06
  14  5.09381e-06
  15  2.31793e-06
  16  5.56833
  17  0.000498827
  18  2.89528e-07
  19  0.243835
  20  0.117459
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  8.326e+01  1.005e+02  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.118e-01  1.175e-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.449e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/961987/likelihoodResults_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.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) = 7580.83550282
delta logL = 0.126596012514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7580.82449058
delta logL = 0.137608255256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.632       1.0000          .0000       .10000E+07
     2 'Index     '    2.5601       1.0000          .0000       10.000    
     3 'Normalizat'    1.4208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7580.824     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      316 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.597        118.47        .55672E-05    .59221E-04
   2  Index         2.5606        1.0812        .55969E-02    .25019E-04
   3  Normalizat    1.4202        .28888        .34820E-03    .96643E-04
   4  Prefactor     .91954        .13831        .20471E-03   -.18860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.5967
  Index      = 2.56061
  Normalizat = 1.42015
  Prefactor  = 0.919535
 **********
 **   18 **HESSE 
 **********

 FCN=   7580.824     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.597        94.295        .22269E-06   -1.5564    
   2  Index         2.5606        .86215        .22388E-03   -.50966    
   3  Normalizat    1.4202        .28736        .13928E-04   -.80047    
   4  Prefactor     .91954        .13771        .40942E-04   -.95462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64268e-10
Minuit parameter uncertainties:
  1  94.2979
  2  0.86786
  3  0.287687
  4  0.137765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961987': 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) = 7580.82448765
delta logL = 0.137611185451

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  5.160e+01  9.430e+01  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  2.561e+00  8.679e-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.195e-01  1.378e-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.420e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 311.720 -42.969
Photon Index (Free Index): 2.56 +/- 0.87
Photon Flux (Free Index): 6.41e-08 +/- 7.31e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.90e-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/961987/cmap_HighResolution_692668801_692928001_4FGL_J2046.8-4258_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='1.38e-01', photon_flux2='6.41e-08', job_status='DONE', time_completed='2022-12-17 01:33:53.875381', photon_index_error2='0.87', photon_index2='2.56', ts='0.92', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.90e-05', EG='1.45', time_epoch_completed='1671269633.88', return_code='0', job_id='961987', GAL2='0.92', EG2='1.42', return_code2='0', photon_flux_error2='7.31e-08', ts2='1.20', photon_index='2.13' WHERE bin_id='1749' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:33:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 961987: <4FGL_J2046.8-4258_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 01:20:15 2022
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:20:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:20:17 2022
Terminated at Sat Dec 17 01:33:54 2022
Results reported at Sat Dec 17 01:33:54 2022

Your job looked like:

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

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

