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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin531
RA = 139.19, Dec = 38.9479
tmin = 376963201, tmax = 377222401
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='113801', job_status='RUN', time_executed='2021-08-31 06:04:32.590556', time_epoch_executed='1630415072.59' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113801/ft1_4FGL_J0916.7+3856_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113801/ft1_4FGL_J0916.7+3856_daily_bin531.fits outfile=/scratch/kocevski/113801/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin531.fits ra=139.19 dec=38.9479 rad=12.0 tmin=376963201.0 tmax=377222401.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 5.89
user 4.31
sys 1.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113801/ft1_filtered_4FGL_J0916.7+3856_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/113801/ltcube_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.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/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits
.....................!
real 13.28
user 11.54
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113801/ft1_filtered_4FGL_J0916.7+3856_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/113801/ltcube_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.fits outfile=/scratch/kocevski/113801/expmap_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.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/113801/ltcube_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.fits
.....................!
real 192.45
user 185.88
sys 6.07

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/113801/ft1_filtered_4FGL_J0916.7+3856_daily_bin531.fits scfile=/scratch/kocevski/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits outfile=/scratch/kocevski/113801/cmap_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.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.71
user 0.36
sys 1.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113801/ft1_filtered_4FGL_J0916.7+3856_daily_bin531.fits scfile=/scratch/kocevski/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits outfile=/scratch/kocevski/113801/cmap_HighResolution_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.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.79
user 0.36
sys 1.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113801/ft1_filtered_4FGL_J0916.7+3856_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/113801/ft2_4FGL_J0916.7+3856_daily_bin531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113801/Model_4FGL_J0916.7+3856_daily_bin531.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/113801/ft1_filtered_4FGL_J0916.7+3856_daily_bin531.fits.....................!
real 52.68
user 49.62
sys 2.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19365       1.0000         .10000E-03   10000.    
    13 'norm      '    .99199E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.936       1.0000         .10000E-03   10000.    
    15 'norm      '    .14328       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1226       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2001       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16786E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.388       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.820       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9971       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96145       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88209       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=   5809.196     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3741 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .21548        .73983E-08** at limit **
   2  Prefactor     .10000E-03    4.6436        .12376E-06** at limit **
   3  Prefactor     .10000E-03    1.4478        .16103E-06** at limit **
   4  Prefactor     .10000E-03    9.3281        .12649E-06** at limit **
   5  Prefactor     .10000E-03    2.3295        .46936E-07** at limit **
   6  norm          21.259        8.2650       -.19300E-06   -.86459E-04
   7  Prefactor     .10000E-03    1.2574        .26494E-06** at limit **
   8  Prefactor     19.240        23.894        .14092E-06   -.34068E-04
   9  Prefactor     21.684        38.942       -.28479E-06    .81699E-05
  10  Prefactor     .10000E-03    2.5153        .46540E-07** at limit **
  11  Prefactor     28.299        33.108        .71158E-06   -.50287E-04
  12  Prefactor     .16455        12.679       -.36741E-05    .55620E-03
  13  norm          .92226E-01    2.8317       -.79015E-06   -.11966E-02
  14  Prefactor     57.954        29.200        .13807E-05    .12043E-03
  15  norm          .14365        .63566        .97575E-07    .50459E-03
  16  Prefactor     5.1182        4.6638       -.68007E-06   -.77885E-04
  17  norm          4.4258        9.0507       -.99122E-06    .25867E-04
  18  Prefactor     1.2320        2.5135       -.47477E-06   -.55617E-04
  19  Prefactor     1.2026        4.3202       -.21034E-05   -.54231E-03
  20  Prefactor     13.127        10.136       -.22101E-06   -.37014E-04
  21  Prefactor     .10000E-03    51.521        .93413E-06** at limit **
  22  norm          .10000E-03    4.6686        .22536E-07** at limit **
  23  Prefactor     12.385        17.485       -.22075E-06    .27466E-04
  24  Prefactor     .10000E-03    19.037        .17186E-06** at limit **
  25  Prefactor     .10000E-03    3.1520        .91930E-07** at limit **
  26  norm          12.824        18.138       -.65412E-06   -.20822E-04
  27  Prefactor     10.004        36.822       -.13315E-05   -.15524E-04
  28  Normalizat    .96118        .19041        .25740E-05   -.63297E-04
  29  Prefactor     .88245        .18404       -.19391E-05    .10096E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.2592
  Prefactor  = 0.0001
  Prefactor  = 19.2398
  Prefactor  = 21.6842
  Prefactor  = 0.0001
  Prefactor  = 28.2986
  Prefactor  = 0.164548
  norm       = 0.092226
  Prefactor  = 57.9538
  norm       = 0.143647
  Prefactor  = 5.11816
  norm       = 4.42576
  Prefactor  = 1.23201
  Prefactor  = 1.20262
  Prefactor  = 13.1265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8238
  Prefactor  = 10.0039
  Normalizat = 0.96118
  Prefactor  = 0.882448
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.196     FROM HESSE     STATUS=OK           563 CALLS     4304 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .21558        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6529        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4766        .89478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3308        .11361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.259        8.2655        .43434E-03   -1.4785    
   7  Prefactor     .10000E-03    1.2851        .83478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.240        23.816        .91315E-04   -1.4830    
   9  Prefactor     21.684        38.938        .86010E-04   -1.4776    
  10  Prefactor     .10000E-03    2.5734        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.299        33.051        .37668E-03   -1.4644    
  12  Prefactor     .16455        19.853        .18291E-02   -1.5627    
  13  norm          .92226E-01    5.3805        .14296E-02   -1.5647    
  14  Prefactor     57.954        29.222        .52707E-04   -1.4184    
  15  norm          .14365        .83253        .69790E-03   -1.5632    
  16  Prefactor     5.1182        4.9276        .94468E-04   -1.5255    
  17  norm          4.4258        8.9565        .19145E-03   -1.5287    
  18  Prefactor     1.2320        2.4451        .15303E-03   -1.5486    
  19  Prefactor     1.2026        4.3665        .27273E-03   -1.5489    
  20  Prefactor     13.127        10.114        .11059E-03   -1.4983    
  21  Prefactor     .10000E-03    52.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.6688        .16080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.385        17.476        .11381E-03   -1.5004    
  24  Prefactor     .10000E-03    19.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.1680        .13213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.824        18.154        .11188E-03   -1.4992    
  27  Prefactor     10.004        36.985        .12673E-03   -1.5075    
  28  Normalizat    .96118        .21119        .23707E-03   -.94343    
  29  Prefactor     .88245        .20444        .25887E-03   -.96757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68737e-09
