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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin347
RA = 139.19, Dec = 38.9479
tmin = 329270401, tmax = 329529601
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='113519', job_status='RUN', time_executed='2021-08-31 06:01:58.178359', time_epoch_executed='1630414918.18' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113519

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113519/ft1_4FGL_J0916.7+3856_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113519/ft1_4FGL_J0916.7+3856_daily_bin347.fits outfile=/scratch/kocevski/113519/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin347.fits ra=139.19 dec=38.9479 rad=12.0 tmin=329270401.0 tmax=329529601.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.92
user 3.43
sys 0.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/113519/ltcube_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.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/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits
.....................!
real 12.17
user 11.44
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/113519/ltcube_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.fits outfile=/scratch/kocevski/113519/expmap_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.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/113519/ltcube_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.fits
.....................!
real 190.83
user 185.43
sys 4.66

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/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits scfile=/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits outfile=/scratch/kocevski/113519/cmap_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.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.84
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits scfile=/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits outfile=/scratch/kocevski/113519/cmap_HighResolution_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.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.85
user 0.37
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113519/Model_4FGL_J0916.7+3856_daily_bin347.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/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits.....................!
real 54.55
user 52.54
sys 1.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits', '/scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits', expMap='/scratch/kocevski/113519/expmap_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.fits', expCube='/scratch/kocevski/113519/ltcube_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113519/Model_4FGL_J0916.7+3856_daily_bin347.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/113519/ft1_filtered_4FGL_J0916.7+3856_daily_bin347.fits
Spacecraft file(s): /scratch/kocevski/113519/ft2_4FGL_J0916.7+3856_daily_bin347.fits
Exposure map: /scratch/kocevski/113519/expmap_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.fits
Exposure cube: /scratch/kocevski/113519/ltcube_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113519/Model_4FGL_J0916.7+3856_daily_bin347.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6382.92737328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5373       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.427       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5186       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54940       1.0000         .10000E-03   10000.    
    13 'norm      '    .21622E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .24121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3399       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61363       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3853       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6048       1.0000         .10000E-03   10000.    
    22 'norm      '    20.373       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7715       1.0000         .10000E-03   10000.    
    26 'norm      '    25.849       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88094       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98502       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=   6382.868     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3216 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6386        .67186        .82531E-02    .18418E-03
   2  Prefactor     7.9959        12.951        .35444E-02    .15840E-02
   3  Prefactor     2.5369        3.0546        .64099E-02    .78927E-03
   4  Prefactor     8.2043        13.395        .34991E-02   -.90630E-04
   5  Prefactor     .10000E-03    2.7045        .90712E-02** at limit **
   6  norm          21.426        8.0827        .21632E-02    .21584E-03
   7  Prefactor     3.5184        2.3449        .53879E-02    .39526E-03
   8  Prefactor     .10000E-03    12.531        .90712E-02** at limit **
   9  Prefactor     .10000E-03    23.248        .90712E-02** at limit **
  10  Prefactor     5.6540        3.2242        .42236E-02   -.24283E-03
  11  Prefactor     14.250        21.971        .26525E-02    .25674E-03
  12  Prefactor     .54788        2.2595        .36904E-01    .76386E-03
  13  norm          .74252E-02    .88846        .53406E-01   -.44162E-03
  14  Prefactor     .10000E-03    12.518        .90712E-02** at limit **
  15  norm          .24113        1.4861        .10164E-01    .16065E-02
  16  Prefactor     1.3401        8.2107        .94678E-02    .13484E-02
  17  norm          .10000E-03    2.8836        .90712E-02** at limit **
  18  Prefactor     .61408        1.7131        .33324E-01    .86368E-03
  19  Prefactor     5.3902        3.7662        .43292E-02   -.31794E-03
  20  Prefactor     .10000E-03    4.4968        .90712E-02** at limit **
  21  Prefactor     8.6045        14.573        .34163E-02   -.10466E-03
  22  norm          20.364        15.969        .22184E-02   -.12049E-03
  23  Prefactor     .10000E-03    43.643        .90712E-02** at limit **
  24  Prefactor     .10001E-03    89.726        .90712E-02** at limit **
  25  Prefactor     1.7677        20.761        .78653E-02    .37049E-03
  26  norm          25.847        14.744        .19698E-02   -.29073E-03
  27  Prefactor     .10000E-03    11.980        .90712E-02** at limit **
  28  Normalizat    .88085        .16948        .44658E-01    .72632E-03
  29  Prefactor     .98521        .17679        .46080E-01    .63241E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63864
  Prefactor  = 7.99586
  Prefactor  = 2.53694
  Prefactor  = 8.20426
  Prefactor  = 0.0001
  norm       = 21.4262
  Prefactor  = 3.5184
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.65401
  Prefactor  = 14.25
  Prefactor  = 0.547882
  norm       = 0.00742522
  Prefactor  = 0.000100001
  norm       = 0.241127
  Prefactor  = 1.34011
  norm       = 0.0001
  Prefactor  = 0.614083
  Prefactor  = 5.39022
  Prefactor  = 0.0001
  Prefactor  = 8.60447
  norm       = 20.364
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 1.76773
  norm       = 25.8465
  Prefactor  = 0.0001
  Normalizat = 0.880853
  Prefactor  = 0.985215
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.868     FROM HESSE     STATUS=OK           567 CALLS     3783 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6386        .67146        .39692E-04   -1.5452    
   2  Prefactor     7.9959        12.861        .70889E-03   -1.5142    
   3  Prefactor     2.5369        3.0169        .13325E-03   -1.5389    
   4  Prefactor     8.2043        13.380        .13996E-03   -1.5135    
   5  Prefactor     .10000E-03    2.7117        .12830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.426        8.0759        .86529E-04   -1.4782    
   7  Prefactor     3.5184        2.3371        .94283E-04   -1.5333    
   8  Prefactor     .10000E-03    12.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6540        3.2251        .10478E-03   -1.5232    
  11  Prefactor     14.250        21.906        .10610E-03   -1.4953    
  12  Prefactor     .54788        3.2651        .19975E-02   -1.5560    
  13  norm          .74252E-02    2.3603        .26070E-01   -1.5691    
  14  Prefactor     .10000E-03    12.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .24113        .64074        .63860E-04   -1.5610    
  16  Prefactor     1.3401        3.5951        .14866E-03   -1.5476    
  17  norm          .10000E-03    2.8997        .13239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .61408        1.4870        .14871E-02   -1.5551    
  19  Prefactor     5.3902        3.7686        .12356E-03   -1.5244    
  20  Prefactor     .10000E-03    4.5254        .16531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.6045        14.554        .13665E-03   -1.5121    
  22  norm          20.364        15.904        .88737E-04   -1.4805    
  23  Prefactor     .10000E-03    44.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    91.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7677        20.805        .31461E-03   -1.5442    
  26  norm          25.847        14.756        .78792E-04   -1.4691    
  27  Prefactor     .10000E-03    11.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88085        .19001        .23934E-03   -.97136    
  29  Prefactor     .98521        .20115        .25305E-03   -.93224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25267e-08
