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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1762
RA = 359.588, Dec = 38.5097
tmin = 696038401, tmax = 696297601
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='124661', job_status='RUN', time_executed='2023-01-25 01:51:00.253642', time_epoch_executed='1674640260.25' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124661/ft1_4FGL_J2358.3+3830_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124661/ft2_4FGL_J2358.3+3830_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124661/ft1_4FGL_J2358.3+3830_daily_bin1762.fits outfile=/scratch/kocevski/124661/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1762.fits ra=359.588 dec=38.5097 rad=12.0 tmin=696038401.0 tmax=696297601.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.69
user 3.46
sys 0.21

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

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

Number of photons that the gtmktime cut: 831

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124661/ft1_filtered_4FGL_J2358.3+3830_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/124661/ft2_4FGL_J2358.3+3830_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/124661/ltcube_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.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/124661/ft2_4FGL_J2358.3+3830_daily_bin1762.fits
.....................!
real 14.14
user 13.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124661/ft1_filtered_4FGL_J2358.3+3830_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/124661/ft2_4FGL_J2358.3+3830_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/124661/ltcube_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.fits outfile=/scratch/kocevski/124661/expmap_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.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/124661/ltcube_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.fits
.....................!
real 192.04
user 186.33
sys 5.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 154 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2358.3+3830 @ 359.588 38.5097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/124661/ft1_filtered_4FGL_J2358.3+3830_daily_bin1762.fits scfile=/scratch/kocevski/124661/ft2_4FGL_J2358.3+3830_daily_bin1762.fits outfile=/scratch/kocevski/124661/cmap_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48597E-03   1.0000          .0000       .10000E+07
     2 'norm      '    13.056       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.5679       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15140E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.6320       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4692       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.271       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.9000       1.0000          .0000       .10000E+07
     9 'norm      '    3.5640       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.4766       1.0000          .0000       .10000E+07
    11 'Prefactor '    .70795       1.0000          .0000       .10000E+07
    12 'norm      '    .73296       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.9253       1.0000          .0000       .10000E+07
    14 'norm      '    15.248       1.0000          .0000       .10000E+07
    15 'norm      '    1.1130       1.0000          .0000       .10000E+07
    16 'Prefactor '    33.644       1.0000          .0000       .10000E+07
    17 'norm      '    1.9793       1.0000          .0000       .10000E+07
    18 'Prefactor '    .18779E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .15437E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19715E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.4986       1.0000          .0000       .10000E+07
    22 'Normalizat'    .74212       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0651       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=   8710.420     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1480 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.2505       -.32946E-06** at limit **
   2  norm          12.908        15.734       -.30698E-06   -.55396E-02
   3  Prefactor     9.6108        9.3846       -.33840E-06    .41921E-02
   4  Prefactor      .0000        3.7945       -.49429E-06** at limit **
   5  Prefactor     6.6251        3.5400        .17867E-07   -.43027E-02
   6  Prefactor     3.4687        2.3056       -.12641E-07    .38222E-01
   7  Prefactor     16.806        2.6287       -.33519E-07   -.21156E-01
   8  Prefactor     3.9661        1.0884       -.49683E-07   -.26861E-02
   9  norm          3.5569        2.6847       -.72327E-07    .13181E-02
  10  Prefactor     1.4671        3.0548       -.90398E-07   -.21339E-03
  11  Prefactor     .72942E-07    235.18       -.98627E-05** at limit **
  12  norm          .73422        1.0415       -.90989E-07    .26026E-02
  13  Prefactor     5.9704        1.5227        .87601E-07    .64156E-02
  14  norm          15.240        6.1371        .14954E-06    .49951E-02
  15  norm          1.0643        12.248        .10415E-05   -.69115E-03
  16  Prefactor     33.986        2.0183       -.96994E-08   -.57958E-01
  17  norm          1.9780        2.3541       -.96742E-07    .11901E-02
  18  Prefactor     .17764E-08    69.306       -.14432E-05** at limit **
  19  Prefactor     .21649E-08    29.469        .70235E-06** at limit **
  20  Prefactor     .84932E-08    18.139        .34981E-07** at limit **
  21  Prefactor     1.4845        5.5086        .36272E-07    .83004E-03
  22  Normalizat    .74083        .22398       -.87510E-05    .26919E-04
  23  Prefactor     1.0656        .10808        .60235E-05   -.19020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 12.9076
  Prefactor  = 9.61084
  Prefactor  = 0
  Prefactor  = 6.6251
  Prefactor  = 3.46875
  Prefactor  = 16.8056
  Prefactor  = 3.96608
  norm       = 3.55694
  Prefactor  = 1.46711
  Prefactor  = 7.29417e-08
  norm       = 0.734222
  Prefactor  = 5.97041
  norm       = 15.24
  norm       = 1.06434
  Prefactor  = 33.9862
  norm       = 1.97796
  Prefactor  = 1.77636e-09
  Prefactor  = 2.16493e-09
  Prefactor  = 8.49321e-09
  Prefactor  = 1.48446
  Normalizat = 0.740829
  Prefactor  = 1.06563
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.420     FROM HESSE     STATUS=OK           432 CALLS     1912 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.2708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.908        15.980        .27696E-03   -1.5636    
   3  Prefactor     9.6108        9.6126        .32373E-03   -1.5646    
   4  Prefactor      .0000        3.7964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6251        3.6923        .38943E-03   -1.5656    
   6  Prefactor     3.4687        12.912        .54268E-03   -1.5671    
   7  Prefactor     16.806        21.114        .24803E-03   -1.5626    
   8  Prefactor     3.9661        58.746        .51066E-03   -1.5668    
   9  norm          3.5569        2.6951        .53511E-03   -1.5670    
  10  Prefactor     1.4671        3.1145        .88334E-03   -1.5684    
  11  Prefactor     .72942E-07    16.163        .11541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73422        1.0594        .58072E-03   -1.5691    
  13  Prefactor     5.9704        10.740        .41230E-03   -1.5659    
  14  norm          15.240        6.8280        .25623E-03   -1.5630    
  15  norm          1.0643        12.205        .11175E-02   -1.5687    
  16  Prefactor     33.986        20.626        .17243E-03   -1.5591    
  17  norm          1.9780        2.4062        .73646E-03   -1.5680    
  18  Prefactor     .17764E-08    68.459        .17118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21649E-08    29.633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .84932E-08    18.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4845        5.6332        .87458E-03   -1.5684    
  22  Normalizat    .74083        .20615        .88504E-01   -1.0230    
  23  Prefactor     1.0656        .95941E-01    .39098E-01   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27456e-06
