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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin308
RA = 139.19, Dec = 38.9479
tmin = 319161601, tmax = 319420801
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='113472', job_status='RUN', time_executed='2021-08-31 06:03:13.117472', time_epoch_executed='1630414993.12' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113472/ft1_4FGL_J0916.7+3856_daily_bin308.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits


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

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

Done.
real 6.57
user 4.24
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.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/113472/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.41
user 0.33
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits" evtable="EVENTS" scfile=/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits sctable="SC_DATA" outfile=/scratch/kocevski/113472/ltcube_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.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/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits
.....................!
real 13.85
user 11.44
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/113472/ltcube_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.fits outfile=/scratch/kocevski/113472/expmap_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.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/113472/ltcube_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.fits
.....................!
real 194.69
user 185.71
sys 5.59

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/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits scfile=/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits outfile=/scratch/kocevski/113472/cmap_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.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.83
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits scfile=/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits outfile=/scratch/kocevski/113472/cmap_HighResolution_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.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.87
user 0.40
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/113472/ft2_4FGL_J0916.7+3856_daily_bin308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113472/Model_4FGL_J0916.7+3856_daily_bin308.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/113472/ft1_filtered_4FGL_J0916.7+3856_daily_bin308.fits.....................!
real 38.63
user 36.69
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.376       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9782       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.6551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32284E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3277       1.0000         .10000E-03   10000.    
    17 'norm      '    .32324E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39540E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0175       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.429       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.3729       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .56888       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2477       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=   4154.631     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3826 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7875        .87678       -.43471E-08    .32715E-04
   2  Prefactor     14.382        22.321        .15204E-06    .85731E-05
   3  Prefactor     1.9763        4.8529       -.12906E-06   -.46681E-05
   4  Prefactor     .10000E-03    18.544        .31585E-06** at limit **
   5  Prefactor     .10000E-03    11.869       -.91973E-07** at limit **
   6  norm          5.6569        9.1801       -.23333E-06   -.59353E-04
   7  Prefactor     7.2125        4.2027       -.95750E-07   -.89519E-04
   8  Prefactor     12.544        21.496       -.33862E-07    .16094E-04
   9  Prefactor     .10000E-03    657.28        .29319E-04** at limit **
  10  Prefactor     5.3778        3.8669        .87267E-08    .20408E-04
  11  Prefactor     .10000E-03    90.029       -.44434E-05** at limit **
  12  Prefactor     .10000E-03    1.3497       -.64758E-07** at limit **
  13  norm          2.8719        2.1378        .34798E-07    .13698E-03
  14  Prefactor     .10000E-03    17.034       -.67770E-06** at limit **
  15  norm          .10000E-03    .34093       -.13467E-06** at limit **
  16  Prefactor     3.3305        3.2637        .20067E-06    .43611E-03
  17  norm          .10004E-03    4.9820        .45147E-06** at limit **
  18  Prefactor     3.5348        2.6675        .47680E-07   -.46605E-05
  19  Prefactor     .10081E-03    2.4533       -.24698E-06** at limit **
  20  Prefactor     7.0161        9.7732        .97410E-07    .51695E-05
  21  Prefactor     .10000E-03    36.714       -.12726E-05** at limit **
  22  norm          15.431        17.289       -.28213E-06   -.56264E-04
  23  Prefactor     .10000E-03    50.504        .27525E-05** at limit **
  24  Prefactor     .10000E-03    9.9300        .10032E-07** at limit **
  25  Prefactor     .10001E-03    7.1963       -.90057E-06** at limit **
  26  norm          2.3698        19.123        .19793E-05    .30620E-04
  27  Prefactor     .10000E-03    10.292       -.12892E-06** at limit **
  28  Normalizat    .56905        .18777       -.47369E-06    .89423E-04
  29  Prefactor     1.2478        .20781        .73801E-06    .52049E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78749
  Prefactor  = 14.3824
  Prefactor  = 1.97635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.65687
  Prefactor  = 7.21252
  Prefactor  = 12.5437
  Prefactor  = 0.000100001
  Prefactor  = 5.37778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.33053
  norm       = 0.000100044
  Prefactor  = 3.53476
  Prefactor  = 0.000100806
  Prefactor  = 7.01611
  Prefactor  = 0.0001
  norm       = 15.4315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 2.36984
  Prefactor  = 0.0001
  Normalizat = 0.569047
  Prefactor  = 1.24776
 **********
 **   18 **HESSE 
 **********

 FCN=   4154.631     FROM HESSE     STATUS=OK           567 CALLS     4393 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7875        .87790        .39911E-04   -1.5441    
   2  Prefactor     14.382        21.770        .10564E-03   -1.4949    
   3  Prefactor     1.9763        4.7089        .17524E-03   -1.5427    
   4  Prefactor     .10000E-03    18.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.6569        9.1733        .16892E-03   -1.5232    
   7  Prefactor     7.2125        4.1963        .92390E-04   -1.5171    
   8  Prefactor     12.544        21.494        .11305E-03   -1.4999    
   9  Prefactor     .10000E-03    643.65        .39495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3778        3.8672        .10386E-03   -1.5244    
  11  Prefactor     .10000E-03    90.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3628        .73103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8719        2.1411        .77690E-04   -1.5369    
  14  Prefactor     .10000E-03    17.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .60385        .63116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3305        2.8596        .93296E-04   -1.5343    
  17  norm          .10004E-03    45.170        .26742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5348        2.6340        .85994E-04   -1.5332    
  19  Prefactor     .10081E-03    6.7527        .32930E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0161        9.7592        .75719E-03   -1.5178    
  21  Prefactor     .10000E-03    37.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.431        17.223        .10197E-03   -1.4922    
  23  Prefactor     .10000E-03    50.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.9330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    19.832        .32314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.3698        19.210        .13299E-02   -1.5400    
  27  Prefactor     .10000E-03    10.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .56905        .21513        .27318E-03   -1.0931    
  29  Prefactor     1.2478        .24212        .22209E-03   -.84874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42857e-09
