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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin1768
RA = 139.19, Dec = 38.9479
tmin = 697593601, tmax = 697852801
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='266605', job_status='RUN', time_executed='2023-02-12 00:40:09.072786', time_epoch_executed='1676191209.07' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266605/ft1_4FGL_J0916.7+3856_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266605/ft1_4FGL_J0916.7+3856_daily_bin1768.fits outfile=/scratch/kocevski/266605/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1768.fits ra=139.19 dec=38.9479 rad=12.0 tmin=697593601.0 tmax=697852801.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.80
user 3.54
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.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/266605/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.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.59
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 592

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/266605/ltcube_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.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/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits
.....................!
real 16.74
user 16.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/266605/ltcube_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.fits outfile=/scratch/kocevski/266605/expmap_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.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/266605/ltcube_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.fits
.....................!
real 192.44
user 186.64
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
Added 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J0916.7+3856 @ 139.19 38.9479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits scfile=/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits outfile=/scratch/kocevski/266605/cmap_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.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=139.19 yref=38.9479 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits scfile=/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits outfile=/scratch/kocevski/266605/cmap_HighResolution_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.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=139.19 yref=38.9479 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.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266605/Model_4FGL_J0916.7+3856_daily_bin1768.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/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits.....................!
real 56.34
user 54.99
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits', '/scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits', expMap='/scratch/kocevski/266605/expmap_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.fits', expCube='/scratch/kocevski/266605/ltcube_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266605/Model_4FGL_J0916.7+3856_daily_bin1768.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0916.7+3856'

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  7.215e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266605/ft1_filtered_4FGL_J0916.7+3856_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/266605/ft2_4FGL_J0916.7+3856_daily_bin1768.fits
Exposure map: /scratch/kocevski/266605/expmap_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.fits
Exposure cube: /scratch/kocevski/266605/ltcube_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266605/Model_4FGL_J0916.7+3856_daily_bin1768.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) = 6499.23191143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30114       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.5714       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.4554       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4283       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7970       1.0000          .0000       .10000E+07
     6 'norm      '    3.5482       1.0000          .0000       .10000E+07
     7 'Prefactor '    80.097       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12925E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.2076       1.0000          .0000       .10000E+07
    10 'norm      '    .60829       1.0000          .0000       .10000E+07
    11 'Prefactor '    .52398E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .44223       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.3634       1.0000          .0000       .10000E+07
    14 'norm      '    6.9379       1.0000          .0000       .10000E+07
    15 'Prefactor '    .56909       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.2722       1.0000          .0000       .10000E+07
    17 'Prefactor '    .46883       1.0000          .0000       .10000E+07
    18 'Prefactor '    .83051E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .92432E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .32567E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .13633E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.8214       1.0000          .0000       .10000E+07
    23 'norm      '    25.848       1.0000          .0000       .10000E+07
    24 'Normalizat'    .85186       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6499.107     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2156 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30204        .38142        .41155E-09   -.25531E-03
   2  Prefactor     8.6143        2.5970       -.37794E-07   -.92351E-03
   3  Prefactor     2.4952        2.9427        .11469E-07   -.16729E-03
   4  Prefactor     .55511E-10    387.09        .13204E-05** at limit **
   5  Prefactor     3.9468        9.9822       -.73129E-07    .33317E-03
   6  norm          3.5481        5.5046       -.97311E-08   -.37869E-04
   7  Prefactor     80.197        1.2320       -.61424E-09    .10056E-01
   8  Prefactor     .24980E-08    18.057       -.15206E-06** at limit **
   9  Prefactor     9.2060        4.8461       -.96113E-08   -.82268E-04
  10  norm          .60933        1.5899        .80814E-07   -.67653E-03
  11  Prefactor     .22204E-09    27.071        .24680E-06** at limit **
  12  norm          .44387        .66931        .28992E-08   -.12143E-02
  13  Prefactor     2.3536        4.1542        .35185E-07   -.58616E-03
  14  norm          6.9930        8.1467        .11416E-06   -.41122E-03
  15  Prefactor     .55825        1.6921       -.60265E-07    .86765E-04
  16  Prefactor     2.2697        2.7638        .72775E-08   -.79307E-04
  17  Prefactor     .54130        17.521        .20861E-06    .18336E-04
  18  Prefactor     .13489E-07    13.114       -.23768E-06** at limit **
  19  norm           .0000        7.1601       -.23117E-06** at limit **
  20  Prefactor     .68945E-07    5.4596       -.26510E-06** at limit **
  21  Prefactor     .28921E-07    8.3538       -.20527E-06** at limit **
  22  Prefactor     3.7927        9.5398       -.74747E-07    .44455E-04
  23  norm          26.253        13.720       -.48535E-07   -.78138E-02
  24  Normalizat    .85220        .20617       -.55252E-06   -.18716E-04
  25  Prefactor     1.1723        .21629        .75173E-06   -.19171E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.302037
  Prefactor  = 8.61433
  Prefactor  = 2.49524
  Prefactor  = 5.55112e-11
  Prefactor  = 3.94675
  norm       = 3.54811
  Prefactor  = 80.1974
  Prefactor  = 2.498e-09
  Prefactor  = 9.206
  norm       = 0.609333
  Prefactor  = 2.22045e-10
  norm       = 0.443865
  Prefactor  = 2.35357
  norm       = 6.99296
  Prefactor  = 0.558253
  Prefactor  = 2.26969
  Prefactor  = 0.541303
  Prefactor  = 1.34892e-08
  norm       = 0
  Prefactor  = 6.89448e-08
  Prefactor  = 2.89213e-08
  Prefactor  = 3.79266
  norm       = 26.2527
  Normalizat = 0.852197
  Prefactor  = 1.17231
 **********
 **   18 **HESSE 
 **********

 FCN=   6499.107     FROM HESSE     STATUS=OK           493 CALLS     2649 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30204        .43093        .10197E-02   -1.5697    
   2  Prefactor     8.6143        19.340        .34215E-03   -1.5649    
   3  Prefactor     2.4952        3.5981        .65247E-03   -1.5676    
   4  Prefactor     .55511E-10    40.040        .11758E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9468        10.680        .51778E-03   -1.5668    
   6  norm          3.5481        5.5020        .53634E-03   -1.5670    
   7  Prefactor     80.197        31.722        .11174E-03   -1.5529    
   8  Prefactor     .24980E-08    18.369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2060        4.8858        .33004E-03   -1.5647    
  10  norm          .60933        1.6052        .68489E-03   -1.5692    
  11  Prefactor     .22204E-09    27.343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .44387        .75322        .84749E-03   -1.5695    
  13  Prefactor     2.3536        4.5122        .66631E-03   -1.5677    
  14  norm          6.9930        8.1980        .38065E-03   -1.5655    
  15  Prefactor     .55825        1.7385        .72044E-03   -1.5693    
  16  Prefactor     2.2697        2.7867        .68101E-03   -1.5678    
  17  Prefactor     .54130        16.913        .81910E-03   -1.5693    
  18  Prefactor     .13489E-07    14.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        7.1738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .68945E-07    12.348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .28921E-07    11.535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7927        9.5620        .51607E-03   -1.5669    
  23  norm          26.253        14.077        .19673E-03   -1.5605    
  24  Normalizat    .85220        .17837        .44283E-01   -.98161    
  25  Prefactor     1.1723        .18495        .57261E-01   -.87188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11097e-06
