/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin183
RA = 139.19, Dec = 38.9479
tmin = 286761601, tmax = 287020801
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='112553', job_status='RUN', time_executed='2021-08-31 05:59:43.048344', time_epoch_executed='1630414783.05' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112553/ft1_4FGL_J0916.7+3856_daily_bin183.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112553/ft1_4FGL_J0916.7+3856_daily_bin183.fits outfile=/scratch/kocevski/112553/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin183.fits ra=139.19 dec=38.9479 rad=12.0 tmin=286761601.0 tmax=287020801.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 3.97
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112553/ft1_filtered_4FGL_J0916.7+3856_daily_bin183.fits" evtable="EVENTS" scfile=/scratch/kocevski/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits sctable="SC_DATA" outfile=/scratch/kocevski/112553/ltcube_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.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/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits
.....................!
real 11.97
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112553/ft1_filtered_4FGL_J0916.7+3856_daily_bin183.fits evtable="EVENTS" scfile=/scratch/kocevski/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits sctable="SC_DATA" expcube=/scratch/kocevski/112553/ltcube_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.fits outfile=/scratch/kocevski/112553/expmap_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.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/112553/ltcube_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.fits
.....................!
real 194.49
user 185.80
sys 5.40

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/112553/ft1_filtered_4FGL_J0916.7+3856_daily_bin183.fits scfile=/scratch/kocevski/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits outfile=/scratch/kocevski/112553/cmap_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.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 2.06
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112553/ft1_filtered_4FGL_J0916.7+3856_daily_bin183.fits scfile=/scratch/kocevski/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits outfile=/scratch/kocevski/112553/cmap_HighResolution_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.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 2.42
user 0.37
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112553/ft1_filtered_4FGL_J0916.7+3856_daily_bin183.fits evtable="EVENTS" scfile=/scratch/kocevski/112553/ft2_4FGL_J0916.7+3856_daily_bin183.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112553/Model_4FGL_J0916.7+3856_daily_bin183.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/112553/ft1_filtered_4FGL_J0916.7+3856_daily_bin183.fits.....................!
real 51.96
user 45.53
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5407       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2305       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8559       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28698       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0524       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .18376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3079       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3665       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0564       1.0000         .10000E-03   10000.    
    22 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.253       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.966       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    14.121       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1906       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60934       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=   5184.999     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3767 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5407        .91100       -.13450E-07    .23871E-03
   2  Prefactor     4.8019        16.813        .55664E-06    .44434E-04
   3  Prefactor     1.2318        3.1327       -.16253E-06   -.52835E-04
   4  Prefactor     24.555        32.647       -.66696E-07    .27956E-04
   5  Prefactor     9.8584        13.186        .16323E-06    .31016E-04
   6  norm          .10000E-03    2.5868       -.20958E-06** at limit **
   7  Prefactor     .10000E-03    1.8133       -.49206E-06** at limit **
   8  Prefactor     .10000E-03    4.1383       -.54559E-07** at limit **
   9  Prefactor     .10000E-03    31.773       -.54525E-06** at limit **
  10  Prefactor     3.4079        3.1224        .13894E-07    .44785E-04
  11  Prefactor     .10000E-03    20.649        .23979E-07** at limit **
  12  Prefactor     .28473        2.5924        .10825E-06   -.27908E-03
  13  norm          2.0524        1.3828        .44848E-08    .11765E-04
  14  Prefactor     .10000E-03    35.952        .58432E-06** at limit **
  15  norm          .18368        .39831       -.10804E-06   -.12349E-02
  16  Prefactor     .10000E-03    1.7749        .19759E-06** at limit **
  17  norm          1.3090        14.049        .34206E-05   -.19811E-04
  18  Prefactor     .10000E-03    1.3392        .28519E-06** at limit **
  19  Prefactor     3.3664        3.4341       -.70452E-08   -.61140E-04
  20  Prefactor     26.840        13.163        .50400E-07   -.25253E-04
  21  Prefactor     6.0560        14.351       -.48007E-07   -.15832E-04
  22  norm          .10000E-03    7.1489        .12829E-05** at limit **
  23  Prefactor     26.244        27.527        .63905E-06    .54188E-05
  24  Prefactor     27.943        31.279        .57346E-06    .51294E-04
  25  Prefactor     .10000E-03    7.9294       -.55964E-06** at limit **
  26  norm          14.120        13.094        .14208E-06   -.44203E-05
  27  Prefactor     .10000E-03    35.105        .40775E-06** at limit **
  28  Normalizat    1.1907        .20057       -.32814E-05    .15472E-03
  29  Prefactor     .60914        .20238        .50098E-05    .29812E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54075
  Prefactor  = 4.80189
  Prefactor  = 1.23178
  Prefactor  = 24.5553
  Prefactor  = 9.85835
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40789
  Prefactor  = 0.0001
  Prefactor  = 0.284727
  norm       = 2.05245
  Prefactor  = 0.0001
  norm       = 0.183681
  Prefactor  = 0.0001
  norm       = 1.30895
  Prefactor  = 0.0001
  Prefactor  = 3.36639
  Prefactor  = 26.84
  Prefactor  = 6.05605
  norm       = 0.0001
  Prefactor  = 26.2441
  Prefactor  = 27.943
  Prefactor  = 0.0001
  norm       = 14.1198
  Prefactor  = 0.0001
  Normalizat = 1.19075
  Prefactor  = 0.609143
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.999     FROM HESSE     STATUS=OK           561 CALLS     4328 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5407        .90304        .46882E-04   -1.5460    
   2  Prefactor     4.8019        16.333        .18357E-03   -1.5270    
   3  Prefactor     1.2318        3.0184        .17032E-03   -1.5486    
   4  Prefactor     24.555        32.591        .80815E-04   -1.4716    
   5  Prefactor     9.8584        13.151        .12764E-03   -1.5080    
   6  norm          .10000E-03    2.5994        .11317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8795        .18949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1394        .14307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4079        3.1196        .11759E-03   -1.5339    
  11  Prefactor     .10000E-03    20.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28473        4.8039        .20628E-02   -1.5601    
  13  norm          2.0524        1.3891        .67304E-04   -1.5421    
  14  Prefactor     .10000E-03    36.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .18368        .33868        .58660E-03   -1.5622    
  16  Prefactor     .10000E-03    2.4388        .16794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3090        14.220        .19288E-02   -1.5479    
  18  Prefactor     .10000E-03    1.3660        .16216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3664        3.4293        .64481E-03   -1.5341    
  20  Prefactor     26.840        13.158        .77325E-04   -1.4671    
  21  Prefactor     6.0560        14.338        .81574E-03   -1.5216    
  22  norm          .10000E-03    7.2283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.244        27.358        .78185E-04   -1.4683    
  24  Prefactor     27.943        31.284        .75758E-04   -1.4650    
  25  Prefactor     .10000E-03    8.1030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          14.120        13.091        .10659E-03   -1.4956    
  27  Prefactor     .10000E-03    35.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1907        .20356        .20183E-03   -.86889    
  29  Prefactor     .60914        .20569        .29353E-03   -1.0720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58371e-08
