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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin554
RA = 146.661, Dec = 10.277
tmin = 382924801, tmax = 383184001
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='498913', job_status='RUN', time_executed='2021-09-01 02:04:15.335477', time_epoch_executed='1630487055.34' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498913/ft1_4FGL_J0946.6+1016_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498913/ft1_4FGL_J0946.6+1016_daily_bin554.fits outfile=/scratch/kocevski/498913/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin554.fits ra=146.661 dec=10.277 rad=12.0 tmin=382924801.0 tmax=383184001.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.05
user 4.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.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/498913/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.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.85
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/498913/ltcube_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.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/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits
.....................!
real 12.34
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/498913/ltcube_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.fits outfile=/scratch/kocevski/498913/expmap_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.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/498913/ltcube_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.fits
.....................!
real 194.77
user 187.21
sys 5.35

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/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.fits scfile=/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits outfile=/scratch/kocevski/498913/cmap_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.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.59
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.fits scfile=/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits outfile=/scratch/kocevski/498913/cmap_HighResolution_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.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.58
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.fits', '/scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits', expMap='/scratch/kocevski/498913/expmap_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.fits', expCube='/scratch/kocevski/498913/ltcube_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498913/Model_4FGL_J0946.6+1016_daily_bin554.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/498913/ft1_filtered_4FGL_J0946.6+1016_daily_bin554.fits
Spacecraft file(s): /scratch/kocevski/498913/ft2_4FGL_J0946.6+1016_daily_bin554.fits
Exposure map: /scratch/kocevski/498913/expmap_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.fits
Exposure cube: /scratch/kocevski/498913/ltcube_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498913/Model_4FGL_J0946.6+1016_daily_bin554.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) = 5595.07270631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64175E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0743       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.644       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.094       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .81694       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2633       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=   5595.061     FROM MIGRAD    STATUS=CONVERGED    304 CALLS     1476 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2021       -.21783E-07** at limit **
   2  Prefactor     .10160E-03    2.1880        .88784E-06** at limit **
   3  Prefactor     .10000E-03    6.1786       -.30104E-06** at limit **
   4  norm          4.1372        1.4863       -.58327E-07   -.19482E-03
   5  Prefactor     .10000E-03    63.487       -.16737E-04** at limit **
   6  norm          1.1376        .72328       -.15177E-07   -.64102E-03
   7  Prefactor     36.609        43.244        .57879E-05    .19697E-05
   8  Prefactor     4.0703        12.658        .52384E-05   -.80436E-04
   9  norm          1.5608        27.088       -.69028E-06   -.18397E-03
  10  Prefactor     .10000E-03    3.2411        .30630E-06** at limit **
  11  Prefactor     64.991        63.060       -.14960E-04   -.21612E-04
  12  Prefactor     92.651        52.526        .52591E-05   -.10976E-05
  13  Prefactor     .10000E-03    21.808        .28796E-05** at limit **
  14  Prefactor     12.095        12.210        .71974E-06    .12692E-04
  15  Normalizat    .81650        .20197        .14771E-06   -.18660E-03
  16  Prefactor     1.2638        .17332       -.44100E-06   -.16354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000101597
  Prefactor  = 0.0001
  norm       = 4.13722
  Prefactor  = 0.0001
  norm       = 1.13757
  Prefactor  = 36.609
  Prefactor  = 4.07028
  norm       = 1.56084
  Prefactor  = 0.0001
  Prefactor  = 64.991
  Prefactor  = 92.6509
  Prefactor  = 0.0001
  Prefactor  = 12.095
  Normalizat = 0.816504
  Prefactor  = 1.26378
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.061     FROM HESSE     STATUS=OK           207 CALLS     1683 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.604        .29906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10160E-03    62.668        .20973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1372        1.4872        .52479E-04   -1.5301    
   5  Prefactor     .10000E-03    63.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1376        .70555        .48718E-04   -1.5495    
   7  Prefactor     36.609        43.499        .66242E-04   -1.4497    
   8  Prefactor     4.0703        12.497        .19974E-03   -1.5304    
   9  norm          1.5608        26.370        .34147E-03   -1.5458    
  10  Prefactor     .10000E-03    3.2466        .13155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.991        61.934        .49776E-04   -1.4094    
  12  Prefactor     92.651        52.543        .20876E-03   -1.3780    
  13  Prefactor     .10000E-03    21.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.095        12.210        .11519E-03   -1.5012    
  15  Normalizat    .81650        .24047        .29160E-03   -.99459    
  16  Prefactor     1.2638        .20771        .21594E-03   -.84391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37078e-08
Minuit parameter uncertainties:
  1  5.07844e-05
  2  0.0200285
  3  7.6397e-07
  4  1.4872
  5  4.63252e-05
  6  0.705554
  7  43.5363
  8  12.505
  9  12.8372
  10  2.2722e-05
  11  61.996
  12  52.5694
  13  0.000112684
  14  12.213
  15  0.240783
  16  0.207843
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  4.137e+00  1.487e+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:  1.264e+00  2.078e-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:  8.165e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.44
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.45e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.43e-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) = 5594.70958867
delta logL = 0.351477125559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5594.67814223
delta logL = 0.382923561474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3384       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0519       1.0000          .0000       5.0000    
     3 'Normalizat'    .83919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2515       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=   5594.678     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3390        1.7656        .48348E-02    .48665E-04
   2  alpha         2.0517        .34458        .21738       -.46331E-05
   3  Normalizat    .83906        .19166        .65125E-01    .17111E-04
   4  Prefactor     1.2516        .17224        .49058E-01    .90166E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 4.33895
  alpha      = 2.05166
  Normalizat = 0.839055
  Prefactor  = 1.25162
 **********
 **   18 **HESSE 
 **********

 FCN=   5594.678     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3390        1.6057        .55572E-04   -1.5291    
   2  alpha         2.0517        .32613        .92282E-02   -.18031    
   3  Normalizat    .83906        .22893        .28809E-03   -.98636    
   4  Prefactor     1.2516        .20568        .21687E-03   -.84757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10049e-14
Minuit parameter uncertainties:
  1  1.60572
  2  0.32709
  3  0.229194
  4  0.205817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498913': 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) = 5594.67814176
delta logL = 0.382924029707

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  4.339e+00  1.606e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.052e+00  3.271e-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:  1.252e+00  2.058e-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:  8.391e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.15
Ra Dec: 146.661 10.277
Photon Index (Free Index): 2.05 +/- 0.33
Photon Flux (Free Index): 1.04e-07 +/- 4.53e-08
Energy Flux (Free Index): 4.80e-05 +/- 2.17e-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/498913/cmap_HighResolution_382924801_383184001_4FGL_J0946.6+1016_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='4.80e-05', photon_flux_error='4.45e-08', dlogl='3.83e-01', energy_flux='3.97e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-01 02:12:10.007598', photon_index_error2='0.33', photon_index2='2.05', ts='21.44', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.82', time_epoch_completed='1630487530.01', return_code='0', job_id='498913', GAL2='1.25', EG2='0.84', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.53e-08', ts2='22.15', photon_index='2.34' WHERE bin_id='554' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 498913: <4FGL_J0946.6+1016_daily_bin554> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin554> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:00:38 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:00:39 2021
Terminated at Wed Sep  1 02:12:10 2021
Results reported at Wed Sep  1 02:12:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin554 146.661 10.277 382924801 383184001 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 :                                   465.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            692 sec.

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