Minuit parameter uncertainties:
  1  0.67146
  2  12.8651
  3  3.01707
  4  13.385
  5  3.55216e-05
  6  8.0763
  7  2.33715
  8  7.56442e-05
  9  0.000227049
  10  3.22517
  11  21.9181
  12  2.67495
  13  0.262993
  14  0.00019562
  15  0.64076
  16  3.59571
  17  1.75187e-05
  18  1.4871
  19  3.7688
  20  2.77621e-05
  21  14.56
  22  15.9075
  23  4.84578e-05
  24  0.00195268
  25  12.134
  26  14.7579
  27  1.27774e-05
  28  0.190155
  29  0.201308
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.956e-04  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:  9.852e-01  2.013e-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:  8.809e-01  1.902e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113519/likelihoodResults_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.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) = 6382.86882596
delta logL = -0.000377085504624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6382.86844888
delta logL = 9.52240952756e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4641       1.0000          .0000       10.000    
     3 'Normalizat'    .88086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98522       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6382.868     FROM MIGRAD    STATUS=FAILED        87 CALLS      237 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    534.25        .18142E-02** at limit **
   2  Index         2.6052        8.6959        .50000       -.38600E-05
   3  Normalizat    .88085        .26053E-01    .23934E-03    .19427E-04
   4  Prefactor     .98521        .29105E-01    .25305E-03    .11142E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6382.868     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      383 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10155E-03    534.25        .56231E-03** at limit **
   2  Index         2.6052        8.6959        .10167E-03   -.38600E-05
   3  Normalizat    .88085        .26053E-01    .17668E-05    .19427E-04
   4  Prefactor     .98521        .29105E-01    .10968E-05    .11142E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6382.868     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      428 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    740.52        .36285E-02** at limit **
   2  Index         3.1585        6.5770        .50000        .68439E-08
   3  Normalizat    .88085        .30682E-01    .95738E-05   -.11400E-03
   4  Prefactor     .98521        .34236E-01    .10122E-04   -.13882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.15847
  Normalizat = 0.880851
  Prefactor  = 0.985214
 **********
 **   18 **HESSE 
 **********

 FCN=   6382.868     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.955        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1585        6.5327        .50000       -.37719    
   3  Normalizat    .88085        .17315        .19148E-05   -.97136    
   4  Prefactor     .98521        .19357        .20244E-05   -.93224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85159e-11
Minuit parameter uncertainties:
  1  0.00017325
  2  4.64978
  3  0.173258
  4  0.193703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113519': 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) = 6382.86844849
delta logL = 3.91793037124e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.732e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.158e+00  4.650e+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:  9.852e-01  1.937e-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:  8.809e-01  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 139.190 38.948

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/113519/cmap_HighResolution_329270401_329529601_4FGL_J0916.7+3856_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-08-31 06:16:41.732020', job_id='113519', GAL2='0.99', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630415801.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='347' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 113519: <4FGL_J0916.7+3856_daily_bin347> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin347> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:00:57 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:00:58 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:00:58 2021
Terminated at Tue Aug 31 06:16:42 2021
Results reported at Tue Aug 31 06:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin347 139.19 38.9479 329270401 329529601 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 :                                   878.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            945 sec.

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

