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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin923
RA = 146.661, Dec = 10.277
tmin = 478569601, tmax = 478828801
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='500670', job_status='RUN', time_executed='2021-09-01 02:09:48.599346', time_epoch_executed='1630487388.6' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='923'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500670/ft1_4FGL_J0946.6+1016_daily_bin923.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500670/ft2_4FGL_J0946.6+1016_daily_bin923.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500670/ft1_4FGL_J0946.6+1016_daily_bin923.fits outfile=/scratch/kocevski/500670/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin923.fits ra=146.661 dec=10.277 rad=12.0 tmin=478569601.0 tmax=478828801.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.49
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500670/ft1_filtered_4FGL_J0946.6+1016_daily_bin923.fits" evtable="EVENTS" scfile=/scratch/kocevski/500670/ft2_4FGL_J0946.6+1016_daily_bin923.fits sctable="SC_DATA" outfile=/scratch/kocevski/500670/ltcube_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.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/500670/ft2_4FGL_J0946.6+1016_daily_bin923.fits
.....................!
real 11.99
user 11.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500670/ft1_filtered_4FGL_J0946.6+1016_daily_bin923.fits evtable="EVENTS" scfile=/scratch/kocevski/500670/ft2_4FGL_J0946.6+1016_daily_bin923.fits sctable="SC_DATA" expcube=/scratch/kocevski/500670/ltcube_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.fits outfile=/scratch/kocevski/500670/expmap_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.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/500670/ltcube_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.fits
.....................!
real 189.93
user 184.52
sys 4.99

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/500670/ft1_filtered_4FGL_J0946.6+1016_daily_bin923.fits scfile=/scratch/kocevski/500670/ft2_4FGL_J0946.6+1016_daily_bin923.fits outfile=/scratch/kocevski/500670/cmap_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500670/ft1_filtered_4FGL_J0946.6+1016_daily_bin923.fits scfile=/scratch/kocevski/500670/ft2_4FGL_J0946.6+1016_daily_bin923.fits outfile=/scratch/kocevski/500670/cmap_HighResolution_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1542       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4958       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1301       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8084       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .74299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6486       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    97.570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12844E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9269       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .95772       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=   5512.336     FROM MIGRAD    STATUS=CONVERGED    297 CALLS     1462 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1544        4.6805        .11783E-05    .22419E-02
   2  Prefactor     1.4955        2.9553       -.39997E-06   -.66699E-03
   3  Prefactor     4.1308        18.031       -.67665E-06   -.57809E-04
   4  norm          3.8084        1.6154       -.64260E-07   -.12197E-03
   5  Prefactor     .10000E-03    44.919       -.18624E-06** at limit **
   6  norm          .74291        .70156       -.75539E-07   -.86425E-03
   7  Prefactor     20.246        24.670        .72058E-07    .96759E-06
   8  Prefactor     5.6470        11.285       -.33244E-05   -.93310E-04
   9  norm          .10000E-03    6.9524       -.22490E-06** at limit **
  10  Prefactor     .10000E-03    11.742       -.28878E-06** at limit **
  11  Prefactor     97.596        71.110        .23702E-04    .33345E-04
  12  Prefactor     14.264        60.205       -.42208E-04   -.10519E-05
  13  Prefactor     .10000E-03    89.798        .28802E-06** at limit **
  14  Prefactor     4.9162        25.921       -.10152E-04   -.75703E-04
  15  Normalizat    1.0907        .19697        .81939E-07    .44824E-04
  16  Prefactor     .95777        .16135        .39351E-06    .19603E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.1544
  Prefactor  = 1.49554
  Prefactor  = 4.13082
  norm       = 3.80836
  Prefactor  = 0.0001
  norm       = 0.742914
  Prefactor  = 20.2463
  Prefactor  = 5.64702
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.596
  Prefactor  = 14.2638
  Prefactor  = 0.000100001
  Prefactor  = 4.91623
  Normalizat = 1.09073
  Prefactor  = 0.95777
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.336     FROM HESSE     STATUS=OK           209 CALLS     1671 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1544        4.7739        .84853E-03   -1.5300    
   2  Prefactor     1.4955        2.9238        .17208E-03   -1.5463    
   3  Prefactor     4.1308        17.940        .19835E-03   -1.5301    
   4  norm          3.8084        1.6168        .58518E-04   -1.5318    
   5  Prefactor     .10000E-03    44.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .74291        .67276        .56797E-03   -1.5536    
   7  Prefactor     20.246        24.690        .89015E-04   -1.4808    
   8  Prefactor     5.6470        11.274        .16902E-03   -1.5233    
   9  norm          .10000E-03    6.9547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     97.596        70.668        .40695E-04   -1.3729    
  12  Prefactor     14.264        59.826        .10598E-03   -1.4952    
  13  Prefactor     .10000E-03    89.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9162        25.621        .18120E-03   -1.5264    
  15  Normalizat    1.0907        .23326        .25582E-03   -.90050    
  16  Prefactor     .95777        .19062        .23050E-03   -.94151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20135e-09
