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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin590
RA = 139.19, Dec = 38.9479
tmin = 392256001, tmax = 392515201
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='113886', job_status='RUN', time_executed='2021-08-31 06:03:11.519173', time_epoch_executed='1630414991.52' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113886/ft1_4FGL_J0916.7+3856_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113886/ft1_4FGL_J0916.7+3856_daily_bin590.fits outfile=/scratch/kocevski/113886/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin590.fits ra=139.19 dec=38.9479 rad=12.0 tmin=392256001.0 tmax=392515201.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.95
user 3.07
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113886/ft1_filtered_4FGL_J0916.7+3856_daily_bin590.fits" evtable="EVENTS" scfile=/scratch/kocevski/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits sctable="SC_DATA" outfile=/scratch/kocevski/113886/ltcube_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.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/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits
.....................!
real 12.41
user 11.58
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113886/ft1_filtered_4FGL_J0916.7+3856_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/113886/ltcube_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.fits outfile=/scratch/kocevski/113886/expmap_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.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/113886/ltcube_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.fits
.....................!
real 193.40
user 186.69
sys 4.44

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/113886/ft1_filtered_4FGL_J0916.7+3856_daily_bin590.fits scfile=/scratch/kocevski/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits outfile=/scratch/kocevski/113886/cmap_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.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.87
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113886/ft1_filtered_4FGL_J0916.7+3856_daily_bin590.fits scfile=/scratch/kocevski/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits outfile=/scratch/kocevski/113886/cmap_HighResolution_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.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.84
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113886/ft1_filtered_4FGL_J0916.7+3856_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/113886/ft2_4FGL_J0916.7+3856_daily_bin590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113886/Model_4FGL_J0916.7+3856_daily_bin590.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/113886/ft1_filtered_4FGL_J0916.7+3856_daily_bin590.fits.....................!
real 54.14
user 52.33
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4898       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30899E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3066       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4512       1.0000         .10000E-03   10000.    
     6 'norm      '    13.957       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-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 '    9.1096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    110.42       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7086       1.0000         .10000E-03   10000.    
    15 'norm      '    .31173       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35512       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47772       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19272E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    91.342       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.5264       1.0000         .10000E-03   10000.    
    26 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0046       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92658       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=   6111.328     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3278 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4896        .72045       -.92395E-07   -.31842E-02
   2  Prefactor     .10000E-03    7.8844        .18555E-05** at limit **
   3  Prefactor     5.3044        2.8934       -.33951E-06    .73727E-03
   4  Prefactor     .10001E-03    73.513        .56370E-05** at limit **
   5  Prefactor     3.4530        7.6964       -.23799E-06   -.27894E-03
   6  norm          13.957        7.2414       -.22117E-07   -.13252E-03
   7  Prefactor     .10000E-03    1.4609        .64317E-07** at limit **
   8  Prefactor     .10000E-03    5.6977        .67844E-08** at limit **
   9  Prefactor     .10000E-03    64.746       -.60501E-06** at limit **
  10  Prefactor     9.1090        5.1392        .21187E-07   -.16454E-04
  11  Prefactor     110.45        52.887       -.20062E-05   -.37609E-03
  12  Prefactor     .10000E-03    .92633        .10729E-06** at limit **
  13  norm          1.9735        1.4958        .19492E-07    .26493E-04
  14  Prefactor     5.7083        15.541        .16445E-05    .14633E-03
  15  norm          .31303        .47433       -.41875E-06   -.29615E-02
  16  Prefactor     .35020        2.9058        .30494E-05   -.18953E-03
  17  norm          3.7600        4.6535        .24421E-06    .22542E-03
  18  Prefactor     .47840        1.3269       -.30041E-06    .36939E-03
  19  Prefactor     .10000E-03    1.4365       -.29499E-07** at limit **
  20  Prefactor     .10002E-03    50.272        .21420E-04** at limit **
  21  Prefactor     91.328        38.014       -.35886E-06   -.54418E-04
  22  norm          .10000E-03    4.8254        .93750E-08** at limit **
  23  Prefactor     .10000E-03    25.434        .23613E-05** at limit **
  24  Prefactor     .10000E-03    14.192        .41715E-06** at limit **
  25  Prefactor     8.5254        7.9269        .94316E-07    .56468E-04
  26  norm          .10000E-03    8.5493        .11400E-06** at limit **
  27  Prefactor     .10000E-03    18.548       -.14895E-05** at limit **
  28  Normalizat    1.0047        .16971       -.10397E-05   -.80314E-03
  29  Prefactor     .92657        .17722        .48962E-06   -.66309E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48955
  Prefactor  = 0.0001
  Prefactor  = 5.30436
  Prefactor  = 0.000100006
  Prefactor  = 3.45296
  norm       = 13.9572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.10901
  Prefactor  = 110.448
  Prefactor  = 0.0001
  norm       = 1.97352
  Prefactor  = 5.70827
  norm       = 0.313033
  Prefactor  = 0.3502
  norm       = 3.75998
  Prefactor  = 0.478399
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 91.3277
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.52544
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.00468
  Prefactor  = 0.926575
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.328     FROM HESSE     STATUS=OK           557 CALLS     3835 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4896        .70435        .43803E-04   -1.5464    
   2  Prefactor     .10000E-03    39.918        .39826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3044        2.8208        .45928E-03   -1.5247    
   4  Prefactor     .10001E-03    75.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4530        7.6693        .21770E-03   -1.5336    
   6  norm          13.957        7.2388        .10721E-03   -1.4961    
   7  Prefactor     .10000E-03    1.5041        .18414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    64.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1090        5.1403        .12601E-03   -1.5104    
  11  Prefactor     110.45        53.219        .19139E-03   -1.3602    
  12  Prefactor     .10000E-03    .93258        .73445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9735        1.4985        .80872E-04   -1.5427    
  14  Prefactor     5.7083        15.540        .16812E-03   -1.5230    
  15  norm          .31303        .48655        .48943E-03   -1.5596    
  16  Prefactor     .35020        9.2238        .16963E-02   -1.5590    
  17  norm          3.7600        4.6413        .17900E-03   -1.5320    
  18  Prefactor     .47840        1.2653        .14231E-02   -1.5570    
  19  Prefactor     .10000E-03    1.4481        .91454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    53.196        .43100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     91.328        36.488        .42046E-04   -1.3794    
  22  norm          .10000E-03    4.8285        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.5254        7.9268        .13728E-03   -1.5124    
  26  norm          .10000E-03    8.5984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    18.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0047        .19514        .23478E-03   -.92874    
  29  Prefactor     .92657        .20394        .26648E-03   -.95219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86358e-08
