/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 152 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 = 7500
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin763
RA = 139.19, Dec = 38.9479
tmin = 437097601, tmax = 437356801
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='115230', job_status='RUN', time_executed='2021-08-31 06:09:20.605138', time_epoch_executed='1630415360.61' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115230/ft1_4FGL_J0916.7+3856_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115230/ft1_4FGL_J0916.7+3856_daily_bin763.fits outfile=/scratch/kocevski/115230/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin763.fits ra=139.19 dec=38.9479 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.23
user 4.83
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115230/ft1_filtered_4FGL_J0916.7+3856_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/115230/ltcube_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.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/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits
.....................!
real 11.89
user 11.53
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115230/ft1_filtered_4FGL_J0916.7+3856_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/115230/ltcube_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.fits outfile=/scratch/kocevski/115230/expmap_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.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/115230/ltcube_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.fits
.....................!
real 191.73
user 187.30
sys 4.02

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/115230/ft1_filtered_4FGL_J0916.7+3856_daily_bin763.fits scfile=/scratch/kocevski/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits outfile=/scratch/kocevski/115230/cmap_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115230/ft1_filtered_4FGL_J0916.7+3856_daily_bin763.fits scfile=/scratch/kocevski/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits outfile=/scratch/kocevski/115230/cmap_HighResolution_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.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.53
user 0.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115230/ft1_filtered_4FGL_J0916.7+3856_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/115230/ft2_4FGL_J0916.7+3856_daily_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115230/Model_4FGL_J0916.7+3856_daily_bin763.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/115230/ft1_filtered_4FGL_J0916.7+3856_daily_bin763.fits.....................!
real 54.58
user 53.29
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8214       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.185       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15147E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    9.5473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8621       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12381E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.587       1.0000         .10000E-03   10000.    
    15 'norm      '    .17793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2911       1.0000         .10000E-03   10000.    
    17 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11520E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.274       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3623       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21573E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
    26 'norm      '    4.8183       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1475       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89746       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=   6212.014     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3759 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8217        .98810       -.22426E-07   -.84818E-03
   2  Prefactor     15.101        26.458        .11141E-04   -.26031E-03
   3  Prefactor     3.9636        4.3862       -.13641E-05   -.58793E-03
   4  Prefactor     18.129        39.002       -.31479E-04   -.11092E-03
   5  Prefactor     .10004E-03    6.7640        .46108E-05** at limit **
   6  norm          9.5464        5.7352        .15024E-06   -.14794E-03
   7  Prefactor     .10000E-03    .80399        .27325E-08** at limit **
   8  Prefactor     .10000E-03    6.3171       -.10907E-07** at limit **
   9  Prefactor     .10000E-03    36.160       -.12886E-04** at limit **
  10  Prefactor     7.8619        3.8932       -.98085E-07   -.72610E-04
  11  Prefactor     .10000E-03    32.553        .72319E-05** at limit **
  12  Prefactor     .10000E-03    1.7018       -.40776E-07** at limit **
  13  norm          .10000E-03    .67089       -.12551E-07** at limit **
  14  Prefactor     32.580        20.954       -.87929E-06   -.39513E-03
  15  norm          .17818        .30043       -.31426E-07   -.10017E-02
  16  Prefactor     2.2901        2.2735       -.68886E-07   -.35903E-03
  17  norm          .10025E-03    5.4449        .14291E-05** at limit **
  18  Prefactor     .10000E-03    1.0225       -.61837E-07** at limit **
  19  Prefactor     7.2024        4.0105       -.13015E-06   -.29122E-04
  20  Prefactor     .10000E-03    26.832       -.54439E-05** at limit **
  21  Prefactor     31.250        29.714       -.28136E-05    .19880E-03
  22  norm          3.3853        18.673        .47191E-05   -.16835E-03
  23  Prefactor     .10001E-03    79.084        .20374E-05** at limit **
  24  Prefactor     .10000E-03    10.576       -.68090E-07** at limit **
  25  Prefactor     10.098        10.079       -.16316E-05   -.13267E-02
  26  norm          4.8188        13.575       -.68515E-06   -.61573E-04
  27  Prefactor     .10000E-03    15.895        .89243E-07** at limit **
  28  Normalizat    1.1480        .18333        .17751E-05   -.66161E-03
  29  Prefactor     .89688        .18714        .38543E-06   -.46319E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82167
  Prefactor  = 15.1007
  Prefactor  = 3.96363
  Prefactor  = 18.1293
  Prefactor  = 0.000100043
  norm       = 9.54638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.86193
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.5795
  norm       = 0.178183
  Prefactor  = 2.29005
  norm       = 0.000100253
  Prefactor  = 0.0001
  Prefactor  = 7.20242
  Prefactor  = 0.000100004
  Prefactor  = 31.2496
  norm       = 3.38526
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 10.0984
  norm       = 4.81878
  Prefactor  = 0.0001
  Normalizat = 1.14801
  Prefactor  = 0.89688
 **********
 **   18 **HESSE 
 **********

 FCN=   6212.014     FROM HESSE     STATUS=OK           563 CALLS     4322 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8217        .98601        .50061E-04   -1.5438    
   2  Prefactor     15.101        26.286        .10309E-03   -1.4931    
   3  Prefactor     3.9636        4.3448        .13559E-03   -1.5310    
   4  Prefactor     18.129        39.991        .93922E-04   -1.4856    
   5  Prefactor     .10004E-03    9.3418        .67923E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.5464        5.7336        .12970E-03   -1.5090    
   7  Prefactor     .10000E-03    .81163        .68976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8619        3.8939        .10595E-03   -1.5147    
  11  Prefactor     .10000E-03    32.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2849        .19641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .68016        .63015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.580        19.751        .70194E-04   -1.4566    
  15  norm          .17818        .24714        .49633E-03   -1.5624    
  16  Prefactor     2.2901        2.2125        .10305E-03   -1.5405    
  17  norm          .10025E-03    31.056        .32981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.0417        .77666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2024        4.0118        .11396E-03   -1.5171    
  20  Prefactor     .10000E-03    27.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.250        29.624        .71649E-04   -1.4589    
  22  norm          3.3853        18.386        .22069E-03   -1.5340    
  23  Prefactor     .10001E-03    80.788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.098        10.288        .63039E-03   -1.5072    
  26  norm          4.8188        13.566        .18327E-03   -1.5269    
  27  Prefactor     .10000E-03    15.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1480        .21529        .23698E-03   -.88225    
  29  Prefactor     .89688        .21947        .28283E-03   -.96250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06871e-08
