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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1750
RA = 359.588, Dec = 38.5097
tmin = 692928001, tmax = 693187201
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='29736', job_status='RUN', time_executed='2022-12-20 02:04:29.966239', time_epoch_executed='1671530669.97' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29736/ft1_4FGL_J2358.3+3830_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29736/ft2_4FGL_J2358.3+3830_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29736/ft1_4FGL_J2358.3+3830_daily_bin1750.fits outfile=/scratch/kocevski/29736/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1750.fits ra=359.588 dec=38.5097 rad=12.0 tmin=692928001.0 tmax=693187201.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.51
user 3.29
sys 0.20

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

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

Number of photons that the gtmktime cut: 909

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29736/ft1_filtered_4FGL_J2358.3+3830_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/29736/ft2_4FGL_J2358.3+3830_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/29736/ltcube_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.fits outfile=/scratch/kocevski/29736/expmap_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.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/29736/ltcube_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.fits
.....................!
real 190.68
user 185.60
sys 4.74

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/29736/ft1_filtered_4FGL_J2358.3+3830_daily_bin1750.fits scfile=/scratch/kocevski/29736/ft2_4FGL_J2358.3+3830_daily_bin1750.fits outfile=/scratch/kocevski/29736/cmap_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29736/ft1_filtered_4FGL_J2358.3+3830_daily_bin1750.fits scfile=/scratch/kocevski/29736/ft2_4FGL_J2358.3+3830_daily_bin1750.fits outfile=/scratch/kocevski/29736/cmap_HighResolution_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9716       1.0000          .0000       .10000E+07
     2 'norm      '    .80873E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.1806       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30592E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.0491       1.0000          .0000       .10000E+07
     6 'Prefactor '    .88818E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .94322E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    9.7079       1.0000          .0000       .10000E+07
     9 'norm      '    .25757E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .68208E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.256       1.0000          .0000       .10000E+07
    12 'norm      '    1.2374       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10857E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .14229E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .16098E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13695E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .45519E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27810E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .84516E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21164E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .22116E-06   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4732       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87738       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=   9619.406     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1886 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9692        3.9054        .13575E-07   -.10729E-01
   2  norm          .20438E-01    7.1151        .73601E-08** at limit **
   3  Prefactor     3.1811        3.5006        .21987E-08   -.25573E-03
   4  Prefactor      .0000        3.7683       -.56393E-07** at limit **
   5  Prefactor     1.0499        2.1426        .47898E-07    .14549E-02
   6  Prefactor      .0000        4.8894       -.38350E-07** at limit **
   7  Prefactor     .44909E-07    55.267        .13077E-06** at limit **
   8  Prefactor     9.7111        11.450       -.17708E-08    .44784E-01
   9  norm           .0000        1.9085       -.30734E-07** at limit **
  10  Prefactor     .48683E-07    14.953       -.84779E-07** at limit **
  11  Prefactor     11.253        7.1455        .11632E-07   -.87928E-01
  12  norm          1.2378        1.1407       -.12458E-08   -.16016E-02
  13  Prefactor     .55511E-10    4.3751       -.62412E-10** at limit **
  14  norm          .15871E-04    3.5633       -.95197E-07** at limit **
  15  norm           .0000        2.2859       -.11613E-07** at limit **
  16  Prefactor     .40523E-08    12.065       -.11305E-06** at limit **
  17  norm           .0000        2.0548        .12979E-07** at limit **
  18  Prefactor     .48739E-07    146.90       -.77280E-06** at limit **
  19  Prefactor     .11102E-08    13.855        .22769E-07** at limit **
  20  Prefactor     .15071E-06    78.710       -.53937E-06** at limit **
  21  Prefactor     .16653E-09    5.2734        .21493E-07** at limit **
  22  Normalizat    1.4730        .21518       -.32304E-05   -.27627E-03
  23  Prefactor     .87737        .99696E-01    .11334E-05   -.21770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96916
  norm       = 0.0204383
  Prefactor  = 3.18108
  Prefactor  = 0
  Prefactor  = 1.04988
  Prefactor  = 0
  Prefactor  = 4.49085e-08
  Prefactor  = 9.71111
  norm       = 0
  Prefactor  = 4.86833e-08
  Prefactor  = 11.2531
  norm       = 1.23776
  Prefactor  = 5.55112e-11
  norm       = 1.58712e-05
  norm       = 0
  Prefactor  = 4.05231e-09
  norm       = 0
  Prefactor  = 4.87388e-08
  Prefactor  = 1.11022e-09
  Prefactor  = 1.50713e-07
  Prefactor  = 1.66533e-10
  Normalizat = 1.47297
  Prefactor  = 0.877371
 **********
 **   18 **HESSE 
 **********

 FCN=   9619.406     FROM HESSE     STATUS=OK           418 CALLS     2304 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9692        17.030        .37972E-03   -1.5655    
   2  norm          .20438E-01    8.6355        .14474E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1811        3.5250        .56797E-03   -1.5672    
   4  Prefactor      .0000        3.7570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0499        2.1825        .12099E-02   -1.5687    
   6  Prefactor      .0000        4.8971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44909E-07    55.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7111        14.532        .32138E-03   -1.5646    
   9  norm           .0000        1.8801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48683E-07    14.944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.253        11.276        .29836E-03   -1.5641    
  12  norm          1.2378        1.1432        .10085E-03   -1.5686    
  13  Prefactor     .55511E-10    4.3738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15871E-04    2.4678        .56921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.2879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .40523E-08    12.323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.0229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .48739E-07    146.58        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-08    14.014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15071E-06    80.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .16653E-09    5.2720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4730        .18701        .69182E-01   -.78541    
  23  Prefactor     .87737        .85366E-01    .44716E-01   -.96936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47763e-07
