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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1677
RA = 359.588, Dec = 38.5097
tmin = 674006401, tmax = 674265601
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='172014', job_status='RUN', time_executed='2022-05-15 01:12:25.675752', time_epoch_executed='1652602345.68' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172014

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172014/ft1_4FGL_J2358.3+3830_daily_bin1677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172014/ft1_4FGL_J2358.3+3830_daily_bin1677.fits outfile=/scratch/kocevski/172014/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1677.fits ra=359.588 dec=38.5097 rad=12.0 tmin=674006401.0 tmax=674265601.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.89
user 3.65
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.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/172014/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1677.fits evtable="EVENTS" outfile="/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.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.45
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 855

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits" evtable="EVENTS" scfile=/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits sctable="SC_DATA" outfile=/scratch/kocevski/172014/ltcube_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.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/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits
.....................!
real 12.23
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits sctable="SC_DATA" expcube=/scratch/kocevski/172014/ltcube_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.fits outfile=/scratch/kocevski/172014/expmap_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.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/172014/ltcube_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.fits
.....................!
real 179.19
user 152.62
sys 4.31

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 154 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2358.3+3830 @ 359.588 38.5097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits scfile=/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits outfile=/scratch/kocevski/172014/cmap_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.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.588 yref=38.5097 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.60
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits scfile=/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits outfile=/scratch/kocevski/172014/cmap_HighResolution_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.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.588 yref=38.5097 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.52
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172014/Model_4FGL_J2358.3+3830_daily_bin1677.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits.....................!
real 81.21
user 78.76
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits', '/scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits', expMap='/scratch/kocevski/172014/expmap_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.fits', expCube='/scratch/kocevski/172014/ltcube_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/172014/Model_4FGL_J2358.3+3830_daily_bin1677.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3+3830'

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  8.894e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/172014/ft1_filtered_4FGL_J2358.3+3830_daily_bin1677.fits
Spacecraft file(s): /scratch/kocevski/172014/ft2_4FGL_J2358.3+3830_daily_bin1677.fits
Exposure map: /scratch/kocevski/172014/expmap_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.fits
Exposure cube: /scratch/kocevski/172014/ltcube_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/172014/Model_4FGL_J2358.3+3830_daily_bin1677.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) = 8994.43816244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4134       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7662       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3064       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .44476       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6065       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .20864E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16131E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.242       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5251       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83046       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8994.399     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2952 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.544        .46943E-05** at limit **
   2  Prefactor     .10000E-03    5.2993        .27806E-08** at limit **
   3  norm          3.4124        9.8375        .13115E-05   -.75792E-03
   4  Prefactor     3.8643        6.6282        .52468E-07   -.98489E-04
   5  Prefactor     4.8732        4.6060       -.12337E-08   -.55880E-03
   6  Prefactor     4.0627        2.9978        .36112E-07   -.74570E-04
   7  Prefactor     6.7676        15.346       -.57989E-06   -.24074E-04
   8  Prefactor     .85683        9.1842       -.26907E-06   -.24074E-04
   9  Prefactor     5.3053        32.465       -.12081E-05   -.86890E-05
  10  norm          5.1692        2.7852       -.20316E-07   -.41268E-04
  11  Prefactor     .10000E-03    2.4109        .21302E-08** at limit **
  12  Prefactor     .10000E-03    17.653       -.15415E-05** at limit **
  13  norm          .44489        .90347       -.34695E-07   -.57516E-03
  14  Prefactor     .10000E-03    8.4607        .25151E-06** at limit **
  15  norm          5.6089        3.6955        .35528E-07   -.25012E-02
  16  norm          8.7808        6.6245        .13031E-07    .12926E-04
  17  Prefactor     .10000E-03    22.949        .12016E-05** at limit **
  18  norm          .10000E-03    .93274       -.27453E-07** at limit **
  19  Prefactor     .10000E-03    10.875        .23294E-07** at limit **
  20  Prefactor     .10000E-03    18.248       -.32950E-05** at limit **
  21  Prefactor     .10000E-03    12.418       -.14008E-05** at limit **
  22  Prefactor     49.231        41.472       -.72253E-05   -.11938E-03
  23  Prefactor     2.5264        4.7925        .81231E-06   -.89338E-04
  24  Normalizat    .83040        .17990        .26567E-06    .76604E-05
  25  Prefactor     .97604        .84426E-01    .11317E-06    .15780E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.41241
  Prefactor  = 3.86432
  Prefactor  = 4.87318
  Prefactor  = 4.06265
  Prefactor  = 6.76758
  Prefactor  = 0.856834
  Prefactor  = 5.3053
  norm       = 5.16922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.444894
  Prefactor  = 0.0001
  norm       = 5.60891
  norm       = 8.78081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.231
  Prefactor  = 2.52643
  Normalizat = 0.830396
  Prefactor  = 0.976036
 **********
 **   18 **HESSE 
 **********

 FCN=   8994.399     FROM HESSE     STATUS=OK           439 CALLS     3391 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4124        13.033        .10948E-02   -1.5338    
   4  Prefactor     3.8643        6.5989        .20526E-03   -1.5315    
   5  Prefactor     4.8732        4.6817        .91108E-03   -1.5266    
   6  Prefactor     4.0627        2.9845        .12845E-03   -1.5305    
   7  Prefactor     6.7676        15.285        .15425E-03   -1.5188    
   8  Prefactor     .85683        51.321        .54942E-02   -1.5523    
   9  Prefactor     5.3053        32.441        .17447E-03   -1.5247    
  10  norm          5.1692        2.7833        .11208E-03   -1.5253    
  11  Prefactor     .10000E-03    2.4226        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .44489        .80495        .12297E-02   -1.5575    
  14  Prefactor     .10000E-03    8.5874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6089        4.5778        .84832E-03   -1.5234    
  16  norm          8.7808        6.6223        .13527E-03   -1.5115    
  17  Prefactor     .10000E-03    23.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.9598        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    103.50        .60498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     49.231        41.498        .57146E-04   -1.4304    
  23  Prefactor     2.5264        4.7416        .25707E-03   -1.5390    
  24  Normalizat    .83040        .20710        .34724E-03   -.98951    
  25  Prefactor     .97604        .98086E-01    .15772E-03   -.93533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99717e-08
