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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1776
RA = 359.588, Dec = 38.5097
tmin = 699667201, tmax = 699926401
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='847331', job_status='RUN', time_executed='2023-03-08 01:31:41.754961', time_epoch_executed='1678267901.75' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847331/ft1_4FGL_J2358.3+3830_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847331/ft2_4FGL_J2358.3+3830_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847331/ft1_4FGL_J2358.3+3830_daily_bin1776.fits outfile=/scratch/kocevski/847331/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1776.fits ra=359.588 dec=38.5097 rad=12.0 tmin=699667201.0 tmax=699926401.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 4.09
user 3.69
sys 0.22

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

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

Number of photons that the gtmktime cut: 848

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847331/ft1_filtered_4FGL_J2358.3+3830_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/847331/ft2_4FGL_J2358.3+3830_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/847331/ltcube_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.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/847331/ft2_4FGL_J2358.3+3830_daily_bin1776.fits
.....................!
real 12.46
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847331/ft1_filtered_4FGL_J2358.3+3830_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/847331/ft2_4FGL_J2358.3+3830_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/847331/ltcube_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.fits outfile=/scratch/kocevski/847331/expmap_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.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/847331/ltcube_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.fits
.....................!
real 190.99
user 185.81
sys 4.72

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/847331/ft1_filtered_4FGL_J2358.3+3830_daily_bin1776.fits scfile=/scratch/kocevski/847331/ft2_4FGL_J2358.3+3830_daily_bin1776.fits outfile=/scratch/kocevski/847331/cmap_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847331/ft1_filtered_4FGL_J2358.3+3830_daily_bin1776.fits scfile=/scratch/kocevski/847331/ft2_4FGL_J2358.3+3830_daily_bin1776.fits outfile=/scratch/kocevski/847331/cmap_HighResolution_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.913       1.0000          .0000       .10000E+07
     2 'norm      '    .12085E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23078E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .20575E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .56732E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5406       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.669       1.0000          .0000       .10000E+07
     8 'Prefactor '    .30489E-02   1.0000          .0000       .10000E+07
     9 'norm      '    5.1303       1.0000          .0000       .10000E+07
    10 'Prefactor '    .63113E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .31708E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .87708E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    28.835       1.0000          .0000       .10000E+07
    14 'norm      '    12.922       1.0000          .0000       .10000E+07
    15 'norm      '    10.292       1.0000          .0000       .10000E+07
    16 'Prefactor '    15.768       1.0000          .0000       .10000E+07
    17 'norm      '    1.7410       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28069E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.9425       1.0000          .0000       .10000E+07
    20 'Prefactor '    .87416E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    20.021       1.0000          .0000       .10000E+07
    22 'Normalizat'    .79178       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0364       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=   8989.123     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1842 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.918        1.0228        .64325E-09    .29120E-02
   2  norm          .51070E-07    4.4889        .10465E-06** at limit **
   3  Prefactor     .46907E-07    8.5979       -.44290E-06** at limit **
   4  Prefactor     .30531E-08    6.6472       -.29090E-06** at limit **
   5  Prefactor      .0000        1.4689        .18341E-07** at limit **
   6  Prefactor     2.5325        1.3942        .16393E-07    .30038E-02
   7  Prefactor     12.686        1.1159       -.12594E-07    .10842E-02
   8  Prefactor     .38403E-06    3.7064       -.80281E-07** at limit **
   9  norm          5.1328        2.5336        .93325E-07   -.15440E-02
  10  Prefactor      .0000        4.5970        .34362E-07** at limit **
  11  Prefactor     .73830E-07    4.8337        .12036E-06** at limit **
  12  norm           .0000        .58399       -.12034E-06** at limit **
  13  Prefactor     28.837        1.1482       -.32519E-08   -.67228E-02
  14  norm          12.965        6.2028        .28698E-08   -.25396E-02
  15  norm          10.286        1.0642       -.71834E-08   -.64281E-02
  16  Prefactor     15.771        2.1903        .15922E-07    .20170E-01
  17  norm          1.7409        1.5997        .10710E-06   -.10867E-02
  18  Prefactor     .66613E-09    18.256        .65999E-06** at limit **
  19  Prefactor     4.1042        1.8171        .10101E-08   -.22833E-01
  20  Prefactor     .22204E-09    36.174        .50359E-06** at limit **
  21  Prefactor     20.183        9.1847        .67755E-07    .21150E-02
  22  Normalizat    .79068        .21823        .16278E-05   -.28359E-04
  23  Prefactor     1.0366        .10441       -.82161E-06   -.47270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9176
  norm       = 5.10703e-08
  Prefactor  = 4.69069e-08
  Prefactor  = 3.05311e-09
  Prefactor  = 0
  Prefactor  = 2.53245
  Prefactor  = 12.6859
  Prefactor  = 3.84026e-07
  norm       = 5.13284
  Prefactor  = 0
  Prefactor  = 7.38298e-08
  norm       = 0
  Prefactor  = 28.8374
  norm       = 12.9646
  norm       = 10.2856
  Prefactor  = 15.771
  norm       = 1.74087
  Prefactor  = 6.66134e-10
  Prefactor  = 4.10421
  Prefactor  = 2.22045e-10
  Prefactor  = 20.183
  Normalizat = 0.790683
  Prefactor  = 1.03657
 **********
 **   18 **HESSE 
 **********

 FCN=   8989.123     FROM HESSE     STATUS=OK           416 CALLS     2258 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.918        12.744        .28999E-03   -1.5639    
   2  norm          .51070E-07    12.322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46907E-07    9.2850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30531E-08    6.6390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.4617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5325        18.227        .64044E-03   -1.5676    
   7  Prefactor     12.686        20.374        .28117E-03   -1.5637    
   8  Prefactor     .38403E-06    11.212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1328        2.5433        .44363E-03   -1.5663    
  10  Prefactor      .0000        4.5930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .73830E-07    12.341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .58162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.837        13.346        .18626E-03   -1.5601    
  14  norm          12.965        6.9949        .27839E-03   -1.5636    
  15  norm          10.286        11.961        .31208E-03   -1.5644    
  16  Prefactor     15.771        21.578        .25196E-03   -1.5629    
  17  norm          1.7409        1.5990        .79479E-03   -1.5682    
  18  Prefactor     .66613E-09    18.431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1042        66.697        .50780E-03   -1.5667    
  20  Prefactor     .22204E-09    36.171        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.183        9.2631        .22356E-03   -1.5618    
  22  Normalizat    .79068        .20645        .86702E-01   -1.0042    
  23  Prefactor     1.0366        .92931E-01    .40783E-01   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01166e-07
