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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin981
RA = 139.19, Dec = 38.9479
tmin = 493603201, tmax = 493862401
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='116707', job_status='RUN', time_executed='2021-08-31 06:12:47.072617', time_epoch_executed='1630415567.07' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/116707

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/116707/ft1_4FGL_J0916.7+3856_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/116707/ft1_4FGL_J0916.7+3856_daily_bin981.fits outfile=/scratch/kocevski/116707/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin981.fits ra=139.19 dec=38.9479 rad=12.0 tmin=493603201.0 tmax=493862401.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.88
user 3.29
sys 5.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.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/116707/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.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 6.35
user 0.35
sys 5.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/116707/ltcube_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.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/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits
.....................!
real 18.51
user 11.48
sys 6.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/116707/ltcube_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.fits outfile=/scratch/kocevski/116707/expmap_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.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/116707/ltcube_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.fits
.....................!
real 198.05
user 185.54
sys 11.57

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/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.fits scfile=/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits outfile=/scratch/kocevski/116707/cmap_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.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 6.35
user 0.39
sys 5.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.fits scfile=/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits outfile=/scratch/kocevski/116707/cmap_HighResolution_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.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 6.22
user 0.39
sys 5.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/116707/ft2_4FGL_J0916.7+3856_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/116707/Model_4FGL_J0916.7+3856_daily_bin981.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/116707/ft1_filtered_4FGL_J0916.7+3856_daily_bin981.fits....................!
real 55.87
user 46.93
sys 8.62

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.160       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.449       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7305       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80080       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .22734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0605       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6781       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9638       1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.390       1.0000         .10000E-03   10000.    
    22 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.741       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    104.64       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1551       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76914       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=   5331.349     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3229 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19737        .46637       -.27733E-07   -.17647E-02
   2  Prefactor     14.158        12.262        .22055E-06    .93109E-04
   3  Prefactor     2.7589        2.8353       -.99960E-07   -.64540E-04
   4  Prefactor     .10000E-03    23.490       -.14438E-04** at limit **
   5  Prefactor     .10000E-03    16.391       -.64338E-05** at limit **
   6  norm          .10000E-03    3.4296       -.18202E-06** at limit **
   7  Prefactor     2.0866        2.9085       -.43238E-06   -.37746E-03
   8  Prefactor     12.449        17.445        .53929E-06   -.37854E-05
   9  Prefactor     .10000E-03    221.15       -.10504E-04** at limit **
  10  Prefactor     1.7307        2.4274       -.64602E-07   -.20076E-03
  11  Prefactor     .10000E-03    23.026       -.11315E-04** at limit **
  12  Prefactor     .80129        1.9143       -.15727E-07   -.48779E-03
  13  norm          .10000E-03    1.1496        .30379E-07** at limit **
  14  Prefactor     .10000E-03    27.501       -.22788E-05** at limit **
  15  norm          .22740        .45154        .41658E-07   -.59005E-03
  16  Prefactor     2.0598        3.3722       -.40290E-06   -.52154E-03
  17  norm          .10000E-03    3.9949       -.11110E-06** at limit **
  18  Prefactor     1.0242        2.2614       -.84347E-06   -.99826E-03
  19  Prefactor     3.6786        4.1750       -.25645E-05   -.39190E-03
  20  Prefactor     4.9418        12.114       -.34534E-05   -.11589E-03
  21  Prefactor     68.414        36.294        .44971E-05    .22062E-04
  22  norm          .10000E-03    6.8180        .52187E-07** at limit **
  23  Prefactor     16.737        19.786        .34469E-05   -.10186E-03
  24  Prefactor     .10000E-03    19.537        .22414E-04** at limit **
  25  Prefactor     .10000E-03    2.9824       -.22873E-06** at limit **
  26  norm          104.64        25.168       -.14482E-05   -.16871E-04
  27  Prefactor     .10000E-03    29.094        .15855E-04** at limit **
  28  Normalizat    1.1550        .18139        .15429E-06    .13931E-03
  29  Prefactor     .76914        .18622        .62484E-06    .78136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.197369
  Prefactor  = 14.1584
  Prefactor  = 2.75887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.08664
  Prefactor  = 12.4488
  Prefactor  = 0.0001
  Prefactor  = 1.73071
  Prefactor  = 0.0001
  Prefactor  = 0.801288
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.227404
  Prefactor  = 2.05984
  norm       = 0.0001
  Prefactor  = 1.02416
  Prefactor  = 3.6786
  Prefactor  = 4.94179
  Prefactor  = 68.4136
  norm       = 0.0001
  Prefactor  = 16.7375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 104.644
  Prefactor  = 0.0001
  Normalizat = 1.15504
  Prefactor  = 0.769139
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.349     FROM HESSE     STATUS=OK           559 CALLS     3788 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19737        .40581        .73371E-03   -1.5619    
   2  Prefactor     14.158        12.160        .10644E-03   -1.4955    
   3  Prefactor     2.7589        2.8235        .11621E-03   -1.5376    
   4  Prefactor     .10000E-03    23.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4644        .13204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0866        2.8884        .13920E-03   -1.5419    
   8  Prefactor     12.449        17.439        .11353E-03   -1.5002    
   9  Prefactor     .10000E-03    223.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7307        2.4063        .13082E-03   -1.5445    
  11  Prefactor     .10000E-03    23.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .80129        1.5016        .14758E-02   -1.5529    
  13  norm          .10000E-03    1.2034        .15273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .22740        .37327        .53127E-03   -1.5613    
  16  Prefactor     2.0598        3.1188        .12757E-03   -1.5421    
  17  norm          .10000E-03    4.0171        .14245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0242        2.1884        .15021E-03   -1.5506    
  19  Prefactor     3.6786        4.2051        .15219E-03   -1.5324    
  20  Prefactor     4.9418        12.090        .18051E-03   -1.5263    
  21  Prefactor     68.414        36.223        .48536E-04   -1.4052    
  22  norm          .10000E-03    6.8298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.737        19.747        .97887E-04   -1.4890    
  24  Prefactor     .10000E-03    19.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.9888        .12314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          104.64        25.204        .19655E-03   -1.3658    
  27  Prefactor     .10000E-03    29.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1550        .20877        .22026E-03   -.88004    
  29  Prefactor     .76914        .21460        .28480E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13395e-09
