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


Performing analysis on: 4FGL_J0916.7+3856_weekly_bin754
RA = 139.19, Dec = 38.9479
tmin = 695001601, tmax = 695606401
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='949728', job_status='RUN', time_executed='2023-01-17 00:54:51.448100', time_epoch_executed='1673945691.45' WHERE source_name='4FGL J0916.7+3856' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949728

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=695001601.0 && nMetStart<695606401.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<695606401.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949728/ft1_4FGL_J0916.7+3856_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949728/ft1_4FGL_J0916.7+3856_weekly_bin754.fits outfile=/scratch/kocevski/949728/ft1_filteredMKT_4FGL_J0916.7+3856_weekly_bin754.fits ra=139.19 dec=38.9479 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.65
user 5.35
sys 0.23

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

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

Number of photons that the gtmktime cut: 217

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949728/ft1_filtered_4FGL_J0916.7+3856_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/949728/ltcube_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.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/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits
.....................!
real 36.68
user 36.14
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949728/ft1_filtered_4FGL_J0916.7+3856_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/949728/ltcube_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.fits outfile=/scratch/kocevski/949728/expmap_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.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/949728/ltcube_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.fits
.....................!
real 193.33
user 185.89
sys 6.79

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/949728/ft1_filtered_4FGL_J0916.7+3856_weekly_bin754.fits scfile=/scratch/kocevski/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits outfile=/scratch/kocevski/949728/cmap_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.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.58
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949728/ft1_filtered_4FGL_J0916.7+3856_weekly_bin754.fits scfile=/scratch/kocevski/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits outfile=/scratch/kocevski/949728/cmap_HighResolution_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.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.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/949728/ft1_filtered_4FGL_J0916.7+3856_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/949728/ft2_4FGL_J0916.7+3856_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949728/Model_4FGL_J0916.7+3856_weekly_bin754.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/949728/ft1_filtered_4FGL_J0916.7+3856_weekly_bin754.fits......................!
real 31.23
user 29.83
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74503E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .35808E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    24.294       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18535E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13357E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .10604E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    166.17       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15040E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    28.906       1.0000          .0000       .10000E+07
    10 'norm      '    .87995E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    14.739       1.0000          .0000       .10000E+07
    12 'norm      '    .28323       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3749       1.0000          .0000       .10000E+07
    14 'norm      '    .23253E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.2210       1.0000          .0000       .10000E+07
    16 'Prefactor '    15.529       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.791       1.0000          .0000       .10000E+07
    18 'Prefactor '    .53191E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .33067E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .55016E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .17028E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    21.066       1.0000          .0000       .10000E+07
    23 'norm      '    40.052       1.0000          .0000       .10000E+07
    24 'Normalizat'    .53902       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98917       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=   2658.762     FROM MIGRAD    STATUS=CONVERGED    237 CALLS     2209 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    9.6274       -.62161E-06** at limit **
   2  Prefactor     .22204E-09    77.054       -.11867E-05** at limit **
   3  Prefactor     24.332        22.323        .52418E-07   -.71541E-02
   4  Prefactor     .11102E-09    38.083        .87544E-06** at limit **
   5  Prefactor     .55511E-10    10.323       -.39295E-06** at limit **
   6  norm           .0000        5.9225       -.19430E-06** at limit **
   7  Prefactor     170.88        194.25       -.19627E-05   -.42846E-04
   8  Prefactor      .0000        35.787        .37992E-06** at limit **
   9  Prefactor     28.680        11.312       -.59641E-08    .92338E-03
  10  norm           .0000        1.7764        .49117E-07** at limit **
  11  Prefactor     15.601        33.655       -.88344E-06    .43996E-03
  12  norm          .27841        1.1972        .17133E-06    .59811E-03
  13  Prefactor     3.4347        8.0189       -.50379E-06   -.13502E-03
  14  norm          .55511E-10    12.622       -.42344E-06** at limit **
  15  Prefactor     1.2093        4.2666       -.13347E-06    .28172E-03
  16  Prefactor     15.447        14.861       -.18751E-06    .16414E-02
  17  Prefactor     11.799        10.182        .18752E-06   -.12577E-02
  18  Prefactor     .13323E-08    20.486        .22955E-06** at limit **
  19  norm          .11102E-09    10.959       -.29161E-06** at limit **
  20  Prefactor     .55511E-10    49.300        .84927E-06** at limit **
  21  Prefactor      .0000        108.96       -.26152E-05** at limit **
  22  Prefactor     20.792        16.580       -.26308E-06   -.30908E-01
  23  norm          39.691        10.965       -.12111E-06    .67530E-01
  24  Normalizat    .54011        .30427        .84637E-06    .25446E-04
  25  Prefactor     .98894        .33485        .10427E-05    .25450E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 24.3317
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 170.882
  Prefactor  = 0
  Prefactor  = 28.6796
  norm       = 0
  Prefactor  = 15.6015
  norm       = 0.278411
  Prefactor  = 3.43471
  norm       = 5.55112e-11
  Prefactor  = 1.20928
  Prefactor  = 15.4474
  Prefactor  = 11.7987
  Prefactor  = 1.33227e-09
  norm       = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 20.7924
  norm       = 39.6911
  Normalizat = 0.540114
  Prefactor  = 0.988937
 **********
 **   18 **HESSE 
 **********

 FCN=   2658.762     FROM HESSE     STATUS=OK           477 CALLS     2686 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    9.3420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22204E-09    77.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.332        22.532        .20293E-03   -1.5609    
   4  Prefactor     .11102E-09    38.030        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    10.331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        5.9222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     170.88        193.94        .77583E-04   -1.5447    
   8  Prefactor      .0000        35.793        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.680        11.446        .18603E-03   -1.5601    
  10  norm           .0000        1.7729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.601        33.860        .26062E-03   -1.5629    
  12  norm          .27841        2.7288        .10450E-02   -1.5697    
  13  Prefactor     3.4347        11.934        .55056E-03   -1.5671    
  14  norm          .55511E-10    12.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2093        4.4064        .10202E-02   -1.5686    
  16  Prefactor     15.447        14.884        .25390E-03   -1.5629    
  17  Prefactor     11.799        10.197        .29149E-03   -1.5639    
  18  Prefactor     .13323E-08    20.494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11102E-09    10.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    48.631        .15346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        109.11        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.792        18.664        .21794E-03   -1.5617    
  23  norm          39.691        18.834        .15803E-03   -1.5582    
  24  Normalizat    .54011        .27389        .68619E-01   -1.1059    
  25  Prefactor     .98894        .30145        .46132E-01   -.93099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35756e-08
