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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin697
RA = 139.19, Dec = 38.9479
tmin = 419990401, tmax = 420249601
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='115136', job_status='RUN', time_executed='2021-08-31 06:09:53.874724', time_epoch_executed='1630415393.87' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115136/ft1_4FGL_J0916.7+3856_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115136/ft1_4FGL_J0916.7+3856_daily_bin697.fits outfile=/scratch/kocevski/115136/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin697.fits ra=139.19 dec=38.9479 rad=12.0 tmin=419990401.0 tmax=420249601.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 4.00
user 3.17
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.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/115136/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin697.fits evtable="EVENTS" outfile="/scratch/kocevski/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.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.02
user 0.34
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/115136/ltcube_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.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/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits
.....................!
real 12.46
user 11.61
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/115136/ltcube_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.fits outfile=/scratch/kocevski/115136/expmap_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.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/115136/ltcube_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.fits
.....................!
real 190.63
user 185.25
sys 5.00

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/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.fits scfile=/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits outfile=/scratch/kocevski/115136/cmap_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.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.95
user 0.37
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.fits scfile=/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits outfile=/scratch/kocevski/115136/cmap_HighResolution_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.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.96
user 0.37
sys 0.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/115136/ft2_4FGL_J0916.7+3856_daily_bin697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115136/Model_4FGL_J0916.7+3856_daily_bin697.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/115136/ft1_filtered_4FGL_J0916.7+3856_daily_bin697.fits.....................!
real 47.33
user 45.18
sys 1.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13749E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.141       1.0000         .10000E-03   10000.    
    15 'norm      '    .40696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1538       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9800       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1283       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.2693       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.933       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.231       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85809       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84357       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=   5429.640     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3761 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32426        .52954        .73499E-07   -.28956E-03
   2  Prefactor     .10000E-03    7.5048       -.11716E-05** at limit **
   3  Prefactor     1.1494        1.8561        .16951E-07   -.11174E-03
   4  Prefactor     .10000E-03    23.573       -.14209E-05** at limit **
   5  Prefactor     .10000E-03    5.1317       -.42853E-08** at limit **
   6  norm          .10000E-03    1.6719        .16789E-07** at limit **
   7  Prefactor     .10000E-03    1.7137        .11945E-06** at limit **
   8  Prefactor     .10000E-03    23.775       -.13668E-05** at limit **
   9  Prefactor     .10000E-03    52.252       -.67867E-06** at limit **
  10  Prefactor     2.1790        2.1657       -.46595E-07    .23133E-04
  11  Prefactor     .10000E-03    30.839        .33204E-05** at limit **
  12  Prefactor     .10000E-03    .77160       -.72590E-08** at limit **
  13  norm          1.2641        1.4550        .94783E-07    .84926E-04
  14  Prefactor     38.133        19.927       -.19920E-05   -.16489E-03
  15  norm          .40711        .46381       -.24528E-07   -.18293E-03
  16  Prefactor     1.1516        2.8884        .15230E-06   -.25130E-03
  17  norm          5.0833        6.1544        .37571E-05   -.15847E-02
  18  Prefactor     1.9795        1.6155       -.12255E-06   -.89017E-04
  19  Prefactor     5.1279        4.0806       -.67299E-06   -.85005E-03
  20  Prefactor     21.868        12.048       -.10266E-06    .27602E-05
  21  Prefactor     .10000E-03    12.878        .35466E-06** at limit **
  22  norm          6.2697        7.8972        .14069E-06    .10591E-04
  23  Prefactor     .10000E-03    7.2600        .99422E-06** at limit **
  24  Prefactor     49.918        32.744       -.26323E-05   -.50386E-03
  25  Prefactor     .10000E-03    3.4012       -.30743E-08** at limit **
  26  norm          .10000E-03    18.132        .77166E-06** at limit **
  27  Prefactor     20.209        36.416       -.72966E-05   -.41734E-03
  28  Normalizat    .85853        .15913        .20074E-05   -.12947E-03
  29  Prefactor     .84300        .16446       -.15518E-05    .13348E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.324257
  Prefactor  = 0.000100001
  Prefactor  = 1.14944
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.17904
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.26413
  Prefactor  = 38.1328
  norm       = 0.407108
  Prefactor  = 1.15157
  norm       = 5.08333
  Prefactor  = 1.9795
  Prefactor  = 5.12791
  Prefactor  = 21.868
  Prefactor  = 0.0001
  norm       = 6.26968
  Prefactor  = 0.000100001
  Prefactor  = 49.9184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.2091
  Normalizat = 0.858531
  Prefactor  = 0.843003
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.640     FROM HESSE     STATUS=OK           555 CALLS     4316 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32426        .50039        .65517E-03   -1.5594    
   2  Prefactor     .10000E-03    7.6013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1494        1.8068        .12207E-03   -1.5494    
   4  Prefactor     .10000E-03    23.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1692        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6765        .93041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8160        .18485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1790        2.1721        .10496E-03   -1.5413    
  11  Prefactor     .10000E-03    31.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .77887        .63173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2641        1.4339        .91135E-04   -1.5483    
  14  Prefactor     38.133        20.043        .64898E-04   -1.4472    
  15  norm          .40711        .46463        .38863E-03   -1.5580    
  16  Prefactor     1.1516        2.9732        .13989E-03   -1.5493    
  17  norm          5.0833        6.7204        .89161E-03   -1.5257    
  18  Prefactor     1.9795        1.6049        .81169E-04   -1.5427    
  19  Prefactor     5.1279        4.1164        .12666E-03   -1.5255    
  20  Prefactor     21.868        12.046        .85649E-04   -1.4772    
  21  Prefactor     .10000E-03    12.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.2697        7.8955        .16032E-03   -1.5207    
  23  Prefactor     .10000E-03    7.3194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     49.918        33.297        .56751E-04   -1.4294    
  25  Prefactor     .10000E-03    3.4153        .13271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    18.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.209        38.204        .89048E-04   -1.4809    
  28  Normalizat    .85853        .18306        .22007E-03   -.97933    
  29  Prefactor     .84300        .19007        .24131E-03   -.98162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79787e-09
