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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1731
RA = 359.588, Dec = 38.5097
tmin = 688003201, tmax = 688262401
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='552874', job_status='RUN', time_executed='2022-10-24 00:48:44.557456', time_epoch_executed='1666597724.56' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552874/ft1_4FGL_J2358.3+3830_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552874/ft2_4FGL_J2358.3+3830_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552874/ft1_4FGL_J2358.3+3830_daily_bin1731.fits outfile=/scratch/kocevski/552874/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1731.fits ra=359.588 dec=38.5097 rad=12.0 tmin=688003201.0 tmax=688262401.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.53
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552874/ft2_4FGL_J2358.3+3830_daily_bin1731.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/552874/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1731.fits evtable="EVENTS" outfile="/scratch/kocevski/552874/ft1_filtered_4FGL_J2358.3+3830_daily_bin1731.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 920

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552874/ft1_filtered_4FGL_J2358.3+3830_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/552874/ft2_4FGL_J2358.3+3830_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/552874/ltcube_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.fits outfile=/scratch/kocevski/552874/expmap_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.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/552874/ltcube_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.fits
.....................!
real 192.74
user 188.11
sys 4.06

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/552874/ft1_filtered_4FGL_J2358.3+3830_daily_bin1731.fits scfile=/scratch/kocevski/552874/ft2_4FGL_J2358.3+3830_daily_bin1731.fits outfile=/scratch/kocevski/552874/cmap_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552874/ft1_filtered_4FGL_J2358.3+3830_daily_bin1731.fits scfile=/scratch/kocevski/552874/ft2_4FGL_J2358.3+3830_daily_bin1731.fits outfile=/scratch/kocevski/552874/cmap_HighResolution_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.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.67
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31085E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .57261E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.8017       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.2570       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8456       1.0000          .0000       .10000E+07
     6 'Prefactor '    .64413E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .24858E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    15.823       1.0000          .0000       .10000E+07
     9 'norm      '    3.6761       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.9336       1.0000          .0000       .10000E+07
    11 'Prefactor '    .38149E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .82985       1.0000          .0000       .10000E+07
    13 'Prefactor '    .38570E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .11576E-05   1.0000          .0000       .10000E+07
    15 'norm      '    3.1961       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.0357       1.0000          .0000       .10000E+07
    17 'norm      '    1.3669       1.0000          .0000       .10000E+07
    18 'Prefactor '    .55336E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    40.812       1.0000          .0000       .10000E+07
    20 'Prefactor '    .80316       1.0000          .0000       .10000E+07
    21 'Prefactor '    .45171E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95272       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=   9683.751     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1937 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25089E-05    91.140        .21855E-06** at limit **
   2  norm          .55511E-10    8.4012       -.15565E-06** at limit **
   3  Prefactor     6.8227        5.4576        .30180E-08   -.11117E-02
   4  Prefactor     5.1416        7.1340        .29655E-07    .25222E-03
   5  Prefactor     1.8456        2.3590       -.31831E-07   -.84854E-03
   6  Prefactor      .0000        4.1237       -.10052E-06** at limit **
   7  Prefactor      .0000        17.527        .70858E-07** at limit **
   8  Prefactor     15.818        15.639       -.41255E-07   -.38829E-01
   9  norm          3.6757        2.1222        .62318E-08   -.22316E-03
  10  Prefactor     2.9235        4.3555       -.17989E-07   -.48767E-03
  11  Prefactor      .0000        13.507        .50153E-08** at limit **
  12  norm          .83000        .94734        .13335E-07    .78411E-03
  13  Prefactor     .30531E-08    31.666        .25082E-06** at limit **
  14  norm           .0000        1.1345        .23145E-07** at limit **
  15  norm          3.2048        6.6670       -.91011E-07   -.64642E-03
  16  Prefactor     4.9743        13.456        .11097E-06   -.49396E-03
  17  norm          1.3666        1.6035       -.41300E-09   -.34671E-03
  18  Prefactor     .69333E-07    55.347        .36579E-06** at limit **
  19  Prefactor     41.618        10.479        .29203E-07   -.15143    
  20  Prefactor     .16830E-04    1370.1        .33518E-05** at limit **
  21  Prefactor     .55511E-10    10.260        .94074E-07** at limit **
  22  Normalizat    1.0660        .21957       -.42969E-06   -.91642E-04
  23  Prefactor     .95285        .10068       -.67321E-06   -.21710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50894e-06
  norm       = 5.55112e-11
  Prefactor  = 6.82273
  Prefactor  = 5.14163
  Prefactor  = 1.84557
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.8184
  norm       = 3.67572
  Prefactor  = 2.92347
  Prefactor  = 0
  norm       = 0.830002
  Prefactor  = 3.05311e-09
  norm       = 0
  norm       = 3.20483
  Prefactor  = 4.97426
  norm       = 1.36662
  Prefactor  = 6.93334e-08
  Prefactor  = 41.6178
  Prefactor  = 1.68301e-05
  Prefactor  = 5.55112e-11
  Normalizat = 1.06602
  Prefactor  = 0.95285
 **********
 **   18 **HESSE 
 **********

 FCN=   9683.751     FROM HESSE     STATUS=OK           426 CALLS     2363 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25089E-05    92.558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    8.4288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8227        5.4830        .38448E-03   -1.5656    
   4  Prefactor     5.1416        7.1074        .43815E-03   -1.5663    
   5  Prefactor     1.8456        2.3772        .76733E-03   -1.5681    
   6  Prefactor      .0000        4.1279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        16.927        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.818        15.858        .25152E-03   -1.5628    
   9  norm          3.6757        2.1251        .52655E-03   -1.5670    
  10  Prefactor     2.9235        4.3875        .59279E-03   -1.5674    
  11  Prefactor      .0000        13.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .83000        .95431        .50736E-03   -1.5690    
  13  Prefactor     .30531E-08    31.097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.1404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2048        6.6713        .56652E-03   -1.5672    
  16  Prefactor     4.9743        13.445        .44786E-03   -1.5663    
  17  norm          1.3666        1.6190        .93273E-03   -1.5685    
  18  Prefactor     .69333E-07    55.844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.618        41.256        .15655E-03   -1.5579    
  20  Prefactor     .16830E-04    33.724        .13277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    10.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0660        .19145        .74857E-01   -.90850    
  23  Prefactor     .95285        .85232E-01    .45673E-01   -.94318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27094e-06
