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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin191
RA = 139.19, Dec = 38.9479
tmin = 288835201, tmax = 289094401
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='112569', job_status='RUN', time_executed='2021-08-31 05:59:22.078439', time_epoch_executed='1630414762.08' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112569

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112569/ft1_4FGL_J0916.7+3856_daily_bin191.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112569/ft1_4FGL_J0916.7+3856_daily_bin191.fits outfile=/scratch/kocevski/112569/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin191.fits ra=139.19 dec=38.9479 rad=12.0 tmin=288835201.0 tmax=289094401.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.01
user 3.40
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.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/112569/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin191.fits evtable="EVENTS" outfile="/scratch/kocevski/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.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.92
user 0.34
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.fits" evtable="EVENTS" scfile=/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits sctable="SC_DATA" outfile=/scratch/kocevski/112569/ltcube_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.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/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits
.....................!
real 12.44
user 11.55
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/112569/ltcube_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.fits outfile=/scratch/kocevski/112569/expmap_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.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/112569/ltcube_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.fits
.....................!
real 191.45
user 185.85
sys 4.72

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/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.fits scfile=/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits outfile=/scratch/kocevski/112569/cmap_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.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.95
user 0.37
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.fits scfile=/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits outfile=/scratch/kocevski/112569/cmap_HighResolution_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.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.04
user 0.38
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/112569/ft2_4FGL_J0916.7+3856_daily_bin191.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112569/Model_4FGL_J0916.7+3856_daily_bin191.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/112569/ft1_filtered_4FGL_J0916.7+3856_daily_bin191.fits.....................!
real 51.65
user 47.68
sys 1.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8644       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    136.07       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1817       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6907       1.0000         .10000E-03   10000.    
    13 'norm      '    .55897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15746       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3104       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3003       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7478       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.809       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.078       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.9227       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.401       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68865       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0917       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=   5442.642     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3813 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1195        .87058        .73860E-08   -.64672E-03
   2  Prefactor     2.7999        21.076       -.22866E-05   -.13721E-03
   3  Prefactor     1.7117        2.8557        .33215E-06    .24157E-04
   4  Prefactor     1.8555        66.149        .84520E-05    .46383E-04
   5  Prefactor     .10000E-03    4.0328       -.24343E-06** at limit **
   6  norm          .10000E-03    1.3007       -.14853E-07** at limit **
   7  Prefactor     .10000E-03    .99425       -.57071E-07** at limit **
   8  Prefactor     5.3852        16.233        .82062E-06    .46038E-05
   9  Prefactor     136.06        75.078        .17751E-05    .27698E-04
  10  Prefactor     4.1817        3.4921        .13888E-06   -.10514E-04
  11  Prefactor     .10000E-03    12.662        .50800E-07** at limit **
  12  Prefactor     2.6911        3.1433       -.49456E-06   -.58975E-03
  13  norm          .55908        1.4195        .16467E-06   -.12091E-04
  14  Prefactor     .10000E-03    11.771        .16014E-06** at limit **
  15  norm          .15795        .51982        .10041E-06   -.48744E-03
  16  Prefactor     3.3087        3.8086       -.16947E-06   -.49962E-03
  17  norm          2.1350        7.9133        .76397E-05   -.33853E-03
  18  Prefactor     .10000E-03    1.2785        .23207E-07** at limit **
  19  Prefactor     6.3003        4.7602        .15070E-06   -.35567E-04
  20  Prefactor     7.7489        7.4573        .40977E-07   -.27497E-04
  21  Prefactor     .10000E-03    10.400        .19965E-06** at limit **
  22  norm          .10000E-03    6.3143        .14337E-08** at limit **
  23  Prefactor     12.809        27.384       -.36834E-06   -.91017E-04
  24  Prefactor     12.077        40.728       -.91114E-06   -.53329E-04
  25  Prefactor     7.9227        11.978        .40835E-06   -.24571E-04
  26  norm          .10000E-03    10.265        .14249E-06** at limit **
  27  Prefactor     12.378        35.158        .65259E-05    .56882E-04
  28  Normalizat    .68853        .18692       -.35862E-06   -.22634E-03
  29  Prefactor     1.0919        .18397       -.20757E-05   -.46271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11954
  Prefactor  = 2.79991
  Prefactor  = 1.71168
  Prefactor  = 1.85547
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.38523
  Prefactor  = 136.057
  Prefactor  = 4.18167
  Prefactor  = 0.0001
  Prefactor  = 2.69114
  norm       = 0.559084
  Prefactor  = 0.0001
  norm       = 0.157952
  Prefactor  = 3.30872
  norm       = 2.13504
  Prefactor  = 0.0001
  Prefactor  = 6.30033
  Prefactor  = 7.74888
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.8088
  Prefactor  = 12.0771
  Prefactor  = 7.92272
  norm       = 0.0001
  Prefactor  = 12.3777
  Normalizat = 0.688528
  Prefactor  = 1.0919
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.642     FROM HESSE     STATUS=OK           567 CALLS     4380 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1195        .86583        .40549E-04   -1.5417    
   2  Prefactor     2.7999        19.876        .24327E-03   -1.5373    
   3  Prefactor     1.7117        2.7601        .13863E-03   -1.5446    
   4  Prefactor     1.8555        66.585        .30512E-03   -1.5436    
   5  Prefactor     .10000E-03    4.0421        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3014        .82169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0076        .71760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3852        16.200        .17315E-03   -1.5244    
   9  Prefactor     136.06        75.063        .17263E-03   -1.3370    
  10  Prefactor     4.1817        3.4913        .12100E-03   -1.5299    
  11  Prefactor     .10000E-03    12.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6911        3.0944        .13070E-03   -1.5380    
  13  norm          .55908        1.2033        .13280E-02   -1.5558    
  14  Prefactor     .10000E-03    11.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .15795        .46113        .63655E-03   -1.5629    
  16  Prefactor     3.3087        3.6211        .10085E-03   -1.5344    
  17  norm          2.1350        8.0299        .14112E-02   -1.5416    
  18  Prefactor     .10000E-03    2.0260        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3003        4.7106        .13073E-03   -1.5206    
  20  Prefactor     7.7489        7.4579        .14406E-03   -1.5151    
  21  Prefactor     .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.3153        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.809        27.172        .11192E-03   -1.4992    
  24  Prefactor     12.077        40.608        .11527E-03   -1.5013    
  25  Prefactor     7.9227        11.989        .14245E-03   -1.5145    
  26  norm          .10000E-03    10.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.378        35.109        .11375E-03   -1.5004    
  28  Normalizat    .68853        .21545        .26370E-03   -1.0435    
  29  Prefactor     1.0919        .21225        .22975E-03   -.89726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77733e-08
