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


Performing analysis on: 4FGL_J2358.3+3830_weekly_bin740
RA = 359.588, Dec = 38.5097
tmin = 686534401, tmax = 687139201
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='835848', job_status='RUN', time_executed='2022-10-11 00:59:12.006857', time_epoch_executed='1665475152.01' WHERE source_name='4FGL J2358.3+3830' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835848

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835848/ft1_4FGL_J2358.3+3830_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835848/ft1_4FGL_J2358.3+3830_weekly_bin740.fits outfile=/scratch/kocevski/835848/ft1_filteredMKT_4FGL_J2358.3+3830_weekly_bin740.fits ra=359.588 dec=38.5097 rad=12.0 tmin=686534401.0 tmax=687139201.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 7.23
user 6.93
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.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/835848/ft1_filteredMKT_4FGL_J2358.3+3830_weekly_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/835848/ft1_filtered_4FGL_J2358.3+3830_weekly_bin740.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 550

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835848/ft1_filtered_4FGL_J2358.3+3830_weekly_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/835848/ltcube_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.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/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.fits
.....................!
real 30.00
user 29.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835848/ft1_filtered_4FGL_J2358.3+3830_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/835848/ltcube_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.fits outfile=/scratch/kocevski/835848/expmap_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.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/835848/ltcube_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.fits
.....................!
real 191.46
user 185.95
sys 5.16

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/835848/ft1_filtered_4FGL_J2358.3+3830_weekly_bin740.fits scfile=/scratch/kocevski/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.fits outfile=/scratch/kocevski/835848/cmap_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.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/835848/ft1_filtered_4FGL_J2358.3+3830_weekly_bin740.fits scfile=/scratch/kocevski/835848/ft2_4FGL_J2358.3+3830_weekly_bin740.fits outfile=/scratch/kocevski/835848/cmap_HighResolution_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.863       1.0000          .0000       .10000E+07
     2 'norm      '    .41976E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9897       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19068E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .96689E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5343       1.0000          .0000       .10000E+07
     7 'Prefactor '    29.079       1.0000          .0000       .10000E+07
     8 'Prefactor '    88.284       1.0000          .0000       .10000E+07
     9 'norm      '    8.0940       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.3614       1.0000          .0000       .10000E+07
    11 'Prefactor '    19.452       1.0000          .0000       .10000E+07
    12 'norm      '    3.8562       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12008E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .52055E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .44447E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    11.828       1.0000          .0000       .10000E+07
    17 'norm      '    .90449E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .32260       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20991E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .54352E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .26122E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .69662       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0075       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=   6142.559     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1952 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.813        14.071       -.66148E-06   -.31088E-01
   2  norm          .19453E-05    8.7552       -.15344E-05** at limit **
   3  Prefactor     3.0500        6.6339       -.18475E-06   -.16220E-02
   4  Prefactor     .25253E-05    8.5851        .95221E-06** at limit **
   5  Prefactor     .91260E-07    4.1312        .39278E-06** at limit **
   6  Prefactor     1.8047        25.926       -.34343E-05    .26305E-03
   7  Prefactor     29.066        4.0313       -.13939E-06    .18194E-01
   8  Prefactor     88.427        20.885        .56288E-06   -.31558    
   9  norm          8.0970        4.9474        .11849E-06   -.32414E-03
  10  Prefactor     5.2880        9.6782        .24491E-06   -.20063E-02
  11  Prefactor     19.452        1.1323       -.54916E-07   -.23843E-02
  12  norm          3.8546        1.8609        .16074E-06   -.64279E-03
  13  Prefactor     .23414E-05    20.661       -.55116E-06** at limit **
  14  norm          .27756E-09    4.8398       -.29202E-06** at limit **
  15  norm          .85876E-07    10.547        .70716E-06** at limit **
  16  Prefactor     11.844        4.2863        .20136E-06    .17934E-01
  17  norm           .0000        3.3168        .31738E-07** at limit **
  18  Prefactor     .10320E-04    37.461       -.49604E-05** at limit **
  19  Prefactor      .0000        37.008        .15180E-06** at limit **
  20  Prefactor     .10041E-05    22.501        .23156E-05** at limit **
  21  Prefactor      .0000        4.2641       -.15232E-05** at limit **
  22  Normalizat    .69638        .26089       -.29271E-04    .29604E-04
  23  Prefactor     1.0076        .11179        .12096E-04    .11526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8128
  norm       = 1.94533e-06
  Prefactor  = 3.04995
  Prefactor  = 2.52531e-06
  Prefactor  = 9.12603e-08
  Prefactor  = 1.80468
  Prefactor  = 29.0658
  Prefactor  = 88.427
  norm       = 8.09702
  Prefactor  = 5.28798
  Prefactor  = 19.4518
  norm       = 3.85464
  Prefactor  = 2.3414e-06
  norm       = 2.77556e-10
  norm       = 8.58758e-08
  Prefactor  = 11.8441
  norm       = 0
  Prefactor  = 1.03197e-05
  Prefactor  = 0
  Prefactor  = 1.00409e-06
  Prefactor  = 0
  Normalizat = 0.696377
  Prefactor  = 1.00759
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.559     FROM HESSE     STATUS=OK           420 CALLS     2372 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.813        27.183        .22445E-03   -1.5619    
   2  norm          .19453E-05    13.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0500        6.6524        .58686E-03   -1.5673    
   4  Prefactor     .25253E-05    12.287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .91260E-07    5.4808        .51941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8047        143.78        .86099E-03   -1.5681    
   7  Prefactor     29.066        39.232        .18547E-03   -1.5600    
   8  Prefactor     88.427        73.603        .10644E-03   -1.5520    
   9  norm          8.0970        4.9626        .35217E-03   -1.5651    
  10  Prefactor     5.2880        9.7606        .43379E-03   -1.5662    
  11  Prefactor     19.452        18.760        .22681E-03   -1.5620    
  12  norm          3.8546        1.8810        .51365E-03   -1.5669    
  13  Prefactor     .23414E-05    24.909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .27756E-09    4.8346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .85876E-07    10.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.844        24.768        .29103E-03   -1.5639    
  17  norm           .0000        3.2422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10320E-04    101.12        .99064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        36.684        .16972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10041E-05    31.720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        4.2694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .69638        .25432        .95106E-01   -1.0404    
  23  Prefactor     1.0076        .10069        .43711E-01   -.92477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84485e-06
