/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 11 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0916.7+3856_daily_bin129
RA = 139.19, Dec = 38.9479
tmin = 272764801, tmax = 273024001
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='112445', job_status='RUN', time_executed='2021-08-31 05:59:20.119975', time_epoch_executed='1630414760.12' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112445/ft1_4FGL_J0916.7+3856_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112445/ft1_4FGL_J0916.7+3856_daily_bin129.fits outfile=/scratch/kocevski/112445/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin129.fits ra=139.19 dec=38.9479 rad=12.0 tmin=272764801.0 tmax=273024001.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 2.49
user 1.57
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.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/112445/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin129.fits evtable="EVENTS" outfile="/scratch/kocevski/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.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.36
user 0.33
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/112445/ltcube_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.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/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits
.....................!
real 13.06
user 11.74
sys 0.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/112445/ltcube_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.fits outfile=/scratch/kocevski/112445/expmap_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.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/112445/ltcube_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.fits
.....................!
real 193.46
user 187.50
sys 5.18

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/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.fits scfile=/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits outfile=/scratch/kocevski/112445/cmap_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=139.19 yref=38.9479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.46
user 0.36
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.fits scfile=/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits outfile=/scratch/kocevski/112445/cmap_HighResolution_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=139.19 yref=38.9479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.61
user 0.40
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/112445/ft2_4FGL_J0916.7+3856_daily_bin129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/112445/Model_4FGL_J0916.7+3856_daily_bin129.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/112445/ft1_filtered_4FGL_J0916.7+3856_daily_bin129.fits.....................!
real 52.00
user 48.09
sys 1.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3683       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2749       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.891       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7010       1.0000         .10000E-03   10000.    
     6 'norm      '    18.894       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43162       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12744E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .92724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.433       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7961       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.064       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.288       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6541       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.645       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70792       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3975       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=   5610.087     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3787 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3685        .71911        .60512E-08    .17285E-03
   2  Prefactor     8.2795        17.985        .23414E-05   -.24316E-05
   3  Prefactor     2.2101        3.7188       -.69417E-06   -.58136E-03
   4  Prefactor     10.878        23.255       -.82848E-05   -.14760E-05
   5  Prefactor     4.7020        6.0440        .65224E-06    .23834E-04
   6  norm          18.895        8.0711       -.77447E-06    .68003E-04
   7  Prefactor     .10000E-03    1.2349       -.49153E-08** at limit **
   8  Prefactor     .10000E-03    9.4479       -.72095E-07** at limit **
   9  Prefactor     .10000E-03    31.541       -.21478E-04** at limit **
  10  Prefactor     1.0763        2.8364       -.78506E-06   -.84243E-03
  11  Prefactor     .10000E-03    49.592        .16378E-04** at limit **
  12  Prefactor     .43271        2.7293       -.12374E-05   -.12335E-03
  13  norm          1.6552        1.5218       -.31965E-07    .25338E-04
  14  Prefactor     .10000E-03    64.359       -.34755E-04** at limit **
  15  norm          .92759        .84887       -.16586E-06    .22582E-03
  16  Prefactor     10.429        5.6643        .53613E-06    .29098E-03
  17  norm          4.7762        11.519        .44878E-06    .48473E-03
  18  Prefactor     2.0306        2.6117        .19162E-06    .43808E-03
  19  Prefactor     .10000E-03    1.4412       -.21165E-07** at limit **
  20  Prefactor     20.063        14.892       -.21235E-06   -.10315E-03
  21  Prefactor     .10000E-03    43.549        .15290E-04** at limit **
  22  norm          20.290        20.792        .13894E-05    .17941E-04
  23  Prefactor     7.6503        45.946       -.84820E-05    .25844E-05
  24  Prefactor     .10000E-03    24.365        .64031E-05** at limit **
  25  Prefactor     .10000E-03    3.1058       -.11199E-07** at limit **
  26  norm          15.644        16.186       -.86207E-07   -.29205E-04
  27  Prefactor     .10000E-03    50.692        .14739E-04** at limit **
  28  Normalizat    .70830        .19097        .13679E-05    .26803E-03
  29  Prefactor     1.3971        .20089        .38826E-06    .26897E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36851
  Prefactor  = 8.27945
  Prefactor  = 2.21006
  Prefactor  = 10.8784
  Prefactor  = 4.70199
  norm       = 18.8946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0763
  Prefactor  = 0.0001
  Prefactor  = 0.432708
  norm       = 1.65518
  Prefactor  = 0.000100001
  norm       = 0.927587
  Prefactor  = 10.4285
  norm       = 4.77619
  Prefactor  = 2.03056
  Prefactor  = 0.0001
  Prefactor  = 20.0626
  Prefactor  = 0.0001
  norm       = 20.29
  Prefactor  = 7.65032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6436
  Prefactor  = 0.0001
  Normalizat = 0.7083
  Prefactor  = 1.39707
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.087     FROM HESSE     STATUS=OK           559 CALLS     4346 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3685        .71623        .43670E-04   -1.5474    
   2  Prefactor     8.2795        17.554        .13937E-03   -1.5132    
   3  Prefactor     2.2101        3.6272        .14885E-03   -1.5411    
   4  Prefactor     10.878        23.226        .12140E-03   -1.5048    
   5  Prefactor     4.7020        6.0361        .18560E-03   -1.5274    
   6  norm          18.895        8.0689        .92143E-04   -1.4838    
   7  Prefactor     .10000E-03    1.2492        .81221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.4707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0763        2.7922        .19856E-03   -1.5500    
  11  Prefactor     .10000E-03    49.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .43271        4.7215        .22062E-02   -1.5576    
  13  norm          1.6552        1.5267        .86066E-04   -1.5451    
  14  Prefactor     .10000E-03    64.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .92759        .84300        .48046E-04   -1.5515    
  16  Prefactor     10.429        5.7891        .92247E-04   -1.5062    
  17  norm          4.7762        11.354        .18371E-03   -1.5271    
  18  Prefactor     2.0306        2.5470        .12278E-03   -1.5423    
  19  Prefactor     .10000E-03    1.4581        .87782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.063        14.891        .89417E-04   -1.4812    
  21  Prefactor     .10000E-03    43.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.290        20.739        .88922E-04   -1.4807    
  23  Prefactor     7.6503        46.081        .14495E-03   -1.5155    
  24  Prefactor     .10000E-03    24.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.1104        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.644        16.186        .10126E-03   -1.4917    
  27  Prefactor     .10000E-03    50.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70830        .22405        .29371E-03   -1.0357    
  29  Prefactor     1.3971        .23769        .24362E-03   -.80465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51954e-08
