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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin733
RA = 139.19, Dec = 38.9479
tmin = 429321601, tmax = 429580801
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='115189', job_status='RUN', time_executed='2021-08-31 06:07:08.008864', time_epoch_executed='1630415228.01' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115189/ft1_4FGL_J0916.7+3856_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115189/ft1_4FGL_J0916.7+3856_daily_bin733.fits outfile=/scratch/kocevski/115189/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin733.fits ra=139.19 dec=38.9479 rad=12.0 tmin=429321601.0 tmax=429580801.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 8.51
user 6.22
sys 2.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115189/ft1_filtered_4FGL_J0916.7+3856_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/115189/ltcube_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.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/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits
.....................!
real 14.06
user 11.60
sys 2.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115189/ft1_filtered_4FGL_J0916.7+3856_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/115189/ltcube_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.fits outfile=/scratch/kocevski/115189/expmap_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.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/115189/ltcube_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.fits
.....................!
real 192.17
user 185.13
sys 6.68

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/115189/ft1_filtered_4FGL_J0916.7+3856_daily_bin733.fits scfile=/scratch/kocevski/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits outfile=/scratch/kocevski/115189/cmap_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.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 2.36
user 0.36
sys 1.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115189/ft1_filtered_4FGL_J0916.7+3856_daily_bin733.fits scfile=/scratch/kocevski/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits outfile=/scratch/kocevski/115189/cmap_HighResolution_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.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 2.34
user 0.37
sys 1.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115189/ft1_filtered_4FGL_J0916.7+3856_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/115189/ft2_4FGL_J0916.7+3856_daily_bin733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115189/Model_4FGL_J0916.7+3856_daily_bin733.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/115189/ft1_filtered_4FGL_J0916.7+3856_daily_bin733.fits......................!
real 40.31
user 36.53
sys 3.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.414       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1915       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1528       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11888E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .64024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4514       1.0000         .10000E-03   10000.    
    17 'norm      '    66.952       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3887       1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.110       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2993       1.0000         .10000E-03   10000.    
    26 'norm      '    19.643       1.0000         .10000E-03   10000.    
    27 'Prefactor '    67.549       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88214       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .55041       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=   3633.190     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3625 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .19843       -.20249E-07** at limit **
   2  Prefactor     .10000E-03    4.0341       -.25956E-06** at limit **
   3  Prefactor     .10000E-03    1.5006       -.41591E-07** at limit **
   4  Prefactor     44.699        29.141        .96043E-06    .14503E-03
   5  Prefactor     .10000E-03    20.587       -.71189E-05** at limit **
   6  norm          20.412        8.7512       -.66924E-07    .30057E-04
   7  Prefactor     .10000E-03    2.9235       -.58140E-06** at limit **
   8  Prefactor     .10000E-03    23.380        .70036E-05** at limit **
   9  Prefactor     .10000E-03    31.760        .34652E-04** at limit **
  10  Prefactor     8.9573        5.1655       -.66927E-06    .25058E-04
  11  Prefactor     .10000E-03    41.187       -.72419E-05** at limit **
  12  Prefactor     5.1901        3.9243       -.72028E-06    .20790E-03
  13  norm          3.1530        2.3382       -.15359E-07   -.12961E-03
  14  Prefactor     .10000E-03    43.240       -.20825E-04** at limit **
  15  norm          .64017        .57010        .24848E-07    .25506E-03
  16  Prefactor     2.4503        3.2041       -.12525E-06   -.76895E-04
  17  norm          66.934        17.335       -.18227E-05    .57178E-03
  18  Prefactor     .10000E-03    1.2590        .12666E-07** at limit **
  19  Prefactor     .10000E-03    1.7511        .33097E-06** at limit **
  20  Prefactor     7.3881        10.150       -.83857E-06   -.76160E-03
  21  Prefactor     57.109        31.969       -.10864E-05    .43613E-05
  22  norm          .10000E-03    8.2373       -.37187E-07** at limit **
  23  Prefactor     .10000E-03    16.668       -.16456E-04** at limit **
  24  Prefactor     .10000E-03    14.288        .11435E-04** at limit **
  25  Prefactor     6.2993        6.8634        .53300E-07    .47975E-04
  26  norm          19.641        19.414       -.11748E-05    .72813E-05
  27  Prefactor     67.547        51.278       -.15506E-05    .12259E-04
  28  Normalizat    .88223        .18513        .25999E-05    .13917E-03
  29  Prefactor     .55030        .17664       -.53304E-06    .18767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.699
  Prefactor  = 0.0001
  norm       = 20.4118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.95735
  Prefactor  = 0.0001
  Prefactor  = 5.1901
  norm       = 3.15295
  Prefactor  = 0.000100002
  norm       = 0.640166
  Prefactor  = 2.45034
  norm       = 66.9341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.38808
  Prefactor  = 57.1089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.29934
  norm       = 19.6411
  Prefactor  = 67.5474
  Normalizat = 0.882234
  Prefactor  = 0.550301
 **********
 **   18 **HESSE 
 **********

 FCN=   3633.190     FROM HESSE     STATUS=OK           543 CALLS     4168 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .19854        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0446        .11822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5468        .14405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.699        29.116        .59967E-04   -1.4370    
   5  Prefactor     .10000E-03    21.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.412        8.7479        .88648E-04   -1.4804    
   7  Prefactor     .10000E-03    3.0404        .20061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9573        5.1749        .99819E-04   -1.5109    
  11  Prefactor     .10000E-03    41.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1901        3.9128        .97818E-04   -1.5252    
  13  norm          3.1530        2.3351        .76742E-04   -1.5353    
  14  Prefactor     .10000E-03    43.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .64017        .56885        .36943E-04   -1.5548    
  16  Prefactor     2.4503        3.2080        .10470E-03   -1.5395    
  17  norm          66.934        17.310        .49051E-04   -1.4070    
  18  Prefactor     .10000E-03    1.2708        .65962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7599        .77857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.3881        10.179        .73775E-03   -1.5164    
  21  Prefactor     57.109        31.964        .53084E-04   -1.4195    
  22  norm          .10000E-03    8.2405        .16897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.2993        6.8652        .15993E-03   -1.5206    
  26  norm          19.641        19.434        .90371E-04   -1.4821    
  27  Prefactor     67.547        51.414        .48836E-04   -1.4062    
  28  Normalizat    .88223        .21185        .21850E-03   -.97087    
  29  Prefactor     .55030        .20059        .27358E-03   -1.0972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15718e-09
