/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 193 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin61
RA = 139.19, Dec = 38.9479
tmin = 255139201, tmax = 255398401
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='112296', job_status='RUN', time_executed='2021-08-31 06:00:51.119421', time_epoch_executed='1630414851.12' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112296

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112296/ft1_4FGL_J0916.7+3856_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112296/ft2_4FGL_J0916.7+3856_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112296/ft1_4FGL_J0916.7+3856_daily_bin61.fits outfile=/scratch/kocevski/112296/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin61.fits ra=139.19 dec=38.9479 rad=12.0 tmin=255139201.0 tmax=255398401.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.46
user 7.15
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112296/ft2_4FGL_J0916.7+3856_daily_bin61.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/112296/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/112296/ft1_filtered_4FGL_J0916.7+3856_daily_bin61.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.59
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112296/ft1_filtered_4FGL_J0916.7+3856_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/112296/ft2_4FGL_J0916.7+3856_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/112296/ltcube_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.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/112296/ft2_4FGL_J0916.7+3856_daily_bin61.fits
.....................!
real 12.81
user 12.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112296/ft1_filtered_4FGL_J0916.7+3856_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/112296/ft2_4FGL_J0916.7+3856_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/112296/ltcube_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.fits outfile=/scratch/kocevski/112296/expmap_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.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/112296/ltcube_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.fits
.....................!
real 192.22
user 187.30
sys 4.42

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/112296/ft1_filtered_4FGL_J0916.7+3856_daily_bin61.fits scfile=/scratch/kocevski/112296/ft2_4FGL_J0916.7+3856_daily_bin61.fits outfile=/scratch/kocevski/112296/cmap_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=139.19 yref=38.9479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112296/ft1_filtered_4FGL_J0916.7+3856_daily_bin61.fits scfile=/scratch/kocevski/112296/ft2_4FGL_J0916.7+3856_daily_bin61.fits outfile=/scratch/kocevski/112296/cmap_HighResolution_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=139.19 yref=38.9479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2113       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5339       1.0000         .10000E-03   10000.    
     6 'norm      '    11.469       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31244       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    119.07       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.466       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13543E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9886       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.474       1.0000         .10000E-03   10000.    
    22 'norm      '    .10554E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .44014       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.343       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86004       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0459       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=   3819.317     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3754 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2114        .80065       -.36962E-07   -.18593E-03
   2  Prefactor     .10000E-03    6.8606        .24198E-06** at limit **
   3  Prefactor     .10000E-03    1.3507        .62230E-07** at limit **
   4  Prefactor     18.788        48.518       -.50342E-05   -.74621E-04
   5  Prefactor     1.5342        83.346        .74182E-05   -.85301E-05
   6  norm          11.469        8.5616       -.11885E-06   -.68111E-04
   7  Prefactor     .31193        2.6674        .36109E-06   -.19220E-03
   8  Prefactor     19.286        27.955       -.11353E-05   -.71587E-04
   9  Prefactor     119.08        97.648        .13277E-06   -.90156E-05
  10  Prefactor     14.463        7.7206        .15553E-06   -.31239E-04
  11  Prefactor     .10000E-03    40.584        .16147E-05** at limit **
  12  Prefactor     .10004E-03    2.6486        .87896E-06** at limit **
  13  norm          1.9182        1.8962        .17311E-07   -.66996E-05
  14  Prefactor     .10000E-03    8.6992       -.84127E-08** at limit **
  15  norm          2.8576        .92855       -.15513E-07   -.11377E-02
  16  Prefactor     .10000E-03    4.1192        .18486E-06** at limit **
  17  norm          .10000E-03    3.6891        .33273E-07** at limit **
  18  Prefactor     2.4038        2.5137        .34359E-08   -.28692E-03
  19  Prefactor     6.9866        6.0881        .17767E-06   -.21356E-04
  20  Prefactor     .10000E-03    16.650       -.14858E-05** at limit **
  21  Prefactor     28.474        27.246       -.34540E-06   -.25474E-04
  22  norm          .10000E-03    31.483       -.34970E-05** at limit **
  23  Prefactor     .33256        34.176       -.91093E-06    .99541E-04
  24  Prefactor     .10000E-03    24.840        .24157E-05** at limit **
  25  Prefactor     .10000E-03    6.5570       -.11521E-06** at limit **
  26  norm          .10000E-03    4.4849        .78124E-08** at limit **
  27  Prefactor     29.338        35.170        .37317E-06    .98874E-05
  28  Normalizat    .86030        .22298       -.62774E-06   -.18965E-03
  29  Prefactor     1.0459        .23052       -.43957E-06   -.16701E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7885
  Prefactor  = 1.53423
  norm       = 11.469
  Prefactor  = 0.311929
  Prefactor  = 19.2863
  Prefactor  = 119.078
  Prefactor  = 14.4633
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 1.91824
  Prefactor  = 0.0001
  norm       = 2.85764
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4038
  Prefactor  = 6.98665
  Prefactor  = 0.0001
  Prefactor  = 28.4738
  norm       = 0.000100001
  Prefactor  = 0.332562
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.3381
  Normalizat = 0.860301
  Prefactor  = 1.04587
 **********
 **   18 **HESSE 
 **********

 FCN=   3819.317     FROM HESSE     STATUS=OK           561 CALLS     4315 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2114        .80650        .42973E-04   -1.5488    
   2  Prefactor     .10000E-03    6.8789        .15817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3651        .70159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.788        48.332        .92481E-04   -1.4841    
   5  Prefactor     1.5342        86.707        .34450E-03   -1.5460    
   6  norm          11.469        8.5341        .11829E-03   -1.5031    
   7  Prefactor     .31193        4.5150        .18807E-02   -1.5596    
   8  Prefactor     19.286        28.008        .91211E-04   -1.4829    
   9  Prefactor     119.08        97.293        .36877E-04   -1.3521    
  10  Prefactor     14.463        7.7374        .10531E-03   -1.4947    
  11  Prefactor     .10000E-03    40.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    15.115        .17950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9182        1.8905        .81963E-04   -1.5431    
  14  Prefactor     .10000E-03    8.7041        .17803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8576        .85577        .29668E-04   -1.5370    
  16  Prefactor     .10000E-03    6.2378        .21869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6955        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4038        2.4875        .94935E-04   -1.5398    
  19  Prefactor     6.9866        6.1002        .13376E-03   -1.5179    
  20  Prefactor     .10000E-03    17.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.474        27.202        .75079E-04   -1.4640    
  22  norm          .10000E-03    31.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .33256        40.960        .97748E-01   -1.5593    
  24  Prefactor     .10000E-03    25.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.5840        .15455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.4862        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.338        35.202        .73963E-04   -1.4624    
  28  Normalizat    .86030        .25997        .25616E-03   -.97869    
  29  Prefactor     1.0459        .26903        .25877E-03   -.91216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98577e-08