Minuit parameter uncertainties:
  1  9.49275e-05
  2  6.39384e-07
  3  13.0435
  4  6.6001
  5  4.68208
  6  2.98457
  7  15.2943
  8  13.2737
  9  26.2591
  10  2.78341
  11  4.02048e-07
  12  3.84121e-05
  13  0.804969
  14  1.81037e-06
  15  4.57805
  16  6.62285
  17  3.29726e-05
  18  1.67263e-05
  19  4.10528e-05
  20  7.99141e-05
  21  2.80037e-05
  22  41.522
  23  4.74234
  24  0.207295
  25  0.0981035
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  4.923e+01  4.152e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.760e-01  9.810e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  8.304e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.78
Ra Dec: 359.588 38.510
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.31e-05

TS (Fixed Index): 2.78
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172014/likelihoodResults_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.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) = 8994.12406767
delta logL = 0.274499352383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8994.12292346
delta logL = 0.27564355602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.327       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7874       1.0000          .0000       10.000    
     3 'Normalizat'    .84199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+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=   8994.123     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      319 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.341        67.127        .22833E-03    .20016E-04
   2  Index         1.7873        .49811        .92236E-02    .35707E-03
   3  Normalizat    .84203        .19740        .34507E-03   -.26752E-04
   4  Prefactor     .97284        .97155E-01    .15794E-03   -.35990E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.3408
  Index      = 1.7873
  Normalizat = 0.842029
  Prefactor  = 0.972838
 **********
 **   18 **HESSE 
 **********

 FCN=   8994.123     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.341        66.026        .91331E-05   -1.3947    
   2  Index         1.7873        .49004        .18447E-02   -.69781    
   3  Normalizat    .84203        .19749        .13803E-04   -.98528    
   4  Prefactor     .97284        .97216E-01    .63177E-05   -.93640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20976e-12
Minuit parameter uncertainties:
  1  66.0884
  2  0.491384
  3  0.197655
  4  0.0972333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172014': 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) = 8994.12292341
delta logL = 0.275643613013

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  7.734e+01  6.609e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  1.787e+00  4.914e-01  0.000e+00  1.000e+01 (-1.000e+00)
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.728e-01  9.723e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  8.420e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 359.588 38.510
Photon Index (Free Index): 1.79 +/- 0.49
Photon Flux (Free Index): 2.34e-08 +/- 2.35e-08
Energy Flux (Free Index): 2.92e-05 +/- 3.49e-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/172014/cmap_HighResolution_674006401_674265601_4FGL_J2358.3+3830_daily_bin1677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='2.92e-05', photon_flux_error='2.78e-08', dlogl='2.76e-01', energy_flux='1.55e-05', photon_flux2='2.34e-08', job_status='DONE', time_completed='2022-05-15 01:25:55.972293', photon_index_error2='0.49', photon_index2='1.79', ts='2.78', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='3.49e-05', EG='0.83', time_epoch_completed='1652603155.97', return_code='0', job_id='172014', GAL2='0.97', EG2='0.84', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.35e-08', ts2='3.34', photon_index='2.17' WHERE bin_id='1677' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun May 15 01:25:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 172014: <4FGL_J2358.3+3830_daily_bin1677> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1677> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun May 15 01:10:28 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun May 15 01:11:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun May 15 01:11:42 2022
Terminated at Sun May 15 01:25:56 2022
Results reported at Sun May 15 01:25:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1677 359.588 38.5097 674006401 674265601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3+3830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            928 sec.

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

