/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 121 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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin222
RA = 139.19, Dec = 38.9479
tmin = 296870401, tmax = 297129601
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='112626', job_status='RUN', time_executed='2021-08-31 05:59:57.286559', time_epoch_executed='1630414797.29' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112626/ft1_4FGL_J0916.7+3856_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112626/ft2_4FGL_J0916.7+3856_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112626/ft1_4FGL_J0916.7+3856_daily_bin222.fits outfile=/scratch/kocevski/112626/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin222.fits ra=139.19 dec=38.9479 rad=12.0 tmin=296870401.0 tmax=297129601.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.58
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112626/ft1_filtered_4FGL_J0916.7+3856_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/112626/ft2_4FGL_J0916.7+3856_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/112626/ltcube_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.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/112626/ft2_4FGL_J0916.7+3856_daily_bin222.fits
.....................!
real 12.15
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112626/ft1_filtered_4FGL_J0916.7+3856_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/112626/ft2_4FGL_J0916.7+3856_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/112626/ltcube_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.fits outfile=/scratch/kocevski/112626/expmap_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.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/112626/ltcube_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.fits
.....................!
real 189.59
user 185.08
sys 4.01

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/112626/ft1_filtered_4FGL_J0916.7+3856_daily_bin222.fits scfile=/scratch/kocevski/112626/ft2_4FGL_J0916.7+3856_daily_bin222.fits outfile=/scratch/kocevski/112626/cmap_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.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.61
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112626/ft1_filtered_4FGL_J0916.7+3856_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/112626/ft2_4FGL_J0916.7+3856_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112626/Model_4FGL_J0916.7+3856_daily_bin222.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/112626/ft1_filtered_4FGL_J0916.7+3856_daily_bin222.fits.....................!
real 51.11
user 48.54
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57580       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6001       1.0000         .10000E-03   10000.    
     6 'norm      '    14.672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10851E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.172       1.0000         .10000E-03   10000.    
    15 'norm      '    .83893       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30725E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7152       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6058       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4100       1.0000         .10000E-03   10000.    
    22 'norm      '    21.713       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11653E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11102E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.340       1.0000         .10000E-03   10000.    
    27 'Prefactor '    52.524       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73267       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93478       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=   5982.877     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3221 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57578        .47643        .18483E-07    .20441E-04
   2  Prefactor     9.2854        9.9275        .72969E-08   -.22724E-04
   3  Prefactor     .10000E-03    .84965        .16666E-07** at limit **
   4  Prefactor     19.998        24.642       -.15961E-05   -.92130E-04
   5  Prefactor     5.5993        8.1347        .22699E-06   -.50286E-04
   6  norm          14.670        6.0702       -.14138E-05   -.88661E-03
   7  Prefactor     .10000E-03    .71893        .10219E-07** at limit **
   8  Prefactor     .41282        18.647       -.71868E-06    .28120E-04
   9  Prefactor     .10000E-03    25.537       -.59336E-06** at limit **
  10  Prefactor     4.5696        3.0247       -.50114E-07    .16948E-04
  11  Prefactor     .10000E-03    10.796        .30820E-06** at limit **
  12  Prefactor     .10000E-03    1.0688        .14641E-07** at limit **
  13  norm          .10000E-03    .89876       -.20668E-07** at limit **
  14  Prefactor     15.166        15.805       -.36787E-06    .18270E-04
  15  norm          .83874        .43783       -.18706E-07   -.19588E-02
  16  Prefactor     .10016E-03    .97197        .28141E-06** at limit **
  17  norm          6.7163        7.1337        .90017E-06   -.13981E-02
  18  Prefactor     .82262        2.1714       -.21691E-06   -.59873E-03
  19  Prefactor     .10000E-03    2.3397        .12303E-07** at limit **
  20  Prefactor     6.6022        9.5844        .12360E-05   -.79598E-03
  21  Prefactor     6.4071        22.020       -.28013E-05   -.67615E-04
  22  norm          21.713        16.910       -.15960E-06   -.15744E-04
  23  Prefactor     .10000E-03    12.549       -.49653E-06** at limit **
  24  Prefactor     .10000E-03    54.866        .48987E-06** at limit **
  25  Prefactor     .10000E-03    3.3497        .23656E-07** at limit **
  26  norm          13.337        11.111        .34353E-07   -.15400E-04
  27  Prefactor     52.512        28.720       -.22404E-05   -.22155E-03
  28  Normalizat    .73300        .14781        .65689E-06   -.49723E-04
  29  Prefactor     .93446        .15856       -.22005E-07    .17441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.575779
  Prefactor  = 9.28544
  Prefactor  = 0.0001
  Prefactor  = 19.9978
  Prefactor  = 5.59925
  norm       = 14.6705
  Prefactor  = 0.0001
  Prefactor  = 0.412815
  Prefactor  = 0.0001
  Prefactor  = 4.5696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1655
  norm       = 0.838736
  Prefactor  = 0.000100162
  norm       = 6.7163
  Prefactor  = 0.822623
  Prefactor  = 0.0001
  Prefactor  = 6.60217
  Prefactor  = 6.4071
  norm       = 21.7133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3371
  Prefactor  = 52.5124
  Normalizat = 0.733003
  Prefactor  = 0.934463
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.877     FROM HESSE     STATUS=OK           569 CALLS     3790 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57578        .46018        .46430E-03   -1.5556    
   2  Prefactor     9.2854        9.8987        .13152E-03   -1.5098    
   3  Prefactor     .10000E-03    .85705        .69526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.998        24.662        .89558E-04   -1.4813    
   5  Prefactor     5.5993        8.1089        .16976E-03   -1.5235    
   6  norm          14.670        6.2044        .10456E-03   -1.4942    
   7  Prefactor     .10000E-03    .73052        .64010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41282        24.627        .93424E-01   -1.5579    
   9  Prefactor     .10000E-03    25.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5696        3.0232        .10577E-03   -1.5280    
  11  Prefactor     .10000E-03    10.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0959        .15578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.2617        .13989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.166        16.805        .10283E-03   -1.4929    
  15  norm          .83874        .39451        .31761E-04   -1.5525    
  16  Prefactor     .10016E-03    24.961        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7163        9.1901        .77422E-03   -1.5190    
  18  Prefactor     .82262        2.0915        .16257E-03   -1.5527    
  19  Prefactor     .10000E-03    2.3926        .23060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6022        10.331        .78067E-03   -1.5194    
  21  Prefactor     6.4071        22.082        .15853E-03   -1.5202    
  22  norm          21.713        16.866        .85958E-04   -1.4776    
  23  Prefactor     .10000E-03    12.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    55.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.3677        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.337        11.120        .10967E-03   -1.4977    
  27  Prefactor     52.512        29.033        .55341E-04   -1.4257    
  28  Normalizat    .73300        .17015        .23331E-03   -1.0260    
  29  Prefactor     .93446        .18210        .23374E-03   -.94947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02615e-08