Minuit parameter uncertainties:
  1  7.47016e-08
  2  5.94327e-06
  3  6.8582e-06
  4  29.1252
  5  1.11045e-05
  6  8.74844
  7  3.79014e-06
  8  5.74578e-05
  9  8.91162e-06
  10  5.17514
  11  0.000135493
  12  3.913
  13  2.33516
  14  0.000573106
  15  0.568856
  16  3.20824
  17  17.3115
  18  1.108e-05
  19  3.32725e-06
  20  10.1814
  21  31.9738
  22  5.01777e-06
  23  2.41963e-05
  24  9.04429e-06
  25  6.86601
  26  19.44
  27  51.4475
  28  0.212053
  29  0.200853
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.731e-04  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:  5.503e-01  2.009e-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.822e-01  2.121e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115189/likelihoodResults_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.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) = 3633.19000371
delta logL = -0.000110570829293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3633.18989334
delta logL = -1.91399067262e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3925       1.0000          .0000       10.000    
     3 'Normalizat'    .88224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55031       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=   3633.190     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2271.6        .90712E-02** at limit **
   2  Index         2.4429        5.9427        .50000       -.12726E-04
   3  Normalizat    .88223        .39164E-01    .44674E-01   -.20177E-03
   4  Prefactor     .55030        .39595E-01    .61832E-01    .32638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.44291
  Normalizat = 0.882232
  Prefactor  = 0.550301
 **********
 **   18 **HESSE 
 **********

 FCN=   3633.190     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      271 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7624.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4429        5.2075        .50000       -.53683    
   3  Normalizat    .88223        .78220E-01    .21850E-03   -.97087    
   4  Prefactor     .55030        .79026E-01    .27358E-03   -1.0972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75496e-08
Minuit parameter uncertainties:
  1  0.00474824
  2  54.4219
  3  0.0782295
  4  0.0790423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115189': 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) = 3633.18989319
delta logL = -4.22778612119e-08

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.748e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.443e+00  5.442e+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:  5.503e-01  7.904e-02  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.822e-01  7.823e-02  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/115189/cmap_HighResolution_429321601_429580801_4FGL_J0916.7+3856_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-08-31 06:18:44.403997', job_id='115189', GAL2='0.55', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630415924.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-4.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='733' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:18:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 115189: <4FGL_J0916.7+3856_daily_bin733> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin733 139.19 38.9479 429321601 429580801 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 :                                   721.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            750 sec.

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

