/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin208
RA = 139.19, Dec = 38.9479
tmin = 293241601, tmax = 293500801
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='112600', job_status='RUN', time_executed='2021-08-31 05:58:17.403076', time_epoch_executed='1630414697.4' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112600/ft1_4FGL_J0916.7+3856_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112600/ft1_4FGL_J0916.7+3856_daily_bin208.fits outfile=/scratch/kocevski/112600/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin208.fits ra=139.19 dec=38.9479 rad=12.0 tmin=293241601.0 tmax=293500801.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.80
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/112600/ltcube_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.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/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits
.....................!
real 11.95
user 11.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/112600/ltcube_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.fits outfile=/scratch/kocevski/112600/expmap_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.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/112600/ltcube_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.fits
.....................!
real 191.11
user 185.39
sys 4.41

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/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits scfile=/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits outfile=/scratch/kocevski/112600/cmap_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits scfile=/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits outfile=/scratch/kocevski/112600/cmap_HighResolution_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.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.67
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112600/Model_4FGL_J0916.7+3856_daily_bin208.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/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits.....................!
real 60.30
user 58.33
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits', '/scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits', expMap='/scratch/kocevski/112600/expmap_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.fits', expCube='/scratch/kocevski/112600/ltcube_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/112600/Model_4FGL_J0916.7+3856_daily_bin208.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  1.000e-04  1.000e+04 ( 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/112600/ft1_filtered_4FGL_J0916.7+3856_daily_bin208.fits
Spacecraft file(s): /scratch/kocevski/112600/ft2_4FGL_J0916.7+3856_daily_bin208.fits
Exposure map: /scratch/kocevski/112600/expmap_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.fits
Exposure cube: /scratch/kocevski/112600/ltcube_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/112600/Model_4FGL_J0916.7+3856_daily_bin208.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) = 6927.48219141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85320       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11710E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    40.699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4782       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28345E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0927       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76332       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0934       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.044       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7503       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.415       1.0000         .10000E-03   10000.    
    22 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    61.105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    38.367       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2910       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77884       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=   6927.472     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     3105 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85308        .54104       -.11874E-06   -.20913E-02
   2  Prefactor     .10000E-03    4.9285       -.29271E-05** at limit **
   3  Prefactor     2.8095        2.5308       -.21479E-06   -.27279E-03
   4  Prefactor     .10000E-03    12.935        .17614E-06** at limit **
   5  Prefactor     .10000E-03    4.0638       -.25398E-05** at limit **
   6  norm          40.694        3.5577       -.16400E-05    .94241E-02
   7  Prefactor     1.4768        1.7436        .11001E-06   -.67127E-04
   8  Prefactor     12.561        1.4415        .37415E-07   -.60322E-03
   9  Prefactor     .15395E-03    84.126       -.18878E-04** at limit **
  10  Prefactor     1.0912        2.7999       -.17679E-06   -.31108E-04
  11  Prefactor     .60604        251.18       -.13216E-04   -.55064E-03
  12  Prefactor     3.0945        1.6369       -.56387E-06   -.14473E-03
  13  norm          1.4725        1.3265        .18406E-08    .10434E-03
  14  Prefactor     17.038        17.831        .27705E-05    .17332E-02
  15  norm          .10000E-03    .19379        .23465E-07** at limit **
  16  Prefactor     .10000E-03    1.8447        .64187E-06** at limit **
  17  norm          .10001E-03    7.5547        .93888E-05** at limit **
  18  Prefactor     4.2292        2.3669        .98769E-07    .50860E-03
  19  Prefactor     2.7517        3.7035       -.34129E-07   -.77094E-05
  20  Prefactor     .10000E-03    4.2893        .36584E-05** at limit **
  21  Prefactor     38.401        2.5256        .86557E-07   -.22729E-02
  22  norm          .10001E-03    4.9790        .84361E-05** at limit **
  23  Prefactor     .10001E-03    5.5919       -.11798E-04** at limit **
  24  Prefactor     61.084        4.4190       -.55742E-06    .19885E-02
  25  Prefactor     .10000E-03    3.3223        .56959E-07** at limit **
  26  norm          .10001E-03    3.3964       -.41704E-05** at limit **
  27  Prefactor     38.358        2.3094       -.41038E-06    .12961E-02
  28  Normalizat    1.2905        .20160        .70370E-07    .27594E-03
  29  Prefactor     .77932        .20525        .10488E-05    .21309E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.853079
  Prefactor  = 0.0001
  Prefactor  = 2.80953
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 40.6945
  Prefactor  = 1.47675
  Prefactor  = 12.5608
  Prefactor  = 0.000153948
  Prefactor  = 1.09115
  Prefactor  = 0.606041
  Prefactor  = 3.09448
  norm       = 1.47248
  Prefactor  = 17.0382
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 4.22916
  Prefactor  = 2.7517
  Prefactor  = 0.0001
  Prefactor  = 38.4012
  norm       = 0.000100012
  Prefactor  = 0.000100011
  Prefactor  = 61.0843
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 38.3584
  Normalizat = 1.29047
  Prefactor  = 0.779317
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.472     FROM HESSE     STATUS=OK           627 CALLS     3732 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85308        .54220        .10666E-01   -1.5523    
   2  Prefactor     .10000E-03    4.9385        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8095        2.5458        .60675E-02   -1.5373    
   4  Prefactor     .10000E-03    12.938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          40.694        9.7149        .15708E-02   -1.4431    
   7  Prefactor     1.4768        1.7685        .88282E-02   -1.5465    
   8  Prefactor     12.561        17.261        .28257E-02   -1.4999    
   9  Prefactor     .15395E-03    299.92        .99445E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0912        2.8723        .11423E-01   -1.5499    
  11  Prefactor     .60604        28.303        .15877       -1.5552    
  12  Prefactor     3.0945        4.2198        .57646E-02   -1.5356    
  13  norm          1.4725        1.3346        .88516E-02   -1.5465    
  14  Prefactor     17.038        19.258        .24254E-02   -1.4882    
  15  norm          .10000E-03    .14840        .15179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    8.0651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2292        2.9183        .48994E-02   -1.5297    
  19  Prefactor     2.7517        3.7500        .61368E-02   -1.5376    
  20  Prefactor     .10000E-03    4.2938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.401        23.064        .16167E-02   -1.4468    
  22  norm          .10001E-03    6.4465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    7.6085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     61.084        33.871        .12832E-02   -1.4143    
  25  Prefactor     .10000E-03    3.3136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    6.7360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     38.358        39.287        .16177E-02   -1.4468    
  28  Normalizat    1.2905        .17549        .52710E-01   -.83851    
  29  Prefactor     .77932        .17411        .68306E-01   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40351e-07
