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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin480
RA = 139.19, Dec = 38.9479
tmin = 363744001, tmax = 364003201
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='113726', job_status='RUN', time_executed='2021-08-31 06:04:38.724571', time_epoch_executed='1630415078.72' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113726/ft1_4FGL_J0916.7+3856_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113726/ft2_4FGL_J0916.7+3856_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113726/ft1_4FGL_J0916.7+3856_daily_bin480.fits outfile=/scratch/kocevski/113726/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin480.fits ra=139.19 dec=38.9479 rad=12.0 tmin=363744001.0 tmax=364003201.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.64
user 3.07
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113726/ft2_4FGL_J0916.7+3856_daily_bin480.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/113726/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/113726/ft1_filtered_4FGL_J0916.7+3856_daily_bin480.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.79
user 0.31
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113726/ft1_filtered_4FGL_J0916.7+3856_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/113726/ft2_4FGL_J0916.7+3856_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/113726/ltcube_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.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/113726/ft2_4FGL_J0916.7+3856_daily_bin480.fits
.....................!
real 12.51
user 11.83
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113726/ft1_filtered_4FGL_J0916.7+3856_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/113726/ft2_4FGL_J0916.7+3856_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/113726/ltcube_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.fits outfile=/scratch/kocevski/113726/expmap_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.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/113726/ltcube_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.fits
.....................!
real 190.78
user 185.16
sys 4.58

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/113726/ft1_filtered_4FGL_J0916.7+3856_daily_bin480.fits scfile=/scratch/kocevski/113726/ft2_4FGL_J0916.7+3856_daily_bin480.fits outfile=/scratch/kocevski/113726/cmap_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.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.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113726/ft1_filtered_4FGL_J0916.7+3856_daily_bin480.fits scfile=/scratch/kocevski/113726/ft2_4FGL_J0916.7+3856_daily_bin480.fits outfile=/scratch/kocevski/113726/cmap_HighResolution_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.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.76
user 0.38
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2832       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4077       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7685       1.0000         .10000E-03   10000.    
     6 'norm      '    7.8692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10812E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .88459       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8207       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.726       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1989       1.0000         .10000E-03   10000.    
    17 'norm      '    14.831       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8639       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5890       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3821       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.1290       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96834       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0632       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=   5959.794     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3701 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2830        .62957       -.33472E-07   -.32788E-03
   2  Prefactor     .10000E-03    20.797       -.22150E-06** at limit **
   3  Prefactor     3.4074        2.7926        .10462E-05   -.68681E-03
   4  Prefactor     .10000E-03    13.769        .38920E-06** at limit **
   5  Prefactor     3.7685        4.2650       -.96410E-07   -.23573E-04
   6  norm          7.8689        6.9513        .20375E-05   -.53634E-03
   7  Prefactor     .74111        1.8676        .11663E-06   -.32992E-03
   8  Prefactor     .10000E-03    40.434        .56533E-06** at limit **
   9  Prefactor     .10000E-03    19.561       -.66221E-06** at limit **
  10  Prefactor     .10000E-03    4.4050        .44109E-06** at limit **
  11  Prefactor     .10000E-03    14.874       -.49928E-06** at limit **
  12  Prefactor     .88513        2.1946        .82365E-06    .21973E-03
  13  norm          1.8206        1.5759        .19046E-07   -.36815E-04
  14  Prefactor     27.724        19.856       -.36901E-06   -.74046E-04
  15  norm          .10000E-03    .19016       -.33584E-07** at limit **
  16  Prefactor     1.1980        2.1991        .12836E-06   -.13313E-03
  17  norm          14.831        8.8712        .29025E-07   -.48561E-04
  18  Prefactor     .10000E-03    1.1180       -.59896E-07** at limit **
  19  Prefactor     .10000E-03    1.3646        .40645E-07** at limit **
  20  Prefactor     2.8677        17.243        .70792E-06   -.34043E-04
  21  Prefactor     4.5945        25.446       -.32556E-06    .15776E-04
  22  norm          .10000E-03    4.8301        .86504E-08** at limit **
  23  Prefactor     1.4119        37.517        .20429E-05   -.19998E-05
  24  Prefactor     32.721        39.809       -.49756E-05   -.42303E-03
  25  Prefactor     .10000E-03    3.3812        .13636E-06** at limit **
  26  norm          9.1310        9.8436        .57233E-07    .10665E-05
  27  Prefactor     .10000E-03    9.8708       -.18152E-06** at limit **
  28  Normalizat    .96766        .18307        .21880E-05   -.22024E-03
  29  Prefactor     1.0639        .19016       -.28632E-05    .12822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28301
  Prefactor  = 0.0001
  Prefactor  = 3.40736
  Prefactor  = 0.0001
  Prefactor  = 3.76851
  norm       = 7.86888
  Prefactor  = 0.741107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.885129
  norm       = 1.82059
  Prefactor  = 27.7236
  norm       = 0.0001
  Prefactor  = 1.19798
  norm       = 14.8306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86769
  Prefactor  = 4.59449
  norm       = 0.0001
  Prefactor  = 1.41194
  Prefactor  = 32.7211
  Prefactor  = 0.0001
  norm       = 9.13101
  Prefactor  = 0.0001
  Normalizat = 0.967656
  Prefactor  = 1.06386
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.794     FROM HESSE     STATUS=OK           559 CALLS     4260 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2830        .62964        .41542E-04   -1.5481    
   2  Prefactor     .10000E-03    21.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4074        2.8175        .56482E-03   -1.5339    
   4  Prefactor     .10000E-03    13.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7685        4.2659        .16543E-03   -1.5320    
   6  norm          7.8689        6.9960        .71469E-03   -1.5147    
   7  Prefactor     .74111        1.8242        .15852E-03   -1.5536    
   8  Prefactor     .10000E-03    40.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5502        .31612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .88513        1.9187        .16950E-02   -1.5520    
  13  norm          1.8206        1.5857        .87510E-04   -1.5438    
  14  Prefactor     27.724        19.733        .76084E-04   -1.4654    
  15  norm          .10000E-03    .39170        .58331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1980        1.9281        .12968E-03   -1.5489    
  17  norm          14.831        8.8547        .10400E-03   -1.4938    
  18  Prefactor     .10000E-03    1.9198        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3719        .88059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8677        16.336        .24021E-03   -1.5369    
  21  Prefactor     4.5945        24.117        .18790E-03   -1.5279    
  22  norm          .10000E-03    4.8310        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4119        37.395        .37014E-03   -1.5470    
  24  Prefactor     32.721        42.251        .70020E-04   -1.4563    
  25  Prefactor     .10000E-03    3.3878        .13865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.1310        9.8425        .13265E-03   -1.5104    
  27  Prefactor     .10000E-03    9.8754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96766        .21125        .24072E-03   -.94122    
  29  Prefactor     1.0639        .21936        .25427E-03   -.90630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72398e-09
