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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin666
RA = 139.19, Dec = 38.9479
tmin = 411955201, tmax = 412214401
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='115091', job_status='RUN', time_executed='2021-08-31 06:08:21.894377', time_epoch_executed='1630415301.89' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115091/ft1_4FGL_J0916.7+3856_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115091/ft1_4FGL_J0916.7+3856_daily_bin666.fits outfile=/scratch/kocevski/115091/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin666.fits ra=139.19 dec=38.9479 rad=12.0 tmin=411955201.0 tmax=412214401.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.56
user 5.33
sys 0.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115091/ft1_filtered_4FGL_J0916.7+3856_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/115091/ltcube_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.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/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits
.....................!
real 12.64
user 11.83
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115091/ft1_filtered_4FGL_J0916.7+3856_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/115091/ltcube_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.fits outfile=/scratch/kocevski/115091/expmap_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.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/115091/ltcube_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.fits
.....................!
real 191.45
user 185.67
sys 5.07

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/115091/ft1_filtered_4FGL_J0916.7+3856_daily_bin666.fits scfile=/scratch/kocevski/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits outfile=/scratch/kocevski/115091/cmap_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.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.82
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115091/ft1_filtered_4FGL_J0916.7+3856_daily_bin666.fits scfile=/scratch/kocevski/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits outfile=/scratch/kocevski/115091/cmap_HighResolution_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.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.83
user 0.36
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115091/ft1_filtered_4FGL_J0916.7+3856_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/115091/ft2_4FGL_J0916.7+3856_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115091/Model_4FGL_J0916.7+3856_daily_bin666.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/115091/ft1_filtered_4FGL_J0916.7+3856_daily_bin666.fits.....................!
real 38.27
user 36.34
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12469E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13446E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.062       1.0000         .10000E-03   10000.    
    15 'norm      '    .84946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.2600       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7852       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4944       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.446       1.0000         .10000E-03   10000.    
    22 'norm      '    14.351       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.157       1.0000         .10000E-03   10000.    
    24 'Prefactor '    58.225       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6089       1.0000         .10000E-03   10000.    
    26 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73142       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81236       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=   3881.230     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     4480 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .21340        .76716E-08** at limit **
   2  Prefactor     .10000E-03    9.0325       -.16186E-06** at limit **
   3  Prefactor     6.5051        2.9151        .50667E-07    .56011E-04
   4  Prefactor     .10000E-03    14.060        .13494E-05** at limit **
   5  Prefactor     .10000E-03    3.5047        .11718E-07** at limit **
   6  norm          3.1621        6.1779        .42276E-06    .20939E-03
   7  Prefactor     .10038E-03    1.6987       -.11584E-05** at limit **
   8  Prefactor     6.5659        23.517        .87868E-06    .26260E-04
   9  Prefactor     .10000E-03    54.555       -.11510E-05** at limit **
  10  Prefactor     2.2392        3.6262        .60861E-06    .39082E-03
  11  Prefactor     .10001E-03    24.662        .28323E-05** at limit **
  12  Prefactor     .10000E-03    .67685       -.14371E-07** at limit **
  13  norm          .10000E-03    1.4608        .23109E-07** at limit **
  14  Prefactor     18.057        22.552       -.27519E-05   -.71207E-04
  15  norm          .84930        .49472        .19541E-07    .90986E-03
  16  Prefactor     .10000E-03    2.4524       -.54860E-07** at limit **
  17  norm          8.2621        11.389        .39909E-05    .15765E-05
  18  Prefactor     1.7857        1.8896       -.16855E-06    .16144E-04
  19  Prefactor     3.4957        3.6675        .25015E-07   -.69485E-04
  20  Prefactor     .10000E-03    6.9221        .19017E-06** at limit **
  21  Prefactor     28.453        22.894        .58696E-06    .17659E-03
  22  norm          14.351        21.185       -.66637E-08    .37186E-07
  23  Prefactor     11.146        38.068       -.30537E-05   -.83615E-04
  24  Prefactor     58.241        44.127        .19046E-05    .28194E-03
  25  Prefactor     4.6095        6.5350        .10040E-06   -.41453E-05
  26  norm          .10000E-03    14.849        .24654E-06** at limit **
  27  Prefactor     .10000E-03    21.190       -.14093E-05** at limit **
  28  Normalizat    .73105        .17767       -.71201E-06    .25225E-03
  29  Prefactor     .81276        .18264       -.91946E-07    .16599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.5051
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.16213
  Prefactor  = 0.000100378
  Prefactor  = 6.56592
  Prefactor  = 0.000100001
  Prefactor  = 2.23917
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0574
  norm       = 0.849304
  Prefactor  = 0.0001
  norm       = 8.26212
  Prefactor  = 1.78566
  Prefactor  = 3.49567
  Prefactor  = 0.0001
  Prefactor  = 28.4526
  norm       = 14.351
  Prefactor  = 11.1459
  Prefactor  = 58.2413
  Prefactor  = 4.60954
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.731053
  Prefactor  = 0.812764
 **********
 **   18 **HESSE 
 **********

 FCN=   3881.230     FROM HESSE     STATUS=OK           553 CALLS     5033 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .23800        .56077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5051        2.9119        .68534E-04   -1.5198    
   4  Prefactor     .10000E-03    14.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.5124        .11390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1621        6.1189        .20650E-03   -1.5352    
   7  Prefactor     .10038E-03    17.165        .14099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5659        23.440        .15666E-03   -1.5195    
   9  Prefactor     .10000E-03    54.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2392        3.6201        .14527E-03   -1.5409    
  11  Prefactor     .10001E-03    25.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .67764        .50043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2320        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.057        22.690        .94241E-04   -1.4858    
  15  norm          .84930        .48718        .31646E-04   -1.5524    
  16  Prefactor     .10000E-03    2.5151        .18850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.2621        11.719        .69746E-03   -1.5133    
  18  Prefactor     1.7857        1.8819        .83601E-04   -1.5441    
  19  Prefactor     3.4957        3.6375        .11657E-03   -1.5334    
  20  Prefactor     .10000E-03    6.9430        .15993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.453        22.955        .75117E-04   -1.4641    
  22  norm          14.351        21.168        .10573E-03   -1.4950    
  23  Prefactor     11.146        38.751        .11994E-03   -1.5040    
  24  Prefactor     58.241        45.425        .52576E-04   -1.4180    
  25  Prefactor     4.6095        6.5295        .18423E-03   -1.5279    
  26  norm          .10000E-03    14.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .73105        .20424        .22147E-03   -1.0268    
  29  Prefactor     .81276        .21125        .22979E-03   -.99260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2628e-08
