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


Performing analysis on: 4FGL_J2046.8-4258_daily_bin1758
RA = 311.72, Dec = -42.9694
tmin = 695001601, tmax = 695260801
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='379747', job_status='RUN', time_executed='2023-01-13 01:31:34.901280', time_epoch_executed='1673602294.9' WHERE source_name='4FGL J2046.8-4258' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379747/ft1_4FGL_J2046.8-4258_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379747/ft1_4FGL_J2046.8-4258_daily_bin1758.fits outfile=/scratch/kocevski/379747/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1758.fits ra=311.72 dec=-42.9694 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.81
user 2.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.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/379747/ft1_filteredMKT_4FGL_J2046.8-4258_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 306

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/379747/ltcube_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.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/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits
.....................!
real 15.59
user 15.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/379747/ltcube_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.fits outfile=/scratch/kocevski/379747/expmap_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.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/379747/ltcube_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.fits
.....................!
real 193.02
user 186.60
sys 5.70

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/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.fits scfile=/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits outfile=/scratch/kocevski/379747/cmap_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.fits scfile=/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits outfile=/scratch/kocevski/379747/cmap_HighResolution_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/379747/ft2_4FGL_J2046.8-4258_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/379747/Model_4FGL_J2046.8-4258_daily_bin1758.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/379747/ft1_filtered_4FGL_J2046.8-4258_daily_bin1758.fits.....................!
real 34.61
user 33.23
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28267E-02   1.0000          .0000       .10000E+07
     2 'norm      '    12.322       1.0000          .0000       .10000E+07
     3 'norm      '    .53198E-03   1.0000          .0000       .10000E+07
     4 'norm      '    110.33       1.0000          .0000       .10000E+07
     5 'norm      '    2.8385       1.0000          .0000       .10000E+07
     6 'norm      '    .48141E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .89503E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .13025E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .60067       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19929E-06   1.0000          .0000       .10000E+07
    11 'norm      '    3.4328       1.0000          .0000       .10000E+07
    12 'Prefactor '    73.891       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.288       1.0000          .0000       .10000E+07
    14 'Prefactor '    .33861E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .24320E-02   1.0000          .0000       .10000E+07
    16 'norm      '    14.109       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.6508       1.0000          .0000       .10000E+07
    18 'Prefactor '    .94615E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .59844       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4653       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=   3302.567     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1551 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10521E-02    157.05       -.65300E-04** at limit **
   2  norm          12.301        7.4946       -.58915E-06   -.12989E-03
   3  norm          .21372E-07    16.780       -.89612E-05** at limit **
   4  norm          116.59        62.035        .89426E-05    .20048    
   5  norm          2.8301        2.7604        .23787E-06    .19043E-03
   6  norm           .0000        4.0074       -.11008E-06** at limit **
   7  norm          .22649E-07    16.136        .10423E-04** at limit **
   8  norm          .11102E-09    28.814        .38537E-06** at limit **
   9  Prefactor     .30492E-06    191.87       -.66190E-06** at limit **
  10  Prefactor      .0000        8.3638        .10478E-05** at limit **
  11  norm          3.4537        3.2870       -.52887E-06    .17377E-03
  12  Prefactor     79.107        66.440       -.19010E-04   -.57052E-01
  13  Prefactor     19.036        16.357       -.88508E-06    .28404E-02
  14  Prefactor      .0000        19.219        .41934E-05** at limit **
  15  Prefactor     .50515E-08    16.528       -.33975E-05** at limit **
  16  norm          14.157        7.7454        .31104E-07    .26011E-03
  17  Prefactor     7.6408        10.238        .79433E-06    .20445E-03
  18  Prefactor     .55511E-10    10.177        .16558E-05** at limit **
  19  Normalizat    .59608        .46858        .84761E-04    .27307E-04
  20  Prefactor     1.4625        .24323        .22840E-05    .71580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00105209
  norm       = 12.3012
  norm       = 2.13718e-08
  norm       = 116.586
  norm       = 2.83011
  norm       = 0
  norm       = 2.26485e-08
  norm       = 1.11022e-10
  Prefactor  = 3.04923e-07
  Prefactor  = 0
  norm       = 3.45371
  Prefactor  = 79.1075
  Prefactor  = 19.0363
  Prefactor  = 0
  Prefactor  = 5.05151e-09
  norm       = 14.1571
  Prefactor  = 7.64084
  Prefactor  = 5.55112e-11
  Normalizat = 0.596079
  Prefactor  = 1.46249
 **********
 **   18 **HESSE 
 **********

 FCN=   3302.567     FROM HESSE     STATUS=OK           329 CALLS     1880 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10521E-02    355.65        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.301        7.5011        .28511E-03   -1.5638    
   3  norm          .21372E-07    16.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          116.59        80.555        .95208E-04   -1.5492    
   5  norm          2.8301        2.7549        .60330E-03   -1.5674    
   6  norm           .0000        3.9823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .22649E-07    16.111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11102E-09    28.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30492E-06    192.24        .69168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        8.3862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4537        3.3080        .54568E-03   -1.5671    
  12  Prefactor     79.107        67.420        .11634E-03   -1.5530    
  13  Prefactor     19.036        16.440        .22778E-03   -1.5621    
  14  Prefactor      .0000        19.195        .16253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50515E-08    16.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.157        7.7599        .26640E-03   -1.5633    
  17  Prefactor     7.6408        10.254        .36231E-03   -1.5653    
  18  Prefactor     .55511E-10    10.164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .59608        .46686        .11509       -1.0815    
  20  Prefactor     1.4625        .23691        .30217E-01   -.78596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30585e-06
