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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin609
RA = 139.19, Dec = 38.9479
tmin = 397180801, tmax = 397440001
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='115007', job_status='RUN', time_executed='2021-08-31 06:10:25.070178', time_epoch_executed='1630415425.07' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115007

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115007/ft1_4FGL_J0916.7+3856_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115007/ft1_4FGL_J0916.7+3856_daily_bin609.fits outfile=/scratch/kocevski/115007/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin609.fits ra=139.19 dec=38.9479 rad=12.0 tmin=397180801.0 tmax=397440001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.41
user 3.71
sys 0.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115007/ft1_filtered_4FGL_J0916.7+3856_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/115007/ltcube_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.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/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits
.....................!
real 11.35
user 10.47
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115007/ft1_filtered_4FGL_J0916.7+3856_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/115007/ltcube_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.fits outfile=/scratch/kocevski/115007/expmap_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.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/115007/ltcube_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.fits
.....................!
real 193.43
user 187.71
sys 5.31

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/115007/ft1_filtered_4FGL_J0916.7+3856_daily_bin609.fits scfile=/scratch/kocevski/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits outfile=/scratch/kocevski/115007/cmap_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.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.97
user 0.35
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115007/ft1_filtered_4FGL_J0916.7+3856_daily_bin609.fits scfile=/scratch/kocevski/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits outfile=/scratch/kocevski/115007/cmap_HighResolution_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.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.98
user 0.37
sys 0.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115007/ft1_filtered_4FGL_J0916.7+3856_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/115007/ft2_4FGL_J0916.7+3856_daily_bin609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115007/Model_4FGL_J0916.7+3856_daily_bin609.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/115007/ft1_filtered_4FGL_J0916.7+3856_daily_bin609.fits.....................!
real 42.66
user 40.49
sys 1.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2635       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2057       1.0000         .10000E-03   10000.    
     6 'norm      '    .11003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0742       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.173       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14591E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13776E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5435       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11895E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.043       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    17.042       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3480       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65849       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=   4345.643     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3690 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2636        .66763       -.32793E-07   -.24284E-03
   2  Prefactor     .10000E-03    3.9395       -.45019E-07** at limit **
   3  Prefactor     .33114        2.6419        .18551E-05    .10003E-03
   4  Prefactor     .10000E-03    8.3705        .24561E-07** at limit **
   5  Prefactor     7.2059        8.8240        .39303E-07    .16006E-07
   6  norm          .10000E-03    6.4018       -.16042E-05** at limit **
   7  Prefactor     3.0750        2.2396       -.64566E-07    .16856E-03
   8  Prefactor     17.568        19.750        .40215E-11    .14052E-05
   9  Prefactor     90.033        86.198        .12577E-06   -.16173E-04
  10  Prefactor     1.3841        2.2882        .12468E-06    .26247E-04
  11  Prefactor     .10000E-03    19.542        .56707E-07** at limit **
  12  Prefactor     .10000E-03    2.4238        .58304E-07** at limit **
  13  norm          4.4534        2.7865        .48830E-07   -.20033E-04
  14  Prefactor     .10000E-03    15.020        .82264E-07** at limit **
  15  norm          .10000E-03    .24574       -.56814E-07** at limit **
  16  Prefactor     .10000E-03    2.4485       -.92128E-06** at limit **
  17  norm          .10000E-03    8.6446        .11634E-06** at limit **
  18  Prefactor     1.5446        3.4161        .65365E-06    .34152E-03
  19  Prefactor     .10000E-03    2.9465        .16880E-06** at limit **
  20  Prefactor     3.5875        10.193        .24912E-06    .28895E-04
  21  Prefactor     .10000E-03    28.382       -.32118E-06** at limit **
  22  norm          .10000E-03    9.8598       -.21084E-06** at limit **
  23  Prefactor     13.036        21.813       -.25492E-07    .35332E-04
  24  Prefactor     .10000E-03    11.794       -.25673E-07** at limit **
  25  Prefactor     .10000E-03    7.4722        .22440E-06** at limit **
  26  norm          17.045        14.230        .18698E-07    .28283E-04
  27  Prefactor     .10000E-03    28.539        .24032E-06** at limit **
  28  Normalizat    1.3474        .20016        .11429E-05    .52141E-04
  29  Prefactor     .65915        .21120       -.25064E-05    .64367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26358
  Prefactor  = 0.0001
  Prefactor  = 0.331141
  Prefactor  = 0.0001
  Prefactor  = 7.20586
  norm       = 0.0001
  Prefactor  = 3.07495
  Prefactor  = 17.5681
  Prefactor  = 90.0331
  Prefactor  = 1.38407
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.45336
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.54463
  Prefactor  = 0.0001
  Prefactor  = 3.58751
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.0455
  Prefactor  = 0.0001
  Normalizat = 1.34737
  Prefactor  = 0.659147
 **********
 **   18 **HESSE 
 **********

 FCN=   4345.643     FROM HESSE     STATUS=OK           555 CALLS     4245 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2636        .66972        .38030E-04   -1.5483    
   2  Prefactor     .10000E-03    3.9451        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33114        2.6630        .20330E-03   -1.5593    
   4  Prefactor     .10000E-03    8.3742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2059        8.8183        .14943E-03   -1.5171    
   6  norm          .10000E-03    6.4715        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0750        2.2351        .81193E-04   -1.5357    
   8  Prefactor     17.568        19.751        .95563E-04   -1.4869    
   9  Prefactor     90.033        86.117        .21158E-03   -1.3807    
  10  Prefactor     1.3841        2.2482        .12476E-03   -1.5473    
  11  Prefactor     .10000E-03    19.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.741        .18122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4534        2.7801        .83670E-04   -1.5286    
  14  Prefactor     .10000E-03    15.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .30513        .61406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0038        .18166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.7460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5446        3.2332        .15969E-03   -1.5459    
  19  Prefactor     .10000E-03    2.9842        .11037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5875        10.189        .21348E-03   -1.5329    
  21  Prefactor     .10000E-03    28.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.8664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.036        21.811        .11091E-03   -1.4986    
  24  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.5285        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          17.045        14.243        .97018E-04   -1.4882    
  27  Prefactor     .10000E-03    28.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3474        .22955        .20493E-03   -.82163    
  29  Prefactor     .65915        .23953        .30185E-03   -1.0515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22985e-10