Minuit parameter uncertainties:
  1  12.7445
  2  0.00158618
  3  0.00131973
  4  0.000285643
  5  3.5425e-07
  6  13.5882
  7  20.3742
  8  0.00415002
  9  2.54333
  10  2.78282e-06
  11  0.00190914
  12  1.39416e-06
  13  13.3464
  14  6.99493
  15  11.961
  16  21.578
  17  1.59902
  18  0.000221142
  19  33.0906
  20  0.000183251
  21  9.2631
  22  0.206652
  23  0.0929457
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.220e-10  1.833e-04  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.037e+00  9.295e-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.907e-01  2.067e-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: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847331/likelihoodResults_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.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) = 8989.13637105
delta logL = -0.0132469526652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 8987.47196799
delta logL = 1.65115610354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33806E-07   1.0000          .0000       .10000E+07
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .68351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0703       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=   8989.123     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      760 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    24.197        .42118E-03** at limit **
   2  Index         1.3298        7.4017        .87394        .10407E-10
   3  Normalizat    .79068        .18965        .86698E-01    .44814E-05
   4  Prefactor     1.0366        .92018E-01    .38842E-01   -.16677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 1.32977
  Normalizat = 0.790683
  Prefactor  = 1.03657
 **********
 **   18 **HESSE 
 **********

 FCN=   8989.123     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      793 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    1180.2        .11069E-01   -46428.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3298        7.4958        .87394       -.18328E+07
   3  Normalizat    .79068        .38898E-01    .38398E-03   -7.2873    
   4  Prefactor     1.0366        .18910E-01    .16366E-03   -101.45    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36331e-10
Minuit parameter uncertainties:
  1  0.000664265
  2  25.0415
  3  0.0388995
  4  0.0189106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847331': 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) = 8989.12312409
delta logL = -1.81898940355e-12

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.110e-10  6.643e-04  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  1.330e+00  2.504e+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.037e+00  1.891e-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.907e-01  3.890e-02  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/847331/cmap_HighResolution_699667201_699926401_4FGL_J2358.3+3830_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2023-03-08 01:44:02.440586', job_id='847331', GAL2='1.04', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1678268642.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-1.82e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1776' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:44:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 847331: <4FGL_J2358.3+3830_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1776> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Mar  8 01:30:22 2023
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:30:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:30:22 2023
Terminated at Wed Mar  8 01:44:03 2023
Results reported at Wed Mar  8 01:44:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1776 359.588 38.5097 699667201 699926401 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 :                                   741.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

