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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin665
RA = 139.19, Dec = 38.9479
tmin = 411696001, tmax = 411955201
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='115089', job_status='RUN', time_executed='2021-08-31 06:09:23.730467', time_epoch_executed='1630415363.73' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115089/ft1_4FGL_J0916.7+3856_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115089/ft1_4FGL_J0916.7+3856_daily_bin665.fits outfile=/scratch/kocevski/115089/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin665.fits ra=139.19 dec=38.9479 rad=12.0 tmin=411696001.0 tmax=411955201.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.49
user 5.93
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115089/ft1_filtered_4FGL_J0916.7+3856_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/115089/ltcube_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.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/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits
.....................!
real 14.81
user 13.99
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115089/ft1_filtered_4FGL_J0916.7+3856_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/115089/ltcube_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.fits outfile=/scratch/kocevski/115089/expmap_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.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/115089/ltcube_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.fits
.....................!
real 195.48
user 187.82
sys 6.73

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/115089/ft1_filtered_4FGL_J0916.7+3856_daily_bin665.fits scfile=/scratch/kocevski/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits outfile=/scratch/kocevski/115089/cmap_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.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.80
user 0.37
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115089/ft1_filtered_4FGL_J0916.7+3856_daily_bin665.fits scfile=/scratch/kocevski/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits outfile=/scratch/kocevski/115089/cmap_HighResolution_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.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.83
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115089/ft1_filtered_4FGL_J0916.7+3856_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/115089/ft2_4FGL_J0916.7+3856_daily_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115089/Model_4FGL_J0916.7+3856_daily_bin665.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/115089/ft1_filtered_4FGL_J0916.7+3856_daily_bin665.fits.....................!
real 35.51
user 33.89
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.800       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8507       1.0000         .10000E-03   10000.    
    15 'norm      '    .97133       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81212E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.747       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.217       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3031       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.817       1.0000         .10000E-03   10000.    
    26 'norm      '    2.5862       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0875       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56435       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=   3379.112     FROM MIGRAD    STATUS=CONVERGED   1283 CALLS     4288 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72106        .60465        .39444E-04    .64705E-04
   2  Prefactor     8.7658        17.952        .13537E-03    .19273E-04
   3  Prefactor     4.8620        3.7320        .85951E-04    .20436E-04
   4  Prefactor     .68406        530.82        .62842E-02    .20050E-04
   5  Prefactor     18.805        17.800        .92373E-04    .33168E-04
   6  norm          2.9046        8.6308        .23847E-03    .50987E-04
   7  Prefactor     .51881        4.0191        .21061E-03    .47529E-04
   8  Prefactor     .10000E-03    29.059        .18142E-02** at limit **
   9  Prefactor     41.652        93.985        .62070E-04    .16942E-04
  10  Prefactor     .10000E-03    3.1502        .19886E-03** at limit **
  11  Prefactor     .10000E-03    18.112        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.8762        .15350E-03** at limit **
  13  norm          .10000E-03    2.3055        .12140E-02** at limit **
  14  Prefactor     2.8462        35.319        .24080E-03    .28233E-05
  15  norm          .97310        .60484        .33962E-04   -.12936E-02
  16  Prefactor     .10000E-03    22.540        .14604E-02** at limit **
  17  norm          9.8641        9.3239        .12761E-03   -.25880E-04
  18  Prefactor     .10000E-03    1.5338        .69483E-03** at limit **
  19  Prefactor     .10000E-03    1.1558        .60986E-03** at limit **
  20  Prefactor     14.744        14.928        .10430E-03   -.11391E-04
  21  Prefactor     27.242        37.724        .76791E-04   -.32052E-04
  22  norm          2.3026        19.424        .27040E-03    .11709E-04
  23  Prefactor     .10000E-03    20.679        .18142E-02** at limit **
  24  Prefactor     .10000E-03    23.082        .18142E-02** at limit **
  25  Prefactor     20.815        14.550        .87787E-04   -.62162E-05
  26  norm          2.5848        35.674        .25375E-03    .12007E-04
  27  Prefactor     .10000E-03    21.789        .18142E-02** at limit **
  28  Normalizat    1.0875        .23789        .19949E-03   -.27925E-05
  29  Prefactor     .56440        .24068        .28559E-03   -.39748E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.721063
  Prefactor  = 8.7658
  Prefactor  = 4.86199
  Prefactor  = 0.684062
  Prefactor  = 18.8051
  norm       = 2.90457
  Prefactor  = 0.518805
  Prefactor  = 0.0001
  Prefactor  = 41.6524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.84622
  norm       = 0.973098
  Prefactor  = 0.000100002
  norm       = 9.86411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.744
  Prefactor  = 27.2421
  norm       = 2.30261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8148
  norm       = 2.58482
  Prefactor  = 0.0001
  Normalizat = 1.08747
  Prefactor  = 0.564405
 **********
 **   18 **HESSE 
 **********

 FCN=   3379.112     FROM HESSE     STATUS=OK           527 CALLS     4815 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72106        .60437        .15778E-05   -1.5538    
   2  Prefactor     8.7658        17.669        .54150E-05   -1.5116    
   3  Prefactor     4.8620        3.7316        .34380E-05   -1.5267    
   4  Prefactor     .68406        471.06        .25137E-03   -1.5543    
   5  Prefactor     18.805        16.919        .36949E-05   -1.4840    
   6  norm          2.9046        8.6275        .95387E-05   -1.5367    
   7  Prefactor     .51881        4.0131        .84244E-05   -1.5564    
   8  Prefactor     .10000E-03    29.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.652        93.963        .12414E-04   -1.4416    
  10  Prefactor     .10000E-03    3.1502        .39771E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8762        .30700E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3143        .24280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8462        35.272        .48160E-04   -1.5371    
  15  norm          .97310        .60314        .13585E-05   -1.5511    
  16  Prefactor     .10000E-03    22.601        .29208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8641        9.3185        .51044E-05   -1.5080    
  18  Prefactor     .10000E-03    1.5340        .13897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1558        .12197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.744        14.929        .41719E-05   -1.4940    
  21  Prefactor     27.242        37.721        .30716E-05   -1.4664    
  22  norm          2.3026        19.421        .10816E-04   -1.5404    
  23  Prefactor     .10000E-03    20.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.815        14.549        .35115E-05   -1.4795    
  26  norm          2.5848        35.660        .10150E-04   -1.5386    
  27  Prefactor     .10000E-03    21.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0875        .23801        .79795E-05   -.90155    
  29  Prefactor     .56440        .24068        .11423E-04   -1.0911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95111e-10