Minuit parameter uncertainties:
  1  0.430928
  2  19.3399
  3  3.5981
  4  8.09979e-05
  5  10.6803
  6  5.50198
  7  31.7223
  8  0.00042712
  9  4.88579
  10  1.60519
  11  0.000159501
  12  0.75322
  13  4.51222
  14  8.19805
  15  1.73846
  16  2.78672
  17  6.05154
  18  0.000890412
  19  6.7956e-06
  20  0.00184574
  21  0.00115563
  22  9.56201
  23  14.0767
  24  0.178491
  25  0.18505
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.220e-10  1.595e-04  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  2.457e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.172e+00  1.850e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  8.522e-01  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266605/likelihoodResults_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.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) = 6499.12506234
delta logL = -0.0183569353449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6498.86919851
delta logL = 0.237506900326

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6498.869     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      235 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79167        30.753        .53652E-03    .15561E-01
   2  Index         4.2235        3.8171        .14296        .16185E-03
   3  Normalizat    .80907        .39479E-01    .43730E-01    .40724E-04
   4  Prefactor     1.2004        .43525E-01    .56665E-01    .59558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.791671
  Index      = 4.22354
  Normalizat = 0.809068
  Prefactor  = 1.20036
 **********
 **   18 **HESSE 
 **********

 FCN=   6498.869     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79167        85.885        .10199E-04   -1.5690    
   2  Index         4.2235        6.6120        .81189E-02   -.15592    
   3  Normalizat    .80907        .16394        .27050E-03   -.99733    
   4  Prefactor     1.2004        .17769        .25056E-03   -.86320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82873e-09
Minuit parameter uncertainties:
  1  16.4918
  2  10.1663
  3  0.164041
  4  0.177776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266605': 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) = 6498.86919828
delta logL = 0.237507127757

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  7.917e-01  1.649e+01  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  4.224e+00  1.017e+01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.200e+00  1.778e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  8.091e-01  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 139.190 38.948

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/266605/cmap_HighResolution_697593601_697852801_4FGL_J0916.7+3856_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2023-02-12 00:51:55.725158', job_id='266605', GAL2='1.20', fit_tolerance='1e-08', EG2='0.81', EG='0.85', time_epoch_completed='1676191915.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.38e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1768' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 00:51:55 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 266605: <4FGL_J0916.7+3856_daily_bin1768> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin1768> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Feb 12 00:35:27 2023
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:39:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:39:05 2023
Terminated at Sun Feb 12 00:51:56 2023
Results reported at Sun Feb 12 00:51:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin1768 139.19 38.9479 697593601 697852801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0916.7+3856 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            989 sec.

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

