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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin141
RA = 139.19, Dec = 38.9479
tmin = 275875201, tmax = 276134401
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='112470', job_status='RUN', time_executed='2021-08-31 05:59:19.138501', time_epoch_executed='1630414759.14' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112470

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112470/ft1_4FGL_J0916.7+3856_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112470/ft1_4FGL_J0916.7+3856_daily_bin141.fits outfile=/scratch/kocevski/112470/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin141.fits ra=139.19 dec=38.9479 rad=12.0 tmin=275875201.0 tmax=276134401.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.47
user 3.00
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112470/ft1_filtered_4FGL_J0916.7+3856_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/112470/ltcube_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.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/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits
.....................!
real 10.75
user 10.15
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112470/ft1_filtered_4FGL_J0916.7+3856_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/112470/ltcube_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.fits outfile=/scratch/kocevski/112470/expmap_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.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/112470/ltcube_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.fits
.....................!
real 192.45
user 187.30
sys 4.34

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/112470/ft1_filtered_4FGL_J0916.7+3856_daily_bin141.fits scfile=/scratch/kocevski/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits outfile=/scratch/kocevski/112470/cmap_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.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 1.39
user 0.35
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112470/ft1_filtered_4FGL_J0916.7+3856_daily_bin141.fits scfile=/scratch/kocevski/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits outfile=/scratch/kocevski/112470/cmap_HighResolution_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.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.91
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112470/ft1_filtered_4FGL_J0916.7+3856_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/112470/ft2_4FGL_J0916.7+3856_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112470/Model_4FGL_J0916.7+3856_daily_bin141.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/112470/ft1_filtered_4FGL_J0916.7+3856_daily_bin141.fits.....................!
real 51.03
user 48.31
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6717       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.465       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
     6 'norm      '    14.340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66121       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0551       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .97225E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    10.776       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0287       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.306       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.163       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80743       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=   5421.905     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3750 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6718        .79082        .24041E-07    .70350E-03
   2  Prefactor     .10000E-03    31.221        .65884E-06** at limit **
   3  Prefactor     .10004E-03    2.3065       -.13251E-05** at limit **
   4  Prefactor     11.468        23.587        .26286E-06    .54459E-04
   5  Prefactor     10.623        11.499        .10751E-06    .39482E-04
   6  norm          14.338        7.3225       -.24401E-06   -.24914E-03
   7  Prefactor     .65779        2.7966        .19070E-05    .17160E-03
   8  Prefactor     56.868        33.019       -.20054E-06   -.44165E-04
   9  Prefactor     .10001E-03    134.77       -.28140E-05** at limit **
  10  Prefactor     .10000E-03    3.0101        .42655E-07** at limit **
  11  Prefactor     .10000E-03    44.855       -.72702E-06** at limit **
  12  Prefactor     .10000E-03    2.5567        .32090E-07** at limit **
  13  norm          2.7781        2.2487       -.32242E-06   -.55469E-03
  14  Prefactor     .10002E-03    64.594        .36691E-05** at limit **
  15  norm          1.0473        .65368       -.32654E-07   -.25685E-02
  16  Prefactor     .15434        2.5983        .99962E-06   -.14192E-02
  17  norm          10.777        8.1574        .99437E-06    .22868E-03
  18  Prefactor     2.0274        1.9423        .14511E-06   -.79646E-04
  19  Prefactor     .55529        6.0446        .43788E-05    .28688E-03
  20  Prefactor     15.674        11.330       -.53283E-07   -.11190E-03
  21  Prefactor     11.301        16.813        .13107E-06   -.15927E-04
  22  norm          .10000E-03    6.5133        .10837E-07** at limit **
  23  Prefactor     .10000E-03    8.6626        .28005E-06** at limit **
  24  Prefactor     13.160        25.354        .45330E-06   -.87411E-05
  25  Prefactor     .10000E-03    19.019        .75407E-07** at limit **
  26  norm          .10000E-03    2.8988        .63931E-08** at limit **
  27  Prefactor     .10000E-03    11.063        .11248E-07** at limit **
  28  Normalizat    1.2213        .19136       -.88172E-06   -.18602E-03
  29  Prefactor     .80761        .19444       -.38796E-06   -.11650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67176
  Prefactor  = 0.000100002
  Prefactor  = 0.00010004
  Prefactor  = 11.4676
  Prefactor  = 10.6229
  norm       = 14.3383
  Prefactor  = 0.657786
  Prefactor  = 56.8684
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.77808
  Prefactor  = 0.000100016
  norm       = 1.04726
  Prefactor  = 0.154341
  norm       = 10.7773
  Prefactor  = 2.02744
  Prefactor  = 0.555286
  Prefactor  = 15.674
  Prefactor  = 11.3015
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.16
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22129
  Prefactor  = 0.807613
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.905     FROM HESSE     STATUS=OK           553 CALLS     4303 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6718        .78588        .43180E-04   -1.5449    
   2  Prefactor     .10000E-03    31.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    8.6258        .18510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.468        23.479        .11831E-03   -1.5031    
   5  Prefactor     10.623        11.483        .12294E-03   -1.5056    
   6  norm          14.338        7.3066        .10577E-03   -1.4950    
   7  Prefactor     .65779        2.8801        .22878E-03   -1.5546    
   8  Prefactor     56.868        33.025        .53199E-04   -1.4198    
   9  Prefactor     .10001E-03    135.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0633        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6243        .22944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7781        2.2466        .94816E-04   -1.5375    
  14  Prefactor     .10002E-03    65.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0473        1.1771        .35937E-04   -1.5503    
  16  Prefactor     .15434        78.666        .16118E-02   -1.5629    
  17  norm          10.777        8.1301        .12205E-03   -1.5051    
  18  Prefactor     2.0274        1.9352        .96386E-04   -1.5423    
  19  Prefactor     .55529        6.2441        .34222E-03   -1.5559    
  20  Prefactor     15.674        11.329        .10115E-03   -1.4916    
  21  Prefactor     11.301        16.814        .11915E-03   -1.5035    
  22  norm          .10000E-03    6.5194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.160        25.391        .11040E-03   -1.4982    
  25  Prefactor     .10000E-03    19.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.8997        .12244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2213        .23391        .23044E-03   -.85948    
  29  Prefactor     .80761        .23485        .29307E-03   -.99448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21142e-08
