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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin174
RA = 139.19, Dec = 38.9479
tmin = 284428801, tmax = 284688001
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='112535', job_status='RUN', time_executed='2021-08-31 05:59:30.395189', time_epoch_executed='1630414770.4' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112535

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112535/ft1_4FGL_J0916.7+3856_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112535/ft1_4FGL_J0916.7+3856_daily_bin174.fits outfile=/scratch/kocevski/112535/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin174.fits ra=139.19 dec=38.9479 rad=12.0 tmin=284428801.0 tmax=284688001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.25
user 3.31
sys 0.91

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112535/ft1_filtered_4FGL_J0916.7+3856_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/112535/ltcube_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.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/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits
.....................!
real 12.84
user 11.49
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112535/ft1_filtered_4FGL_J0916.7+3856_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/112535/ltcube_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.fits outfile=/scratch/kocevski/112535/expmap_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.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/112535/ltcube_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.fits
.....................!
real 192.13
user 185.83
sys 5.53

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/112535/ft1_filtered_4FGL_J0916.7+3856_daily_bin174.fits scfile=/scratch/kocevski/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits outfile=/scratch/kocevski/112535/cmap_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.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.35
user 0.38
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112535/ft1_filtered_4FGL_J0916.7+3856_daily_bin174.fits scfile=/scratch/kocevski/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits outfile=/scratch/kocevski/112535/cmap_HighResolution_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.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 1.51
user 0.37
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112535/ft1_filtered_4FGL_J0916.7+3856_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/112535/ft2_4FGL_J0916.7+3856_daily_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112535/Model_4FGL_J0916.7+3856_daily_bin174.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/112535/ft1_filtered_4FGL_J0916.7+3856_daily_bin174.fits.....................!
real 53.14
user 49.33
sys 2.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .72445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    107.19       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18553E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1060       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.566       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3530       1.0000         .10000E-03   10000.    
    17 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    22.925       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .26456E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    81.097       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2468       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4523       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2808       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62552       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=   5683.850     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3710 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59261        .63431        .45701E-07   -.51535E-04
   2  Prefactor     .10000E-03    4.0878       -.25072E-06** at limit **
   3  Prefactor     1.1961        1.6534        .61380E-07   -.18242E-05
   4  Prefactor     31.923        27.616        .14542E-06   -.35669E-04
   5  Prefactor     .10000E-03    4.2634        .13276E-06** at limit **
   6  norm          4.0309        4.9712        .15620E-05   -.70295E-03
   7  Prefactor     .72359        1.8184        .63996E-06   -.11751E-03
   8  Prefactor     35.469        25.175        .14428E-06   -.19039E-04
   9  Prefactor     107.23        92.055        .21016E-05    .13605E-03
  10  Prefactor     1.7206        2.2692        .57432E-07   -.31070E-04
  11  Prefactor     .10000E-03    86.444       -.29779E-05** at limit **
  12  Prefactor     1.1083        2.1961       -.24016E-06   -.42414E-03
  13  norm          .10000E-03    .95727        .48733E-07** at limit **
  14  Prefactor     23.550        21.443        .24704E-06    .19878E-04
  15  norm          .10000E-03    .16171       -.47815E-06** at limit **
  16  Prefactor     4.3565        2.8621        .15300E-05   -.46343E-03
  17  norm          .10000E-03    3.6314        .11265E-07** at limit **
  18  Prefactor     .10000E-03    1.0442       -.11555E-06** at limit **
  19  Prefactor     4.8105        5.7061        .92218E-06    .11943E-03
  20  Prefactor     1.9484        18.290        .27921E-05    .23934E-04
  21  Prefactor     .10000E-03    18.308        .14085E-06** at limit **
  22  norm          22.910        21.469        .17041E-05   -.35217E-03
  23  Prefactor     .10002E-03    55.017        .10150E-04** at limit **
  24  Prefactor     81.100        45.485        .10394E-05   -.10565E-03
  25  Prefactor     .10000E-03    4.1591        .35372E-07** at limit **
  26  norm          2.2434        19.702        .20768E-05   -.11448E-04
  27  Prefactor     8.4547        23.786        .51871E-06   -.21147E-04
  28  Normalizat    1.2805        .19782       -.26394E-05    .13319E-03
  29  Prefactor     .62578        .18685        .14441E-05   -.14520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.592607
  Prefactor  = 0.0001
  Prefactor  = 1.19613
  Prefactor  = 31.9235
  Prefactor  = 0.0001
  norm       = 4.03086
  Prefactor  = 0.723585
  Prefactor  = 35.4695
  Prefactor  = 107.231
  Prefactor  = 1.72061
  Prefactor  = 0.000100002
  Prefactor  = 1.10826
  norm       = 0.0001
  Prefactor  = 23.5496
  norm       = 0.0001
  Prefactor  = 4.35649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.8105
  Prefactor  = 1.94839
  Prefactor  = 0.0001
  norm       = 22.9099
  Prefactor  = 0.000100019
  Prefactor  = 81.0999
  Prefactor  = 0.0001
  norm       = 2.24343
  Prefactor  = 8.4547
  Normalizat = 1.28051
  Prefactor  = 0.625775
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.850     FROM HESSE     STATUS=OK           561 CALLS     4271 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59261        .59945        .59188E-03   -1.5554    
   2  Prefactor     .10000E-03    4.0949        .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1961        1.6199        .11031E-03   -1.5489    
   4  Prefactor     31.923        27.518        .70919E-04   -1.4577    
   5  Prefactor     .10000E-03    4.2702        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0309        4.9511        .89725E-03   -1.5306    
   7  Prefactor     .72359        1.4849        .15173E-02   -1.5538    
   8  Prefactor     35.469        25.183        .67291E-04   -1.4516    
   9  Prefactor     107.23        92.324        .19422E-03   -1.3633    
  10  Prefactor     1.7206        2.2539        .12668E-03   -1.5446    
  11  Prefactor     .10000E-03    87.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1083        1.7508        .14857E-02   -1.5497    
  13  norm          .10000E-03    .97715        .71923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.550        21.258        .82514E-04   -1.4737    
  15  norm          .10000E-03    .19297        .59945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3565        2.9194        .49117E-03   -1.5290    
  17  norm          .10000E-03    3.6392        .14020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.0580        .75141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8105        5.7009        .18177E-03   -1.5269    
  20  Prefactor     1.9484        18.121        .29632E-03   -1.5429    
  21  Prefactor     .10000E-03    18.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          22.910        21.311        .83659E-04   -1.4750    
  23  Prefactor     .10002E-03    57.953        .21442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     81.100        45.538        .44600E-04   -1.3904    
  25  Prefactor     .10000E-03    4.1771        .15015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2434        19.701        .27415E-03   -1.5408    
  27  Prefactor     8.4547        23.816        .13789E-03   -1.5126    
  28  Normalizat    1.2805        .23565        .22124E-03   -.84150    
  29  Prefactor     .62578        .22258        .31059E-03   -1.0651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1496e-09