Minuit parameter uncertainties:
  1  0.542201
  2  6.0993e-05
  3  2.54593
  4  7.38005e-05
  5  9.36992e-05
  6  9.7153
  7  1.76854
  8  17.2675
  9  0.255691
  10  2.87267
  11  8.28662
  12  4.22017
  13  1.33465
  14  19.2651
  15  4.59808e-07
  16  3.96369e-05
  17  0.00063878
  18  2.91836
  19  3.75029
  20  6.74351e-05
  21  23.0689
  22  0.000563343
  23  0.000584153
  24  33.8817
  25  4.42569e-06
  26  0.000509062
  27  39.3131
  28  0.175567
  29  0.174234
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.704e+01  1.927e+01  1.000e-04  1.000e+04 ( 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:  7.793e-01  1.742e-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.290e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.08e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 9.38e-06 +/- 1.06e-05

TS (Fixed Index): 1.67
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112600/likelihoodResults_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.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) = 6927.43639918
delta logL = 0.0354134799636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6927.42290183
delta logL = 0.0489108279417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.100       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7781       1.0000          .0000       10.000    
     3 'Normalizat'    1.2751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78939       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=   6927.423     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      253 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.103        20.398        .10667E-03    .75566E-04
   2  Index         2.7786        1.1087        .91355E-02    .44795E-03
   3  Normalizat    1.2750        .20481        .23421E-03    .52261E-03
   4  Prefactor     .78940        .20644        .30047E-03    .43826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1027
  Index      = 2.77859
  Normalizat = 1.27504
  Prefactor  = 0.789398
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.423     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.103        18.570        .42667E-05   -1.4957    
   2  Index         2.7786        1.0089        .18271E-02   -.46037    
   3  Normalizat    1.2750        .20415        .46841E-04   -.84314    
   4  Prefactor     .78940        .20610        .60094E-04   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25366e-10
Minuit parameter uncertainties:
  1  18.5779
  2  1.01759
  3  0.204274
  4  0.206306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112600': 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) = 6927.42290146
delta logL = 0.0489111940842

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.410e+01  1.858e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.779e+00  1.018e+00  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:  7.894e-01  2.063e-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.275e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.78 +/- 1.02
Photon Flux (Free Index): 4.32e-08 +/- 5.47e-08
Energy Flux (Free Index): 9.82e-06 +/- 9.49e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/112600/cmap_HighResolution_293241601_293500801_4FGL_J0916.7+3856_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', comment='SUCCESS', photon_flux='3.08e-08', energy_flux2='9.82e-06', photon_flux_error='3.47e-08', dlogl='4.89e-02', energy_flux='9.38e-06', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-08-31 06:13:26.455042', photon_index_error2='1.02', photon_index2='2.78', ts='1.67', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='9.49e-06', EG='1.29', time_epoch_completed='1630415606.46', return_code='0', job_id='112600', GAL2='0.79', EG2='1.28', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.47e-08', ts2='1.78', photon_index='2.46' WHERE bin_id='208' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:13:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 112600: <4FGL_J0916.7+3856_daily_bin208> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin208> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:42 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:57:44 2021
Terminated at Tue Aug 31 06:13:27 2021
Results reported at Tue Aug 31 06:13:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin208 139.19 38.9479 293241601 293500801 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 :                                   897.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            945 sec.

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

