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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin1753
RA = 139.19, Dec = 38.9479
tmin = 693705601, tmax = 693964801
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='451297', job_status='RUN', time_executed='2022-12-29 00:41:56.291446', time_epoch_executed='1672303316.29' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451297

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451297/ft1_4FGL_J0916.7+3856_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451297/ft1_4FGL_J0916.7+3856_daily_bin1753.fits outfile=/scratch/kocevski/451297/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1753.fits ra=139.19 dec=38.9479 rad=12.0 tmin=693705601.0 tmax=693964801.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.40
sys 0.24

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

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

Number of photons that the gtmktime cut: 528

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/451297/ft1_filtered_4FGL_J0916.7+3856_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/451297/ltcube_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.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/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits
.....................!
real 15.79
user 15.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451297/ft1_filtered_4FGL_J0916.7+3856_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/451297/ltcube_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.fits outfile=/scratch/kocevski/451297/expmap_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.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/451297/ltcube_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.fits
.....................!
real 191.91
user 185.93
sys 5.42

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/451297/ft1_filtered_4FGL_J0916.7+3856_daily_bin1753.fits scfile=/scratch/kocevski/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits outfile=/scratch/kocevski/451297/cmap_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451297/ft1_filtered_4FGL_J0916.7+3856_daily_bin1753.fits scfile=/scratch/kocevski/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits outfile=/scratch/kocevski/451297/cmap_HighResolution_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/451297/ft1_filtered_4FGL_J0916.7+3856_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/451297/ft2_4FGL_J0916.7+3856_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/451297/Model_4FGL_J0916.7+3856_daily_bin1753.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/451297/ft1_filtered_4FGL_J0916.7+3856_daily_bin1753.fits.....................!
real 48.88
user 47.55
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76943       1.0000          .0000       .10000E+07
     2 'Prefactor '    .51756       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.6471       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10390       1.0000          .0000       .10000E+07
     5 'Prefactor '    .51464E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .62321E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    33.832       1.0000          .0000       .10000E+07
     8 'Prefactor '    .17774E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8482       1.0000          .0000       .10000E+07
    10 'norm      '    1.1209       1.0000          .0000       .10000E+07
    11 'Prefactor '    15.786       1.0000          .0000       .10000E+07
    12 'norm      '    .56011E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .47535       1.0000          .0000       .10000E+07
    14 'norm      '    4.6962       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20655E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .75218E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.8009       1.0000          .0000       .10000E+07
    18 'Prefactor '    18.488       1.0000          .0000       .10000E+07
    19 'norm      '    .14605E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    27.519       1.0000          .0000       .10000E+07
    21 'Prefactor '    12.285       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20795E-03   1.0000          .0000       .10000E+07
    23 'norm      '    29.920       1.0000          .0000       .10000E+07
    24 'Normalizat'    .63670       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1292       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=   5701.291     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2165 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77386        .50242       -.23221E-07   -.28345E-02
   2  Prefactor     .80158E-07    474.19       -.20852E-04** at limit **
   3  Prefactor     3.7157        2.8589       -.31738E-06   -.25247E-02
   4  Prefactor     .19645E-06    32.952       -.81896E-05** at limit **
   5  Prefactor     .10619E-06    27.314        .10970E-05** at limit **
   6  norm          .11102E-09    2.7500        .18671E-06** at limit **
   7  Prefactor     34.420        3.9234       -.13750E-06    .18203E-01
   8  Prefactor     .55511E-10    13.689       -.63897E-06** at limit **
   9  Prefactor     2.8515        3.1664        .48437E-06    .40079E-02
  10  norm          1.1192        1.3017       -.17349E-07    .51281E-02
  11  Prefactor     15.695        2.0342        .22065E-06    .63509E-02
  12  norm           .0000        .13902       -.85882E-07** at limit **
  13  Prefactor     .47314        1.6049       -.70233E-06   -.16035E-02
  14  norm          4.6849        6.1791        .26633E-07   -.16008E-02
  15  Prefactor     .16653E-09    4.7830       -.80355E-07** at limit **
  16  Prefactor      .0000        1.0835       -.33638E-06** at limit **
  17  Prefactor     3.9296        6.3582       -.15176E-06   -.34832E-04
  18  Prefactor     18.385        7.9281       -.13217E-05   -.21202E-01
  19  norm          .83267E-09    4.9315        .90543E-06** at limit **
  20  Prefactor     27.806        15.470       -.20655E-05    .40534E-01
  21  Prefactor     11.784        7.4040       -.14784E-05   -.40453E-01
  22  Prefactor      .0000        2.1736       -.57400E-07** at limit **
  23  norm          29.494        14.289        .25985E-06   -.28904E-02
  24  Normalizat    .63685        .18081        .12712E-04    .15727E-03
  25  Prefactor     1.1294        .19621       -.58301E-05   -.90639E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.773858
  Prefactor  = 8.01581e-08
  Prefactor  = 3.71568
  Prefactor  = 1.96454e-07
  Prefactor  = 1.06193e-07
  norm       = 1.11022e-10
  Prefactor  = 34.4203
  Prefactor  = 5.55112e-11
  Prefactor  = 2.85146
  norm       = 1.11925
  Prefactor  = 15.695
  norm       = 0
  Prefactor  = 0.473137
  norm       = 4.68487
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 3.92959
  Prefactor  = 18.3852
  norm       = 8.32667e-10
  Prefactor  = 27.8056
  Prefactor  = 11.7842
  Prefactor  = 0
  norm       = 29.494
  Normalizat = 0.636849
  Prefactor  = 1.1294
 **********
 **   18 **HESSE 
 **********

 FCN=   5701.291     FROM HESSE     STATUS=OK           495 CALLS     2660 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77386        .51772        .55242E-04   -1.5690    
   2  Prefactor     .80158E-07    17.149        .85199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7157        3.3663        .52872E-03   -1.5669    
   4  Prefactor     .19645E-06    13.924        .13826E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10619E-06    28.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11102E-09    2.7565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.420        25.318        .17195E-03   -1.5591    
   8  Prefactor     .55511E-10    13.799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8515        3.3088        .60220E-03   -1.5674    
  10  norm          1.1192        1.4639        .20966E-02   -1.5687    
  11  Prefactor     15.695        19.181        .25182E-03   -1.5629    
  12  norm           .0000        .13910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .47314        1.6634        .81229E-03   -1.5694    
  14  norm          4.6849        7.2861        .46412E-03   -1.5665    
  15  Prefactor     .16653E-09    1.1801        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.0845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9296        6.5380        .51751E-03   -1.5668    
  18  Prefactor     18.385        18.162        .23266E-03   -1.5622    
  19  norm          .83267E-09    4.9369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.806        24.115        .19066E-03   -1.5603    
  21  Prefactor     11.784        20.215        .28555E-03   -1.5639    
  22  Prefactor      .0000        2.1712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          29.494        14.472        .18285E-03   -1.5599    
  24  Normalizat    .63685        .16328        .41439E-01   -1.0644    
  25  Prefactor     1.1294        .17337        .36569E-01   -.88532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92728e-07