Minuit parameter uncertainties:
  1  17.0297
  2  0.840228
  3  3.525
  4  7.77645e-08
  5  2.18251
  6  6.37393e-06
  7  0.0031517
  8  14.5318
  9  5.89419e-06
  10  0.00170589
  11  11.2756
  12  1.1432
  13  2.39076e-05
  14  0.0125167
  15  3.20461e-06
  16  0.000447004
  17  6.88034e-06
  18  0.00534653
  19  0.000247536
  20  0.0069614
  21  5.77627e-05
  22  0.187097
  23  0.0853787
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.507e-07  6.961e-03  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.774e-01  8.538e-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.473e+00  1.871e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29736/likelihoodResults_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.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) = 9619.41184011
delta logL = -0.006064136649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9619.40328463
delta logL = 0.00249133546276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90966       1.0000          .0000       .10000E+07
     2 'Index     '    2.8381       1.0000          .0000       10.000    
     3 'Normalizat'    1.4705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87758       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=   9619.403     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      234 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99554        88.076        .45094E-03    .14610E-02
   2  Index         2.8299        .23214        .50000        .35359E-04
   3  Normalizat    1.4704        .69644E-02    .69233E-01    .17922E-03
   4  Prefactor     .87759        .32427E-02    .44719E-01    .24519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.995543
  Index      = 2.82993
  Normalizat = 1.47036
  Prefactor  = 0.87759
 **********
 **   18 **HESSE 
 **********

 FCN=   9619.403     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99554        72.270        .18038E-04   -1.5688    
   2  Index         2.8299        3.1677        .35830E-02   -.44894    
   3  Normalizat    1.4704        .21671        .30629E-03   -.78615    
   4  Prefactor     .87759        .99590E-01    .17789E-03   -.96929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95933e-10
Minuit parameter uncertainties:
  1  16.9647
  2  3.51315
  3  0.216845
  4  0.0996108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29736': 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) = 9619.40327018
delta logL = 0.00250579076965

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  9.955e-01  1.696e+01  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  2.830e+00  3.513e+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.776e-01  9.961e-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.470e+00  2.168e-01  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/29736/cmap_HighResolution_692928001_693187201_4FGL_J2358.3+3830_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2022-12-20 02:16:25.440316', job_id='29736', GAL2='0.88', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1671531385.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.51e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1750' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 02:16:25 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 29736: <4FGL_J2358.3+3830_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 20 02:00:23 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 02:00:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 02:00:23 2022
Terminated at Tue Dec 20 02:16:26 2022
Results reported at Tue Dec 20 02:16:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1750 359.588 38.5097 692928001 693187201 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 :                                   717.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            963 sec.

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