Minuit parameter uncertainties:
  1  0.405811
  2  12.1617
  3  2.82361
  4  3.77263e-05
  5  6.43378e-05
  6  1.57044e-06
  7  2.88855
  8  17.4465
  9  0.000168074
  10  2.40648
  11  1.95936e-05
  12  1.50163
  13  9.99174e-06
  14  7.60603e-05
  15  0.373274
  16  3.11902
  17  5.78926e-06
  18  2.18855
  19  4.20542
  20  12.0963
  21  36.2347
  22  1.48148e-05
  23  19.7546
  24  7.53012e-05
  25  8.99923e-07
  26  25.2061
  27  8.11268e-05
  28  0.208923
  29  0.214828
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  7.606e-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:  7.691e-01  2.148e-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.155e+00  2.089e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/116707/likelihoodResults_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.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) = 5331.34931313
delta logL = -0.000171195102666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5331.34914236
delta logL = -4.28042767453e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3759       1.0000          .0000       10.000    
     3 'Normalizat'    1.1551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76915       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=   5331.349     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      280 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6657.7        .18142E-02** at limit **
   2  Index         2.4268        5.9564        .50000       -.20671E-04
   3  Normalizat    1.1550        .68184E-01    .22026E-03   -.11355E-05
   4  Prefactor     .76914        .73642E-01    .28480E-03   -.63070E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.42681
  Normalizat = 1.15504
  Prefactor  = 0.769139
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.349     FROM HESSE     STATUS=OK            29 CALLS      309 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    33.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4268        6.1953        .50000       -.54059    
   3  Normalizat    1.1550        .19307        .88106E-05   -.88004    
   4  Prefactor     .76914        .20858        .11392E-04   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74973e-10
Minuit parameter uncertainties:
  1  0.00123076
  2  4.93244
  3  0.193186
  4  0.208793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/116707': 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) = 5331.34914208
delta logL = -1.48393155541e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.231e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.427e+00  4.932e+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:  7.691e-01  2.088e-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.155e+00  1.932e-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/116707/cmap_HighResolution_493603201_493862401_4FGL_J0916.7+3856_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-08-31 06:27:15.277268', job_id='116707', GAL2='0.77', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630416435.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='981' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:27:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 116707: <4FGL_J0916.7+3856_daily_bin981> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin981> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 06:10:48 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:10:50 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:10:50 2021
Terminated at Tue Aug 31 06:27:17 2021
Results reported at Tue Aug 31 06:27:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin981 139.19 38.9479 493603201 493862401 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 :                                   957.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