Minuit parameter uncertainties:
  1  0.629644
  2  0.00011717
  3  2.81763
  4  4.11839e-05
  5  4.26627
  6  6.9967
  7  1.8243
  8  4.60158e-05
  9  0.000134038
  10  1.73869e-06
  11  8.99683e-05
  12  1.91888
  13  1.58578
  14  19.7377
  15  4.85786e-06
  16  1.92821
  17  8.85548
  18  1.14659e-05
  19  2.37703e-06
  20  13.6943
  21  21.0659
  22  9.13355e-06
  23  14.5423
  24  42.2896
  25  7.98269e-06
  26  9.84426
  27  5.19284e-06
  28  0.211431
  29  0.219542
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.772e+01  1.974e+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.064e+00  2.195e-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:  9.677e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 1.53e-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) = 5959.35816272
delta logL = 0.435589332086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.32934874
delta logL = 0.464403310626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.540       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8570       1.0000          .0000       10.000    
     3 'Normalizat'    .99594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0459       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=   5959.329     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      222 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.557        33.469        .17298E-02    .67497E-05
   2  Index         1.8570        .65551        .18584       -.28109E-04
   3  Normalizat    .99601        .16569        .46116E-01    .34643E-03
   4  Prefactor     1.0458        .18110        .57939E-01   -.12101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.557
  Index      = 1.85697
  Normalizat = 0.996013
  Prefactor  = 1.04581
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.329     FROM HESSE     STATUS=OK            29 CALLS      251 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.557        26.100        .69192E-04   -1.4549    
   2  Index         1.8570        .59582        .93804E-02   -.67976    
   3  Normalizat    .99601        .19351        .23775E-03   -.93164    
   4  Prefactor     1.0458        .21231        .25620E-03   -.91218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.11043e-10
Minuit parameter uncertainties:
  1  26.109
  2  0.598172
  3  0.19365
  4  0.212477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113726': 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) = 5959.32934834
delta logL = 0.464403711579

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.356e+01  2.611e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  1.857e+00  5.982e-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.046e+00  2.125e-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:  9.960e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.97
Ra Dec: 139.190 38.948
Photon Index (Free Index): 1.86 +/- 0.60
Photon Flux (Free Index): 2.63e-08 +/- 3.04e-08
Energy Flux (Free Index): 2.67e-05 +/- 2.99e-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/113726/cmap_HighResolution_363744001_364003201_4FGL_J0916.7+3856_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='2.67e-05', photon_flux_error='3.56e-08', dlogl='4.64e-01', energy_flux='1.53e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2021-08-31 06:17:27.049774', photon_index_error2='0.60', photon_index2='1.86', ts='4.04', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='0.97', time_epoch_completed='1630415847.05', return_code='0', job_id='113726', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.04e-08', ts2='4.97', photon_index='2.46' WHERE bin_id='480' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:17:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 113726: <4FGL_J0916.7+3856_daily_bin480> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin480 139.19 38.9479 363744001 364003201 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 :                                   763.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

