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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin781
RA = 139.19, Dec = 38.9479
tmin = 441763201, tmax = 442022401
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='115255', job_status='RUN', time_executed='2021-08-31 06:10:40.603201', time_epoch_executed='1630415440.6' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115255

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115255/ft1_4FGL_J0916.7+3856_daily_bin781.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115255/ft2_4FGL_J0916.7+3856_daily_bin781.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115255/ft1_4FGL_J0916.7+3856_daily_bin781.fits outfile=/scratch/kocevski/115255/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin781.fits ra=139.19 dec=38.9479 rad=12.0 tmin=441763201.0 tmax=442022401.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.45
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115255/ft1_filtered_4FGL_J0916.7+3856_daily_bin781.fits" evtable="EVENTS" scfile=/scratch/kocevski/115255/ft2_4FGL_J0916.7+3856_daily_bin781.fits sctable="SC_DATA" outfile=/scratch/kocevski/115255/ltcube_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.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/115255/ft2_4FGL_J0916.7+3856_daily_bin781.fits
.....................!
real 11.77
user 11.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115255/ft1_filtered_4FGL_J0916.7+3856_daily_bin781.fits evtable="EVENTS" scfile=/scratch/kocevski/115255/ft2_4FGL_J0916.7+3856_daily_bin781.fits sctable="SC_DATA" expcube=/scratch/kocevski/115255/ltcube_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.fits outfile=/scratch/kocevski/115255/expmap_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.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/115255/ltcube_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.fits
.....................!
real 189.69
user 185.51
sys 3.78

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/115255/ft1_filtered_4FGL_J0916.7+3856_daily_bin781.fits scfile=/scratch/kocevski/115255/ft2_4FGL_J0916.7+3856_daily_bin781.fits outfile=/scratch/kocevski/115255/cmap_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.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.62
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115255/ft1_filtered_4FGL_J0916.7+3856_daily_bin781.fits scfile=/scratch/kocevski/115255/ft2_4FGL_J0916.7+3856_daily_bin781.fits outfile=/scratch/kocevski/115255/cmap_HighResolution_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .36521E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.693       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2526       1.0000         .10000E-03   10000.    
    13 'norm      '    .86787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.327       1.0000         .10000E-03   10000.    
    15 'norm      '    .28909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8141       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14051       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.235       1.0000         .10000E-03   10000.    
    22 'norm      '    10.294       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.077       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.650       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2465       1.0000         .10000E-03   10000.    
    26 'norm      '    .15664E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    38.446       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84736       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90339       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=   5675.802     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3788 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30809        .33557        .58526E-08   -.23888E-04
   2  Prefactor     .10000E-03    7.5374        .43698E-06** at limit **
   3  Prefactor     .10000E-03    .79942       -.41540E-07** at limit **
   4  Prefactor     31.441        25.414        .10036E-06    .20852E-05
   5  Prefactor     .10000E-03    5.8933       -.47063E-07** at limit **
   6  norm          3.1594        3.4403       -.49030E-07    .10971E-05
   7  Prefactor     .44823        2.0653        .15468E-05    .30576E-03
   8  Prefactor     15.693        14.787       -.14434E-06    .12970E-05
   9  Prefactor     18.908        60.494       -.15794E-04    .97677E-05
  10  Prefactor     .10000E-03    1.2366       -.74481E-07** at limit **
  11  Prefactor     41.764        37.447        .95266E-06   -.99466E-05
  12  Prefactor     2.2531        2.3341       -.33134E-07   -.33767E-04
  13  norm          .86786        .84315       -.45813E-07   -.50821E-04
  14  Prefactor     40.326        26.723       -.10669E-05   -.43171E-05
  15  norm          .28920        .28049        .22019E-07    .66359E-04
  16  Prefactor     .10000E-03    1.5034        .75718E-09** at limit **
  17  norm          3.8146        9.2753        .29671E-05   -.49508E-04
  18  Prefactor     .14250        1.5657       -.17758E-06   -.99863E-04
  19  Prefactor     2.6012        3.8057        .17842E-05   -.80557E-04
  20  Prefactor     .10000E-03    3.7810        .16457E-06** at limit **
  21  Prefactor     26.237        21.931        .24920E-06    .99092E-06
  22  norm          10.291        11.766        .21375E-07   -.78775E-06
  23  Prefactor     23.082        34.671       -.48613E-06    .31935E-05
  24  Prefactor     20.648        43.382        .95478E-06    .12709E-05
  25  Prefactor     8.2470        8.8975        .70988E-07    .34421E-05
  26  norm          .15669E-01    4.9503        .11539E-06   -.33027E-04
  27  Prefactor     38.452        32.983       -.37366E-06    .10113E-04
  28  Normalizat    .84714        .17505       -.19875E-05   -.30671E-04
  29  Prefactor     .90365        .17232        .18100E-05   -.40702E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.308093
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 31.4411
  Prefactor  = 0.0001
  norm       = 3.1594
  Prefactor  = 0.448227
  Prefactor  = 15.6928
  Prefactor  = 18.908
  Prefactor  = 0.0001
  Prefactor  = 41.7638
  Prefactor  = 2.2531
  norm       = 0.867861
  Prefactor  = 40.3262
  norm       = 0.289203
  Prefactor  = 0.0001
  norm       = 3.81455
  Prefactor  = 0.142501
  Prefactor  = 2.60119
  Prefactor  = 0.0001
  Prefactor  = 26.2367
  norm       = 10.2908
  Prefactor  = 23.0821
  Prefactor  = 20.6481
  Prefactor  = 8.24699
  norm       = 0.0156691
  Prefactor  = 38.4517
  Normalizat = 0.847144
  Prefactor  = 0.903647
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.802     FROM HESSE     STATUS=OK           583 CALLS     4371 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30809        .32656        .43927E-04   -1.5597    
   2  Prefactor     .10000E-03    32.703        .39340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .80464        .65722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.441        25.225        .71460E-04   -1.4586    
   5  Prefactor     .10000E-03    5.9272        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1594        3.4363        .70589E-03   -1.5352    
   7  Prefactor     .44823        2.0604        .20281E-03   -1.5574    
   8  Prefactor     15.693        14.782        .10111E-03   -1.4915    
   9  Prefactor     18.908        60.635        .92273E-04   -1.4838    
  10  Prefactor     .10000E-03    1.2490        .81801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.764        37.441        .62026E-04   -1.4415    
  12  Prefactor     2.2531        2.3068        .10993E-03   -1.5408    
  13  norm          .86786        .88649        .66314E-03   -1.5522    
  14  Prefactor     40.326        26.671        .63121E-04   -1.4437    
  15  norm          .28920        .27489        .36427E-04   -1.5600    
  16  Prefactor     .10000E-03    2.5026        .16933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8146        9.2545        .10334E-02   -1.5317    
  18  Prefactor     .14250        3.5261        .17308E-02   -1.5632    
  19  Prefactor     2.6012        3.7928        .84340E-03   -1.5385    
  20  Prefactor     .10000E-03    3.7851        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.237        21.964        .78211E-04   -1.4683    
  22  norm          10.291        11.763        .12488E-03   -1.5066    
  23  Prefactor     23.082        34.485        .83382E-04   -1.4747    
  24  Prefactor     20.648        43.198        .88140E-04   -1.4799    
  25  Prefactor     8.2470        8.8978        .13961E-03   -1.5134    
  26  norm          .15669E-01    5.2463        .60472E-01   -1.5683    
  27  Prefactor     38.452        33.031        .64641E-04   -1.4467    
  28  Normalizat    .84714        .19942        .23513E-03   -.98343    
  29  Prefactor     .90365        .19789        .24682E-03   -.96014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82315e-08