Minuit parameter uncertainties:
  1  0.5004
  2  0.000134616
  3  1.80686
  4  0.000320577
  5  1.26644e-05
  6  1.94759e-06
  7  8.96306e-05
  8  0.000271647
  9  0.000251696
  10  2.17219
  11  0.000731563
  12  1.54925e-06
  13  1.43393
  14  20.0461
  15  0.464638
  16  2.97363
  17  6.72143
  18  1.60489
  19  4.11667
  20  12.0477
  21  3.65658e-05
  22  7.8968
  23  0.000130522
  24  33.3089
  25  2.7513e-06
  26  6.55242e-05
  27  38.2499
  28  0.18319
  29  0.190219
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  3.813e+01  2.005e+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.430e-01  1.902e-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.585e-01  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.58
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.88e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.10e-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) = 5429.14535297
delta logL = 0.494558943302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5429.14491187
delta logL = 0.495000041776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.889       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0269       1.0000          .0000       10.000    
     3 'Normalizat'    .88119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82571       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=   5429.145     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      292 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.890        28.024        .54639E-04   -.45904E-03
   2  Index         2.0269        .40381        .58176E-02   -.22702E-03
   3  Normalizat    .88124        .17091        .21756E-03    .75458E-04
   4  Prefactor     .82565        .18501        .24337E-03    .77684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.8904
  Index      = 2.02689
  Normalizat = 0.881237
  Prefactor  = 0.825653
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.145     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.890        27.782        .10928E-04   -1.4238    
   2  Index         2.0269        .40018        .23271E-03   -.63680    
   3  Normalizat    .88124        .17103        .87022E-05   -.97123    
   4  Prefactor     .82565        .18516        .97349E-05   -.98790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18663e-10
Minuit parameter uncertainties:
  1  27.7884
  2  0.400844
  3  0.17113
  4  0.185303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115136': 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) = 5429.14491183
delta logL = 0.495000088144

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.389e+01  2.779e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.027e+00  4.008e-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.257e-01  1.853e-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.812e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.61
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.03 +/- 0.40
Photon Flux (Free Index): 5.20e-08 +/- 3.17e-08
Energy Flux (Free Index): 3.37e-05 +/- 2.59e-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/115136/cmap_HighResolution_419990401_420249601_4FGL_J0916.7+3856_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.88e-08', energy_flux2='3.37e-05', photon_flux_error='3.62e-08', dlogl='4.95e-01', energy_flux='2.10e-05', photon_flux2='5.20e-08', job_status='DONE', time_completed='2021-08-31 06:22:07.466248', photon_index_error2='0.40', photon_index2='2.03', ts='9.58', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='0.86', time_epoch_completed='1630416127.47', return_code='0', job_id='115136', GAL2='0.83', EG2='0.88', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='3.17e-08', ts2='10.61', photon_index='2.46' WHERE bin_id='697' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 115136: <4FGL_J0916.7+3856_daily_bin697> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin697 139.19 38.9479 419990401 420249601 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

