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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin780
RA = 139.19, Dec = 38.9479
tmin = 441504001, tmax = 441763201
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='115253', job_status='RUN', time_executed='2021-08-31 06:08:21.594182', time_epoch_executed='1630415301.59' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115253/ft1_4FGL_J0916.7+3856_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115253/ft2_4FGL_J0916.7+3856_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115253/ft1_4FGL_J0916.7+3856_daily_bin780.fits outfile=/scratch/kocevski/115253/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin780.fits ra=139.19 dec=38.9479 rad=12.0 tmin=441504001.0 tmax=441763201.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 3.39
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115253/ft2_4FGL_J0916.7+3856_daily_bin780.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/115253/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/115253/ft1_filtered_4FGL_J0916.7+3856_daily_bin780.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.56
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115253/ft1_filtered_4FGL_J0916.7+3856_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/115253/ft2_4FGL_J0916.7+3856_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/115253/ltcube_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.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/115253/ft2_4FGL_J0916.7+3856_daily_bin780.fits
.....................!
real 13.50
user 12.97
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115253/ft1_filtered_4FGL_J0916.7+3856_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/115253/ft2_4FGL_J0916.7+3856_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/115253/ltcube_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.fits outfile=/scratch/kocevski/115253/expmap_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.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/115253/ltcube_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.fits
.....................!
real 191.88
user 185.88
sys 4.44

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/115253/ft1_filtered_4FGL_J0916.7+3856_daily_bin780.fits scfile=/scratch/kocevski/115253/ft2_4FGL_J0916.7+3856_daily_bin780.fits outfile=/scratch/kocevski/115253/cmap_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115253/ft1_filtered_4FGL_J0916.7+3856_daily_bin780.fits scfile=/scratch/kocevski/115253/ft2_4FGL_J0916.7+3856_daily_bin780.fits outfile=/scratch/kocevski/115253/cmap_HighResolution_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50145       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.672       1.0000         .10000E-03   10000.    
    15 'norm      '    .13445E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1121       1.0000         .10000E-03   10000.    
    17 'norm      '    .10576E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2350       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14985E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.951       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.974       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.4708       1.0000         .10000E-03   10000.    
    26 'norm      '    7.9175       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80104       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1773       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=   5998.166     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3753 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50067        .66774        .12883E-06   -.12362E-03
   2  Prefactor     .10000E-03    13.910        .46170E-06** at limit **
   3  Prefactor     1.7253        2.4904        .23558E-06   -.70144E-04
   4  Prefactor     21.187        26.881       -.64234E-06   -.12330E-03
   5  Prefactor     .10000E-03    6.7655        .36995E-06** at limit **
   6  norm          .10000E-03    2.9436        .13311E-07** at limit **
   7  Prefactor     5.5679        3.0257        .66699E-09    .10072E-04
   8  Prefactor     44.546        27.144       -.37517E-06   -.11689E-03
   9  Prefactor     .10000E-03    27.578       -.22886E-05** at limit **
  10  Prefactor     .10000E-03    2.1352        .17528E-06** at limit **
  11  Prefactor     .10000E-03    12.003        .13493E-05** at limit **
  12  Prefactor     .10000E-03    2.6000        .97689E-07** at limit **
  13  norm          .10000E-03    .43538        .25137E-08** at limit **
  14  Prefactor     26.677        18.133        .10805E-06    .59354E-05
  15  norm          .10045E-03    .51607       -.13699E-06** at limit **
  16  Prefactor     4.1200        3.2976       -.57525E-07    .50306E-03
  17  norm          .10000E-03    5.9636       -.16896E-06** at limit **
  18  Prefactor     1.5958        1.7364        .49537E-07    .90419E-04
  19  Prefactor     3.8898        4.8803        .24216E-06   -.13742E-03
  20  Prefactor     4.2446        8.3228        .62738E-05   -.69748E-03
  21  Prefactor     .10002E-03    45.866        .71992E-05** at limit **
  22  norm          11.952        15.370        .89844E-06    .50564E-04
  23  Prefactor     45.957        32.231       -.18644E-05   -.28520E-03
  24  Prefactor     .10000E-03    10.253       -.13026E-05** at limit **
  25  Prefactor     6.4739        12.643        .27158E-06   -.13745E-04
  26  norm          7.9190        10.064        .15886E-05   -.23378E-03
  27  Prefactor     .10004E-03    67.230       -.10050E-04** at limit **
  28  Normalizat    .80068        .17801       -.46500E-07   -.26564E-04
  29  Prefactor     1.1777        .18005       -.70879E-06    .17095E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.500674
  Prefactor  = 0.0001
  Prefactor  = 1.72533
  Prefactor  = 21.1866
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.56789
  Prefactor  = 44.5463
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.6775
  norm       = 0.000100449
  Prefactor  = 4.12
  norm       = 0.0001
  Prefactor  = 1.59582
  Prefactor  = 3.88985
  Prefactor  = 4.2446
  Prefactor  = 0.000100015
  norm       = 11.9519
  Prefactor  = 45.9573
  Prefactor  = 0.000100001
  Prefactor  = 6.47387
  norm       = 7.91897
  Prefactor  = 0.000100039
  Normalizat = 0.80068
  Prefactor  = 1.17775
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.166     FROM HESSE     STATUS=OK           565 CALLS     4318 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50067        .63331        .69283E-03   -1.5566    
   2  Prefactor     .10000E-03    14.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7253        2.4616        .13995E-03   -1.5445    
   4  Prefactor     21.187        26.848        .87002E-04   -1.4787    
   5  Prefactor     .10000E-03    6.8310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9652        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5679        3.0239        .93984E-04   -1.5236    
   8  Prefactor     44.546        27.172        .60066E-04   -1.4372    
   9  Prefactor     .10000E-03    27.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8356        .21925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6841        .24330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .43627        .49888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.677        18.081        .77569E-04   -1.4675    
  15  norm          .10045E-03    .58665        .13196E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1200        3.3651        .96103E-04   -1.5302    
  17  norm          .10000E-03    6.0375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5958        1.7244        .10149E-03   -1.5455    
  19  Prefactor     3.8898        4.8746        .18010E-03   -1.5313    
  20  Prefactor     4.2446        8.5047        .97903E-03   -1.5296    
  21  Prefactor     .10002E-03    47.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.952        15.418        .11588E-03   -1.5016    
  23  Prefactor     45.957        32.674        .59133E-04   -1.4351    
  24  Prefactor     .10000E-03    10.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.4739        12.687        .15777E-03   -1.5199    
  26  norm          7.9190        10.087        .71249E-03   -1.5145    
  27  Prefactor     .10004E-03    71.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80068        .20493        .26700E-03   -1.0004    
  29  Prefactor     1.1777        .20792        .24444E-03   -.87019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30887e-09
