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


Performing analysis on: 4FGL_J0316.2+0905_daily_bin1723
RA = 49.0583, Dec = 9.0946
tmin = 685929601, tmax = 686188801
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='430422', job_status='RUN', time_executed='2022-09-30 00:06:10.133754', time_epoch_executed='1664521570.13' WHERE source_name='4FGL J0316.2+0905' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430422

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430422/ft1_4FGL_J0316.2+0905_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430422/ft1_4FGL_J0316.2+0905_daily_bin1723.fits outfile=/scratch/kocevski/430422/ft1_filteredMKT_4FGL_J0316.2+0905_daily_bin1723.fits ra=49.0583 dec=9.0946 rad=12.0 tmin=685929601.0 tmax=686188801.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.65
user 3.33
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.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/430422/ft1_filteredMKT_4FGL_J0316.2+0905_daily_bin1723.fits evtable="EVENTS" outfile="/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 770

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430422/ltcube_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.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/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits
.....................!
real 12.93
user 12.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430422/ltcube_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.fits outfile=/scratch/kocevski/430422/expmap_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.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/430422/ltcube_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.fits
.....................!
real 198.59
user 193.98
sys 4.23

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
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J0316.2+0905 @ 49.0583 9.0946

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits scfile=/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits outfile=/scratch/kocevski/430422/cmap_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.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=49.0583 yref=9.0946 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 1.06
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits scfile=/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits outfile=/scratch/kocevski/430422/cmap_HighResolution_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.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=49.0583 yref=9.0946 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.67
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430422/Model_4FGL_J0316.2+0905_daily_bin1723.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 GAL_V02
Working on...
/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits.....................!
real 108.68
user 106.65
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits', '/scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits', expMap='/scratch/kocevski/430422/expmap_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.fits', expCube='/scratch/kocevski/430422/ltcube_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430422/Model_4FGL_J0316.2+0905_daily_bin1723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0316.2+0905'

4FGL J0316.2+0905
   Spectrum: PowerLaw
300    Prefactor:  2.138e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.929e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.754e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430422/ft1_filtered_4FGL_J0316.2+0905_daily_bin1723.fits
Spacecraft file(s): /scratch/kocevski/430422/ft2_4FGL_J0316.2+0905_daily_bin1723.fits
Exposure map: /scratch/kocevski/430422/expmap_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.fits
Exposure cube: /scratch/kocevski/430422/ltcube_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430422/Model_4FGL_J0316.2+0905_daily_bin1723.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) = 8295.82525978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19373E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .47648E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15870E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .95112       1.0000          .0000       .10000E+07
     5 'Prefactor '    33.653       1.0000          .0000       .10000E+07
     6 'Prefactor '    16.843       1.0000          .0000       .10000E+07
     7 'norm      '    .11499E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .61664E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16251E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .35882E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .56588E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .17008E-05   1.0000          .0000       .10000E+07
    13 'norm      '    6.6067       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37261E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.7526       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.777       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29722E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.8846       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.7265       1.0000          .0000       .10000E+07
    20 'norm      '    .45245E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .42491E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    .89927       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8295.774     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1451 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54401E-08    3.3247        .46747E-06** at limit **
   2  Prefactor     .41728E-06    13.466       -.98953E-06** at limit **
   3  Prefactor     .57732E-08    5.1884        .26378E-06** at limit **
   4  norm          .95032        .53252        .26255E-07   -.15977E-04
   5  Prefactor     34.456        23.961        .10930E-05    .12328    
   6  Prefactor     16.386        2.3415        .59007E-08    .89518E-02
   7  norm          .39968E-08    3.2742        .13890E-06** at limit **
   8  Prefactor     .33784E-06    5.9275       -.13273E-05** at limit **
   9  Prefactor     .17208E-06    6.9718       -.12842E-05** at limit **
  10  Prefactor     .11824E-07    7.1228       -.12738E-05** at limit **
  11  Prefactor     .56274E-04    33.541       -.37223E-05** at limit **
  12  norm           .0000        4.3176        .28007E-06** at limit **
  13  norm          6.6042        3.8411        .12614E-06    .18777E-02
  14  Prefactor      .0000        2.9173       -.21833E-06** at limit **
  15  norm          1.8060        7.8036       -.86283E-06    .45711E-03
  16  Prefactor     17.686        1.4681        .41751E-07    .20024E-02
  17  Prefactor     .46629E-08    3.8728       -.23821E-06** at limit **
  18  Prefactor     9.8868        3.4090        .39317E-07    .95863E-01
  19  Prefactor     9.7210        1.2202        .35867E-08    .43723E-02
  20  norm          .28691E-04    32.112        .46162E-06** at limit **
  21  Prefactor     .47062E-06    17.133       -.17409E-05** at limit **
  22  Normalizat    .90066        .22098       -.23781E-04   -.35797E-04
  23  Prefactor     .89425        .78999E-01    .35654E-05   -.11474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44009e-09
  Prefactor  = 4.17277e-07
  Prefactor  = 5.77316e-09
  norm       = 0.950315
  Prefactor  = 34.4562
  Prefactor  = 16.3859
  norm       = 3.9968e-09
  Prefactor  = 3.37841e-07
  Prefactor  = 1.72085e-07
  Prefactor  = 1.18239e-08
  Prefactor  = 5.62744e-05
  norm       = 0
  norm       = 6.60415
  Prefactor  = 0
  norm       = 1.80604
  Prefactor  = 17.6857
  Prefactor  = 4.66294e-09
  Prefactor  = 9.8868
  Prefactor  = 9.721
  norm       = 2.86907e-05
  Prefactor  = 4.70624e-07
  Normalizat = 0.900658
  Prefactor  = 0.894246 **********
 **   18 **HESSE 
 **********

 FCN=   8295.774     FROM HESSE     STATUS=OK           424 CALLS     1875 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54401E-08    3.3360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41728E-06    15.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .57732E-08    5.1918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .95032        .53264        .42288E-03   -1.5688    
   5  Prefactor     34.456        32.451        .17240E-03   -1.5591    
   6  Prefactor     16.386        21.523        .24377E-03   -1.5627    
   7  norm          .39968E-08    3.2794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33784E-06    21.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17208E-06    17.055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11824E-07    17.945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .56274E-04    3.6799        .61339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.3303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6042        3.8521        .39018E-03   -1.5657    
  14  Prefactor      .0000        2.9203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8060        7.8677        .79158E-03   -1.5681    
  16  Prefactor     17.686        18.863        .23727E-03   -1.5624    
  17  Prefactor     .46629E-08    3.8623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8868        13.379        .31848E-03   -1.5645    
  19  Prefactor     9.7210        10.370        .32107E-03   -1.5646    
  20  norm          .28691E-04    3.6892        .55496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .47062E-06    22.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90066        .21835        .90078E-01   -.96437    
  23  Prefactor     .89425        .73332E-01    .32052E-01   -.96342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74538e-07
