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


Performing analysis on: 4FGL_J2358.3-1021_daily_bin1770
RA = 359.582, Dec = -10.3616
tmin = 698112001, tmax = 698371201
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='505607', job_status='RUN', time_executed='2023-02-18 02:13:10.322233', time_epoch_executed='1676715190.32' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505607/ft1_4FGL_J2358.3-1021_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505607/ft1_4FGL_J2358.3-1021_daily_bin1770.fits outfile=/scratch/kocevski/505607/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1770.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=698112001.0 tmax=698371201.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.36
user 4.11
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.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/505607/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 415

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/505607/ltcube_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.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/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits
.....................!
real 11.76
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/505607/ltcube_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.fits outfile=/scratch/kocevski/505607/expmap_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.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/505607/ltcube_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.fits
.....................!
real 189.53
user 185.20
sys 3.98

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.3-1021 @ 359.582 -10.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits scfile=/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits outfile=/scratch/kocevski/505607/cmap_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.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=359.582 yref=-10.3616 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/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits scfile=/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits outfile=/scratch/kocevski/505607/cmap_HighResolution_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.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=359.582 yref=-10.3616 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505607/Model_4FGL_J2358.3-1021_daily_bin1770.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/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits.....................!
real 43.79
user 42.58
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits', '/scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits', expMap='/scratch/kocevski/505607/expmap_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.fits', expCube='/scratch/kocevski/505607/ltcube_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505607/Model_4FGL_J2358.3-1021_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3-1021'

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  4.076e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505607/ft1_filtered_4FGL_J2358.3-1021_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/505607/ft2_4FGL_J2358.3-1021_daily_bin1770.fits
Exposure map: /scratch/kocevski/505607/expmap_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.fits
Exposure cube: /scratch/kocevski/505607/ltcube_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505607/Model_4FGL_J2358.3-1021_daily_bin1770.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) = 4802.10569858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15418E-04   1.0000          .0000       .10000E+07
     2 'norm      '    19.557       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36052       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4236       1.0000          .0000       .10000E+07
     5 'norm      '    .12990E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18054E-02   1.0000          .0000       .10000E+07
     7 'norm      '    4.7404       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21416E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .52249E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.6351       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.836       1.0000          .0000       .10000E+07
    12 'Prefactor '    .66106E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .38075       1.0000          .0000       .10000E+07
    14 'norm      '    .15109E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7774       1.0000          .0000       .10000E+07
    16 'norm      '    .67771E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .81288E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .12440E-06   1.0000          .0000       .10000E+07
    19 'norm      '    14.662       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.5485       1.0000          .0000       .10000E+07
    21 'Normalizat'    .65539       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4802.036     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1383 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.2219       -.84555E-06** at limit **
   2  norm          20.835        32.204        .87122E-06   -.58186E-02
   3  Prefactor     .38183        1.9568       -.60116E-06    .14897E-01
   4  Prefactor     1.4725        5.7226       -.78033E-06    .25293E-04
   5  norm           .0000        .84248       -.14229E-06** at limit **
   6  Prefactor      .0000        4.8302       -.96393E-06** at limit **
   7  norm          4.7252        3.4464       -.13430E-06    .97728E-03
   8  Prefactor     .71609E-08    3.5352        .30340E-05** at limit **
   9  norm          .40912E-07    17.376       -.16789E-06** at limit **
  10  Prefactor     5.5749        4.0749        .31163E-06   -.11852E-01
  11  Prefactor     11.692        2.9642        .25121E-06   -.79426E-01
  12  Prefactor     .61062E-09    3.3110        .29014E-05** at limit **
  13  norm          .38143        .63696        .47113E-06    .15737E-02
  14  norm           .0000        2.9296        .17550E-06** at limit **
  15  Prefactor     1.7799        1.4431       -.41969E-06   -.16157E-01
  16  norm          .18263E-07    6.9149       -.65415E-06** at limit **
  17  Prefactor      .0000        2.1181       -.16213E-05** at limit **
  18  norm           .0000        .14455       -.11138E-06** at limit **
  19  norm          14.666        5.2578       -.34242E-06    .10814E-02
  20  Prefactor     6.6220        5.7756        .11169E-06    .39688E-03
  21  Normalizat    .65465        .19919        .18315E-04    .14312E-04
  22  Prefactor     .99365        .18490       -.22368E-04    .12871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 20.8348
  Prefactor  = 0.381829
  Prefactor  = 1.47248
  norm       = 0
  Prefactor  = 0
  norm       = 4.72515
  Prefactor  = 7.16094e-09
  norm       = 4.09117e-08
  Prefactor  = 5.57486
  Prefactor  = 11.692
  Prefactor  = 6.10623e-10
  norm       = 0.381434
  norm       = 0
  Prefactor  = 1.77994
  norm       = 1.82632e-08
  Prefactor  = 0
  norm       = 0
  norm       = 14.6658
  Prefactor  = 6.62201
  Normalizat = 0.654649
  Prefactor  = 0.993647
 **********
 **   18 **HESSE 
 **********

 FCN=   4802.036     FROM HESSE     STATUS=OK           388 CALLS     1771 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.2212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.835        32.505        .22620E-03   -1.5617    
   3  Prefactor     .38183        9.5840        .94211E-02   -1.5696    
   4  Prefactor     1.4725        5.9253        .90595E-03   -1.5684    
   5  norm           .0000        .84094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.8364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.7252        3.5462        .46190E-03   -1.5664    
   8  Prefactor     .71609E-08    6.7210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .40912E-07    17.382        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5749        42.719        .42294E-03   -1.5661    
  11  Prefactor     11.692        23.236        .29093E-03   -1.5640    
  12  Prefactor     .61062E-09    6.9092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .38143        .74493        .16633E-02   -1.5696    
  14  norm           .0000        2.9275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7799        12.972        .78484E-03   -1.5681    
  16  norm          .18263E-07    7.0600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.1186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .14455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.666        5.2684        .26131E-03   -1.5631    
  20  Prefactor     6.6220        5.7849        .39193E-03   -1.5656    
  21  Normalizat    .65465        .17230        .41692E-01   -1.0571    
  22  Prefactor     .99365        .15922        .46188E-01   -.92942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38127e-07