Minuit parameter uncertainties:
  1  0.903048
  2  16.3485
  3  3.01875
  4  32.6141
  5  13.1549
  6  7.50882e-06
  7  1.20893e-05
  8  2.21102e-06
  9  0.000132988
  10  3.1198
  11  8.28029e-06
  12  2.33886
  13  1.38908
  14  0.000100973
  15  0.338682
  16  1.72769e-05
  17  8.63093
  18  3.36832e-06
  19  3.42947
  20  13.1592
  21  14.3459
  22  6.85025e-05
  23  27.3715
  24  31.3028
  25  3.22089e-05
  26  13.0938
  27  6.71729e-05
  28  0.203698
  29  0.20594
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.010e-04  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:  6.091e-01  2.059e-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.191e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/112553/likelihoodResults_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5184.99948621
delta logL = -0.000130199273372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5184.99935702
delta logL = -1.01166733657e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11837E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3895       1.0000          .0000       10.000    
     3 'Normalizat'    1.1907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60915       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=   5184.999     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    8334.4        .36285E-03** at limit **
   2  Index         2.4993        5.9369        .50000       -.47800E-04
   3  Normalizat    1.1908        .74918E-01    .20183E-03    .21282E-03
   4  Prefactor     .60914        .80595E-01    .29353E-03   -.80018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100171
  Index      = 2.49933
  Normalizat = 1.19075
  Prefactor  = 0.60914
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.999     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    66.452        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4993        6.2431        .50000       -.52375    
   3  Normalizat    1.1908        .18427        .40366E-04   -.86889    
   4  Prefactor     .60914        .19817        .11741E-04   -1.0720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06514e-09
Minuit parameter uncertainties:
  1  0.00674672
  2  4.8469
  3  0.184367
  4  0.198395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112553': 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) = 5184.99935556
delta logL = 4.41797055828e-07

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.002e-04  6.747e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.499e+00  4.847e+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:  6.091e-01  1.984e-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.191e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 139.190 38.948

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/112553/cmap_HighResolution_286761601_287020801_4FGL_J0916.7+3856_daily_bin183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-08-31 06:13:40.764328', job_id='112553', GAL2='0.61', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630415620.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='183' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:13:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 112553: <4FGL_J0916.7+3856_daily_bin183> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin183> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:39 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:57:40 2021
Terminated at Tue Aug 31 06:13:41 2021
Results reported at Tue Aug 31 06:13:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin183 139.19 38.9479 286761601 287020801 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 :                                   814.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