Minuit parameter uncertainties:
  1  1.22347
  2  7.50111
  3  0.00119604
  4  80.5554
  5  2.75485
  6  5.38688e-06
  7  0.00120825
  8  0.000112032
  9  0.0153129
  10  2.13639e-05
  11  3.30801
  12  67.4204
  13  16.4401
  14  2.46867e-05
  15  0.00056802
  16  7.7599
  17  10.2536
  18  4.06801e-05
  19  0.469996
  20  0.237084
Done.

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

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  3.049e-07  1.531e-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:  1.462e+00  2.371e-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:  5.961e-01  4.700e-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: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379747/likelihoodResults_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.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) = 3302.56989622
delta logL = -0.00249308964294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3302.56640022
delta logL = 0.00100290854289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79760       1.0000          .0000       .10000E+07
     2 'Index     '    3.2150       1.0000          .0000       10.000    
     3 'Normalizat'    .59201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4630       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=   3302.566     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      236 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59010        128.11        .53114E-03    .54738E-03
   2  Index         3.2850        .44367        .50000        .76218E-07
   3  Normalizat    .59233        .13503E-01    .11544        .19321E-04
   4  Prefactor     1.4631        .75954E-02    .30244E-01   -.21430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.590095
  Index      = 3.28504
  Normalizat = 0.592326
  Prefactor  = 1.46313
 **********
 **   18 **HESSE 
 **********

 FCN=   3302.566     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59010        201.77        .21245E-04   -1.5693    
   2  Index         3.2850        5.3856        .37588E-02   -.35010    
   3  Normalizat    .59233        .42154        .51189E-03   -1.0831    
   4  Prefactor     1.4631        .23511        .19069E-03   -.78577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70481e-12
Minuit parameter uncertainties:
  1  21.824
  2  10.6665
  3  0.423854
  4  0.235288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379747': 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) = 3302.5663437
delta logL = 0.00105942906794

Extracting fit parameters...

4FGL J2046.8-4258
   Spectrum: PowerLaw
282    Prefactor:  5.901e-01  2.182e+01  0.000e+00  1.000e+06 ( 1.000e-14)
283        Index:  3.285e+00  1.067e+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.463e+00  2.353e-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:  5.923e-01  4.239e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/379747/cmap_HighResolution_695001601_695260801_4FGL_J2046.8-4258_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2023-01-13 01:38:58.372539', job_id='379747', GAL2='1.46', fit_tolerance='1e-08', EG2='0.59', EG='0.60', time_epoch_completed='1673602738.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='1.06e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1758' AND source_name='4FGL J2046.8-4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:38:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 379747: <4FGL_J2046.8-4258_daily_bin1758> in cluster <slac> Done

Job <4FGL_J2046.8-4258_daily_bin1758> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Jan 13 01:30:25 2023
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 01:31:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 01:31:19 2023
Terminated at Fri Jan 13 01:38:59 2023
Results reported at Fri Jan 13 01:38:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2046.8-4258_daily_bin1758 311.72 -42.9694 695001601 695260801 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 :                                   445.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   459 sec.
    Turnaround time :                            514 sec.

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

