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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1744
RA = 359.588, Dec = 38.5097
tmin = 691372801, tmax = 691632001
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='599050', job_status='RUN', time_executed='2022-12-02 02:06:25.379907', time_epoch_executed='1669975585.38' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599050/ft1_4FGL_J2358.3+3830_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599050/ft2_4FGL_J2358.3+3830_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599050/ft1_4FGL_J2358.3+3830_daily_bin1744.fits outfile=/scratch/kocevski/599050/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1744.fits ra=359.588 dec=38.5097 rad=12.0 tmin=691372801.0 tmax=691632001.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.86
user 2.32
sys 0.19

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

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

Number of photons that the gtmktime cut: 870

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599050/ft1_filtered_4FGL_J2358.3+3830_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/599050/ft2_4FGL_J2358.3+3830_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/599050/ltcube_691372801_691632001_4FGL_J2358.3+3830_daily_bin1744.fits outfile=/scratch/kocevski/599050/expmap_691372801_691632001_4FGL_J2358.3+3830_daily_bin1744.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/599050/ltcube_691372801_691632001_4FGL_J2358.3+3830_daily_bin1744.fits
.....................!
real 193.47
user 186.13
sys 5.12

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/599050/ft1_filtered_4FGL_J2358.3+3830_daily_bin1744.fits scfile=/scratch/kocevski/599050/ft2_4FGL_J2358.3+3830_daily_bin1744.fits outfile=/scratch/kocevski/599050/cmap_691372801_691632001_4FGL_J2358.3+3830_daily_bin1744.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 1.82
user 0.38
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61325E-04   1.0000          .0000       .10000E+07
     2 'norm      '    16.968       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10075E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8562       1.0000          .0000       .10000E+07
     5 'Prefactor '    .53896       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13336E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.460       1.0000          .0000       .10000E+07
     8 'Prefactor '    .37082E-01   1.0000          .0000       .10000E+07
     9 'norm      '    4.5100       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44630E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21816E-01   1.0000          .0000       .10000E+07
    12 'norm      '    1.5573       1.0000          .0000       .10000E+07
    13 'Prefactor '    .56613E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .55679       1.0000          .0000       .10000E+07
    15 'norm      '    9.5224       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22362       1.0000          .0000       .10000E+07
    17 'norm      '    .76632       1.0000          .0000       .10000E+07
    18 'Prefactor '    52.931       1.0000          .0000       .10000E+07
    19 'Prefactor '    76.345       1.0000          .0000       .10000E+07
    20 'Prefactor '    .48965E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.0165       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0820       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84293       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=   9349.187     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1940 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39801E-07    4.5637        .70578E-08** at limit **
   2  norm          16.933        1.8589        .41662E-07    .10224E-01
   3  Prefactor     .83267E-09    3.2626        .11262E-06** at limit **
   4  Prefactor     3.7652        6.1429       -.48373E-07    .44822E-02
   5  Prefactor     .55874        4.8805        .16136E-06    .13805E-01
   6  Prefactor     .55955E-07    4.8362        .22237E-07** at limit **
   7  Prefactor     11.437        1.0087       -.26859E-08    .45091E-02
   8  Prefactor     .33307E-09    .75836        .24080E-07** at limit **
   9  norm          4.5095        2.8562        .77307E-07   -.36342E-02
  10  Prefactor     .41078E-08    4.7525        .32934E-06** at limit **
  11  Prefactor      .0000        14.773       -.11702E-06** at limit **
  12  norm          1.5570        .96613       -.38749E-07    .20067E-02
  13  Prefactor     .41078E-08    7.2994       -.97832E-08** at limit **
  14  norm          .58123        3.8237        .11774E-05    .12947E-02
  15  norm          9.4869        2.6240        .18422E-07    .19662E-01
  16  Prefactor     .38858E-09    190.42        .44617E-06** at limit **
  17  norm          .76654        1.2371       -.86698E-07    .60796E-02
  18  Prefactor     52.893        1.9510       -.10658E-08    .79256E-01
  19  Prefactor     76.425        1.4385       -.10855E-08   -.68757E-01
  20  Prefactor     .82032E-05    2.6491       -.13889E-06** at limit **
  21  Prefactor     1.9920        6.5022        .52596E-06   -.34991E-02
  22  Normalizat    1.0830        .21372       -.60513E-06   -.43878E-04
  23  Prefactor     .84278        .94112E-01    .96254E-06   -.14682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.98015e-08
  norm       = 16.9329
  Prefactor  = 8.32667e-10
  Prefactor  = 3.76524
  Prefactor  = 0.558743
  Prefactor  = 5.59552e-08
  Prefactor  = 11.4371
  Prefactor  = 3.33067e-10
  norm       = 4.50952
  Prefactor  = 4.10783e-09
  Prefactor  = 0
  norm       = 1.55699
  Prefactor  = 4.10783e-09
  norm       = 0.581234
  norm       = 9.4869
  Prefactor  = 3.88578e-10
  norm       = 0.766536
  Prefactor  = 52.8934
  Prefactor  = 76.4253
  Prefactor  = 8.20316e-06
  Prefactor  = 1.99198
  Normalizat = 1.08298
  Prefactor  = 0.842784
 **********
 **   18 **HESSE 
 **********

 FCN=   9349.187     FROM HESSE     STATUS=OK           422 CALLS     2362 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39801E-07    9.3231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.933        19.359        .24287E-03   -1.5626    
   3  Prefactor     .83267E-09    3.2759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7652        6.5345        .51365E-03   -1.5669    
   5  Prefactor     .55874        4.9276        .74883E-03   -1.5693    
   6  Prefactor     .55955E-07    9.4168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.437        18.290        .29568E-03   -1.5640    
   8  Prefactor     .33307E-09    46.318        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5095        2.8516        .47384E-03   -1.5665    
  10  Prefactor     .41078E-08    4.7733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        14.381        .16920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5570        .96862        .85263E-03   -1.5683    
  13  Prefactor     .41078E-08    7.2999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .58123        4.5002        .73191E-03   -1.5693    
  15  norm          9.4869        6.4141        .32451E-03   -1.5646    
  16  Prefactor     .38858E-09    7.2704        .11370E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76654        1.2539        .55480E-03   -1.5690    
  18  Prefactor     52.893        36.417        .13746E-03   -1.5563    
  19  Prefactor     76.425        42.935        .11446E-03   -1.5533    
  20  Prefactor     .82032E-05    48.899        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9920        8.8754        .72860E-03   -1.5680    
  22  Normalizat    1.0830        .19299        .73958E-01   -.90300    
  23  Prefactor     .84278        .80764E-01    .44273E-01   -.98170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09709e-06