Minuit parameter uncertainties:
  1  0.000269591
  2  0.00502287
  3  0.000345861
  4  0.532637
  5  32.4513
  6  21.5233
  7  0.000229001
  8  0.00538663
  9  0.00342657
  10  0.000920867
  11  0.0287808
  12  8.21918e-06
  13  3.85213
  14  1.48853e-05
  15  7.5391
  16  18.8633
  17  0.000268955
  18  13.3791
  19  10.3697
  20  0.0205762
  21  0.00647576
  22  0.218568
  23  0.0733405
DDone.

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

Extracting fit parameters...

4FGL J0316.2+0905
   Spectrum: PowerLaw
300    Prefactor:  4.663e-09  2.690e-04  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.929e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.754e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.942e-01  7.334e-02  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  9.007e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 49.058 9.095
Photon Flux Upper Limit: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430422/likelihoodResults_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.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) = 8295.90926503
delta logL = -0.135199407898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8293.59736245
delta logL = 2.1767031649

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8295.774     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      418 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    1.7608        .99621E-07** at limit **
   2  Index         1.0925        2.2011       -.17998E-04   -.13419E-09
   3  Normalizat    .90066        .22206       -.25863E-05   -.11726E-03
   4  Prefactor     .89425        .78890E-01   -.27050E-06   -.36246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 1.09254
  Normalizat = 0.900658
  Prefactor  = 0.894246
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.774     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      457 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    392.74        .42118E-03   -39.270    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0925        7.8658        .50000       -.14576E+06
   3  Normalizat    .90066        .15650        .90074E-01    369.74    
   4  Prefactor     .89425        .55775E-01    .32052E-01    11.603    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27546e-08
Minuit parameter uncertainties:
  1  0.000383962
  2  47.3687
  3  0.156583
  4  0.0557784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430422': 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) = 8295.77406562
delta logL = 5.52972778678e-10

Extracting fit parameters...

4FGL J0316.2+0905
   Spectrum: PowerLaw
300    Prefactor:  1.110e-10  3.840e-04  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.093e+00  4.737e+01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  2.754e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.942e-01  5.578e-02  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  9.007e-01  1.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 49.058 9.095

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/430422/cmap_HighResolution_685929601_686188801_4FGL_J0316.2+0905_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2022-09-30 00:17:32.958033', job_id='430422', GAL2='0.89', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1664522252.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.53e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1723' AND source_name='4FGL J0316.2+0905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:17:32 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 430467: <4FGL_J0316.2+0905_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0316.2+0905_daily_bin1723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:22 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:05:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:05:55 2022
Terminated at Fri Sep 30 00:17:32 2022
Results reported at Fri Sep 30 00:17:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0316.2+0905_daily_bin1723 49.0583 9.0946 685929601 686188801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0316.2+0905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            730 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 430422: <4FGL_J0316.2+0905_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0316.2+0905_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:18 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:05:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:05:48 2022
Terminated at Fri Sep 30 00:17:33 2022
Results reported at Fri Sep 30 00:17:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0316.2+0905_daily_bin1723 49.0583 9.0946 685929601 686188801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0316.2+0905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             361.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            735 sec.

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

