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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin1777
RA = 139.19, Dec = 38.9479
tmin = 699926401, tmax = 700185601
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='911155', job_status='RUN', time_executed='2023-03-11 00:26:53.073011', time_epoch_executed='1678523213.07' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911155

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911155/ft1_4FGL_J0916.7+3856_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911155/ft1_4FGL_J0916.7+3856_daily_bin1777.fits outfile=/scratch/kocevski/911155/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1777.fits ra=139.19 dec=38.9479 rad=12.0 tmin=699926401.0 tmax=700185601.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.64
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.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/911155/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 627

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/911155/ltcube_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.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/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits
.....................!
real 12.09
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/911155/ltcube_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.fits outfile=/scratch/kocevski/911155/expmap_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.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/911155/ltcube_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.fits
.....................!
real 190.54
user 185.86
sys 4.37

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/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.fits scfile=/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits outfile=/scratch/kocevski/911155/cmap_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.fits scfile=/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits outfile=/scratch/kocevski/911155/cmap_HighResolution_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/911155/ft2_4FGL_J0916.7+3856_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911155/Model_4FGL_J0916.7+3856_daily_bin1777.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/911155/ft1_filtered_4FGL_J0916.7+3856_daily_bin1777.fits.....................!
real 56.50
user 55.27
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86376E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1172       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12540E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73379       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17335E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .46199E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    28.788       1.0000          .0000       .10000E+07
     8 'Prefactor '    .59333       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.0127       1.0000          .0000       .10000E+07
    10 'norm      '    1.4494       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7242       1.0000          .0000       .10000E+07
    12 'norm      '    .30192       1.0000          .0000       .10000E+07
    13 'Prefactor '    .55313E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .11475E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7876       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12740E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    15.047       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.0423       1.0000          .0000       .10000E+07
    19 'norm      '    .64337E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .42971E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .27827E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    9.1096       1.0000          .0000       .10000E+07
    23 'norm      '    .80077E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    .65494       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4887       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=   6798.111     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     2193 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87285E-01    .61049        .45884E-08** at limit **
   2  Prefactor     9.0757        8.7393       -.43769E-07    .40355E-01
   3  Prefactor     .14468E-05    4.1162        .45809E-07** at limit **
   4  Prefactor     .45737        80.380        .24442E-05   -.29024E-02
   5  Prefactor     .24980E-08    5.4328       -.26299E-06** at limit **
   6  norm          .77716E-09    1.7025       -.61111E-10** at limit **
   7  Prefactor     29.178        24.813        .11817E-07   -.17657E-01
   8  Prefactor     .99143E-07    759.05        .35188E-05** at limit **
   9  Prefactor     7.0224        3.6548        .44456E-07    .17238E-02
  10  norm          1.4477        1.2883       -.22743E-07   -.10754E-02
  11  Prefactor     2.8481        5.4030       -.15734E-06   -.52155E-02
  12  norm          .30184        .26876       -.21391E-07   -.82593E-03
  13  Prefactor     .39246E-07    6.0772        .26256E-06** at limit **
  14  norm          .32752E-08    9.5538       -.42421E-07** at limit **
  15  Prefactor     1.7868        1.9405        .67732E-08   -.95524E-03
  16  Prefactor     .11102E-08    2.1631       -.50939E-07** at limit **
  17  Prefactor     15.049        3.9491        .38037E-07    .32728E-01
  18  Prefactor     7.0623        1.8498        .24855E-07    .69397E-02
  19  norm          .88263E-07    3.0600        .19085E-06** at limit **
  20  Prefactor     .58953E-07    3.3093        .61042E-07** at limit **
  21  Prefactor     .69833E-07    8.2826       -.17463E-07** at limit **
  22  Prefactor     9.1243        8.7647       -.46275E-07   -.85776E-02
  23  norm          .37748E-08    3.1760       -.28494E-07** at limit **
  24  Normalizat    .65415        .18707        .10563E-05    .66832E-04
  25  Prefactor     1.4897        .21070        .14437E-05    .97042E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.087285
  Prefactor  = 9.07568
  Prefactor  = 1.44679e-06
  Prefactor  = 0.45737
  Prefactor  = 2.498e-09
  norm       = 7.77156e-10
  Prefactor  = 29.1781
  Prefactor  = 9.91429e-08
  Prefactor  = 7.02235
  norm       = 1.44768
  Prefactor  = 2.84807
  norm       = 0.301836
  Prefactor  = 3.92464e-08
  norm       = 3.27516e-09
  Prefactor  = 1.78684
  Prefactor  = 1.11022e-09
  Prefactor  = 15.0491
  Prefactor  = 7.06225
  norm       = 8.82627e-08
  Prefactor  = 5.89528e-08
  Prefactor  = 6.9833e-08
  Prefactor  = 9.1243
  norm       = 3.77476e-09
  Normalizat = 0.654151
  Prefactor  = 1.48973
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.111     FROM HESSE     STATUS=OK           497 CALLS     2690 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87285E-01    .31084        .22117E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0757        9.4587        .33169E-03   -1.5648    
   3  Prefactor     .14468E-05    1.7027        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45737        80.310        .58006E-03   -1.5694    
   5  Prefactor     .24980E-08    5.4909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .77716E-09    1.7127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.178        25.173        .18641E-03   -1.5600    
   8  Prefactor     .99143E-07    22.997        .12267E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0224        3.7428        .37859E-03   -1.5655    
  10  norm          1.4477        1.3027        .89470E-03   -1.5684    
  11  Prefactor     2.8481        14.228        .61673E-03   -1.5674    
  12  norm          .30184        .28571        .88352E-03   -1.5697    
  13  Prefactor     .39246E-07    1.2183        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .32752E-08    9.6306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7868        1.9738        .78215E-03   -1.5681    
  16  Prefactor     .11102E-08    2.1596        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.049        10.711        .25794E-03   -1.5630    
  18  Prefactor     7.0623        14.917        .37779E-03   -1.5655    
  19  norm          .88263E-07    4.0261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58953E-07    3.9875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .69833E-07    8.6400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.1243        8.8569        .33183E-03   -1.5648    
  23  norm          .37748E-08    3.1987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .65415        .16170        .64650E-01   -1.0573    
  25  Prefactor     1.4897        .17988        .51575E-01   -.77828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23549e-08
