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


Performing analysis on: 4FGL_J0916.7+3856_daily_bin1287
RA = 139.19, Dec = 38.9479
tmin = 572918401, tmax = 573177601
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='118685', job_status='RUN', time_executed='2021-08-31 06:17:59.684366', time_epoch_executed='1630415879.68' WHERE source_name='4FGL J0916.7+3856' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118685/ft1_4FGL_J0916.7+3856_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118685/ft2_4FGL_J0916.7+3856_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118685/ft1_4FGL_J0916.7+3856_daily_bin1287.fits outfile=/scratch/kocevski/118685/ft1_filteredMKT_4FGL_J0916.7+3856_daily_bin1287.fits ra=139.19 dec=38.9479 rad=12.0 tmin=572918401.0 tmax=573177601.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 5.12
user 4.59
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118685/ft1_filtered_4FGL_J0916.7+3856_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/118685/ft2_4FGL_J0916.7+3856_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/118685/ltcube_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.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/118685/ft2_4FGL_J0916.7+3856_daily_bin1287.fits
.....................!
real 12.35
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118685/ft1_filtered_4FGL_J0916.7+3856_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/118685/ft2_4FGL_J0916.7+3856_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/118685/ltcube_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.fits outfile=/scratch/kocevski/118685/expmap_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.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/118685/ltcube_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.fits
.....................!
real 194.63
user 186.27
sys 5.41

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/118685/ft1_filtered_4FGL_J0916.7+3856_daily_bin1287.fits scfile=/scratch/kocevski/118685/ft2_4FGL_J0916.7+3856_daily_bin1287.fits outfile=/scratch/kocevski/118685/cmap_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.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.94
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118685/ft1_filtered_4FGL_J0916.7+3856_daily_bin1287.fits scfile=/scratch/kocevski/118685/ft2_4FGL_J0916.7+3856_daily_bin1287.fits outfile=/scratch/kocevski/118685/cmap_HighResolution_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.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.03
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.504       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41317E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.854       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13588E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11549E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3533       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5312       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2461       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74355       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=   5341.809     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     4203 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3828        .65974        .51848E-08    .13988E-03
   2  Prefactor     .10000E-03    11.102       -.13393E-05** at limit **
   3  Prefactor     3.1722        3.4186       -.12123E-06   -.36772E-03
   4  Prefactor     18.503        20.404        .88324E-06    .53559E-05
   5  Prefactor     .10000E-03    4.3159        .54173E-07** at limit **
   6  norm          14.078        7.7709       -.88145E-06   -.97647E-03
   7  Prefactor     3.7491        3.0559       -.39243E-06   -.25969E-03
   8  Prefactor     .10883E-03    22.439       -.47809E-05** at limit **
   9  Prefactor     45.873        71.244        .21527E-04    .23774E-05
  10  Prefactor     .10000E-03    1.7239        .42599E-07** at limit **
  11  Prefactor     .10000E-03    135.10        .33024E-05** at limit **
  12  Prefactor     .10000E-03    1.4174        .26397E-07** at limit **
  13  norm          .10000E-03    .67715        .59848E-07** at limit **
  14  Prefactor     .10000E-03    17.272        .75372E-05** at limit **
  15  norm          .10000E-03    .13994       -.18427E-07** at limit **
  16  Prefactor     .10000E-03    .86990       -.35001E-07** at limit **
  17  norm          5.9643        9.5064       -.26504E-06   -.22586E-03
  18  Prefactor     3.3538        2.7189       -.23741E-07   -.37702E-03
  19  Prefactor     10.447        5.9739       -.33921E-07    .28566E-03
  20  Prefactor     .10000E-03    8.1832       -.29426E-06** at limit **
  21  Prefactor     .10000E-03    9.4934        .80698E-06** at limit **
  22  norm          5.5339        12.291       -.82448E-06   -.42410E-04
  23  Prefactor     .10000E-03    18.304       -.21699E-05** at limit **
  24  Prefactor     .10000E-03    23.662       -.68518E-05** at limit **
  25  Prefactor     .10000E-03    18.010       -.41709E-05** at limit **
  26  norm          .10000E-03    23.594       -.33847E-05** at limit **
  27  Prefactor     .10000E-03    25.290        .99847E-05** at limit **
  28  Normalizat    1.2459        .18323       -.14884E-06    .28735E-03
  29  Prefactor     .74365        .18623       -.28036E-06    .19004E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38281
  Prefactor  = 0.0001
  Prefactor  = 3.17224
  Prefactor  = 18.5027
  Prefactor  = 0.0001
  norm       = 14.0781
  Prefactor  = 3.74914
  Prefactor  = 0.000108829
  Prefactor  = 45.8725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.9643
  Prefactor  = 3.35379
  Prefactor  = 10.447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.53393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24586
  Prefactor  = 0.743649
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.809     FROM HESSE     STATUS=OK           549 CALLS     4752 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3828        .66309        .39622E-04   -1.5473    
   2  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1722        3.4070        .13278E-03   -1.5352    
   4  Prefactor     18.503        20.389        .93108E-04   -1.4847    
   5  Prefactor     .10000E-03    4.3291        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.078        7.8757        .53374E-03   -1.4957    
   7  Prefactor     3.7491        3.0510        .10801E-03   -1.5321    
   8  Prefactor     .10883E-03    256.00        .65129E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.873        71.207        .59210E-04   -1.4352    
  10  Prefactor     .10000E-03    1.7650        .93695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    139.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4305        .84831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .68573        .58705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .15200        .53221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .87923        .66497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9643        9.5088        .16436E-03   -1.5219    
  18  Prefactor     3.3538        2.7053        .10142E-03   -1.5342    
  19  Prefactor     10.447        5.9445        .12395E-03   -1.5061    
  20  Prefactor     .10000E-03    8.2678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.5038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5339        12.286        .17083E-03   -1.5237    
  23  Prefactor     .10000E-03    18.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    24.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2459        .21536        .22456E-03   -.85197    
  29  Prefactor     .74365        .21738        .29259E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18055e-08