Minuit parameter uncertainties:
  1  0.704357
  2  7.4905e-05
  3  2.82083
  4  0.00137298
  5  7.67145
  6  7.23929
  7  2.00741e-06
  8  1.46912e-06
  9  0.000288568
  10  5.14059
  11  53.2416
  12  1.35688e-05
  13  1.49855
  14  15.5511
  15  0.486557
  16  3.59465
  17  4.64173
  18  1.26535
  19  1.38456e-06
  20  0.0021676
  21  36.4965
  22  2.00231e-06
  23  0.000415277
  24  4.90359e-05
  25  7.92774
  26  8.51161e-06
  27  0.000270706
  28  0.19528
  29  0.204105
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  5.708e+00  1.555e+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:  9.266e-01  2.041e-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.005e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/113886/likelihoodResults_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.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) = 6111.3147952
delta logL = 0.0127890309886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.31175452
delta logL = 0.0158297118196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0043       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2270       1.0000          .0000       10.000    
     3 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92521       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.

 FCN=   6111.312     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      222 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9784        556.10        .37896E-02    .48681E-04
   2  Index         2.2279        6.0883        .36339        .14231E-04
   3  Normalizat    1.0066        .36326E-01    .46247E-01   -.41022E-04
   4  Prefactor     .92512        .37523E-01    .45326E-01   -.78521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9784
  Index      = 2.22789
  Normalizat = 1.00658
  Prefactor  = 0.925118
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.312     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9784        17.125        .15158E-03   -1.5180    
   2  Index         2.2279        1.2373        .11169E-01   -.58767    
   3  Normalizat    1.0066        .18068        .23459E-03   -.92810    
   4  Prefactor     .92512        .19805        .26665E-03   -.95269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01758e-10
Minuit parameter uncertainties:
  1  17.1369
  2  1.2563
  3  0.180786
  4  0.198201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113886': 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) = 6111.31175246
delta logL = 0.0158317741962

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  6.978e+00  1.714e+01  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  2.228e+00  1.256e+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:  9.251e-01  1.982e-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.007e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/113886/cmap_HighResolution_392256001_392515201_4FGL_J0916.7+3856_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-08-31 06:17:34.999683', job_id='113886', GAL2='0.93', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1630415855.0', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.58e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='590' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:17:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 113886: <4FGL_J0916.7+3856_daily_bin590> in cluster <slac> Done

Job <4FGL_J0916.7+3856_daily_bin590> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 06:01:28 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 06:01:29 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:01:29 2021
Terminated at Tue Aug 31 06:17:35 2021
Results reported at Tue Aug 31 06:17:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin590 139.19 38.9479 392256001 392515201 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 :                                   855.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