Minuit parameter uncertainties:
  1  0.00121792
  2  19.3586
  3  0.000105817
  4  6.53456
  5  3.31858
  6  0.00145184
  7  18.2897
  8  0.000247202
  9  2.85157
  10  0.000279115
  11  3.25501e-05
  12  0.968618
  13  0.000345472
  14  3.23461
  15  6.41408
  16  0.000107055
  17  1.25385
  18  36.4173
  19  42.9348
  20  0.0400565
  21  8.40947
  22  0.19312
  23  0.0807753
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  8.203e-06  4.006e-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:  8.428e-01  8.078e-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.083e+00  1.931e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/599050/likelihoodResults_691372801_691632001_4FGL_J2358.3+3830_daily_bin1744.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) = 9349.19705273
delta logL = -0.00987838992478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9349.18717434
delta logL = 9.84073267318e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26267E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.2519       1.0000          .0000       10.000    
     3 'Normalizat'    1.0829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84280       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=   9349.187     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      221 TOTAL
                     EDM=   .21E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        31.514        .42118E-03** at limit **
   2  Index         1.3758        1.1326       -.69490E-04     .0000    
   3  Normalizat    1.0830        1.1686        .48819E-05    .44963E-05
   4  Prefactor     .84278        1.1901       -.17434E-05    .97809E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.37584
  Normalizat = 1.08298
  Prefactor  = 0.842784
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9349.187     FROM HESSE     STATUS=FAILED         9 CALLS      230 TOTAL
                     EDM=   .21E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        31.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15545        1.4219       -.69490E-04   -.81079    
   3  Normalizat    1.0830        1.1686        .48819E-05   -.90300    
   4  Prefactor     .84278        1.1901       -.17434E-05   -.98170    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.05434e-14
Minuit parameter uncertainties:
  1  4.07459e-06
  2  1.15412
  3  1.19834
  4  1.22989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599050': 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) = 9349.18717425
delta logL = 8.33206286188e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  0.000e+00  4.075e-06  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  1.376e+00  1.154e+00  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:  8.428e-01  1.230e+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:  1.083e+00  1.198e+00  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/599050/cmap_HighResolution_691372801_691632001_4FGL_J2358.3+3830_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2022-12-02 02:18:19.963485', job_id='599050', GAL2='0.84', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1669976299.96', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.33e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1744' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:18:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 599050: <4FGL_J2358.3+3830_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1744> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Dec  2 02:05:26 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 02:05:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 02:05:32 2022
Terminated at Fri Dec  2 02:18:20 2022
Results reported at Fri Dec  2 02:18:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1744 359.588 38.5097 691372801 691632001 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 :                                   710.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            774 sec.

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

