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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin751
RA = 139.19, Dec = 38.9479
tmin = 433987201, tmax = 434246401
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='115214', job_status='RUN', time_executed='2021-08-31 06:09:16.915555', time_epoch_executed='1630415356.92' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115214/ft1_4FGL_J0916.7+3856_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115214/ft1_4FGL_J0916.7+3856_daily_bin751.fits outfile=/scratch/kocevski/115214/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin751.fits ra=139.19 dec=38.9479 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.19
user 5.88
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115214/ft1_filtered_4FGL_J0916.7+3856_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/115214/ltcube_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.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/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits
.....................!
real 12.04
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115214/ft1_filtered_4FGL_J0916.7+3856_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/115214/ltcube_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.fits outfile=/scratch/kocevski/115214/expmap_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.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/115214/ltcube_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.fits
.....................!
real 190.49
user 185.00
sys 5.03

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/115214/ft1_filtered_4FGL_J0916.7+3856_daily_bin751.fits scfile=/scratch/kocevski/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits outfile=/scratch/kocevski/115214/cmap_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115214/ft1_filtered_4FGL_J0916.7+3856_daily_bin751.fits scfile=/scratch/kocevski/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits outfile=/scratch/kocevski/115214/cmap_HighResolution_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115214/ft1_filtered_4FGL_J0916.7+3856_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/115214/ft2_4FGL_J0916.7+3856_daily_bin751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115214/Model_4FGL_J0916.7+3856_daily_bin751.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/115214/ft1_filtered_4FGL_J0916.7+3856_daily_bin751.fits....................!
real 38.34
user 37.00
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57787       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47091E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.862       1.0000         .10000E-03   10000.    
     6 'norm      '    .77990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.570       1.0000         .10000E-03   10000.    
    15 'norm      '    .24973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79084       1.0000         .10000E-03   10000.    
    17 'norm      '    14.145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.512       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24650       1.0000         .10000E-03   10000.    
    22 'norm      '    15.714       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14450E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.823       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.7527       1.0000         .10000E-03   10000.    
    26 'norm      '    30.943       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1956       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .32916       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=   3844.464     FROM MIGRAD    STATUS=CONVERGED   1367 CALLS     5777 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57762        .48302        .36545E-04   -.88503E-04
   2  Prefactor     4.9102        19.075        .18282E-03   -.23630E-04
   3  Prefactor     .29833        17.129        .16323E-02    .71671E-04
   4  Prefactor     .10005E-03    35.172        .81622E-01** at limit **
   5  Prefactor     10.867        10.782        .12156E-03    .27589E-04
   6  norm          .77451        10.168        .27403E-02   -.85668E-04
   7  Prefactor     4.0733        2.5896        .75695E-04   -.98300E-04
   8  Prefactor     23.622        20.629        .82401E-04   -.42908E-04
   9  Prefactor     .10000E-03    22.043        .18142E-02** at limit **
  10  Prefactor     5.2689        4.5802        .58835E-03    .35555E-03
  11  Prefactor     .10000E-03    21.487        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.2393        .67013E-03** at limit **
  13  norm          .10000E-03    1.0422        .12147E-03** at limit **
  14  Prefactor     56.561        28.534        .53335E-04   -.67144E-05
  15  norm          .24954        .72654        .55740E-03    .38112E-03
  16  Prefactor     .79086        5.5779        .17003E-03    .53121E-04
  17  norm          14.145        10.115        .10650E-03    .63783E-04
  18  Prefactor     .10000E-03    2.3175        .14330E-02** at limit **
  19  Prefactor     .10000E-03    1.7701        .80006E-03** at limit **
  20  Prefactor     15.532        15.022        .10169E-03   -.15931E-03
  21  Prefactor     .14229        45.728        .97013E-01    .79787E-04
  22  norm          15.713        16.418        .10104E-03    .34060E-04
  23  Prefactor     .10000E-03    67.019        .18142E-02** at limit **
  24  Prefactor     31.828        43.728        .71029E-04    .70137E-04
  25  Prefactor     8.7446        11.264        .13549E-03    .62094E-05
  26  norm          30.941        20.930        .72030E-04   -.82941E-04
  27  Prefactor     .10000E-03    31.486        .18142E-02** at limit **
  28  Normalizat    1.1960        .22012        .18873E-03   -.71129E-04
  29  Prefactor     .32909        .19993        .33788E-03   -.18506E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.577621
  Prefactor  = 4.91023
  Prefactor  = 0.298327
  Prefactor  = 0.000100054
  Prefactor  = 10.8667
  norm       = 0.774511
  Prefactor  = 4.07327
  Prefactor  = 23.6218
  Prefactor  = 0.0001
  Prefactor  = 5.26895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.5611
  norm       = 0.249537
  Prefactor  = 0.79086
  norm       = 14.1445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5323
  Prefactor  = 0.142288
  norm       = 15.7134
  Prefactor  = 0.000100001
  Prefactor  = 31.8283
  Prefactor  = 8.74462
  norm       = 30.9408
  Prefactor  = 0.0001
  Normalizat = 1.19603
  Prefactor  = 0.329095
 **********
 **   18 **HESSE 
 **********

 FCN=   3844.464     FROM HESSE     STATUS=OK           549 CALLS     6326 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57762        .48235        .14618E-05   -1.5556    
   2  Prefactor     4.9102        18.047        .73128E-05   -1.5265    
   3  Prefactor     .29833        15.110        .65293E-04   -1.5599    
   4  Prefactor     .10005E-03    29.173        .93099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.867        10.774        .48625E-05   -1.5049    
   6  norm          .77451        10.127        .10961E-03   -1.5532    
   7  Prefactor     4.0733        2.5875        .30278E-05   -1.5304    
   8  Prefactor     23.622        20.626        .32961E-05   -1.4736    
   9  Prefactor     .10000E-03    22.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2689        4.5787        .23534E-04   -1.5249    
  11  Prefactor     .10000E-03    21.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2394        .13403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0422        .24294E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     56.561        28.534        .21334E-05   -1.4202    
  15  norm          .24954        .71472        .22296E-04   -1.5608    
  16  Prefactor     .79086        5.4051        .68013E-05   -1.5530    
  17  norm          14.145        10.115        .42599E-05   -1.4956    
  18  Prefactor     .10000E-03    2.3219        .28661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7703        .16001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.532        14.957        .40677E-05   -1.4920    
  21  Prefactor     .14229        41.859        .10243       -1.5633    
  22  norm          15.713        16.418        .20207E-04   -1.4915    
  23  Prefactor     .10000E-03    67.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.828        43.722        .14206E-04   -1.4579    
  25  Prefactor     8.7446        11.263        .54194E-05   -1.5116    
  26  norm          30.941        20.928        .14406E-04   -1.4595    
  27  Prefactor     .10000E-03    31.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1960        .22013        .37746E-04   -.86726    
  29  Prefactor     .32909        .19923        .13515E-04   -1.2060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37258e-10
