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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1726
RA = 359.588, Dec = 38.5097
tmin = 686707201, tmax = 686966401
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='89647', job_status='RUN', time_executed='2022-10-09 00:42:44.787440', time_epoch_executed='1665301364.79' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89647/ft1_4FGL_J2358.3+3830_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89647/ft1_4FGL_J2358.3+3830_daily_bin1726.fits outfile=/scratch/kocevski/89647/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1726.fits ra=359.588 dec=38.5097 rad=12.0 tmin=686707201.0 tmax=686966401.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.08
user 2.86
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.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/89647/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.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.34
sys 0.15

Number of photons that the gtmktime cut: 124

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/89647/ltcube_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.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/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits
.....................!
real 13.54
user 13.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/89647/ltcube_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.fits outfile=/scratch/kocevski/89647/expmap_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.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/89647/ltcube_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.fits
.....................!
real 191.80
user 185.64
sys 5.79

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/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits scfile=/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits outfile=/scratch/kocevski/89647/cmap_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits scfile=/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits outfile=/scratch/kocevski/89647/cmap_HighResolution_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.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.59
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89647/Model_4FGL_J2358.3+3830_daily_bin1726.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/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits.....................!
real 28.82
user 27.44
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits', '/scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits', expMap='/scratch/kocevski/89647/expmap_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.fits', expCube='/scratch/kocevski/89647/ltcube_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89647/Model_4FGL_J2358.3+3830_daily_bin1726.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  0.000e+00  1.000e+06 ( 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/89647/ft1_filtered_4FGL_J2358.3+3830_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/89647/ft2_4FGL_J2358.3+3830_daily_bin1726.fits
Exposure map: /scratch/kocevski/89647/expmap_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.fits
Exposure cube: /scratch/kocevski/89647/ltcube_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89647/Model_4FGL_J2358.3+3830_daily_bin1726.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) = 1445.38712596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94604E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .44467       1.0000          .0000       .10000E+07
     3 'Prefactor '    48.344       1.0000          .0000       .10000E+07
     4 'Prefactor '    .37910       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.9446       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38395       1.0000          .0000       .10000E+07
     7 'Prefactor '    .81600       1.0000          .0000       .10000E+07
     8 'Prefactor '    .78765       1.0000          .0000       .10000E+07
     9 'norm      '    229.61       1.0000          .0000       .10000E+07
    10 'Prefactor '    .76198       1.0000          .0000       .10000E+07
    11 'Prefactor '    .57729E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .32911E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .71873E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .17748E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .15897       1.0000          .0000       .10000E+07
    16 'Prefactor '    47.375       1.0000          .0000       .10000E+07
    17 'norm      '    4.6861       1.0000          .0000       .10000E+07
    18 'Prefactor '    .48132       1.0000          .0000       .10000E+07
    19 'Prefactor '    .79142       1.0000          .0000       .10000E+07
    20 'Prefactor '    .64868       1.0000          .0000       .10000E+07
    21 'Prefactor '    19.105       1.0000          .0000       .10000E+07
    22 'Normalizat'    .47046       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1445.379     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2419 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-08    57.311        .11137E-05** at limit **
   2  norm          .23315E-08    128.48        .69567E-05** at limit **
   3  Prefactor     48.594        11.891       -.32562E-05    .40714E-02
   4  Prefactor      .0000        110.27        .15457E-05** at limit **
   5  Prefactor     9.0757        21.272       -.38310E-05    .17283E-02
   6  Prefactor     .11780E-03    127.66        .25111E-05** at limit **
   7  Prefactor     .59307E-04    388.10       -.38279E-04** at limit **
   8  Prefactor     .79946E-04    97.962       -.10793E-04** at limit **
   9  norm          229.87        19.289        .16794E-05   -.18331    
  10  Prefactor     .75651E-04    193.19        .28204E-05** at limit **
  11  Prefactor      .0000        29.357        .20271E-06** at limit **
  12  norm           .0000        3.8485        .12718E-06** at limit **
  13  Prefactor     .18208E-07    34.822       -.78253E-06** at limit **
  14  norm          .28866E-08    35.700        .23603E-05** at limit **
  15  norm          .66613E-09    72.547        .95256E-06** at limit **
  16  Prefactor     50.605        38.897        .86741E-06    .58752E-02
  17  norm          4.7267        6.0888       -.81622E-07   -.23101E-03
  18  Prefactor     .29582E-06    19.169        .19324E-05** at limit **
  19  Prefactor     .88885E-04    103.81       -.11853E-04** at limit **
  20  Prefactor     .94175E-06    234.79        .23479E-05** at limit **
  21  Prefactor     19.312        34.008       -.15844E-04   -.10745E-01
  22  Normalizat    .45603        .74063        .13142E-03    .45997E-04
  23  Prefactor     1.1368        .27091       -.13606E-04    .14833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-09
  norm       = 2.33147e-09
  Prefactor  = 48.5944
  Prefactor  = 0
  Prefactor  = 9.07573
  Prefactor  = 0.000117799
  Prefactor  = 5.93073e-05
  Prefactor  = 7.99456e-05
  norm       = 229.869
  Prefactor  = 7.56509e-05
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.82077e-08
  norm       = 2.88658e-09
  norm       = 6.66134e-10
  Prefactor  = 50.6054
  norm       = 4.72672
  Prefactor  = 2.95819e-07
  Prefactor  = 8.88852e-05
  Prefactor  = 9.41747e-07
  Prefactor  = 19.3117
  Normalizat = 0.456031
  Prefactor  = 1.13676
 **********
 **   18 **HESSE 
 **********

 FCN=   1445.379     FROM HESSE     STATUS=OK           410 CALLS     2829 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-08    57.540        .14076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23315E-08    128.67        .84484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.594        59.560        .14383E-03   -1.5569    
   4  Prefactor      .0000        110.27        .91949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0757        21.726        .33489E-03   -1.5648    
   6  Prefactor     .11780E-03    1005.9        .91370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .59307E-04    562.15        .51750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .79946E-04    461.99        .53860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          229.87        326.72        .66001E-04   -1.5405    
  10  Prefactor     .75651E-04    396.32        .55813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        29.357        .15245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        3.8125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18208E-07    40.040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .28866E-08    20.400        .57515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .66613E-09    71.251        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.605        82.936        .14530E-03   -1.5566    
  17  norm          4.7267        6.1013        .46464E-03   -1.5664    
  18  Prefactor     .29582E-06    142.21        .80612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .88885E-04    455.88        .53576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .94175E-06    235.11        .64976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.312        39.309        .22887E-03   -1.5620    
  22  Normalizat    .45603        .86347        .14533       -1.1450    
  23  Prefactor     1.1368        .29329        .36424E-01   -.88300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64183e-05