Minuit parameter uncertainties:
  1  0.865836
  2  14.9266
  3  2.76028
  4  22.2565
  5  2.49096e-05
  6  8.07841e-07
  7  2.51352e-06
  8  16.2131
  9  75.1151
  10  3.49146
  11  1.38919e-05
  12  3.09455
  13  1.20335
  14  4.1427e-05
  15  0.46114
  16  3.62135
  17  8.03397
  18  2.68593e-05
  19  4.7109
  20  7.45884
  21  1.49416e-05
  22  3.89216e-06
  23  27.1982
  24  40.7013
  25  11.9929
  26  1.27665e-05
  27  35.1672
  28  0.215711
  29  0.212418
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.143e-05  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:  1.092e+00  2.124e-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:  6.885e-01  2.157e-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: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112569/likelihoodResults_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.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) = 5442.64230606
delta logL = -0.000403094597459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5442.64190419
delta logL = -1.22067740449e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10970E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    .68829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0922       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=   5442.642     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10590E-03    10.496        .18142E-01** at limit **
   2  Index         2.2772        5.3529        .50000        .12488E-04
   3  Normalizat    .68853        .36365E-02    .26369E-03    .18194E-04
   4  Prefactor     1.0919        .39332E-02    .22976E-03    .17962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001059
  Index      = 2.27724
  Normalizat = 0.688527
  Prefactor  = 1.09191
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.642     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10590E-03    169.25        .26391E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2772        5.3218        .50000       -.57586    
   3  Normalizat    .68853        .14709E-01    .10548E-04   -1.0435    
   4  Prefactor     1.0919        .15909E-01    .91902E-05   -.89726    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15331e-08
Minuit parameter uncertainties:
  1  0.0633793
  2  773.093
  3  0.0147088
  4  0.0159088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112569': 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) = 5442.64190263
delta logL = 3.42260136676e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.059e-04  6.338e-02  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.277e+00  7.731e+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:  1.092e+00  1.591e-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:  6.885e-01  1.471e-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/112569/cmap_HighResolution_288835201_289094401_4FGL_J0916.7+3856_daily_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2021-08-31 06:13:02.141633', job_id='112569', GAL2='1.09', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630415582.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='191' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:13:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 112569: <4FGL_J0916.7+3856_daily_bin191> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin191 139.19 38.9479 288835201 289094401 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 :                                   816.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