Minuit parameter uncertainties:
  1  0.310837
  2  9.45873
  3  0.00313911
  4  12.1214
  5  0.000233765
  6  7.4022e-05
  7  25.1727
  8  0.0030199
  9  3.74281
  10  1.3027
  11  12.7317
  12  0.285708
  13  0.000437391
  14  0.000356591
  15  1.97376
  16  9.70357e-05
  17  10.7112
  18  14.9166
  19  0.00119208
  20  0.000969853
  21  0.00155327
  22  8.85693
  23  0.000220012
  24  0.16182
  25  0.179952
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.848e+00  1.273e+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.490e+00  1.800e-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:  6.542e-01  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/911155/likelihoodResults_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.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) = 6797.92549497
delta logL = 0.185947567083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6797.83168201
delta logL = 0.279760520576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1977       1.0000          .0000       .10000E+07
     2 'Index     '    1.6030       1.0000          .0000       10.000    
     3 'Normalizat'    .66023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4814       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=   6797.832     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1787        18.880        .34992E-03    .49578E-02
   2  Index         1.6027        .89292        .28732       -.39234E-04
   3  Normalizat    .66019        .15358        .64368E-01    .14637E-04
   4  Prefactor     1.4815        .17747        .51671E-01    .43339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.17872
  Index      = 1.60273
  Normalizat = 0.660194
  Prefactor  = 1.48149
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.832     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1787        14.312        .69984E-04   -1.5651    
   2  Index         1.6027        .86484        .14088E-01   -.74702    
   3  Normalizat    .66019        .17888        .28479E-03   -1.0549    
   4  Prefactor     1.4815        .20723        .22843E-03   -.78060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68918e-09
Minuit parameter uncertainties:
  1  14.3117
  2  0.873057
  3  0.179035
  4  0.207348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911155': 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) = 6797.83168112
delta logL = 0.279761412531

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  8.179e+00  1.431e+01  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  1.603e+00  8.731e-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.481e+00  2.073e-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:  6.602e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 139.190 38.948

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/911155/cmap_HighResolution_699926401_700185601_4FGL_J0916.7+3856_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2023-03-11 00:38:37.822625', job_id='911155', GAL2='1.48', fit_tolerance='1e-08', EG2='0.66', EG='0.65', time_epoch_completed='1678523917.82', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='2.80e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1777' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:38:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 911155: <4FGL_J0916.7+3856_daily_bin1777> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin1777> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Mar 11 00:25:24 2023
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:25:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:25:25 2023
Terminated at Sat Mar 11 00:38:38 2023
Results reported at Sat Mar 11 00:38:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin1777 139.19 38.9479 699926401 700185601 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 :                                   706.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            794 sec.

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