Minuit parameter uncertainties:
  1  0.669722
  2  7.56521e-06
  3  1.87795
  4  1.4176e-06
  5  8.81989
  6  2.17363e-05
  7  2.23514
  8  19.7585
  9  86.2364
  10  2.24831
  11  2.48903e-06
  12  0.000383083
  13  2.78022
  14  1.62714e-05
  15  3.74264e-06
  16  0.000113029
  17  1.16482e-05
  18  3.23353
  19  2.57502e-06
  20  10.1943
  21  1.55913e-05
  22  3.20601e-06
  23  21.8242
  24  1.33302e-06
  25  3.87342e-06
  26  14.2463
  27  1.43057e-05
  28  0.229729
  29  0.239905
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.627e-05  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:  6.591e-01  2.399e-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:  1.347e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/115007/likelihoodResults_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.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): 102
logL (Free Index) = 4345.64338778
delta logL = -0.000316250423566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4345.6430721
delta logL = -5.66783455724e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4664       1.0000          .0000       10.000    
     3 'Normalizat'    1.3472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65934       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=   4345.643     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6289.3        .90712E-02** at limit **
   2  Index         2.4756        6.2155        .50000       -.55647E-05
   3  Normalizat    1.3474        .97965E-01    .46360E-01    .79795E-05
   4  Prefactor     .65915        .10412        .68212E-01    .22010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4756
  Normalizat = 1.34737
  Prefactor  = 0.659146
 **********
 **   18 **HESSE 
 **********

 FCN=   4345.643     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6496.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4756        5.5904        .50000       -.52924    
   3  Normalizat    1.3474        .13387        .20493E-03   -.82163    
   4  Prefactor     .65915        .14335        .30186E-03   -1.0515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.67877e-09
Minuit parameter uncertainties:
  1  0.000231318
  2  64.3364
  3  0.133908
  4  0.143429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115007': 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): 102
logL (Free Index) = 4345.64307151
delta logL = 2.31275407714e-08

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.313e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.476e+00  6.434e+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:  6.591e-01  1.434e-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:  1.347e+00  1.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 139.190 38.948

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/115007/cmap_HighResolution_397180801_397440001_4FGL_J0916.7+3856_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-08-31 06:22:36.132182', job_id='115007', GAL2='0.66', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630416156.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='609' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 115007: <4FGL_J0916.7+3856_daily_bin609> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin609 139.19 38.9479 397180801 397440001 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 :                                   730.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