Minuit parameter uncertainties:
  1  3.23248e-05
  2  0.000274022
  3  22.5323
  4  0.000122496
  5  3.8904e-05
  6  1.23058e-05
  7  193.945
  8  6.29102e-05
  9  11.4456
  10  9.35178e-07
  11  33.8602
  12  1.74325
  13  11.9345
  14  4.14847e-05
  15  4.40646
  16  14.884
  17  10.197
  18  0.000330821
  19  6.80851e-05
  20  8.57386e-05
  21  8.17295e-05
  22  18.6641
  23  18.8345
  24  0.274578
  25  0.301961
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.560e+01  3.386e+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:  9.889e-01  3.020e-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:  5.401e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/949728/likelihoodResults_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.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) = 2658.68887825
delta logL = 0.0728594367624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2658.68586857
delta logL = 0.0758691160863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.052       1.0000          .0000       .10000E+07
     2 'Index     '    2.0874       1.0000          .0000       10.000    
     3 'Normalizat'    .54466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98258       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=   2658.686     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.053        42.836        .81580E-05   -.13253E-02
   2  Index         2.0874        .86583        .84973E-02   -.72965E-04
   3  Normalizat    .54476        .27255        .30247E-03    .18117E-04
   4  Prefactor     .98246        .32147        .26805E-03    .28904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0528
  Index      = 2.0874
  Normalizat = 0.54476
  Prefactor  = 0.982459
 **********
 **   18 **HESSE 
 **********

 FCN=   2658.686     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.053        42.441        .16316E-05   -1.5610    
   2  Index         2.0874        .85809        .33989E-03   -.62182    
   3  Normalizat    .54476        .27271        .12099E-04   -1.1038    
   4  Prefactor     .98246        .32167        .10722E-04   -.93317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19079e-10
Minuit parameter uncertainties:
  1  42.4418
  2  0.864602
  3  0.273384
  4  0.322298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949728': 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) = 2658.68586849
delta logL = 0.0758691910446

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.405e+01  4.244e+01  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  2.087e+00  8.646e-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:  9.825e-01  3.223e-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:  5.448e-01  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/949728/cmap_HighResolution_695001601_695606401_4FGL_J0916.7+3856_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2023-01-17 01:03:30.360092', job_id='949728', GAL2='0.98', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1673946210.36', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.59e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='754' AND source_name='4FGL J0916.7+3856' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:03:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 949728: <4FGL_J0916.7+3856_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0916.7+3856_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:50:18 2023
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:50:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:50:56 2023
Terminated at Tue Jan 17 01:03:31 2023
Results reported at Tue Jan 17 01:03:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_weekly_bin754 139.19 38.9479 695001601 695606401 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            793 sec.

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

