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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin383
RA = 139.19, Dec = 38.9479
tmin = 338601601, tmax = 338860801
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='113555', job_status='RUN', time_executed='2021-08-31 06:02:35.976498', time_epoch_executed='1630414955.98' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113555

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113555/ft1_4FGL_J0916.7+3856_daily_bin383.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113555/ft1_4FGL_J0916.7+3856_daily_bin383.fits outfile=/scratch/kocevski/113555/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin383.fits ra=139.19 dec=38.9479 rad=12.0 tmin=338601601.0 tmax=338860801.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 6.99
user 4.84
sys 2.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113555/ft1_filtered_4FGL_J0916.7+3856_daily_bin383.fits" evtable="EVENTS" scfile=/scratch/kocevski/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits sctable="SC_DATA" outfile=/scratch/kocevski/113555/ltcube_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.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/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits
.....................!
real 13.91
user 11.41
sys 2.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113555/ft1_filtered_4FGL_J0916.7+3856_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits sctable="SC_DATA" expcube=/scratch/kocevski/113555/ltcube_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.fits outfile=/scratch/kocevski/113555/expmap_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.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/113555/ltcube_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.fits
.....................!
real 193.85
user 185.16
sys 7.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/113555/ft1_filtered_4FGL_J0916.7+3856_daily_bin383.fits scfile=/scratch/kocevski/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits outfile=/scratch/kocevski/113555/cmap_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.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 2.41
user 0.38
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113555/ft1_filtered_4FGL_J0916.7+3856_daily_bin383.fits scfile=/scratch/kocevski/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits outfile=/scratch/kocevski/113555/cmap_HighResolution_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.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 2.41
user 0.37
sys 1.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113555/ft1_filtered_4FGL_J0916.7+3856_daily_bin383.fits evtable="EVENTS" scfile=/scratch/kocevski/113555/ft2_4FGL_J0916.7+3856_daily_bin383.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113555/Model_4FGL_J0916.7+3856_daily_bin383.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/113555/ft1_filtered_4FGL_J0916.7+3856_daily_bin383.fits.....................!
real 52.53
user 48.80
sys 3.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.711       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.449       1.0000         .10000E-03   10000.    
     6 'norm      '    12.784       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11515E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.015       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25262E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2610       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .99965       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22297E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.194       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.799       1.0000         .10000E-03   10000.    
    22 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3267       1.0000         .10000E-03   10000.    
    26 'norm      '    11.540       1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.247       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92714       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87597       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.

 FCN=   5699.246     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3719 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79843        .67818        .10634E-06    .26289E-04
   2  Prefactor     24.714        16.262       -.10184E-05   -.81056E-04
   3  Prefactor     .90528        1.9693        .38374E-06    .64351E-03
   4  Prefactor     .10000E-03    18.052       -.25292E-06** at limit **
   5  Prefactor     19.454        12.407        .30203E-06   -.56687E-04
   6  norm          12.773        6.3801        .56544E-06   -.10340E-03
   7  Prefactor     .10000E-03    1.1528        .12286E-06** at limit **
   8  Prefactor     19.009        25.618        .59537E-05   -.21036E-05
   9  Prefactor     .10000E-03    241.80        .18825E-04** at limit **
  10  Prefactor     .10000E-03    2.1138        .53875E-07** at limit **
  11  Prefactor     .10000E-03    21.987        .11201E-05** at limit **
  12  Prefactor     3.2615        3.6622        .27403E-06   -.24504E-03
  13  norm          .10000E-03    .83579       -.23158E-07** at limit **
  14  Prefactor     .10000E-03    7.8304       -.76033E-08** at limit **
  15  norm          .99960        .44607        .24826E-07   -.44989E-03
  16  Prefactor     .10000E-03    .95975        .56077E-08** at limit **
  17  norm          .10001E-03    5.4541        .90636E-06** at limit **
  18  Prefactor     2.1537        1.7870        .13176E-07   -.33702E-03
  19  Prefactor     .10000E-03    1.5500       -.40756E-07** at limit **
  20  Prefactor     13.189        9.5631       -.13629E-06   -.43248E-04
  21  Prefactor     12.795        14.106        .13060E-05   -.95864E-05
  22  norm          .10000E-03    3.5966        .11125E-07** at limit **
  23  Prefactor     .10000E-03    8.6758       -.91223E-08** at limit **
  24  Prefactor     .10000E-03    27.136       -.36949E-05** at limit **
  25  Prefactor     1.3307        2.7954        .48387E-06   -.86053E-03
  26  norm          11.542        10.898        .55694E-07   -.17122E-04
  27  Prefactor     46.296        37.602        .11968E-04    .20139E-04
  28  Normalizat    .92707        .17024       -.27108E-05   -.11635E-03
  29  Prefactor     .87582        .17853        .26062E-06   -.25077E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.798432
  Prefactor  = 24.7143
  Prefactor  = 0.905282
  Prefactor  = 0.0001
  Prefactor  = 19.4539
  norm       = 12.7726
  Prefactor  = 0.0001
  Prefactor  = 19.0091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26148
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.999603
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 2.15375
  Prefactor  = 0.0001
  Prefactor  = 13.1895
  Prefactor  = 12.7952
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33065
  norm       = 11.5423
  Prefactor  = 46.2956
  Normalizat = 0.927066
  Prefactor  = 0.875824
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.246     FROM HESSE     STATUS=OK           561 CALLS     4280 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79843        .65646        .52453E-03   -1.5529    
   2  Prefactor     24.714        15.897        .80583E-04   -1.4713    
   3  Prefactor     .90528        1.5778        .14594E-02   -1.5518    
   4  Prefactor     .10000E-03    18.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.454        12.401        .90821E-04   -1.4826    
   6  norm          12.773        6.3570        .11203E-03   -1.4993    
   7  Prefactor     .10000E-03    4.7454        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.009        25.659        .91849E-04   -1.4836    
   9  Prefactor     .10000E-03    246.03        .20007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1904        .21428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2615        3.6482        .13964E-03   -1.5347    
  13  norm          .10000E-03    .85362        .67351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99960        .44205        .32063E-04   -1.5508    
  16  Prefactor     .10000E-03    .96834        .71988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    27.787        .33321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1537        1.7640        .86508E-04   -1.5414    
  19  Prefactor     .10000E-03    1.5599        .91733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.189        9.5637        .11027E-03   -1.4981    
  21  Prefactor     12.795        14.102        .11196E-03   -1.4992    
  22  norm          .10000E-03    3.5968        .13983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3307        20.170        .19078E-02   -1.5477    
  26  norm          11.542        10.904        .11793E-03   -1.5028    
  27  Prefactor     46.296        37.552        .58959E-04   -1.4346    
  28  Normalizat    .92707        .19882        .23010E-03   -.95516    
  29  Prefactor     .87582        .20788        .25793E-03   -.96991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45653e-09
