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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1777
RA = 359.588, Dec = 38.5097
tmin = 699926401, tmax = 700185601
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='927801', job_status='RUN', time_executed='2023-03-11 01:36:20.478858', time_epoch_executed='1678527380.48' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927801

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927801/ft1_4FGL_J2358.3+3830_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927801/ft2_4FGL_J2358.3+3830_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927801/ft1_4FGL_J2358.3+3830_daily_bin1777.fits outfile=/scratch/kocevski/927801/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1777.fits ra=359.588 dec=38.5097 rad=12.0 tmin=699926401.0 tmax=700185601.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.66
user 3.43
sys 0.19

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

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

Number of photons that the gtmktime cut: 931

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927801/ft1_filtered_4FGL_J2358.3+3830_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/927801/ft2_4FGL_J2358.3+3830_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/927801/ltcube_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.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/927801/ft2_4FGL_J2358.3+3830_daily_bin1777.fits
.....................!
real 12.99
user 12.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927801/ft1_filtered_4FGL_J2358.3+3830_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/927801/ft2_4FGL_J2358.3+3830_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/927801/ltcube_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.fits outfile=/scratch/kocevski/927801/expmap_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.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/927801/ltcube_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.fits
.....................!
real 190.16
user 184.74
sys 5.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/927801/ft1_filtered_4FGL_J2358.3+3830_daily_bin1777.fits scfile=/scratch/kocevski/927801/ft2_4FGL_J2358.3+3830_daily_bin1777.fits outfile=/scratch/kocevski/927801/cmap_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.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.57
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12328E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .25777E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8187       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20043E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12088E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.6140       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16751E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .92640E-03   1.0000          .0000       .10000E+07
     9 'norm      '    4.8404       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.171       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11384E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.5742       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.670       1.0000          .0000       .10000E+07
    14 'norm      '    .89757E-04   1.0000          .0000       .10000E+07
    15 'norm      '    9.6563       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.514       1.0000          .0000       .10000E+07
    17 'norm      '    .72616       1.0000          .0000       .10000E+07
    18 'Prefactor '    .61596E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    41.142       1.0000          .0000       .10000E+07
    20 'Prefactor '    25.896       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19651E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    .79825       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0805       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=   9803.958     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1897 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13323E-08    42.498        .20469E-05** at limit **
   2  norm          .20905E-06    10.569        .28887E-06** at limit **
   3  Prefactor     5.8600        4.9772        .11550E-06    .13602E-02
   4  Prefactor      .0000        4.0574        .48136E-06** at limit **
   5  Prefactor     .26923E-07    9.7368       -.34241E-06** at limit **
   6  Prefactor     6.6233        9.7374       -.28286E-06   -.88830E-03
   7  Prefactor     .55511E-10    12.758       -.22620E-06** at limit **
   8  Prefactor     .26090E-08    10.450        .23589E-07** at limit **
   9  norm          4.8419        1.9787        .77306E-07   -.56621E-03
  10  Prefactor     10.124        6.5588       -.12795E-06    .14176E-02
  11  Prefactor     .49960E-09    7.3598        .61705E-06** at limit **
  12  norm          1.5761        1.5167        .77980E-08   -.31784E-03
  13  Prefactor     11.700        4.0317        .71617E-07    .63132E-01
  14  norm           .0000        2.4514       -.50084E-09** at limit **
  15  norm          9.6675        10.085        .23345E-07   -.86318E-02
  16  Prefactor     14.498        3.0885       -.46729E-07   -.34109E-03
  17  norm          .73198        2.4516       -.25564E-06   -.32658E-02
  18  Prefactor     .18058E-06    13.373        .22178E-06** at limit **
  19  Prefactor     42.647        32.785       -.14181E-06   -.24720E-01
  20  Prefactor     26.797        22.918       -.21224E-06    .21044E-01
  21  Prefactor      .0000        2.7850        .13782E-06** at limit **
  22  Normalizat    .79620        .21333        .38214E-05    .95043E-05
  23  Prefactor     1.0808        .10043       -.31932E-06    .52551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33227e-09
  norm       = 2.09055e-07
  Prefactor  = 5.86
  Prefactor  = 0
  Prefactor  = 2.69229e-08
  Prefactor  = 6.62329
  Prefactor  = 5.55112e-11
  Prefactor  = 2.60902e-09
  norm       = 4.84194
  Prefactor  = 10.1237
  Prefactor  = 4.996e-10
  norm       = 1.57611
  Prefactor  = 11.7004
  norm       = 0
  norm       = 9.66748
  Prefactor  = 14.4981
  norm       = 0.731979
  Prefactor  = 1.80578e-07
  Prefactor  = 42.6471
  Prefactor  = 26.7972
  Prefactor  = 0
  Normalizat = 0.796195
  Prefactor  = 1.08077
 **********
 **   18 **HESSE 
 **********

 FCN=   9803.958     FROM HESSE     STATUS=OK           422 CALLS     2319 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13323E-08    42.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .20905E-06    23.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8600        5.0069        .41611E-03   -1.5660    
   4  Prefactor      .0000        4.0456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .26923E-07    1.4665        .60620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6233        19.170        .38996E-03   -1.5656    
   7  Prefactor     .55511E-10    13.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26090E-08    10.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8419        1.9859        .45700E-03   -1.5664    
  10  Prefactor     10.124        6.5767        .31394E-03   -1.5644    
  11  Prefactor     .49960E-09    7.3987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5761        1.5443        .84666E-03   -1.5683    
  13  Prefactor     11.700        11.306        .29299E-03   -1.5640    
  14  norm           .0000        2.4552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6675        10.198        .32224E-03   -1.5646    
  16  Prefactor     14.498        16.209        .26264E-03   -1.5632    
  17  norm          .73198        2.5054        .58610E-03   -1.5691    
  18  Prefactor     .18058E-06    23.277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.647        40.204        .15592E-03   -1.5577    
  20  Prefactor     26.797        38.111        .19655E-03   -1.5604    
  21  Prefactor      .0000        2.7745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79620        .19742        .85978E-01   -1.0021    
  23  Prefactor     1.0808        .89178E-01    .38378E-01   -.90084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58678e-06
