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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin753
RA = 139.19, Dec = 38.9479
tmin = 434505601, tmax = 434764801
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='115217', job_status='RUN', time_executed='2021-08-31 06:10:27.013376', time_epoch_executed='1630415427.01' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115217/ft1_4FGL_J0916.7+3856_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115217/ft1_4FGL_J0916.7+3856_daily_bin753.fits outfile=/scratch/kocevski/115217/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin753.fits ra=139.19 dec=38.9479 rad=12.0 tmin=434505601.0 tmax=434764801.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 7.05
user 5.64
sys 1.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115217/ft1_filtered_4FGL_J0916.7+3856_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/115217/ltcube_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.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/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits
.....................!
real 13.47
user 11.86
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115217/ft1_filtered_4FGL_J0916.7+3856_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/115217/ltcube_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.fits outfile=/scratch/kocevski/115217/expmap_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.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/115217/ltcube_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.fits
.....................!
real 191.20
user 184.43
sys 6.30

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/115217/ft1_filtered_4FGL_J0916.7+3856_daily_bin753.fits scfile=/scratch/kocevski/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits outfile=/scratch/kocevski/115217/cmap_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.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 1.70
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115217/ft1_filtered_4FGL_J0916.7+3856_daily_bin753.fits scfile=/scratch/kocevski/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits outfile=/scratch/kocevski/115217/cmap_HighResolution_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.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 1.66
user 0.37
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115217/ft1_filtered_4FGL_J0916.7+3856_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/115217/ft2_4FGL_J0916.7+3856_daily_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115217/Model_4FGL_J0916.7+3856_daily_bin753.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/115217/ft1_filtered_4FGL_J0916.7+3856_daily_bin753.fits.....................!
real 40.60
user 37.56
sys 2.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8823       1.0000         .10000E-03   10000.    
     6 'norm      '    11.616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0101       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6613       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1627       1.0000         .10000E-03   10000.    
    15 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7811       1.0000         .10000E-03   10000.    
    17 'norm      '    14.720       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0191       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2474       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.1366       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.336       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.010       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94179       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1250       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=   3946.623     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3750 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60860        .78150       -.94298E-07   -.69125E-03
   2  Prefactor     14.417        14.309       -.39989E-06   -.43889E-05
   3  Prefactor     .10000E-03    2.0886       -.58333E-07** at limit **
   4  Prefactor     .10000E-03    44.248        .56771E-06** at limit **
   5  Prefactor     6.8800        13.257       -.90498E-06   -.59949E-04
   6  norm          11.613        8.3606        .23059E-06   -.90766E-05
   7  Prefactor     .10000E-03    1.4400       -.37005E-07** at limit **
   8  Prefactor     .10000E-03    8.4490       -.15228E-07** at limit **
   9  Prefactor     .10000E-03    21.373       -.31805E-05** at limit **
  10  Prefactor     4.0104        5.3842       -.19784E-05   -.25440E-03
  11  Prefactor     .10000E-03    16.502        .28053E-06** at limit **
  12  Prefactor     6.6658        5.6386       -.62253E-06    .76641E-04
  13  norm          .10000E-03    1.7656       -.46535E-07** at limit **
  14  Prefactor     .98180        48.088       -.21411E-05    .66538E-05
  15  norm          .10000E-03    .42118        .20176E-07** at limit **
  16  Prefactor     5.7940        4.7163       -.15987E-06   -.79627E-04
  17  norm          14.762        15.359        .18833E-07    .29617E-03
  18  Prefactor     1.0183        3.0221       -.39930E-07   -.44190E-03
  19  Prefactor     .10000E-03    3.1591       -.91444E-07** at limit **
  20  Prefactor     2.2471        11.449       -.13018E-05   -.17579E-03
  21  Prefactor     .10000E-03    28.866       -.63408E-05** at limit **
  22  norm          8.1527        19.396       -.26974E-05   -.23879E-04
  23  Prefactor     11.323        32.024       -.78639E-05   -.76801E-05
  24  Prefactor     .10000E-03    25.105        .85691E-05** at limit **
  25  Prefactor     .10000E-03    3.9838       -.80377E-08** at limit **
  26  norm          .10000E-03    4.9186        .77203E-08** at limit **
  27  Prefactor     31.989        50.808       -.19251E-04    .50688E-05
  28  Normalizat    .94190        .22073        .50184E-05    .16877E-04
  29  Prefactor     1.1250        .22664       -.97164E-06    .19772E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.608597
  Prefactor  = 14.4168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87999
  norm       = 11.6134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.01039
  Prefactor  = 0.0001
  Prefactor  = 6.66583
  norm       = 0.0001
  Prefactor  = 0.981796
  norm       = 0.0001
  Prefactor  = 5.79403
  norm       = 14.7622
  Prefactor  = 1.01833
  Prefactor  = 0.0001
  Prefactor  = 2.24709
  Prefactor  = 0.0001
  norm       = 8.15273
  Prefactor  = 11.3235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9892
  Normalizat = 0.941896
  Prefactor  = 1.12497
 **********
 **   18 **HESSE 
 **********

 FCN=   3946.623     FROM HESSE     STATUS=OK           559 CALLS     4309 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60860        .73377        .58847E-03   -1.5552    
   2  Prefactor     14.417        14.167        .10548E-03   -1.4948    
   3  Prefactor     .10000E-03    2.1407        .17688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8800        13.235        .15293E-03   -1.5183    
   6  norm          11.613        8.3597        .11754E-03   -1.5026    
   7  Prefactor     .10000E-03    1.4602        .73569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4540        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0104        5.4170        .16105E-03   -1.5307    
  11  Prefactor     .10000E-03    16.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6658        5.5104        .11704E-03   -1.5192    
  13  norm          .10000E-03    1.8201        .16290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .98180        329.02        .60881E-02   -1.5510    
  15  norm          .10000E-03    .53147        .71528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7940        4.3066        .10253E-03   -1.5227    
  17  norm          14.762        16.608        .10439E-03   -1.4939    
  18  Prefactor     1.0183        2.8709        .16477E-03   -1.5506    
  19  Prefactor     .10000E-03    3.2317        .10899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2471        11.480        .27411E-03   -1.5408    
  21  Prefactor     .10000E-03    28.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.1527        19.375        .14055E-03   -1.5137    
  23  Prefactor     11.323        31.949        .11899E-03   -1.5035    
  24  Prefactor     .10000E-03    25.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.9876        .12246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.9202        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     31.989        50.673        .70822E-04   -1.4576    
  28  Normalizat    .94190        .25626        .25048E-03   -.95003    
  29  Prefactor     1.1250        .26487        .25380E-03   -.88672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57054e-10