Minuit parameter uncertainties:
  1  0.656463
  2  15.8999
  3  1.57785
  4  2.81342e-05
  5  12.4028
  6  6.35737
  7  1.16006e-05
  8  25.6742
  9  0.000112462
  10  4.94137e-06
  11  1.54715e-05
  12  3.64844
  13  2.12836e-06
  14  2.3174e-06
  15  0.442049
  16  1.45865e-06
  17  0.00104867
  18  1.76405
  19  4.8495e-06
  20  9.56483
  21  14.1055
  22  2.05928e-07
  23  1.1077e-06
  24  3.13065e-05
  25  10.3652
  26  10.9056
  27  37.5717
  28  0.198974
  29  0.208069
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.317e-06  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:  8.758e-01  2.081e-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:  9.271e-01  1.990e-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: 5.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113555/likelihoodResults_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.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) = 5699.2463114
delta logL = -0.00060744782968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5699.24570581
delta logL = -1.8641785573e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4329       1.0000          .0000       10.000    
     3 'Normalizat'    .92687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87605       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=   5699.246     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10320E-03    7.5736        .18142E-01** at limit **
   2  Index         2.3374        6.6372        .50000        .20178E-04
   3  Normalizat    .92706        .37663E-02    .23010E-03    .64131E-04
   4  Prefactor     .87583        .41375E-02    .25793E-03    .46369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103202
  Index      = 2.33743
  Normalizat = 0.927064
  Prefactor  = 0.875826
 **********
 **   18 **HESSE 
 **********

 FCN=   5699.246     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10320E-03    88.438        .21678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3374        5.9903        .50000       -.56157    
   3  Normalizat    .92706        .12961E-01    .92040E-05   -.95516    
   4  Prefactor     .87583        .14238E-01    .10317E-04   -.96991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.9357e-09
Minuit parameter uncertainties:
  1  0.0337051
  2  401.529
  3  0.0129605
  4  0.0142381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113555': 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) = 5699.2457035
delta logL = 4.52509084425e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.032e-04  3.371e-02  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.337e+00  4.015e+02  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.758e-01  1.424e-02  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:  9.271e-01  1.296e-02  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/113555/cmap_HighResolution_338601601_338860801_4FGL_J0916.7+3856_daily_bin383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-08-31 06:17:25.697797', job_id='113555', GAL2='0.88', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630415845.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='383' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:17:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 113555: <4FGL_J0916.7+3856_daily_bin383> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin383> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:01:00 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 06:01:01 2021
Terminated at Tue Aug 31 06:17:29 2021
Results reported at Tue Aug 31 06:17:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin383 139.19 38.9479 338601601 338860801 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 :                                   912.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            989 sec.

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