Minuit parameter uncertainties:
  1  0.716236
  2  17.5645
  3  3.62753
  4  23.2452
  5  6.03686
  6  8.06939
  7  2.29643e-07
  8  5.91257e-06
  9  3.12803e-06
  10  2.7925
  11  8.08436e-05
  12  2.85866
  13  1.52676
  14  0.000518887
  15  0.84301
  16  5.78946
  17  11.3595
  18  2.54711
  19  1.83142e-06
  20  14.8941
  21  7.94657e-05
  22  20.7467
  23  37.5951
  24  4.81656e-05
  25  2.10232e-06
  26  16.1906
  27  7.18225e-05
  28  0.224336
  29  0.237875
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  5.189e-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:  1.397e+00  2.379e-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:  7.083e-01  2.243e-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: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112445/likelihoodResults_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.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) = 5610.08733746
delta logL = -7.41766461942e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5610.08726431
delta logL = -1.03090224002e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15855E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4083       1.0000          .0000       10.000    
     3 'Normalizat'    .70813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3972       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=   5610.087     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      293 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9431.3        .36285E-03** at limit **
   2  Index         2.4798        5.1853        .50000       -.15174E-04
   3  Normalizat    .70830        .11851        .29371E-03    .17689E-04
   4  Prefactor     1.3971        .13400        .24362E-03    .13841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Index      = 2.4798
  Normalizat = 0.708299
  Prefactor  = 1.39707
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.087     FROM HESSE     STATUS=OK            29 CALLS      322 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    74.979        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4798        6.2399        .50000       -.52827    
   3  Normalizat    .70830        .20023        .11748E-04   -1.0357    
   4  Prefactor     1.3971        .22649        .48725E-04   -.80465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4692e-10
Minuit parameter uncertainties:
  1  0.00272494
  2  4.49686
  3  0.200437
  4  0.226654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112445': 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) = 5610.0872632
delta logL = 7.56972440286e-08

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.725e-03  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.480e+00  4.497e+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:  1.397e+00  2.267e-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:  7.083e-01  2.004e-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/112445/cmap_HighResolution_272764801_273024001_4FGL_J0916.7+3856_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-08-31 06:13:23.656677', job_id='112445', GAL2='1.40', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630415603.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='7.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='129' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:13:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 112445: <4FGL_J0916.7+3856_daily_bin129> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin129> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:57:31 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:57:33 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:33 2021
Terminated at Tue Aug 31 06:13:24 2021
Results reported at Tue Aug 31 06:13:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin129 139.19 38.9479 272764801 273024001 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 :                                   844.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