Minuit parameter uncertainties:
  1  0.663092
  2  7.09481e-06
  3  3.40725
  4  20.3968
  5  9.10909e-07
  6  7.87632
  7  3.05111
  8  0.0954948
  9  71.3396
  10  1.52695e-06
  11  0.000116883
  12  5.72881e-07
  13  1.47811e-06
  14  4.12774e-07
  15  3.85235e-08
  16  7.7545e-07
  17  9.51116
  18  2.70538
  19  5.94483
  20  3.68597e-05
  21  1.21357e-05
  22  12.2918
  23  1.84532e-05
  24  1.66395e-05
  25  8.3046e-05
  26  3.54315e-05
  27  1.68207e-06
  28  0.215513
  29  0.217632
Done.

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

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  4.128e-07  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:  7.436e-01  2.176e-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.246e+00  2.155e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/118685/likelihoodResults_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.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) = 5341.80916101
delta logL = -0.000275224291727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5341.80888425
delta logL = 1.53670862346e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3634       1.0000          .0000       10.000    
     3 'Normalizat'    1.2458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74365       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=   5341.809     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      264 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .43913E-01    .71633E-01** at limit **
   2  Index         3.4062        7.2873        .50000       -.12358E-04
   3  Normalizat    1.2459        .57541E-03    .50792E-01   -.10223E-04
   4  Prefactor     .74365        .59802E-03    .66133E-01    .12358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.40616
  Normalizat = 1.24586
  Prefactor  = 0.743649
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.809     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      299 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.576        .24042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4062        7.9906        .50000       -.32443    
   3  Normalizat    1.2459        .60508E-02    .22456E-03   -.85197    
   4  Prefactor     .74365        .62811E-02    .29259E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93522e-07
Minuit parameter uncertainties:
  1  0.000709963
  2  172.051
  3  0.00605082
  4  0.00628111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118685': 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): 102
logL (Free Index) = 5341.80888413
delta logL = 1.65458914125e-06

Extracting fit parameters...

4FGL J0916.7+3856
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  7.100e-04  1.000e-04  1.000e+04 ( 1.000e-13)
320        Index:  3.406e+00  1.721e+02  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:  7.436e-01  6.281e-03  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.246e+00  6.051e-03  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/118685/cmap_HighResolution_572918401_573177601_4FGL_J0916.7+3856_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-08-31 06:32:12.560165', job_id='118685', GAL2='0.74', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630416732.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1287' AND source_name='4FGL J0916.7+3856' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 06:32:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 118685: <4FGL_J0916.7+3856_daily_bin1287> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0916.7+3856_daily_bin1287 139.19 38.9479 572918401 573177601 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 :                                   834.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            889 sec.

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