Minuit parameter uncertainties:
  1  0.0304781
  2  4.34336e-05
  3  5.48303
  4  7.10742
  5  2.37721
  6  1.93034e-05
  7  2.36186e-05
  8  15.8577
  9  2.12513
  10  4.38749
  11  3.23012e-05
  12  0.95431
  13  0.000614982
  14  2.25194e-06
  15  6.67128
  16  13.4448
  17  1.61899
  18  0.00393576
  19  41.2564
  20  0.0476479
  21  4.71822e-05
  22  0.191575
  23  0.0852436
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.683e-05  4.765e-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:  9.528e-01  8.524e-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:  1.066e+00  1.916e-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: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552874/likelihoodResults_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.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) = 9683.75170615
delta logL = -0.000830086692076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9683.75088545
delta logL = -9.38708581089e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22336E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.3436       1.0000          .0000       10.000    
     3 'Normalizat'    1.0658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95273       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=   9683.751     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      241 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11008E-06    1381.3       -.15054E-04** at limit **
   2  Index         2.1842        6.0361        .43742E-04   -.29690E-09
   3  Normalizat    1.0660        .20268        .13446E-04    .20563E-03
   4  Prefactor     .95285        .97760E-01   -.75177E-05    .13862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10079e-07
  Index      = 2.18415
  Normalizat = 1.06603
  Prefactor  = 0.952849
 **********
 **   18 **HESSE 
 **********

 FCN=   9683.751     FROM HESSE     STATUS=NOT POSDEF    45 CALLS      286 TOTAL
                     EDM=   .39E-15    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11008E-06    .44740E-02    .13950E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1842        6.5108        .50000       -.59822    
   3  Normalizat    1.0660        .57676E-04    .74857E-01   -.90850    
   4  Prefactor     .95285        .27648E-04    .45674E-01   -.94318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88563e-16
Minuit parameter uncertainties:
  1  4.43833e-05
  2  62.599
  3  5.7676e-05
  4  2.76485e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552874': 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) = 9683.75087606
delta logL = 5.96446625423e-09

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.101e-07  4.438e-05  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  2.184e+00  6.260e+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.528e-01  2.765e-05  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.066e+00  5.768e-05  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/552874/cmap_HighResolution_688003201_688262401_4FGL_J2358.3+3830_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2022-10-24 01:01:07.944294', job_id='552874', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1666598467.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='5.96e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1731' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 01:01:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 552874: <4FGL_J2358.3+3830_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Oct 24 00:45:17 2022
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:45:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:45:18 2022
Terminated at Mon Oct 24 01:01:11 2022
Results reported at Mon Oct 24 01:01:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1731 359.588 38.5097 688003201 688262401 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 :                                   743.14 sec.
    Max Memory :                                 1058 MB
    Average Memory :                             284.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