Minuit parameter uncertainties:
  1  0.733778
  2  14.1707
  3  8.18444e-06
  4  2.03723e-05
  5  13.2404
  6  8.36051
  7  5.22398e-06
  8  8.7745e-06
  9  3.38249e-06
  10  5.41768
  11  5.87084e-06
  12  5.51081
  13  7.89694e-06
  14  36.1459
  15  1.02254e-06
  16  4.30682
  17  16.6132
  18  2.87126
  19  1.4912e-05
  20  10.161
  21  9.43936e-06
  22  19.3895
  23  31.9969
  24  0.000136985
  25  3.38411e-06
  26  8.25573e-07
  27  50.7411
  28  0.25659
  29  0.265179
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  9.818e-01  3.615e+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.125e+00  2.652e-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.419e-01  2.566e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115217/likelihoodResults_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.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) = 3946.23492222
delta logL = 0.387764829768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3946.19231423
delta logL = 0.430372822778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3140       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2167       1.0000          .0000       10.000    
     3 'Normalizat'    .87874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1652       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=   3946.192     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      227 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3276        37.331        .96094E-02    .54511E-03
   2  Index         4.2125        3.8136        .11165        .10261E-03
   3  Normalizat    .87811        .56107E-01    .44629E-01    .96943E-05
   4  Prefactor     1.1659        .61390E-01    .56474E-01    .35047E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32764
  Index      = 4.21252
  Normalizat = 0.878114
  Prefactor  = 1.16589
 **********
 **   18 **HESSE 
 **********

 FCN=   3946.192     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3276        88.283        .80313E-04   -1.5478    
   2  Index         4.2125        7.0257        .57932E-02   -.15816    
   3  Normalizat    .87811        .22426        .25786E-03   -.97234    
   4  Prefactor     1.1659        .24203        .24971E-03   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.68822e-07
Minuit parameter uncertainties:
  1  21.6852
  2  8.23153
  3  0.224496
  4  0.242261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115217': 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) = 3946.19230625
delta logL = 0.430380799701

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.328e+00  2.169e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  4.213e+00  8.232e+00  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.166e+00  2.423e-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.781e-01  2.245e-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/115217/cmap_HighResolution_434505601_434764801_4FGL_J0916.7+3856_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-31 06:22:23.679701', job_id='115217', GAL2='1.17', fit_tolerance='1e-08', EG2='0.88', EG='0.94', time_epoch_completed='1630416143.68', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.30e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='753' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 115217: <4FGL_J0916.7+3856_daily_bin753> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin753 139.19 38.9479 434505601 434764801 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 :                                   731.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