Minuit parameter uncertainties:
  1  0.599454
  2  1.41457e-05
  3  1.61999
  4  27.5288
  5  1.39927e-05
  6  4.95157
  7  1.48494
  8  25.1905
  9  92.4479
  10  2.25406
  11  0.000770308
  12  1.75085
  13  2.79761e-06
  14  21.2651
  15  9.49415e-06
  16  2.91945
  17  4.42338e-06
  18  3.95244e-06
  19  5.7015
  20  11.8884
  21  0.000132874
  22  21.3177
  23  0.00209834
  24  45.5578
  25  1.00955e-05
  26  13.3017
  27  23.8423
  28  0.235851
  29  0.22289
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.355e+01  2.127e+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:  6.258e-01  2.229e-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.281e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.25e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/112535/likelihoodResults_284428801_284688001_4FGL_J0916.7+3856_daily_bin174.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) = 5683.59230765
delta logL = 0.257888706791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.58201482
delta logL = 0.268181541293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.572       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1447       1.0000          .0000       10.000    
     3 'Normalizat'    1.2462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65168       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=   5683.582     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      309 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.566        29.814        .11777E-03   -.31577E-03
   2  Index         3.1452        1.5631        .59954E-02   -.69413E-04
   3  Normalizat    1.2461        .22254        .22376E-03    .32062E-03
   4  Prefactor     .65173        .22180        .30493E-03    .12564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.566
  Index      = 3.14523
  Normalizat = 1.24615
  Prefactor  = 0.651729
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.582     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.566        19.993        .47106E-05   -1.5028    
   2  Index         3.1452        1.0572        .23982E-03   -.38004    
   3  Normalizat    1.2461        .22019        .44752E-04   -.85189    
   4  Prefactor     .65173        .21944        .12197E-04   -1.0545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23237e-10
Minuit parameter uncertainties:
  1  20.0045
  2  1.06655
  3  0.220358
  4  0.21973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112535': 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) = 5683.5820145
delta logL = 0.268181855898

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.157e+01  2.000e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.145e+00  1.067e+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:  6.517e-01  2.197e-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.246e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 139.190 38.948
Photon Index (Free Index): 3.15 +/- 1.07
Photon Flux (Free Index): 6.76e-08 +/- 5.80e-08
Energy Flux (Free Index): 1.26e-05 +/- 9.81e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', comment='SUCCESS', photon_flux='4.25e-08', energy_flux2='1.26e-05', photon_flux_error='3.84e-08', dlogl='2.68e-01', energy_flux='1.30e-05', photon_flux2='6.76e-08', job_status='DONE', time_completed='2021-08-31 06:13:35.668843', photon_index_error2='1.07', photon_index2='3.15', ts='1.90', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='9.81e-06', EG='1.28', time_epoch_completed='1630415615.67', return_code='0', job_id='112535', GAL2='0.65', EG2='1.25', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.80e-08', ts2='2.48', photon_index='2.46' WHERE bin_id='174' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:13:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 112535: <4FGL_J0916.7+3856_daily_bin174> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin174 139.19 38.9479 284428801 284688001 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 :                                   845.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