Minuit parameter uncertainties:
  1  0.000481334
  2  0.00438731
  3  5.00693
  4  7.22814e-06
  5  0.000397276
  6  19.1701
  7  4.48642e-05
  8  0.000334654
  9  1.98586
  10  6.57672
  11  0.000121146
  12  1.54429
  13  11.3061
  14  4.97368e-06
  15  10.1977
  16  16.2087
  17  2.50538
  18  0.0041005
  19  40.2046
  20  38.1116
  21  3.018e-06
  22  0.197595
  23  0.0891905
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.680e+01  3.811e+01  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.081e+00  8.919e-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:  7.962e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/927801/likelihoodResults_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.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) = 9803.93963497
delta logL = 0.018280217937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9803.92638188
delta logL = 0.0315333111539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.653       1.0000          .0000       .10000E+07
     2 'Index     '    2.3942       1.0000          .0000       10.000    
     3 'Normalizat'    .79172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0819       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9803.926     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      268 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.647        51.740        .90258E-05   -.16183E-02
   2  Index         2.3943        1.1408        .93597E-02   -.82695E-04
   3  Normalizat    .79171        .20208        .38175E-03   -.33283E-03
   4  Prefactor     1.0819        .98838E-01    .16162E-03   -.91085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6466
  Index      = 2.39427
  Normalizat = 0.791705
  Prefactor  = 1.08189
 **********
 **   18 **HESSE 
 **********

 FCN=   9803.926     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.647        41.122        .18052E-05   -1.5619    
   2  Index         2.3943        .91071        .37439E-03   -.54819    
   3  Normalizat    .79171        .20172        .15270E-04   -1.0038    
   4  Prefactor     1.0819        .98721E-01    .32324E-04   -.90047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15677e-10
Minuit parameter uncertainties:
  1  41.1228
  2  0.917771
  3  0.201907
  4  0.0987381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927801': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9803.92638186
delta logL = 0.0315333345825

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.965e+01  4.112e+01  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  2.394e+00  9.178e-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.082e+00  9.874e-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:  7.917e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/927801/cmap_HighResolution_699926401_700185601_4FGL_J2358.3+3830_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-03-11 01:48:26.777038', job_id='927801', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1678528106.78', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.15e-02', ts2='0.71', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1777' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:48:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 927801: <4FGL_J2358.3+3830_daily_bin1777> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1777> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Mar 11 01:35:26 2023
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:35:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:35:27 2023
Terminated at Sat Mar 11 01:48:27 2023
Results reported at Sat Mar 11 01:48:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1777 359.588 38.5097 699926401 700185601 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 :                                   728.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

