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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin193
RA = 139.19, Dec = 38.9479
tmin = 289353601, tmax = 289612801
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='112572', job_status='RUN', time_executed='2021-08-31 06:00:15.948779', time_epoch_executed='1630414815.95' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112572/ft1_4FGL_J0916.7+3856_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits


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

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

Done.
real 3.76
user 3.26
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112572/ft1_filtered_4FGL_J0916.7+3856_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/112572/ltcube_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.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/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits
.....................!
real 15.02
user 14.29
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112572/ft1_filtered_4FGL_J0916.7+3856_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/112572/ltcube_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.fits outfile=/scratch/kocevski/112572/expmap_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.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/112572/ltcube_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.fits
.....................!
real 191.55
user 185.44
sys 5.39

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/112572/ft1_filtered_4FGL_J0916.7+3856_daily_bin193.fits scfile=/scratch/kocevski/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits outfile=/scratch/kocevski/112572/cmap_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.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.11
user 0.36
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112572/ft1_filtered_4FGL_J0916.7+3856_daily_bin193.fits scfile=/scratch/kocevski/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits outfile=/scratch/kocevski/112572/cmap_HighResolution_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.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.04
user 0.37
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112572/ft1_filtered_4FGL_J0916.7+3856_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/112572/ft2_4FGL_J0916.7+3856_daily_bin193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112572/Model_4FGL_J0916.7+3856_daily_bin193.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/112572/ft1_filtered_4FGL_J0916.7+3856_daily_bin193.fits.....................!
real 54.71
user 50.54
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1259       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.127       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4749       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.868       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71665       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11706E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19333E-01   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 '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.6350       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14486E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0945       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88208       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=   6033.701     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3225 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1262        .60843        .10739E-07    .17460E-03
   2  Prefactor     .10000E-03    6.5122        .13937E-06** at limit **
   3  Prefactor     1.1962        2.4013       -.82173E-06   -.29339E-04
   4  Prefactor     15.330        29.379       -.39190E-06    .31962E-04
   5  Prefactor     20.136        13.088       -.76510E-07    .41517E-04
   6  norm          .10000E-03    5.2300        .61275E-07** at limit **
   7  Prefactor     5.4723        3.6472        .81667E-07    .18694E-03
   8  Prefactor     11.869        16.798       -.25607E-06   -.42242E-06
   9  Prefactor     .10000E-03    191.45       -.34557E-05** at limit **
  10  Prefactor     4.7030        3.5131       -.13733E-06    .24160E-04
  11  Prefactor     .10000E-03    13.936        .16780E-07** at limit **
  12  Prefactor     .10000E-03    1.1946        .93450E-07** at limit **
  13  norm          .10000E-03    .79425       -.21102E-07** at limit **
  14  Prefactor     .10000E-03    10.462       -.50698E-07** at limit **
  15  norm          .10000E-03    .16681       -.45602E-07** at limit **
  16  Prefactor     .71976        2.6141        .56241E-07    .25070E-03
  17  norm          .10000E-03    3.8228        .98522E-07** at limit **
  18  Prefactor     1.6734        2.9219       -.77838E-06    .89344E-04
  19  Prefactor     .10000E-03    2.1143       -.32160E-07** at limit **
  20  Prefactor     .10000E-03    22.247        .27010E-07** at limit **
  21  Prefactor     .10000E-03    158.11        .81605E-05** at limit **
  22  norm          .10000E-03    8.3633       -.72776E-07** at limit **
  23  Prefactor     .10000E-03    21.917        .40585E-06** at limit **
  24  Prefactor     .10000E-03    10.057        .19773E-06** at limit **
  25  Prefactor     .10000E-03    4.7515       -.18483E-07** at limit **
  26  norm          7.6344        9.0376       -.97727E-07    .24592E-04
  27  Prefactor     .10000E-03    78.018       -.16488E-06** at limit **
  28  Normalizat    1.0944        .17990        .12427E-05    .13827E-03
  29  Prefactor     .88215        .17764        .14942E-06    .16662E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1262
  Prefactor  = 0.0001
  Prefactor  = 1.19623
  Prefactor  = 15.3299
  Prefactor  = 20.1362
  norm       = 0.0001
  Prefactor  = 5.47225
  Prefactor  = 11.8692
  Prefactor  = 0.000100005
  Prefactor  = 4.70304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.719756
  norm       = 0.0001
  Prefactor  = 1.67337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.63438
  Prefactor  = 0.0001
  Normalizat = 1.09437
  Prefactor  = 0.882151
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.701     FROM HESSE     STATUS=OK           551 CALLS     3776 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1262        .60602        .42837E-04   -1.5496    
   2  Prefactor     .10000E-03    6.5348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1962        2.3891        .16411E-03   -1.5489    
   4  Prefactor     15.330        29.248        .10212E-03   -1.4925    
   5  Prefactor     20.136        13.066        .89277E-04   -1.4810    
   6  norm          .10000E-03    5.3779        .34657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4723        3.6214        .11113E-03   -1.5240    
   8  Prefactor     11.869        16.792        .11628E-03   -1.5019    
   9  Prefactor     .10000E-03    190.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7030        3.5101        .12138E-03   -1.5274    
  11  Prefactor     .10000E-03    13.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2051        .82818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .81337        .67587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .21866        .61875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71976        2.7625        .22194E-03   -1.5538    
  17  norm          .10000E-03    3.8442        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6734        2.8681        .15736E-03   -1.5449    
  19  Prefactor     .10000E-03    2.1396        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    154.24        .66162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.3842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7695        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.6344        9.0273        .14513E-03   -1.5155    
  27  Prefactor     .10000E-03    79.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0944        .20282        .22775E-03   -.89933    
  29  Prefactor     .88215        .20461        .26418E-03   -.96768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66661e-10
