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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1727
RA = 359.588, Dec = 38.5097
tmin = 686966401, tmax = 687225601
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='215524', job_status='RUN', time_executed='2022-10-12 00:41:34.101656', time_epoch_executed='1665560494.1' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215524/ft1_4FGL_J2358.3+3830_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215524/ft1_4FGL_J2358.3+3830_daily_bin1727.fits outfile=/scratch/kocevski/215524/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1727.fits ra=359.588 dec=38.5097 rad=12.0 tmin=686966401.0 tmax=687225601.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.93
user 2.71
sys 0.20

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

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

Number of photons that the gtmktime cut: 89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215524/ft1_filtered_4FGL_J2358.3+3830_daily_bin1727.fits" evtable="EVENTS" scfile=/scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits sctable="SC_DATA" outfile=/scratch/kocevski/215524/ltcube_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.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/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits
.....................!
real 12.29
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215524/ft1_filtered_4FGL_J2358.3+3830_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/215524/ltcube_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.fits outfile=/scratch/kocevski/215524/expmap_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.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/215524/ltcube_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.fits
.....................!
real 191.16
user 185.51
sys 5.33

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/215524/ft1_filtered_4FGL_J2358.3+3830_daily_bin1727.fits scfile=/scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits outfile=/scratch/kocevski/215524/cmap_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215524/ft1_filtered_4FGL_J2358.3+3830_daily_bin1727.fits scfile=/scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits outfile=/scratch/kocevski/215524/cmap_HighResolution_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215524/ft1_filtered_4FGL_J2358.3+3830_daily_bin1727.fits', '/scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits', expMap='/scratch/kocevski/215524/expmap_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.fits', expCube='/scratch/kocevski/215524/ltcube_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215524/Model_4FGL_J2358.3+3830_daily_bin1727.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/215524/ft1_filtered_4FGL_J2358.3+3830_daily_bin1727.fits
Spacecraft file(s): /scratch/kocevski/215524/ft2_4FGL_J2358.3+3830_daily_bin1727.fits
Exposure map: /scratch/kocevski/215524/expmap_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.fits
Exposure cube: /scratch/kocevski/215524/ltcube_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215524/Model_4FGL_J2358.3+3830_daily_bin1727.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) = 993.442510678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75023E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .76011E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11757E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    271.96       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16886E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12006E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .29357E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .51584E-02   1.0000          .0000       .10000E+07
    12 'norm      '    12.577       1.0000          .0000       .10000E+07
    13 'Prefactor '    8.4169       1.0000          .0000       .10000E+07
    14 'norm      '    .21783E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .23002E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    110.99       1.0000          .0000       .10000E+07
    17 'norm      '    .10264E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    23.020       1.0000          .0000       .10000E+07
    19 'Prefactor '    21.020       1.0000          .0000       .10000E+07
    20 'Prefactor '    .76966E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .11102E-08   1.0000          .0000       .10000E+07
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66098       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=   993.1351     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2667 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    45.014        .53180E-05** at limit **
   2  norm          .92704E-07    79.354       -.37989E-05** at limit **
   3  Prefactor     .22204E-09    31.273       -.13589E-05** at limit **
   4  Prefactor     271.98        1.3305        .30286E-07   -.15515E-01
   5  Prefactor     .47740E-08    28.082       -.33494E-05** at limit **
   6  Prefactor     .72309E-05    159.63        .10391E-04** at limit **
   7  Prefactor     .88082        3.9182       -.23863E-05    .17844E-01
   8  Prefactor     .80783        15.854       -.48398E-05    .35478E-01
   9  norm          .10000E+07    6.2371        .29369E-05** at limit **
  10  Prefactor     .10000E+07    2.7633        .17452E-05   -.13115E-01
  11  Prefactor     .57194E-04    513.68       -.29593E-04** at limit **
  12  norm          12.578        5.5150        .85367E-07    .15823E-02
  13  Prefactor     8.4245        3.9540        .33654E-06    .23116E-01
  14  norm          .55511E-10    19.014        .32329E-06** at limit **
  15  norm          .77716E-09    27.239       -.87275E-06** at limit **
  16  Prefactor     111.05        3.5204       -.82627E-07    .11866E-01
  17  norm           .0000        4.7726        .14370E-06** at limit **
  18  Prefactor     23.105        2.0652        .24342E-06   -.29533E-02
  19  Prefactor     20.897        6.4846       -.87816E-06    .19960E-01
  20  Prefactor     .24414E-05    116.11        .54621E-05** at limit **
  21  Prefactor     .11102E-09    20.092       -.92084E-06** at limit **
  22  Normalizat    .10000E-01    .24353        .72474E-04** at limit **
  23  Prefactor     .66107        .12772       -.11842E-04    .65675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  norm       = 9.27036e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 271.979
  Prefactor  = 4.77396e-09
  Prefactor  = 7.23088e-06
  Prefactor  = 0.880823
  Prefactor  = 0.807826
  norm       = 1e+06
  Prefactor  = 999999
  Prefactor  = 5.71945e-05
  norm       = 12.5776
  Prefactor  = 8.42453
  norm       = 5.55112e-11
  norm       = 7.77156e-10
  Prefactor  = 111.049
  norm       = 0
  Prefactor  = 23.1053
  Prefactor  = 20.8973
  Prefactor  = 2.44144e-06
  Prefactor  = 1.11022e-10
  Normalizat = 0.01
  Prefactor  = 0.66107
 **********
 **   18 **HESSE 
 **********

 FCN=   993.1351     FROM HESSE     STATUS=OK           406 CALLS     3073 TOTAL
                     EDM=   .13E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    45.055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .92704E-07    79.584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22204E-09    31.337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     271.98        544.40        .60646E-04   -1.5378    
   5  Prefactor     .47740E-08    28.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72309E-05    160.34        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .88082        26068.        .42118E-03   -1.5689    
   8  Prefactor     .80783        12613.        .42118E-03   -1.5690    
   9  norm          .10000E+07    66939.        .14388E-02    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E+07    35737.        .42118E-03    1.5689    
  11  Prefactor     .57194E-04    511.21        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.578        5.6150        .28220E-03   -1.5637    
  13  Prefactor     8.4245        24.365        .34530E-03   -1.5650    
  14  norm          .55511E-10    18.945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .77716E-09    27.290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     111.05        77.739        .94925E-04   -1.5497    
  17  norm           .0000        4.7523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.105        436.47        .20847E-03   -1.5612    
  19  Prefactor     20.897        856.01        .21818E-03   -1.5617    
  20  Prefactor     .24414E-05    116.42        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11102E-09    20.102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .23385        .21778       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .66107        .15036        .41879E-01   -1.0507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000125871