Minuit parameter uncertainties:
  1  0.326567
  2  0.000655292
  3  1.30907e-06
  4  25.2336
  5  3.87111e-06
  6  3.43648
  7  1.92192
  8  14.7851
  9  60.8339
  10  2.19459e-06
  11  37.4617
  12  2.30684
  13  0.886507
  14  26.6786
  15  0.27489
  16  8.16047e-06
  17  9.25794
  18  1.41729
  19  3.79314
  20  1.10516e-05
  21  21.9711
  22  11.7655
  23  34.5144
  24  43.2632
  25  8.89924
  26  0.571647
  27  33.0466
  28  0.19959
  29  0.198051
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  4.033e+01  2.668e+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:  9.036e-01  1.981e-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.471e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 7.28e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.47e-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) = 5675.7595779
delta logL = 0.0419848601177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5675.75800328
delta logL = 0.0435594805494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.346       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6159       1.0000          .0000       10.000    
     3 'Normalizat'    .83747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91104       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=   5675.758     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      275 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.349        30.782        .68378E-04   -.29648E-03
   2  Index         2.6161        .59954        .48641E-02   -.15308E-03
   3  Normalizat    .83746        .18383        .23631E-03    .34447E-03
   4  Prefactor     .91099        .19597        .24597E-03    .41749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3494
  Index      = 2.61606
  Normalizat = 0.837455
  Prefactor  = 0.91099
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.758     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.349        28.537        .13676E-04   -1.4535    
   2  Index         2.6161        .55548        .19456E-03   -.49700    
   3  Normalizat    .83746        .18369        .47262E-04   -.98694    
   4  Prefactor     .91099        .19588        .49194E-04   -.95758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44108e-10
Minuit parameter uncertainties:
  1  28.5487
  2  0.556973
  3  0.183824
  4  0.196032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115255': 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) = 5675.75800295
delta logL = 0.0435598093227

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.435e+01  2.855e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.616e+00  5.570e-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:  9.110e-01  1.960e-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.375e-01  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.62 +/- 0.56
Photon Flux (Free Index): 8.02e-08 +/- 4.84e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.20e-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/115255/cmap_HighResolution_441763201_442022401_4FGL_J0916.7+3856_daily_bin781.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.28e-08', energy_flux2='2.07e-05', photon_flux_error='4.81e-08', dlogl='4.36e-02', energy_flux='2.22e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2021-08-31 06:22:55.377576', photon_index_error2='0.56', photon_index2='2.62', ts='5.52', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.85', time_epoch_completed='1630416175.38', return_code='0', job_id='115255', GAL2='0.91', EG2='0.84', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.84e-08', ts2='5.74', photon_index='2.46' WHERE bin_id='781' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 115255: <4FGL_J0916.7+3856_daily_bin781> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin781> 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) <bullet0169>, 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:22:58 2021
Results reported at Tue Aug 31 06:22:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin781 139.19 38.9479 441763201 442022401 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