Minuit parameter uncertainties:
  1  4.77436
  2  2.92412
  3  17.2256
  4  1.61685
  5  8.06356e-06
  6  0.672766
  7  24.7028
  8  11.2786
  9  5.82764e-05
  10  0.000100706
  11  70.7293
  12  58.5245
  13  0.000698955
  14  22.4611
  15  0.233478
  16  0.190753
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  3.808e+00  1.617e+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.578e-01  1.908e-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.091e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.04
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.55e-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) = 5512.33496839
delta logL = 0.000804540587524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.33490523
delta logL = 0.000867697948706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8197       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3266       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95683       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=   5512.335     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8197        4.2211        .51629E-02    .50396E-03
   2  alpha         2.3266        .98307        .26597       -.44061E-05
   3  Normalizat    1.0924        .19402        .57812E-01    .74048E-05
   4  Prefactor     .95684        .16565        .45725E-01    .83301E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.81967
  alpha      = 2.32665
  Normalizat = 1.09237
  Prefactor  = 0.956837
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.335     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8197        1.6455        .58741E-04   -1.5317    
   2  alpha         2.3266        .41933        .10979E-01   -.69396E-01
   3  Normalizat    1.0924        .22662        .25566E-03   -.89997    
   4  Prefactor     .95684        .19080        .23059E-03   -.94182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51367e-11
Minuit parameter uncertainties:
  1  1.6455
  2  0.421332
  3  0.226823
  4  0.19093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500670': 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) = 5512.33490523
delta logL = 0.000867698112415

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  3.820e+00  1.645e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.327e+00  4.213e-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:  9.568e-01  1.909e-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.092e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.00
Ra Dec: 146.661 10.277
Photon Index (Free Index): 2.33 +/- 0.42
Photon Flux (Free Index): 1.13e-07 +/- 5.73e-08
Energy Flux (Free Index): 3.68e-05 +/- 1.67e-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/500670/cmap_HighResolution_478569601_478828801_4FGL_J0946.6+1016_daily_bin923.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='3.68e-05', photon_flux_error='4.84e-08', dlogl='8.68e-04', energy_flux='3.65e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-01 02:17:25.062624', photon_index_error2='0.42', photon_index2='2.33', ts='12.04', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.09', time_epoch_completed='1630487845.06', return_code='0', job_id='500670', GAL2='0.96', EG2='1.09', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.73e-08', ts2='12.00', photon_index='2.34' WHERE bin_id='923' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:17:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 500670: <4FGL_J0946.6+1016_daily_bin923> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin923> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 02:05:38 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:05: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:05:39 2021
Terminated at Wed Sep  1 02:17:25 2021
Results reported at Wed Sep  1 02:17:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin923 146.661 10.277 478569601 478828801 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 :                                   453.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