Minuit parameter uncertainties:
  1  0.00107164
  2  0.00110114
  3  59.561
  4  0.000105649
  5  21.7259
  6  0.688585
  7  0.365215
  8  0.384394
  9  326.746
  10  0.346327
  11  2.52387e-06
  12  7.7729e-06
  13  0.00170852
  14  0.000487118
  15  0.000437129
  16  82.9383
  17  6.10133
  18  0.0129722
  19  0.402627
  20  0.0297604
  21  39.3095
  22  0.890902
  23  0.293709
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  9.417e-07  2.976e-02  0.000e+00  1.000e+06 ( 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:  1.137e+00  2.937e-01  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:  4.560e-01  8.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 4.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89647/likelihoodResults_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.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) = 1445.38138801
delta logL = -0.00203271925739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1445.3793564
delta logL = -1.11405938696e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29304E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.4363       1.0000          .0000       10.000    
     3 'Normalizat'    .45575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1367       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1445.379     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      210 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        226.86        .42118E-03** at limit **
   2  Index         1.7817        .90089       -.25079E-04     .0000    
   3  Normalizat    .45603        .78303       -.24715E-04   -.71726E-06
   4  Prefactor     1.1368        1.1281        .44098E-05   -.17761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.78171
  Normalizat = 0.456028
  Prefactor  = 1.13676
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1445.379     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        226.86        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .32321        1.5490       -.25079E-04   -.69927    
   3  Normalizat    .45603        .78303       -.24715E-04   -1.1450    
   4  Prefactor     1.1368        1.1281        .44098E-05   -.88300    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10032e-12
Minuit parameter uncertainties:
  1  3.45815e-05
  2  0.909426
  3  0.803158
  4  1.15334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89647': 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): 101
logL (Free Index) = 1445.37935529
delta logL = 2.03476702154e-09

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  0.000e+00  3.458e-05  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  1.782e+00  9.094e-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:  1.137e+00  1.153e+00  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:  4.560e-01  8.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.588 38.510

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/89647/cmap_HighResolution_686707201_686966401_4FGL_J2358.3+3830_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-02', job_status='DONE', photon_flux_upper_limit='4.48e-07', time_completed='2022-10-09 00:49:08.635709', job_id='89647', GAL2='1.14', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1665301748.64', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.03e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1726' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:49:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 89647: <4FGL_J2358.3+3830_daily_bin1726> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1726> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct  9 00:40:23 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:40:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:40:23 2022
Terminated at Sun Oct  9 00:49:09 2022
Results reported at Sun Oct  9 00:49:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1726 359.588 38.5097 686707201 686966401 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 :                                   386.57 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             231.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            526 sec.

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