Minuit parameter uncertainties:
  1  0.606026
  2  1.31094e-05
  3  2.38926
  4  29.2755
  5  13.068
  6  1.47813e-05
  7  3.62159
  8  16.7984
  9  0.00189119
  10  3.51029
  11  1.68699e-06
  12  4.62943e-06
  13  1.89111e-06
  14  2.59305e-05
  15  2.05541e-06
  16  2.76299
  17  3.89484e-06
  18  2.86832
  19  5.52591e-06
  20  4.83007e-05
  21  0.000771503
  22  5.44616e-06
  23  8.85814e-05
  24  2.70249e-05
  25  8.2648e-06
  26  9.02894
  27  0.000116062
  28  0.202967
  29  0.204787
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.593e-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:  8.822e-01  2.048e-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.094e+00  2.030e-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: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112572/likelihoodResults_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.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) = 6033.70186835
delta logL = -0.000454322286714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6033.70141419
delta logL = -1.60479430633e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4641       1.0000          .0000       10.000    
     3 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88224       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=   6033.700     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      330 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27070E-01    1.5943        .18142E-01   -.12869E-02
   2  Index         4.6118        1.3726        .50000       -.11355E-05
   3  Normalizat    1.0910        .88395E-02    .22775E-03   -.62896E-05
   4  Prefactor     .88434        .93533E-02    .26418E-03   -.41398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0270702
  Index      = 4.61178
  Normalizat = 1.09104
  Prefactor  = 0.884341
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.700     FROM HESSE     STATUS=OK            31 CALLS      361 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27070E-01    2.7009        .90748E-03   -1.5741    
   2  Index         4.6118        7.2977        .10024E-01   -.77723E-01
   3  Normalizat    1.0910        .19877        .91100E-05   -.90040    
   4  Prefactor     .88434        .20437        .10567E-04   -.96690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49763e-08
Minuit parameter uncertainties:
  1  0.53982
  2  7.84575
  3  0.198904
  4  0.20455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112572': 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) = 6033.6999582
delta logL = 0.00145582169262

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.707e-02  5.398e-01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  4.612e+00  7.846e+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:  8.843e-01  2.045e-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.091e+00  1.989e-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/112572/cmap_HighResolution_289353601_289612801_4FGL_J0916.7+3856_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-08-31 06:14:07.424833', job_id='112572', GAL2='0.88', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630415647.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.46e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='193' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:14:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 112572: <4FGL_J0916.7+3856_daily_bin193> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin193 139.19 38.9479 289353601 289612801 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 :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

