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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin1746
RA = 139.19, Dec = 38.9479
tmin = 691891201, tmax = 692150401
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='718807', job_status='RUN', time_executed='2022-12-08 00:33:16.738633', time_epoch_executed='1670488396.74' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718807/ft1_4FGL_J0916.7+3856_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718807/ft1_4FGL_J0916.7+3856_daily_bin1746.fits outfile=/scratch/kocevski/718807/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1746.fits ra=139.19 dec=38.9479 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.69
user 4.46
sys 0.22

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

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

Number of photons that the gtmktime cut: 557

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718807/ft1_filtered_4FGL_J0916.7+3856_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/718807/ltcube_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.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/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718807/ft1_filtered_4FGL_J0916.7+3856_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/718807/ltcube_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.fits outfile=/scratch/kocevski/718807/expmap_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.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/718807/ltcube_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.fits
.....................!
real 190.41
user 184.89
sys 5.20

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/718807/ft1_filtered_4FGL_J0916.7+3856_daily_bin1746.fits scfile=/scratch/kocevski/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits outfile=/scratch/kocevski/718807/cmap_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718807/ft1_filtered_4FGL_J0916.7+3856_daily_bin1746.fits scfile=/scratch/kocevski/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits outfile=/scratch/kocevski/718807/cmap_HighResolution_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718807/ft1_filtered_4FGL_J0916.7+3856_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/718807/ft2_4FGL_J0916.7+3856_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718807/Model_4FGL_J0916.7+3856_daily_bin1746.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/718807/ft1_filtered_4FGL_J0916.7+3856_daily_bin1746.fits.....................!
real 53.58
user 52.22
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32986       1.0000          .0000       .10000E+07
     2 'Prefactor '    .74163E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.7018       1.0000          .0000       .10000E+07
     4 'Prefactor '    .69370E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9066       1.0000          .0000       .10000E+07
     6 'norm      '    .33001E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49432E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11801E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    12.163       1.0000          .0000       .10000E+07
    10 'norm      '    2.3754       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10715       1.0000          .0000       .10000E+07
    12 'norm      '    .47773E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.7532       1.0000          .0000       .10000E+07
    14 'norm      '    .15368E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8800       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12700E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    8.5477       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13266E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .76926E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .12020E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .12018E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .18316E-03   1.0000          .0000       .10000E+07
    23 'norm      '    28.353       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2376       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85715       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=   6155.192     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1710 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33001        .54699        .35455E-07    .65091E-02
   2  Prefactor     .69389E-08    60.884       -.77774E-06** at limit **
   3  Prefactor     7.6911        4.0582        .11615E-07    .73743E-03
   4  Prefactor     .38819E-06    4.9449       -.66764E-07** at limit **
   5  Prefactor     2.8880        9.5330        .30929E-07    .10275E-01
   6  norm          .13078E-06    4.4977       -.31780E-08** at limit **
   7  Prefactor     .27217E-06    6.7859       -.41563E-07** at limit **
   8  Prefactor     .17952E-06    8.1031       -.19468E-07** at limit **
   9  Prefactor     12.164        4.9898       -.22108E-07   -.19468E-02
  10  norm          2.3754        1.7777        .35308E-07    .41798E-02
  11  Prefactor     .11677E-04    30.468       -.37346E-07** at limit **
  12  norm           .0000        .83806        .40404E-07** at limit **
  13  Prefactor     4.7520        2.7563        .14913E-07    .10929E-02
  14  norm          .21899E-06    4.6615       -.71679E-07** at limit **
  15  Prefactor     1.8816        2.0885        .16619E-07    .76932E-03
  16  Prefactor     .22204E-08    4.6468       -.23414E-06** at limit **
  17  Prefactor     8.5405        8.0357        .23584E-07    .80341E-03
  18  Prefactor     .69211E-06    12.242       -.69738E-09** at limit **
  19  norm          .63227E-07    7.3324        .30457E-07** at limit **
  20  Prefactor     .69406E-06    6.8450       -.74342E-07** at limit **
  21  Prefactor     .21927E-07    5.8712        .91741E-08** at limit **
  22  Prefactor     .44409E-09    3.2810       -.15308E-06** at limit **
  23  norm          28.387        1.2203        .10988E-09    .18800E-02
  24  Normalizat    1.2377        .21465        .28841E-06   -.48275E-04
  25  Prefactor     .85717        .22121       -.12237E-05   -.55509E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.330014
  Prefactor  = 6.93889e-09
  Prefactor  = 7.69111
  Prefactor  = 3.88189e-07
  Prefactor  = 2.88801
  norm       = 1.30784e-07
  Prefactor  = 2.72171e-07
  Prefactor  = 1.79523e-07
  Prefactor  = 12.1636
  norm       = 2.37539
  Prefactor  = 1.16767e-05
  norm       = 0
  Prefactor  = 4.75199
  norm       = 2.18991e-07
  Prefactor  = 1.88157
  Prefactor  = 2.22045e-09
  Prefactor  = 8.54049
  Prefactor  = 6.92113e-07
  norm       = 6.32272e-08
  Prefactor  = 6.94056e-07
  Prefactor  = 2.19269e-08
  Prefactor  = 4.44089e-10
  norm       = 28.3871
  Normalizat = 1.2377
  Prefactor  = 0.857167
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.192     FROM HESSE     STATUS=OK           487 CALLS     2197 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33001        .62334        .17233E-02   -1.5696    
   2  Prefactor     .69389E-08    60.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6911        4.1006        .36110E-03   -1.5652    
   4  Prefactor     .38819E-06    13.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8880        9.6301        .59572E-03   -1.5674    
   6  norm          .13078E-06    10.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27217E-06    12.269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17952E-06    19.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.164        5.1121        .28698E-03   -1.5638    
  10  norm          2.3754        1.7798        .66445E-03   -1.5677    
  11  Prefactor     .11677E-04    14.375        .13741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .32551        .19876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7520        3.2697        .46127E-03   -1.5664    
  14  norm          .21899E-06    16.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8816        2.1241        .75897E-03   -1.5681    
  16  Prefactor     .22204E-08    4.6366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5405        8.0341        .34263E-03   -1.5650    
  18  Prefactor     .69211E-06    20.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .63227E-07    7.5662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .69406E-06    16.205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .21927E-07    9.7751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44409E-09    3.2777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          28.387        14.975        .18783E-03   -1.5601    
  24  Normalizat    1.2377        .18201        .53481E-01   -.85446    
  25  Prefactor     .85717        .18713        .66264E-01   -.97654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05892e-07