Minuit parameter uncertainties:
  1  0.986023
  2  26.3064
  3  4.34515
  4  40.0501
  5  0.00126259
  6  5.73397
  7  7.35895e-07
  8  3.80315e-06
  9  0.000626874
  10  3.89404
  11  0.000336301
  12  6.77492e-06
  13  1.11202e-06
  14  19.7554
  15  0.24714
  16  2.21262
  17  0.00560356
  18  5.56928e-06
  19  4.01191
  20  0.000623055
  21  29.6375
  22  15.7859
  23  0.00145914
  24  2.13181e-05
  25  10.2899
  26  13.5746
  27  2.03222e-05
  28  0.215453
  29  0.219686
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.258e+01  1.976e+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:  8.969e-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.148e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.57
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.09e-05

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) = 6211.71691579
delta logL = 0.296766975691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6211.71657573
delta logL = 0.29710704358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.474       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0684       1.0000          .0000       10.000    
     3 'Normalizat'    1.1700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88011       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=   6211.717     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      270 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.391        705.18        .15201E-02   -.34179E-05
   2  Index         2.0662        5.9608        .19568        .83061E-05
   3  Normalizat    1.1701        .11595        .53154E-01   -.40430E-04
   4  Prefactor     .88023        .93455E-01    .64519E-01    .12619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.391
  Index      = 2.06618
  Normalizat = 1.17008
  Prefactor  = 0.880231
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.717     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.391        28.393        .60802E-04   -1.4390    
   2  Index         2.0662        .48403        .68671E-02   -.62706    
   3  Normalizat    1.1701        .20188        .23502E-03   -.87532    
   4  Prefactor     .88023        .21462        .28537E-03   -.96835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23509e-11
Minuit parameter uncertainties:
  1  28.4018
  2  0.48519
  3  0.202013
  4  0.214825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115230': 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) = 6211.71655526
delta logL = 0.297127505546

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  4.339e+01  2.840e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.066e+00  4.852e-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.802e-01  2.148e-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.170e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.13
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.07 +/- 0.49
Photon Flux (Free Index): 4.41e-08 +/- 3.44e-08
Energy Flux (Free Index): 2.61e-05 +/- 2.32e-05

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/115230/cmap_HighResolution_437097601_437356801_4FGL_J0916.7+3856_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='2.61e-05', photon_flux_error='3.56e-08', dlogl='2.97e-01', energy_flux='1.79e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-08-31 06:22:17.754247', photon_index_error2='0.49', photon_index2='2.07', ts='7.57', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='1.15', time_epoch_completed='1630416137.75', return_code='0', job_id='115230', GAL2='0.88', EG2='1.17', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.44e-08', ts2='8.13', photon_index='2.46' WHERE bin_id='763' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 115230: <4FGL_J0916.7+3856_daily_bin763> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin763> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 06:06:19 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:06:20 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:06:20 2021
Terminated at Tue Aug 31 06:22:18 2021
Results reported at Tue Aug 31 06:22:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin763 139.19 38.9479 437097601 437356801 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 :                                   771.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