Minuit parameter uncertainties:
  1  0.460179
  2  9.90041
  3  2.15687e-07
  4  24.6749
  5  8.11045
  6  6.20471
  7  1.97801e-06
  8  6.37896
  9  3.07746e-05
  10  3.02334
  11  1.20563e-05
  12  9.83239e-07
  13  2.57065e-06
  14  16.8106
  15  0.394508
  16  0.00402382
  17  9.19202
  18  2.09169
  19  2.35441e-06
  20  10.3338
  21  22.1103
  22  16.8693
  23  2.80067e-05
  24  5.5174e-05
  25  1.72426e-06
  26  11.1221
  27  29.0412
  28  0.170272
  29  0.182218
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.517e+01  1.681e+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.345e-01  1.822e-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.330e-01  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 8.35e-06 +/- 9.25e-06

TS (Fixed Index): 1.61
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 8.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112626/likelihoodResults_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.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) = 5982.87042279
delta logL = 0.00623189164344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5982.86557895
delta logL = 0.0110757289422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.040       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3545       1.0000          .0000       10.000    
     3 'Normalizat'    .73473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93292       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=   5982.866     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.046        20.875        .97026E-04    .47103E-04
   2  Index         2.3541        .70752        .80824E-02    .29963E-03
   3  Normalizat    .73470        .15897        .23306E-03   -.36975E-04
   4  Prefactor     .93295        .17819        .23389E-03   -.11836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0464
  Index      = 2.35411
  Normalizat = 0.734703
  Prefactor  = 0.93295
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.866     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.046        20.013        .38810E-05   -1.4882    
   2  Index         2.3541        .67852        .16165E-02   -.55763    
   3  Normalizat    .73470        .15906        .93225E-05   -1.0254    
   4  Prefactor     .93295        .17828        .93557E-05   -.94999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31903e-11
Minuit parameter uncertainties:
  1  20.0211
  2  0.681446
  3  0.159162
  4  0.178393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112626': 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) = 5982.86557877
delta logL = 0.0110759144663

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.705e+01  2.002e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.354e+00  6.814e-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.329e-01  1.784e-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.347e-01  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.35 +/- 0.68
Photon Flux (Free Index): 2.62e-08 +/- 2.60e-08
Energy Flux (Free Index): 9.15e-06 +/- 1.04e-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/112626/cmap_HighResolution_296870401_297129601_4FGL_J0916.7+3856_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='9.15e-06', photon_flux_error='3.03e-08', dlogl='1.11e-02', energy_flux='8.35e-06', photon_flux2='2.62e-08', job_status='DONE', time_completed='2021-08-31 06:13:41.305350', photon_index_error2='0.68', photon_index2='2.35', ts='1.61', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='8.60e-08', energy_flux_error2='1.04e-05', EG='0.73', time_epoch_completed='1630415621.31', return_code='0', job_id='112626', GAL2='0.93', EG2='0.73', return_code2='0', energy_flux_error='9.25e-06', photon_flux_error2='2.60e-08', ts2='1.65', photon_index='2.46' WHERE bin_id='222' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 112626: <4FGL_J0916.7+3856_daily_bin222> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin222> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:44 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:57:45 2021
Terminated at Tue Aug 31 06:13:42 2021
Results reported at Tue Aug 31 06:13:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin222 139.19 38.9479 296870401 297129601 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 :                                   817.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