Minuit parameter uncertainties:
  1  0.623341
  2  0.00129891
  3  4.10057
  4  0.00460607
  5  9.63014
  6  0.00234243
  7  0.00365467
  8  0.00376176
  9  5.11209
  10  1.77975
  11  0.0259114
  12  4.04742e-06
  13  3.26966
  14  0.00377777
  15  2.1241
  16  0.000203988
  17  8.03408
  18  0.00756662
  19  0.00138315
  20  0.00670742
  21  0.000925635
  22  7.70863e-05
  23  14.9751
  24  0.182106
  25  0.187269
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.168e-05  2.591e-02  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:  8.572e-01  1.873e-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:  1.238e+00  1.821e-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: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/718807/likelihoodResults_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.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) = 6155.19878662
delta logL = -0.00719002800633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6155.0353083
delta logL = 0.156288290177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0081       1.0000          .0000       .10000E+07
     2 'Index     '    4.0563       1.0000          .0000       10.000    
     3 'Normalizat'    1.2009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88057       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=   6155.035     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99785        41.546        .44050E-03    .11218E-01
   2  Index         4.0626        3.1831        .20526        .66848E-04
   3  Normalizat    1.2008        .35027E-01    .54143E-01   -.83084E-05
   4  Prefactor     .88070        .37017E-01    .65460E-01   -.41979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.99785
  Index      = 4.0626
  Normalizat = 1.20079
  Prefactor  = 0.880697
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.035     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99785        164.80        .13593E-04   -1.5688    
   2  Index         4.0626        5.4507        .74343E-02   -.18860    
   3  Normalizat    1.2008        .18854        .23941E-03   -.86578    
   4  Prefactor     .88070        .19491        .28955E-03   -.96819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77279e-07
Minuit parameter uncertainties:
  1  25.6479
  2  12.6537
  3  0.188645
  4  0.195064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718807': 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) = 6155.03530417
delta logL = 0.156292426586

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  9.979e-01  2.565e+01  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  4.063e+00  1.265e+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:  8.807e-01  1.951e-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:  1.201e+00  1.886e-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/718807/cmap_HighResolution_691891201_692150401_4FGL_J0916.7+3856_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2022-12-08 00:43:53.838122', job_id='718807', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.24', time_epoch_completed='1670489033.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.56e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1746' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:43:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 718807: <4FGL_J0916.7+3856_daily_bin1746> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 00:30:19 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:30:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:30:20 2022
Terminated at Thu Dec  8 00:43:54 2022
Results reported at Thu Dec  8 00:43:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin1746 139.19 38.9479 691891201 692150401 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 :                                   639.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