Minuit parameter uncertainties:
  1  7.3339e-08
  2  7.64813e-06
  3  8.32943e-07
  4  5.00814e-06
  5  5.34755e-07
  6  8.26596
  7  6.69364e-06
  8  23.8276
  9  38.9835
  10  4.97217e-06
  11  33.0728
  12  3.61493
  13  1.40823
  14  29.229
  15  0.691412
  16  4.92799
  17  8.95921
  18  2.44531
  19  4.36761
  20  10.1157
  21  0.000118721
  22  9.28578e-06
  23  17.4836
  24  3.14951e-05
  25  5.29952e-07
  26  18.1621
  27  37.0703
  28  0.211371
  29  0.204618
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.795e+01  2.923e+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:  8.824e-01  2.046e-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.612e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.98
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 1.61e-05

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): 0
logL (Free Index) = 5809.1591495
delta logL = 0.0367083874326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5809.15091236
delta logL = 0.0449455253047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.578       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3368       1.0000          .0000       10.000    
     3 'Normalizat'    .97137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87552       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=   5809.151     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      292 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.594        33.451        .50328E-04    .42287E-04
   2  Index         2.3367        .40761        .49780E-02    .15027E-04
   3  Normalizat    .97113        .19170        .23607E-03    .12950E-03
   4  Prefactor     .87581        .19843        .25975E-03   -.58385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.5943
  Index      = 2.33669
  Normalizat = 0.971132
  Prefactor  = 0.875813
 **********
 **   18 **HESSE 
 **********

 FCN=   5809.151     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.594        32.738        .10066E-04   -1.4111    
   2  Index         2.3367        .39861        .19912E-03   -.56174    
   3  Normalizat    .97113        .19177        .94429E-05   -.94004    
   4  Prefactor     .87581        .19854        .10390E-04   -.96991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50234e-10
Minuit parameter uncertainties:
  1  32.7477
  2  0.399199
  3  0.191907
  4  0.198704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113801': 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) = 5809.15091111
delta logL = 0.0449467749204

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  6.359e+01  3.275e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.337e+00  3.992e-01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  9.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  8.758e-01  1.987e-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.711e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.19
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.34 +/- 0.40
Photon Flux (Free Index): 9.52e-08 +/- 5.30e-08
Energy Flux (Free Index): 3.41e-05 +/- 1.72e-05

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/113801/cmap_HighResolution_376963201_377222401_4FGL_J0916.7+3856_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.41e-05', photon_flux_error='5.27e-08', dlogl='4.49e-02', energy_flux='3.19e-05', photon_flux2='9.52e-08', job_status='DONE', time_completed='2021-08-31 06:17:12.499423', photon_index_error2='0.40', photon_index2='2.34', ts='12.98', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.96', time_epoch_completed='1630415832.5', return_code='0', job_id='113801', GAL2='0.88', EG2='0.97', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='5.30e-08', ts2='13.19', photon_index='2.46' WHERE bin_id='531' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:17:12 PDT 2021


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

Job <4FGL_J0916.7+3856_daily_bin531> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:01:23 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:01:25 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:01:25 2021
Terminated at Tue Aug 31 06:17:13 2021
Results reported at Tue Aug 31 06:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin531 139.19 38.9479 376963201 377222401 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