Minuit parameter uncertainties:
  1  0.604375
  2  17.6798
  3  3.73173
  4  36.1884
  5  16.9233
  6  8.63117
  7  2.88584
  8  7.17997e-07
  9  94.2998
  10  1.66339e-06
  11  3.76146e-06
  12  2.17619e-07
  13  1.17764e-06
  14  20.0534
  15  0.603146
  16  0.000416906
  17  9.3199
  18  3.10379e-07
  19  3.27917e-07
  20  14.9325
  21  37.7541
  22  13.3801
  23  3.01395e-05
  24  1.51994e-05
  25  14.5513
  26  19.2151
  27  1.00832e-05
  28  0.238242
  29  0.241117
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  2.846e+00  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:  5.644e-01  2.411e-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.087e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 139.190 38.948
Photon Flux Upper Limit: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/115089/likelihoodResults_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.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): 0
logL (Free Index) = 3379.11050585
delta logL = 0.00155954217644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3379.11027996
delta logL = 0.00178542476033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4982       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5960       1.0000          .0000       10.000    
     3 'Normalizat'    1.0863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56504       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=   3379.110     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      274 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4939        32.129        .25857E-03   -.21649E-03
   2  Index         2.6038        2.4912        .82487E-02   -.66730E-04
   3  Normalizat    1.0868        .22322        .19954E-03   -.15526E-02
   4  Prefactor     .56489        .23543        .28547E-03   -.79982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.4939
  Index      = 2.60375
  Normalizat = 1.08676
  Prefactor  = 0.564886
 **********
 **   18 **HESSE 
 **********

 FCN=   3379.110     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4939        28.173        .10343E-04   -1.5392    
   2  Index         2.6038        2.3514        .32995E-03   -.49980    
   3  Normalizat    1.0868        .22341        .39909E-04   -.90178    
   4  Prefactor     .56489        .23560        .57094E-04   -1.0909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93389e-09
Minuit parameter uncertainties:
  1  16.774
  2  2.48151
  3  0.223605
  4  0.236012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115089': 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) = 3379.11026699
delta logL = 0.0017983960588

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  5.649e-01  2.360e-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.087e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/115089/cmap_HighResolution_411696001_411955201_4FGL_J0916.7+3856_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-08-31 06:21:01.252707', job_id='115089', GAL2='0.56', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630416061.25', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.80e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='665' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:21:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 115089: <4FGL_J0916.7+3856_daily_bin665> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin665 139.19 38.9479 411696001 411955201 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 :                                   696.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