Minuit parameter uncertainties:
  1  0.482355
  2  18.0665
  3  4.2467
  4  0.00250219
  5  10.7758
  6  5.60191
  7  2.58757
  8  20.6326
  9  9.95293e-06
  10  4.57902
  11  9.60827e-05
  12  1.01407e-05
  13  2.31565e-06
  14  28.5405
  15  0.714742
  16  4.13535
  17  10.1159
  18  4.03679e-05
  19  3.97235e-06
  20  14.961
  21  4.88275
  22  16.4223
  23  0.00039272
  24  43.7656
  25  11.2656
  26  20.9332
  27  8.80921e-06
  28  0.220303
  29  0.199642
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.656e+01  2.854e+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:  3.291e-01  1.996e-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.196e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.82
Ra Dec: 139.190 38.948
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.15e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.57e-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) = 3844.4621828
delta logL = 0.00137282928063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3844.45986929
delta logL = 0.00368634417691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.356       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4118       1.0000          .0000       10.000    
     3 'Normalizat'    1.1991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32664       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=   3844.460     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      268 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.370        44.978        .52076E-04    .17137E-04
   2  Index         2.4116        .55009        .42517E-02    .29041E-03
   3  Normalizat    1.1993        .19796        .18852E-03   -.25588E-04
   4  Prefactor     .32656        .19128        .33907E-03    .84494E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.3702
  Index      = 2.41162
  Normalizat = 1.19925
  Prefactor  = 0.32656
 **********
 **   18 **HESSE 
 **********

 FCN=   3844.460     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.370        43.097        .20830E-05   -1.4165    
   2  Index         2.4116        .52687        .85034E-03   -.54413    
   3  Normalizat    1.1993        .19775        .37704E-04   -.86626    
   4  Prefactor     .32656        .19112        .13563E-04   -1.2074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41291e-12
Minuit parameter uncertainties:
  1  43.1194
  2  0.528212
  3  0.197874
  4  0.191489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115214': 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) = 3844.45986896
delta logL = 0.00368667089469

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.937e+01  4.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.412e+00  5.282e-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:  3.266e-01  1.915e-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.199e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.91
Ra Dec: 139.190 38.948
Photon Index (Free Index): 2.41 +/- 0.53
Photon Flux (Free Index): 9.98e-08 +/- 5.47e-08
Energy Flux (Free Index): 3.22e-05 +/- 2.02e-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/115214/cmap_HighResolution_433987201_434246401_4FGL_J0916.7+3856_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.22e-05', photon_flux_error='5.15e-08', dlogl='3.69e-03', energy_flux='3.11e-05', photon_flux2='9.98e-08', job_status='DONE', time_completed='2021-08-31 06:21:35.904738', photon_index_error2='0.53', photon_index2='2.41', ts='8.82', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.20', time_epoch_completed='1630416095.9', return_code='0', job_id='115214', GAL2='0.33', EG2='1.20', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='5.47e-08', ts2='8.91', photon_index='2.46' WHERE bin_id='751' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:21:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 115214: <4FGL_J0916.7+3856_daily_bin751> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin751> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 06:06:18 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:06:20 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:20 2021
Terminated at Tue Aug 31 06:21:36 2021
Results reported at Tue Aug 31 06:21:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin751 139.19 38.9479 433987201 434246401 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 :                                   734.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

