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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin217
RA = 146.661, Dec = 10.277
tmin = 295574401, tmax = 295833601
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='496173', job_status='RUN', time_executed='2021-09-01 01:54:31.979677', time_epoch_executed='1630486471.98' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496173

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496173/ft1_4FGL_J0946.6+1016_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496173/ft1_4FGL_J0946.6+1016_daily_bin217.fits outfile=/scratch/kocevski/496173/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin217.fits ra=146.661 dec=10.277 rad=12.0 tmin=295574401.0 tmax=295833601.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.33
user 2.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.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/496173/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin217.fits evtable="EVENTS" outfile="/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/496173/ltcube_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.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/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits
.....................!
real 12.83
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/496173/ltcube_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.fits outfile=/scratch/kocevski/496173/expmap_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.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/496173/ltcube_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.fits
.....................!
real 191.82
user 186.75
sys 4.67

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J0946.6+1016 @ 146.661 10.277

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits scfile=/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits outfile=/scratch/kocevski/496173/cmap_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.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=146.661 yref=10.277 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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits scfile=/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits outfile=/scratch/kocevski/496173/cmap_HighResolution_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.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=146.661 yref=10.277 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.59
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496173/Model_4FGL_J0946.6+1016_daily_bin217.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/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits.....................!
real 55.38
user 53.58
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits', '/scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits', expMap='/scratch/kocevski/496173/expmap_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.fits', expCube='/scratch/kocevski/496173/ltcube_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/496173/Model_4FGL_J0946.6+1016_daily_bin217.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0946.6+1016'

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/496173/ft1_filtered_4FGL_J0946.6+1016_daily_bin217.fits
Spacecraft file(s): /scratch/kocevski/496173/ft2_4FGL_J0946.6+1016_daily_bin217.fits
Exposure map: /scratch/kocevski/496173/expmap_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.fits
Exposure cube: /scratch/kocevski/496173/ltcube_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/496173/Model_4FGL_J0946.6+1016_daily_bin217.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) = 5419.02570812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15286E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15532       1.0000         .10000E-03   10000.    
     9 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2629       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .90186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5418.949     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1292 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3152        4.3762        .12257E-06    .17302E-03
   2  Prefactor     1.8700        3.6665       -.55006E-06   -.67744E-03
   3  Prefactor     .10000E-03    10.151        .56257E-06** at limit **
   4  norm          2.1125        1.3084       -.22805E-07    .59646E-05
   5  Prefactor     .10000E-03    88.786       -.45767E-04** at limit **
   6  norm          .10000E-03    .38582       -.85889E-08** at limit **
   7  Prefactor     1.0753        22.825        .99947E-07   -.25851E-03
   8  Prefactor     .26095        7.0674       -.31769E-05    .84761E-03
   9  norm          .10000E-03    5.3608        .67964E-07** at limit **
  10  Prefactor     .10000E-03    5.4033        .27945E-07** at limit **
  11  Prefactor     .10000E-03    24.809        .15836E-05** at limit **
  12  Prefactor     .10000E-03    54.233        .17074E-04** at limit **
  13  Prefactor     .10000E-03    46.428       -.15977E-04** at limit **
  14  Prefactor     .10000E-03    10.441       -.54944E-06** at limit **
  15  Normalizat    1.2627        .18609        .57451E-06    .29988E-03
  16  Prefactor     .90184        .15896       -.41566E-07    .24410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31525
  Prefactor  = 1.87002
  Prefactor  = 0.0001
  norm       = 2.11247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.07534
  Prefactor  = 0.260948
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26274
  Prefactor  = 0.901845
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.949     FROM HESSE     STATUS=OK           201 CALLS     1493 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3152        4.3834        .15149E-03   -1.5292    
   2  Prefactor     1.8700        3.6740        .18926E-03   -1.5434    
   3  Prefactor     .10000E-03    10.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1125        1.3070        .63405E-04   -1.5417    
   5  Prefactor     .10000E-03    88.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .74855        .88085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0753        110.68        .67590E-02   -1.5501    
   8  Prefactor     .26095        70.853        .36892E-02   -1.5606    
   9  norm          .10000E-03    5.3645        .16645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4279        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2627        .21795        .22972E-03   -.84685    
  16  Prefactor     .90184        .18726        .23262E-03   -.96077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3945e-08
Minuit parameter uncertainties:
  1  4.38375
  2  3.67442
  3  5.94253e-07
  4  1.30706
  5  3.37932e-05
  6  6.3929e-07
  7  21.8596
  8  8.60843
  9  9.50538e-06
  10  1.46142e-05
  11  2.47086e-05
  12  6.47959e-05
  13  7.61279e-05
  14  1.6046e-05
  15  0.218111
  16  0.187391
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.112e+00  1.307e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.018e-01  1.874e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.263e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.66
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.33e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.25e-05

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) = 5418.34364949
delta logL = 0.60518977738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5418.31757851
delta logL = 0.631260755389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8260       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7381       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5418.318     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8258        1.2474        .77233E-02    .82457E-04
   2  alpha         1.7380        .40198        .30466       -.29793E-04
   3  Normalizat    1.2939        .18188        .51442E-01    .24253E-05
   4  Prefactor     .88684        .15905        .44837E-01    .99872E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82579
  alpha      = 1.73796
  Normalizat = 1.29392
  Prefactor  = 0.886845
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.318     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8258        1.5078        .65667E-04   -1.5438    
   2  alpha         1.7380        .53679        .12147E-01   -.30974    
   3  Normalizat    1.2939        .21495        .22744E-03   -.83748    
   4  Prefactor     .88684        .18738        .23440E-03   -.96602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20921e-12
Minuit parameter uncertainties:
  1  1.50788
  2  0.541441
  3  0.215094
  4  0.187516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496173': 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) = 5418.31757844
delta logL = 0.631260830562

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.826e+00  1.508e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  1.738e+00  5.414e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  8.868e-01  1.875e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.294e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.93
Ra Dec: 146.661 10.277
Photon Index (Free Index): 1.74 +/- 0.54
Photon Flux (Free Index): 3.66e-08 +/- 3.54e-08
Energy Flux (Free Index): 3.01e-05 +/- 2.51e-05

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/496173/cmap_HighResolution_295574401_295833601_4FGL_J0946.6+1016_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.33e-08', energy_flux2='3.01e-05', photon_flux_error='3.91e-08', dlogl='6.31e-01', energy_flux='2.03e-05', photon_flux2='3.66e-08', job_status='DONE', time_completed='2021-09-01 02:01:57.726562', photon_index_error2='0.54', photon_index2='1.74', ts='7.66', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.51e-05', EG='1.26', time_epoch_completed='1630486917.73', return_code='0', job_id='496173', GAL2='0.89', EG2='1.29', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.54e-08', ts2='8.93', photon_index='2.34' WHERE bin_id='217' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:01:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 496173: <4FGL_J0946.6+1016_daily_bin217> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin217> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 01:50:27 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 01:50:28 2021
Terminated at Wed Sep  1 02:02:00 2021
Results reported at Wed Sep  1 02:02:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin217 146.661 10.277 295574401 295833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0946.6+1016 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   442.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