Minuit parameter uncertainties:
  1  0.877903
  2  21.7822
  3  4.70975
  4  4.08178e-06
  5  4.68457e-06
  6  9.17563
  7  4.19645
  8  21.507
  9  0.00147726
  10  3.86738
  11  0.000241517
  12  1.48987e-06
  13  2.14112
  14  2.61438e-05
  15  1.39819e-06
  16  2.85972
  17  0.00283213
  18  2.63409
  19  0.00466702
  20  9.7614
  21  7.13198e-05
  22  17.2289
  23  6.44465e-05
  24  1.29477e-06
  25  0.000676913
  26  13.4999
  27  3.12761e-06
  28  0.215446
  29  0.242333
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.614e-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.248e+00  2.423e-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:  5.690e-01  2.154e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113472/likelihoodResults_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.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) = 4154.63156179
delta logL = -0.000277807484963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4154.63128466
delta logL = -6.77517164149e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8391       1.0000          .0000       10.000    
     3 'Normalizat'    .56904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2478       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=   4154.631     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      284 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    94.574        .18142E-02** at limit **
   2  Index         2.7986        6.2905        .50000        .10078E-04
   3  Normalizat    .56905        .11223E-01    .27318E-03    .29756E-04
   4  Prefactor     1.2478        .13151E-01    .22209E-03    .23004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100747
  Index      = 2.7986
  Normalizat = 0.569047
  Prefactor  = 1.24776
 **********
 **   18 **HESSE 
 **********

 FCN=   4154.631     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    431.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7986        7.8641        .50000       -.45591    
   3  Normalizat    .56905        .24701E-01    .10927E-04   -1.0931    
   4  Prefactor     1.2478        .28943E-01    .44419E-04   -.84874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.22194e-09
Minuit parameter uncertainties:
  1  0.036157
  2  558.581
  3  0.0247013
  4  0.0289433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113472': 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) = 4154.63128441
delta logL = -4.27236045653e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.007e-04  3.616e-02  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.799e+00  5.586e+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.248e+00  2.894e-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:  5.690e-01  2.470e-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/113472/cmap_HighResolution_319161601_319420801_4FGL_J0916.7+3856_daily_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-08-31 06:15:37.947934', job_id='113472', GAL2='1.25', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1630415737.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-4.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='308' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:15:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 113472: <4FGL_J0916.7+3856_daily_bin308> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin308> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:00:53 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:00:55 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:55 2021
Terminated at Tue Aug 31 06:15:38 2021
Results reported at Tue Aug 31 06:15:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin308 139.19 38.9479 319161601 319420801 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 :                                   717.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

