/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 123 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0946.6+1016_daily_bin604
RA = 146.661, Dec = 10.277
tmin = 395884801, tmax = 396144001
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='499001', job_status='RUN', time_executed='2021-09-01 02:03:08.123409', time_epoch_executed='1630486988.12' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499001

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499001/ft1_4FGL_J0946.6+1016_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499001/ft2_4FGL_J0946.6+1016_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499001/ft1_4FGL_J0946.6+1016_daily_bin604.fits outfile=/scratch/kocevski/499001/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin604.fits ra=146.661 dec=10.277 rad=12.0 tmin=395884801.0 tmax=396144001.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.54
user 3.10
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499001/ft1_filtered_4FGL_J0946.6+1016_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/499001/ft2_4FGL_J0946.6+1016_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/499001/ltcube_395884801_396144001_4FGL_J0946.6+1016_daily_bin604.fits outfile=/scratch/kocevski/499001/expmap_395884801_396144001_4FGL_J0946.6+1016_daily_bin604.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/499001/ltcube_395884801_396144001_4FGL_J0946.6+1016_daily_bin604.fits
.....................!
real 192.47
user 187.11
sys 4.52

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/499001/ft1_filtered_4FGL_J0946.6+1016_daily_bin604.fits scfile=/scratch/kocevski/499001/ft2_4FGL_J0946.6+1016_daily_bin604.fits outfile=/scratch/kocevski/499001/cmap_395884801_396144001_4FGL_J0946.6+1016_daily_bin604.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499001/ft1_filtered_4FGL_J0946.6+1016_daily_bin604.fits scfile=/scratch/kocevski/499001/ft2_4FGL_J0946.6+1016_daily_bin604.fits outfile=/scratch/kocevski/499001/cmap_HighResolution_395884801_396144001_4FGL_J0946.6+1016_daily_bin604.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.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.635       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.732       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.359       1.0000         .10000E-03   10000.    
     9 'norm      '    .10958E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12530E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0189       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.6545       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .81814       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=   6330.985     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1460 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9425        .37975E-07** at limit **
   2  Prefactor     .10000E-03    3.7023        .83591E-06** at limit **
   3  Prefactor     30.627        17.475       -.18689E-06   -.26395E-03
   4  norm          1.2487        1.0707        .58580E-08    .49798E-04
   5  Prefactor     11.828        152.47        .83018E-05    .53208E-04
   6  norm          .10000E-03    .23465        .26082E-06** at limit **
   7  Prefactor     .10000E-03    17.662        .11898E-08** at limit **
   8  Prefactor     10.356        10.367       -.46708E-06   -.33583E-04
   9  norm          .10000E-03    30.008       -.74525E-06** at limit **
  10  Prefactor     9.6323        16.657        .31089E-05    .87235E-04
  11  Prefactor     13.170        83.192        .82007E-05    .15000E-03
  12  Prefactor     .10000E-03    26.335        .33913E-06** at limit **
  13  Prefactor     .10000E-03    79.612        .50063E-06** at limit **
  14  Prefactor     .96193        218.52       -.40230E-04    .53130E-04
  15  Normalizat    1.6542        .25068        .25349E-05   -.60371E-03
  16  Prefactor     .81837        .20237       -.39685E-05   -.32009E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.6269
  norm       = 1.24871
  Prefactor  = 11.8284
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3563
  norm       = 0.000100001
  Prefactor  = 9.63229
  Prefactor  = 13.1699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.961928
  Normalizat = 1.65417
  Prefactor  = 0.818372
 **********
 **   18 **HESSE 
 **********

 FCN=   6330.985     FROM HESSE     STATUS=OK           197 CALLS     1657 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9429        .10831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8376        .29978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.627        17.463        .72389E-04   -1.4601    
   4  norm          1.2487        1.0804        .73289E-04   -1.5484    
   5  Prefactor     11.828        153.35        .11696E-03   -1.5020    
   6  norm          .10000E-03    .30315        .74354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.356        10.350        .12449E-03   -1.5064    
   9  norm          .10000E-03    31.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6323        19.032        .12909E-03   -1.5087    
  11  Prefactor     13.170        87.790        .11079E-03   -1.4982    
  12  Prefactor     .10000E-03    26.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .96193        289.62        .61574E-02   -1.5512    
  15  Normalizat    1.6542        .25456        .24483E-03   -.73534    
  16  Prefactor     .81837        .20581        .27468E-03   -.99055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60822e-09
Minuit parameter uncertainties:
  1  3.29481e-06
  2  8.26213e-05
  3  17.4662
  4  1.08044
  5  85.4485
  6  2.13691e-06
  7  9.54769e-06
  8  10.3514
  9  0.000270483
  10  19.044
  11  68.1503
  12  8.14413e-05
  13  1.17415e-05
  14  33.5455
  15  0.254765
  16  0.206002
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.249e+00  1.080e+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:  8.184e-01  2.060e-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.654e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.93
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.74e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.04e-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) = 6328.88986326
delta logL = 2.0951342717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6328.8678226
delta logL = 2.1171749234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78783E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .54621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81102       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=   6328.868     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78221E-01    .81897E-01    .49196E-02   -.27190E-02
   2  alpha         .54384        .40204        .35757        .14922E-05
   3  Normalizat    1.6851        .20639        .54963E-01    .88740E-04
   4  Prefactor     .81091        .17134        .43861E-01    .23187E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0782214
  alpha      = 0.543837
  Normalizat = 1.68509
  Prefactor  = 0.810912
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.868     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78221E-01    .17602        .18588E-03   -1.5652    
   2  alpha         .54384        .68529        .16572E-01   -.89861    
   3  Normalizat    1.6851        .24492        .24300E-03   -.72702    
   4  Prefactor     .81091        .20328        .27586E-03   -.99327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45441e-10
Minuit parameter uncertainties:
  1  0.176019
  2  0.709612
  3  0.2451
  4  0.203466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499001': 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) = 6328.86781759
delta logL = 2.11717993366

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  7.822e-02  1.760e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  5.438e-01  7.096e-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.109e-01  2.035e-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.685e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.15
Ra Dec: 146.661 10.277
Photon Index (Free Index): 0.54 +/- 0.71
Photon Flux (Free Index): 3.79e-09 +/- 4.04e-09
Energy Flux (Free Index): 6.00e-05 +/- 8.36e-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/499001/cmap_HighResolution_395884801_396144001_4FGL_J0946.6+1016_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.74e-08', energy_flux2='6.00e-05', photon_flux_error='3.23e-08', dlogl='2.12e+00', energy_flux='1.20e-05', photon_flux2='3.79e-09', job_status='DONE', time_completed='2021-09-01 02:11:09.079559', photon_index_error2='0.71', photon_index2='0.54', ts='4.93', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='8.36e-05', EG='1.65', time_epoch_completed='1630487469.08', return_code='0', job_id='499001', GAL2='0.81', EG2='1.69', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.04e-09', ts2='9.15', photon_index='2.34' WHERE bin_id='604' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:11:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 499001: <4FGL_J0946.6+1016_daily_bin604> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin604> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:00:46 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:00:47 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:47 2021
Terminated at Wed Sep  1 02:11:10 2021
Results reported at Wed Sep  1 02:11:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin604 146.661 10.277 395884801 396144001 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 :                                   479.00 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             302.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            624 sec.

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