Minuit parameter uncertainties:
  1  27.183
  2  0.0100863
  3  6.65244
  4  0.0111409
  5  0.00141467
  6  32.2172
  7  39.2324
  8  73.6042
  9  4.96257
  10  9.76063
  11  18.7605
  12  1.88099
  13  0.0152738
  14  7.00193e-05
  15  0.00191533
  16  24.7685
  17  1.19186e-05
  18  0.0646099
  19  5.96049e-05
  20  0.0112873
  21  1.53258e-05
  22  0.254751
  23  0.100708
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.004e-06  1.129e-02  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.008e+00  1.007e-01  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:  6.964e-01  2.548e-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: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835848/likelihoodResults_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.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) = 6142.57376998
delta logL = -0.0150933302111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6142.5586773
delta logL = -6.57286364003e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10433E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .72288       1.0000          .0000       10.000    
     3 'Normalizat'    .69618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0077       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6141.554     FROM MIGRAD    STATUS=FAILED       393 CALLS      556 TOTAL
                     EDM=   .18E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45630E-07    .12786E-05     .0000    ** at limit **
   2  Index         9.9784        7.1725         .0000       -.24201E-02
   3  Normalizat    .57519        .95336E-01     .0000       -.56916E-02
   4  Prefactor     1.0413        .37407E-01     .0000       -.61393E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6141.554     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      647 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45630E-07    .12786E-05    .36215E-08** at limit **
   2  Index         9.9784        7.1725        .11810E-01   -.24201E-02
   3  Normalizat    .57519        .95336E-01    .10324E-03   -.56916E-02
   4  Prefactor     1.0413        .37407E-01    .10473E-04   -.61393E-02
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6141.554     FROM MIGRAD    STATUS=FAILED       150 CALLS      797 TOTAL
                     EDM=   .26E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45464E-07    .87630E-06    .74901E-06** at limit **
   2  Index         9.9800        5.3957        .12891E-01    .11507E-04
   3  Normalizat    .57523        .66136E-01    .92268E-04   -.39675E-04
   4  Prefactor     1.0413        .28568E-01    .30341E-04   -.74010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54636e-08
  Index      = 9.98002
  Normalizat = 0.575226
  Prefactor  = 1.04126
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.554     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      826 TOTAL
                     EDM=   .24E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45464E-07    .83195E-06    .74901E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9800        5.6001        .51563E-03    1.4814    
   3  Normalizat    .57523        .63431E-01    .18454E-04   -1.0905    
   4  Prefactor     1.0413        .27597E-01    .60682E-05   -.91367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 24.3942
Minuit parameter uncertainties:
  1  3.88909e-07
  2  2.44709
  3  0.0634392
  4  0.0275977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835848': 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): 1
logL (Free Index) = 6141.55361904
delta logL = 1.0050576037

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  4.546e-08  3.889e-07  0.000e+00  1.000e+06 ( 1.000e-14)
489        Index:  9.980e+00  2.447e+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:  1.041e+00  2.760e-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:  5.752e-01  6.344e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 359.588 38.510
Photon Index (Free Index): 9.98 +/- 2.45
Photon Flux (Free Index): 1.01e-07 +/- 1.35e-07
Energy Flux (Free Index): 1.13e-05 +/- 1.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/835848/cmap_HighResolution_686534401_687139201_4FGL_J2358.3+3830_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='1.01e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2022-10-11 01:10:08.450963', photon_index_error2='2.45', photon_index2='9.98', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='1.56e-05', EG='0.70', time_epoch_completed='1665475808.45', return_code='0', job_id='835848', GAL2='1.04', EG2='0.58', return_code2='1', photon_flux_error2='1.35e-07', ts2='2.22', photon_index='2.17' WHERE bin_id='740' AND source_name='4FGL J2358.3+3830' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:10:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 835848: <4FGL_J2358.3+3830_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2358.3+3830_weekly_bin740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 11 00:55:34 2022
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 00:55:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 00:55:35 2022
Terminated at Tue Oct 11 01:10:09 2022
Results reported at Tue Oct 11 01:10:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_weekly_bin740 359.588 38.5097 686534401 687139201 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