Minuit parameter uncertainties:
  1  6.41876e-06
  2  32.505
  3  3.82595
  4  5.90759
  5  3.35621e-06
  6  1.94556e-05
  7  3.54623
  8  0.000438165
  9  0.00168606
  10  30.8645
  11  23.2366
  12  0.000129976
  13  0.744928
  14  1.53542e-05
  15  9.61031
  16  0.00071845
  17  5.19784e-07
  18  8.26728e-07
  19  5.26839
  20  5.7849
  21  0.172443
  22  0.159294
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  6.622e+00  5.785e+00  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.936e-01  1.593e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  6.546e-01  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 359.582 -10.362
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 8.95e-06

TS (Fixed Index): 3.25
Ra Dec: 359.582 -10.362
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/505607/likelihoodResults_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.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) = 4801.72452278
delta logL = 0.311697934912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4801.7218986
delta logL = 0.314322122113

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4801.722     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1102        6.3600        .37596E-03   -.53230E-01
   2  Index         1.7409        .58158        .17654       -.70787E-04
   3  Normalizat    .67664        .16689        .41978E-01    .17512E-04
   4  Prefactor     .98061        .15816        .46024E-01    .32747E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11021
  Index      = 1.74088
  Normalizat = 0.676641
  Prefactor  = 0.980613
 **********
 **   18 **HESSE 
 **********

 FCN=   4801.722     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1102        6.9944        .15038E-04   -1.5655    
   2  Index         1.7409        .86996        .10384E-01   -.70999    
   3  Normalizat    .67664        .19379        .25783E-03   -1.0482    
   4  Prefactor     .98061        .18374        .20538E-03   -.93379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01037e-08
Minuit parameter uncertainties:
  1  6.99441
  2  0.877774
  3  0.193986
  4  0.183861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505607': 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) = 4801.72189856
delta logL = 0.314322160709

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  7.110e+00  6.994e+00  0.000e+00  1.000e+06 ( 1.000e-12)
545        Index:  1.741e+00  8.778e-01  0.000e+00  1.000e+01 (-1.000e+00)
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.806e-01  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  6.766e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.87
Ra Dec: 359.582 -10.362
Photon Index (Free Index): 1.74 +/- 0.88
Photon Flux (Free Index): 2.00e-08 +/- 2.40e-08
Energy Flux (Free Index): 2.88e-05 +/- 6.16e-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/505607/cmap_HighResolution_698112001_698371201_4FGL_J2358.3-1021_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='2.88e-05', photon_flux_error='3.39e-08', dlogl='3.14e-01', energy_flux='1.02e-05', photon_flux2='2.00e-08', job_status='DONE', time_completed='2023-02-18 02:21:14.351256', photon_index_error2='0.88', photon_index2='1.74', ts='3.25', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='6.16e-05', EG='0.65', time_epoch_completed='1676715674.35', return_code='0', job_id='505607', GAL2='0.98', EG2='0.68', return_code2='0', energy_flux_error='8.95e-06', photon_flux_error2='2.40e-08', ts2='3.87', photon_index='2.59' WHERE bin_id='1770' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 02:21:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 505607: <4FGL_J2358.3-1021_daily_bin1770> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 02:10:15 2023
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 02:10:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 02:10:16 2023
Terminated at Sat Feb 18 02:21:15 2023
Results reported at Sat Feb 18 02:21:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin1770 359.582 -10.3616 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3-1021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            660 sec.

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