Minuit parameter uncertainties:
  1  0.785887
  2  0.000482727
  3  0.00118117
  4  23.4975
  5  11.4854
  6  7.30701
  7  2.7528
  8  33.0359
  9  0.00283327
  10  3.56192e-06
  11  0.000607962
  12  8.82801e-06
  13  2.24671
  14  0.00204071
  15  1.17714
  16  6.97583
  17  8.1309
  18  1.93524
  19  3.72426
  20  11.3306
  21  16.8211
  22  3.63575e-07
  23  7.65877e-05
  24  25.4115
  25  1.36013e-05
  26  2.68504e-07
  27  4.97949e-07
  28  0.234113
  29  0.235146
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.041e-03  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.076e-01  2.351e-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.221e+00  2.341e-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: 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/112470/likelihoodResults_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.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) = 5421.90550089
delta logL = -7.27464403099e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.90542868
delta logL = -5.29121280124e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0358       1.0000          .0000       10.000    
     3 'Normalizat'    1.2213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80762       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=   5421.905     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      252 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6156        .90712E-01** at limit **
   2  Index         2.9993        3.0092        .50000        .77878E-05
   3  Normalizat    1.2213        .33457E-02    .52119E-01   -.40174E-03
   4  Prefactor     .80762        .35541E-02    .66247E-01   -.17780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.99928
  Normalizat = 1.22128
  Prefactor  = 0.807615
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.905     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7379.0        .38227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9993        7.1887        .50000       -.41167    
   3  Normalizat    1.2213        .68599E-01    .23044E-03   -.85948    
   4  Prefactor     .80762        .71795E-01    .29307E-03   -.99448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09069e-10
Minuit parameter uncertainties:
  1  0.0055874
  2  53.4263
  3  0.0686037
  4  0.0718036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112470': 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) = 5421.90542852
delta logL = -3.7736754166e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.587e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.999e+00  5.343e+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:  8.076e-01  7.180e-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:  1.221e+00  6.860e-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/112470/cmap_HighResolution_275875201_276134401_4FGL_J0916.7+3856_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-08-31 06:12:54.334271', job_id='112470', GAL2='0.81', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630415574.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-3.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='141' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:12:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 112470: <4FGL_J0916.7+3856_daily_bin141> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin141> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:33 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:36 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:36 2021
Terminated at Tue Aug 31 06:12:54 2021
Results reported at Tue Aug 31 06:12:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin141 139.19 38.9479 275875201 276134401 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 :                                   811.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

