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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin1758
RA = 139.19, Dec = 38.9479
tmin = 695001601, tmax = 695260801
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='362218', job_status='RUN', time_executed='2023-01-13 00:32:03.312060', time_epoch_executed='1673598723.31' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362218/ft1_4FGL_J0916.7+3856_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362218/ft1_4FGL_J0916.7+3856_daily_bin1758.fits outfile=/scratch/kocevski/362218/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1758.fits ra=139.19 dec=38.9479 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.77
user 2.53
sys 0.22

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

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

Number of photons that the gtmktime cut: 138

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/362218/ltcube_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.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/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits
.....................!
real 16.35
user 15.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/362218/ltcube_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.fits outfile=/scratch/kocevski/362218/expmap_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.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/362218/ltcube_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.fits
.....................!
real 192.32
user 186.46
sys 5.09

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/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits scfile=/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits outfile=/scratch/kocevski/362218/cmap_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits scfile=/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits outfile=/scratch/kocevski/362218/cmap_HighResolution_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362218/Model_4FGL_J0916.7+3856_daily_bin1758.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/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits.......................!
real 24.74
user 23.33
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits', '/scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits', expMap='/scratch/kocevski/362218/expmap_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.fits', expCube='/scratch/kocevski/362218/ltcube_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362218/Model_4FGL_J0916.7+3856_daily_bin1758.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/362218/ft1_filtered_4FGL_J0916.7+3856_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/362218/ft2_4FGL_J0916.7+3856_daily_bin1758.fits
Exposure map: /scratch/kocevski/362218/expmap_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.fits
Exposure cube: /scratch/kocevski/362218/ltcube_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362218/Model_4FGL_J0916.7+3856_daily_bin1758.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) = 1659.56889201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0519       1.0000          .0000       .10000E+07
     2 'Prefactor '    .71645E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31665E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .38486E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .56430E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .36962E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    205.84       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34185E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    19.149       1.0000          .0000       .10000E+07
    10 'norm      '    .50276E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    53.304       1.0000          .0000       .10000E+07
    12 'norm      '    .54770       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.2877       1.0000          .0000       .10000E+07
    14 'norm      '    .94021E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    5.6020       1.0000          .0000       .10000E+07
    16 'Prefactor '    26.857       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7720       1.0000          .0000       .10000E+07
    18 'Prefactor '    12.285       1.0000          .0000       .10000E+07
    19 'norm      '    .25516E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .17410E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .21330E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.902       1.0000          .0000       .10000E+07
    23 'norm      '    37.359       1.0000          .0000       .10000E+07
    24 'Normalizat'    .31071       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2255       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=   1659.042     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2209 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0526        5.1414        .89091E-06    .99925E-03
   2  Prefactor     .17486E-07    124.94       -.13311E-04** at limit **
   3  Prefactor     .11102E-09    34.857        .39041E-05** at limit **
   4  Prefactor     .49960E-09    60.072        .66742E-06** at limit **
   5  Prefactor     .11102E-09    16.244       -.48639E-06** at limit **
   6  norm           .0000        15.528        .12853E-06** at limit **
   7  Prefactor     224.73        231.68       -.10665E-04    .85587E-03
   8  Prefactor     .55511E-10    51.602        .28739E-06** at limit **
   9  Prefactor     18.626        12.311        .47607E-07   -.53327E-03
  10  norm          .55511E-10    2.4793        .50491E-06** at limit **
  11  Prefactor     59.090        56.806       -.36618E-05    .90152E-03
  12  norm          .53173        1.6205        .52283E-07    .24105E-02
  13  Prefactor     6.5211        10.844       -.53917E-06    .21926E-02
  14  norm          .41966E-07    54.866        .11561E-04** at limit **
  15  Prefactor     5.5214        6.7846       -.57829E-06   -.82923E-03
  16  Prefactor     26.152        7.9025       -.39760E-06    .79928E-02
  17  Prefactor     1.6773        22.158       -.63957E-05   -.19343E-02
  18  Prefactor     12.305        6.7428       -.15724E-05    .12918E-01
  19  norm           .0000        11.742       -.56520E-06** at limit **
  20  Prefactor     .33307E-09    17.681       -.38637E-06** at limit **
  21  Prefactor     .31641E-08    41.377       -.72153E-06** at limit **
  22  Prefactor     11.211        24.025       -.10130E-04   -.28028E-02
  23  norm          36.632        23.469       -.33786E-05   -.30005E-02
  24  Normalizat    .30741        .38835        .51734E-04    .85420E-04
  25  Prefactor     1.2246        .42625        .34588E-04    .75836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05258
  Prefactor  = 1.7486e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 4.996e-10
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 224.734
  Prefactor  = 5.55112e-11
  Prefactor  = 18.6258
  norm       = 5.55112e-11
  Prefactor  = 59.0904
  norm       = 0.531734
  Prefactor  = 6.52109
  norm       = 4.19664e-08
  Prefactor  = 5.52143
  Prefactor  = 26.1521
  Prefactor  = 1.67733
  Prefactor  = 12.3049
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 3.16414e-09
  Prefactor  = 11.2109
  norm       = 36.6324
  Normalizat = 0.307412
  Prefactor  = 1.22457
 **********
 **   18 **HESSE 
 **********

 FCN=   1659.042     FROM HESSE     STATUS=OK           487 CALLS     2696 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0526        5.2207        .12047E-02   -1.5687    
   2  Prefactor     .17486E-07    125.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    34.761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49960E-09    60.016        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    16.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        15.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     224.73        232.08        .69707E-04   -1.5408    
   8  Prefactor     .55511E-10    51.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.626        12.323        .22860E-03   -1.5622    
  10  norm          .55511E-10    2.4701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.090        62.811        .13698E-03   -1.5554    
  12  norm          .53173        1.7974        .74049E-03   -1.5693    
  13  Prefactor     6.5211        11.905        .40007E-03   -1.5657    
  14  norm          .41966E-07    25.945        .93302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5214        6.9018        .42421E-03   -1.5661    
  16  Prefactor     26.152        19.913        .19300E-03   -1.5606    
  17  Prefactor     1.6773        80.032        .78631E-03   -1.5682    
  18  Prefactor     12.305        37.851        .28555E-03   -1.5638    
  19  norm           .0000        11.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33307E-09    17.670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .31641E-08    41.358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.211        24.652        .30318E-03   -1.5641    
  23  norm          36.632        23.760        .16362E-03   -1.5587    
  24  Normalizat    .30741        .38957        .90056E-01   -1.2240    
  25  Prefactor     1.2246        .40564        .56145E-01   -.85579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35192e-07