Minuit parameter uncertainties:
  1  0.517723
  2  0.00234519
  3  3.36633
  4  0.00330762
  5  0.00348667
  6  3.54878e-05
  7  25.3186
  8  5.93528e-05
  9  3.30881
  10  1.4639
  11  19.1814
  12  1.76403e-06
  13  1.66345
  14  7.28613
  15  2.5645e-05
  16  5.38305e-06
  17  6.53797
  18  18.1617
  19  0.000129162
  20  24.1147
  21  20.2148
  22  5.6138e-06
  23  14.4719
  24  0.163405
  25  0.173459
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.569e+01  1.918e+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.129e+00  1.735e-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.368e-01  1.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 8.64e-06 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/451297/likelihoodResults_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.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) = 5701.20366624
delta logL = 0.0871619025629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5701.20097484
delta logL = 0.08985329601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.030       1.0000          .0000       .10000E+07
     2 'Index     '    2.8151       1.0000          .0000       10.000    
     3 'Normalizat'    .62616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1371       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=   5701.201     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.026        19.441        .12057E-04    .37604E-02
   2  Index         2.8148        1.0284        .74725E-02    .10785E-03
   3  Normalizat    .62639        .17395        .25508E-03   -.73085E-03
   4  Prefactor     1.1370        .19443        .21962E-03   -.83575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0262
  Index      = 2.8148
  Normalizat = 0.626392
  Prefactor  = 1.13698
 **********
 **   18 **HESSE 
 **********

 FCN=   5701.201     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.026        16.838        .48227E-06   -1.5642    
   2  Index         2.8148        .89147        .29890E-03   -.45230    
   3  Normalizat    .62639        .17388        .51015E-04   -1.0687    
   4  Prefactor     1.1370        .19435        .43925E-04   -.88293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02627e-09
Minuit parameter uncertainties:
  1  16.8378
  2  0.89741
  3  0.174031
  4  0.194475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451297': 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) = 5701.20097327
delta logL = 0.0898548667265

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.103e+01  1.684e+01  0.000e+00  1.000e+06 ( 1.000e-13)
320        Index:  2.815e+00  8.974e-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.137e+00  1.945e-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.264e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.81 +/- 0.90
Photon Flux (Free Index): 3.60e-08 +/- 3.75e-08
Energy Flux (Free Index): 7.98e-06 +/- 7.98e-06

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/451297/cmap_HighResolution_693705601_693964801_4FGL_J0916.7+3856_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='7.98e-06', photon_flux_error='3.46e-08', dlogl='8.99e-02', energy_flux='8.64e-06', photon_flux2='3.60e-08', job_status='DONE', time_completed='2022-12-29 00:53:13.043160', photon_index_error2='0.90', photon_index2='2.81', ts='1.27', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.57e-08', energy_flux_error2='7.98e-06', EG='0.64', time_epoch_completed='1672303993.04', return_code='0', job_id='451297', GAL2='1.14', EG2='0.63', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.75e-08', ts2='1.47', photon_index='2.46' WHERE bin_id='1753' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 00:53:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 451297: <4FGL_J0916.7+3856_daily_bin1753> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin1753> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec 29 00:40:20 2022
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:41:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:41:42 2022
Terminated at Thu Dec 29 00:53:13 2022
Results reported at Thu Dec 29 00:53:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin1753 139.19 38.9479 693705601 693964801 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 :                                   678.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            773 sec.

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