Minuit parameter uncertainties:
  1  0.000388606
  2  0.00543259
  3  0.000158739
  4  544.502
  5  0.000737676
  6  0.0681022
  7  304.394
  8  202.312
  9  126.315
  10  360.897
  11  0.342013
  12  5.61499
  13  24.3655
  14  6.25522e-05
  15  0.000294266
  16  77.7397
  17  1.6428e-05
  18  200.862
  19  267.535
  20  0.0337196
  21  9.57126e-05
  22  7.70661e-08
  23  0.15045
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.441e-06  3.372e-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:  6.611e-01  1.504e-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:  1.000e-02  7.707e-08  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.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215524/likelihoodResults_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.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): 102
logL (Free Index) = 993.139215416
delta logL = -0.00409783468228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 993.13511773
delta logL = -1.48909180098e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43798E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.8029       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66109       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.

 FCN=   993.1351     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      271 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    25.331        .42118E-03** at limit **
   2  Index         .75708        9.6147        .50000       -.11369E-10
   3  Normalizat    .10000E-01    .73024E-04    .21779    ** at limit **
   4  Prefactor     .66107        .22900E-02    .41881E-01   -.22412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  Index      = 0.757084
  Normalizat = 0.01
  Prefactor  = 0.66107
 **********
 **   18 **HESSE 
 **********

 FCN=   993.1351     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      298 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    126.61        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .75708        5.1724        .50000       -1.0133    
   3  Normalizat    .10000E-01    .42745E-03    .89160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66107        .51221E-02    .15197E-03   -1.0507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.20314e-13
Minuit parameter uncertainties:
  1  0.000631593
  2  309599
  3  2.18814e-07
  4  0.00512213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215524': 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): 102
logL (Free Index) = 993.13511757
delta logL = 1.04867012851e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  7.772e-10  6.316e-04  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  7.571e-01  3.096e+05  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:  6.611e-01  5.122e-03  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:  1.000e-02  2.188e-07  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/215524/cmap_HighResolution_686966401_687225601_4FGL_J2358.3+3830_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.44e-02', job_status='DONE', photon_flux_upper_limit='4.53e-07', time_completed='2022-10-12 00:47:37.366973', job_id='215524', GAL2='0.66', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1665560857.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1727' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:47:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 215524: <4FGL_J2358.3+3830_daily_bin1727> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:40:23 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:40:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:40:24 2022
Terminated at Wed Oct 12 00:47:38 2022
Results reported at Wed Oct 12 00:47:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1727 359.588 38.5097 686966401 687225601 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 :                                   366.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             347.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   433 sec.
    Turnaround time :                            435 sec.

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