Minuit parameter uncertainties:
  1  4.68836
  2  0.00295917
  3  0.000123191
  4  0.000339122
  5  8.44989e-05
  6  2.08835e-05
  7  232.092
  8  8.94856e-05
  9  12.3226
  10  2.08761e-05
  11  62.8117
  12  1.79738
  13  11.9053
  14  0.00208657
  15  6.90177
  16  19.913
  17  23.1727
  18  37.8521
  19  2.37445e-05
  20  0.000147996
  21  0.000721441
  22  24.6521
  23  23.7597
  24  0.393075
  25  0.406684
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.909e+01  6.281e+01  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.225e+00  4.067e-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:  3.074e-01  3.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 1.13e-07
Energy Flux (Fixed Index): 3.25e-05 +/- 3.46e-05

TS (Fixed Index): 1.90
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 3.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362218/likelihoodResults_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.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) = 1658.96265414
delta logL = 0.0793324577239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1658.96128943
delta logL = 0.0806971712889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.356       1.0000          .0000       .10000E+07
     2 'Index     '    2.1803       1.0000          .0000       10.000    
     3 'Normalizat'    .32121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2138       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1658.961     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      283 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.469        71.661        .23353E-04   -.97365E-05
   2  Index         2.1815        .66052        .53795E-02    .57468E-04
   3  Normalizat    .32055        .33462        .39097E-03   -.97267E-05
   4  Prefactor     1.2145        .40272        .24905E-03    .23178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.469
  Index      = 2.18151
  Normalizat = 0.320547
  Prefactor  = 1.21446
 **********
 **   18 **HESSE 
 **********

 FCN=   1658.961     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.469        71.087        .93411E-06   -1.5537    
   2  Index         2.1815        .65511        .10759E-02   -.59886    
   3  Normalizat    .32055        .33460        .15639E-04   -1.2163    
   4  Prefactor     1.2145        .40273        .49810E-04   -.85887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10347e-11
Minuit parameter uncertainties:
  1  71.0875
  2  0.657885
  3  0.336714
  4  0.403755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362218': 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) = 1658.9612833
delta logL = 0.0807032951154

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  7.347e+01  7.109e+01  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  2.182e+00  6.579e-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.214e+00  4.038e-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:  3.205e-01  3.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.18 +/- 0.66
Photon Flux (Free Index): 8.75e-08 +/- 9.46e-08
Energy Flux (Free Index): 4.07e-05 +/- 4.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/362218/cmap_HighResolution_695001601_695260801_4FGL_J0916.7+3856_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='4.07e-05', photon_flux_error='1.13e-07', dlogl='8.07e-02', energy_flux='3.25e-05', photon_flux2='8.75e-08', job_status='DONE', time_completed='2023-01-13 00:39:04.678073', photon_index_error2='0.66', photon_index2='2.18', ts='1.90', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='3.36e-07', energy_flux_error2='4.56e-05', EG='0.31', time_epoch_completed='1673599144.68', return_code='0', job_id='362218', GAL2='1.21', EG2='0.32', return_code2='0', energy_flux_error='3.46e-05', photon_flux_error2='9.46e-08', ts2='2.13', photon_index='2.46' WHERE bin_id='1758' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:39:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 362218: <4FGL_J0916.7+3856_daily_bin1758> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:30:20 2023
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:31:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:31:23 2023
Terminated at Fri Jan 13 00:39:05 2023
Results reported at Fri Jan 13 00:39:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin1758 139.19 38.9479 695001601 695260801 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 :                                   423.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   462 sec.
    Turnaround time :                            525 sec.

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