Minuit parameter uncertainties:
  1  4.15767e-07
  2  2.37888e-05
  3  2.91193
  4  0.000279202
  5  2.50036e-06
  6  6.12012
  7  0.00509663
  8  23.4729
  9  0.000426837
  10  3.62045
  11  0.000803074
  12  2.75495e-07
  13  1.32535e-05
  14  22.7007
  15  0.487179
  16  1.23548e-05
  17  11.7224
  18  1.88192
  19  3.63772
  20  4.73796e-06
  21  22.9618
  22  21.1791
  23  38.8382
  24  45.4516
  25  6.53047
  26  5.8288e-05
  27  0.000360182
  28  0.204449
  29  0.21146
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.806e+01  2.270e+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.128e-01  2.115e-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:  7.311e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 9.94e-06 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/115091/likelihoodResults_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.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) = 3880.89516773
delta logL = 0.335014445623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3880.88332996
delta logL = 0.346852214228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8785       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2701       1.0000          .0000       10.000    
     3 'Normalizat'    .70836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82958       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=   3880.883     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      273 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8818        19.994        .13451E-03    .33876E-03
   2  Index         3.2709        1.5558        .49043E-02    .98723E-04
   3  Normalizat    .70839        .19320        .22448E-03   -.18959E-03
   4  Prefactor     .82958        .20885        .22764E-03   -.22041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.88179
  Index      = 3.27087
  Normalizat = 0.708387
  Prefactor  = 0.829579
 **********
 **   18 **HESSE 
 **********

 FCN=   3880.883     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8818        14.026        .53803E-05   -1.5183    
   2  Index         3.2709        1.1008        .19617E-03   -.35312    
   3  Normalizat    .70839        .19322        .89792E-05   -1.0356    
   4  Prefactor     .82958        .20873        .45528E-04   -.98647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62308e-10
Minuit parameter uncertainties:
  1  14.0329
  2  1.1112
  3  0.19341
  4  0.208932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115091': 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) = 3880.88332718
delta logL = 0.346855000675

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  6.882e+00  1.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.271e+00  1.111e+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:  8.296e-01  2.089e-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:  7.084e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 139.190 38.948
Photon Index (Free Index): 3.27 +/- 1.11
Photon Flux (Free Index): 5.05e-08 +/- 4.49e-08
Energy Flux (Free Index): 9.01e-06 +/- 8.04e-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/115091/cmap_HighResolution_411955201_412214401_4FGL_J0916.7+3856_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.72e-03', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='9.01e-06', photon_flux_error='4.09e-08', dlogl='3.47e-01', energy_flux='9.94e-06', photon_flux2='5.05e-08', job_status='DONE', time_completed='2021-08-31 06:20:34.580400', photon_index_error2='1.11', photon_index2='3.27', ts='1.24', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='8.04e-06', EG='0.73', time_epoch_completed='1630416034.58', return_code='0', job_id='115091', GAL2='0.83', EG2='0.71', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.49e-08', ts2='1.98', photon_index='2.46' WHERE bin_id='666' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 115091: <4FGL_J0916.7+3856_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin666 139.19 38.9479 411955201 412214401 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 :                                   729.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