Minuit parameter uncertainties:
  1  0.806503
  2  1.83387e-05
  3  2.57986e-06
  4  48.4332
  5  23.1021
  6  8.53501
  7  2.37333
  8  28.0267
  9  97.4243
  10  7.73794
  11  0.000199714
  12  0.00161968
  13  1.89056
  14  2.57165e-06
  15  0.855771
  16  7.1569e-06
  17  7.48268e-07
  18  2.48765
  19  6.10073
  20  7.53058e-05
  21  27.2141
  22  0.00029486
  23  7.38562
  24  0.000268796
  25  5.17905e-06
  26  8.74936e-07
  27  35.2268
  28  0.260347
  29  0.269374
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.572e-06  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.046e+00  2.694e-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.603e-01  2.603e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112296/likelihoodResults_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.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) = 3819.31706732
delta logL = -0.000545135673292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3819.31652334
delta logL = -1.1624997569e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4359       1.0000          .0000       10.000    
     3 'Normalizat'    .86056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0456       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=   3819.317     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      253 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.010        .18110E-01** at limit **
   2  Index         1.8829        6.8677        .50000        .19830E-06
   3  Normalizat    .86030        .86093E-02    .25616E-03   -.31777E-03
   4  Prefactor     1.0459        .95447E-02    .25877E-03   -.31270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88294
  Normalizat = 0.860301
  Prefactor  = 1.04587
 **********
 **   18 **HESSE 
 **********

 FCN=   3819.317     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    278.23        .20353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8829        5.8706        .50000       -.67310    
   3  Normalizat    .86030        .26941E-01    .51231E-04   -.97869    
   4  Prefactor     1.0459        .29868E-01    .51754E-04   -.91216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38613e-09
Minuit parameter uncertainties:
  1  0.000234336
  2  931.888
  3  0.0269418
  4  0.029869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112296': 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) = 3819.31652083
delta logL = 1.3492413018e-06

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.343e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  1.883e+00  9.319e+02  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.046e+00  2.987e-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.603e-01  2.694e-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/112296/cmap_HighResolution_255139201_255398401_4FGL_J0916.7+3856_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-08-31 06:12:51.755188', job_id='112296', GAL2='1.05', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630415571.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='61' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:12:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 112296: <4FGL_J0916.7+3856_daily_bin61> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin61> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:23 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:24 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:24 2021
Terminated at Tue Aug 31 06:12:52 2021
Results reported at Tue Aug 31 06:12:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin61 139.19 38.9479 255139201 255398401 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 :                                   711.22 sec.
    Max Memory :                                 1082 MB
    Average Memory :                             268.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