Minuit parameter uncertainties:
  1  0.633316
  2  7.61866e-05
  3  2.46172
  4  26.8634
  5  5.26217e-05
  6  1.33766e-06
  7  3.02398
  8  27.1799
  9  0.000529279
  10  2.03187e-05
  11  0.000200558
  12  5.92169e-06
  13  4.16652e-07
  14  18.0849
  15  0.00102616
  16  3.36528
  17  1.40332e-05
  18  1.72444
  19  4.8751
  20  8.50708
  21  0.00169869
  22  15.4231
  23  32.687
  24  0.000148533
  25  12.6922
  26  10.0888
  27  0.00332452
  28  0.205132
  29  0.208063
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.668e+01  1.808e+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:  1.178e+00  2.081e-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:  8.007e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 9.95e-06

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) = 5998.16159734
delta logL = 0.00426223819431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5998.15792642
delta logL = 0.00793315337887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.708       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3797       1.0000          .0000       10.000    
     3 'Normalizat'    .80361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1755       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=   5998.158     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      233 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.711        25.829        .74774E-04   -.53573E-03
   2  Index         2.3796        .63048        .64434E-02   -.24664E-03
   3  Normalizat    .80363        .18839        .26656E-03    .36426E-03
   4  Prefactor     1.1755        .20411        .24463E-03    .46607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7114
  Index      = 2.37957
  Normalizat = 0.803631
  Prefactor  = 1.17547
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.158     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.711        24.813        .14955E-04   -1.4636    
   2  Index         2.3796        .60553        .25774E-03   -.55164    
   3  Normalizat    .80363        .18842        .53312E-04   -.99934    
   4  Prefactor     1.1755        .20416        .48927E-04   -.87089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17238e-09
Minuit parameter uncertainties:
  1  24.8216
  2  0.607591
  3  0.188568
  4  0.204298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115253': 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) = 5998.15792638
delta logL = 0.00793319951481

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.871e+01  2.482e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.380e+00  6.076e-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:  1.175e+00  2.043e-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:  8.036e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.38 +/- 0.61
Photon Flux (Free Index): 4.59e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.24e-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/115253/cmap_HighResolution_441504001_441763201_4FGL_J0916.7+3856_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.55e-05', photon_flux_error='3.26e-08', dlogl='7.93e-03', energy_flux='1.47e-05', photon_flux2='4.59e-08', job_status='DONE', time_completed='2021-08-31 06:20:53.016687', photon_index_error2='0.61', photon_index2='2.38', ts='4.06', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.80', time_epoch_completed='1630416053.02', return_code='0', job_id='115253', GAL2='1.18', EG2='0.80', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='3.61e-08', ts2='4.06', photon_index='2.46' WHERE bin_id='780' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 115253: <4FGL_J0916.7+3856_daily_bin780> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin780 139.19 38.9479 441504001 441763201 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 :                                   747.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