Minuit parameter uncertainties:
  1  2.68068e-06
  2  15.9799
  3  9.61259
  4  6.17398e-06
  5  3.69231
  6  12.9122
  7  21.114
  8  30.5284
  9  2.69515
  10  3.11455
  11  0.0021716
  12  1.05939
  13  10.7402
  14  6.82797
  15  7.2084
  16  20.6264
  17  2.40621
  18  0.000699873
  19  0.000506744
  20  0.000793243
  21  5.63324
  22  0.206362
  23  0.0959569
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  8.493e-09  7.932e-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.066e+00  9.596e-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.408e-01  2.064e-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: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124661/likelihoodResults_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8710.44566732
delta logL = -0.0258549344053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8710.41981268
delta logL = -2.94881829177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86264E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.7133       1.0000          .0000       10.000    
     3 'Normalizat'    .74073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0656       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=   8710.420     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      267 TOTAL
                     EDM=   .19E-15    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .34729        .42118E-03** at limit **
   2  Index         1.0387        9.0858        .50000       -.90949E-11
   3  Normalizat    .74083        .54424E-03    .88504E-01   -.23755E-04
   4  Prefactor     1.0656        .26622E-03    .39070E-01    .61717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.03874
  Normalizat = 0.740827
  Prefactor  = 1.06563
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.420     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .17E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.7375        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0387        5.4591        .50000       -.91449    
   3  Normalizat    .74083        .12137E-02    .39201E-03   -1.0230    
   4  Prefactor     1.0656        .59529E-03    .16166E-03   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72602e-15
Minuit parameter uncertainties:
  1  1.44175e-05
  2  73594.2
  3  0.00121373
  4  0.00059529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124661': 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) = 8710.41981239
delta logL = 2.16459739022e-10

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  5.551e-11  1.442e-05  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  1.039e+00  7.359e+04  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.066e+00  5.953e-04  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.408e-01  1.214e-03  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/124661/cmap_HighResolution_696038401_696297601_4FGL_J2358.3+3830_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2023-01-25 02:02:36.136874', job_id='124661', GAL2='1.07', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1674640956.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.16e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1762' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 02:02:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 124661: <4FGL_J2358.3+3830_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 01:50:15 2023
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:50:51 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:50:51 2023
Terminated at Wed Jan 25 02:02:37 2023
Results reported at Wed Jan 25 02:02:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1762 359.588 38.5097 696038401 696297601 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 :                                   698.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            742 sec.

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

