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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin768
RA = 146.661, Dec = 10.277
tmin = 438393601, tmax = 438652801
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='499297', job_status='RUN', time_executed='2021-09-01 02:05:15.932131', time_epoch_executed='1630487115.93' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499297/ft1_4FGL_J0946.6+1016_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499297/ft2_4FGL_J0946.6+1016_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499297/ft1_4FGL_J0946.6+1016_daily_bin768.fits outfile=/scratch/kocevski/499297/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin768.fits ra=146.661 dec=10.277 rad=12.0 tmin=438393601.0 tmax=438652801.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 6.93
user 6.06
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499297/ft1_filtered_4FGL_J0946.6+1016_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/499297/ft2_4FGL_J0946.6+1016_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/499297/ltcube_438393601_438652801_4FGL_J0946.6+1016_daily_bin768.fits outfile=/scratch/kocevski/499297/expmap_438393601_438652801_4FGL_J0946.6+1016_daily_bin768.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/499297/ltcube_438393601_438652801_4FGL_J0946.6+1016_daily_bin768.fits
.....................!
real 194.38
user 185.52
sys 5.54

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/499297/ft1_filtered_4FGL_J0946.6+1016_daily_bin768.fits scfile=/scratch/kocevski/499297/ft2_4FGL_J0946.6+1016_daily_bin768.fits outfile=/scratch/kocevski/499297/cmap_438393601_438652801_4FGL_J0946.6+1016_daily_bin768.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499297/ft1_filtered_4FGL_J0946.6+1016_daily_bin768.fits scfile=/scratch/kocevski/499297/ft2_4FGL_J0946.6+1016_daily_bin768.fits outfile=/scratch/kocevski/499297/cmap_HighResolution_438393601_438652801_4FGL_J0946.6+1016_daily_bin768.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.812       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.052       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1672       1.0000         .10000E-03   10000.    
     9 'norm      '    .13325E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.973       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.831       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15776E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96776       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=   3961.738     FROM MIGRAD    STATUS=CONVERGED    305 CALLS     1493 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.808        9.2379       -.10484E-06   -.13934E-04
   2  Prefactor     1.3075        4.1076       -.19476E-05   -.72304E-03
   3  Prefactor     21.051        19.380       -.11479E-05   -.25157E-03
   4  norm          2.3854        1.4767       -.10528E-06    .18742E-04
   5  Prefactor     .10000E-03    42.540        .37287E-04** at limit **
   6  norm          .10000E-03    .58795       -.55011E-07** at limit **
   7  Prefactor     .10000E-03    17.221       -.21802E-05** at limit **
   8  Prefactor     9.1689        10.941        .31600E-05    .55397E-04
   9  norm          .10000E-03    12.707        .13905E-05** at limit **
  10  Prefactor     11.964        12.765        .59714E-05    .56086E-04
  11  Prefactor     39.778        80.113       -.71097E-04    .13964E-05
  12  Prefactor     .10000E-03    34.270       -.33015E-04** at limit **
  13  Prefactor     .10002E-03    94.201       -.16183E-04** at limit **
  14  Prefactor     .10000E-03    21.993        .79687E-05** at limit **
  15  Normalizat    1.0530        .21996        .74748E-05   -.90148E-04
  16  Prefactor     .96819        .19034       -.18873E-05    .29444E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8083
  Prefactor  = 1.30752
  Prefactor  = 21.0511
  norm       = 2.38544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.16891
  norm       = 0.000100004
  Prefactor  = 11.9641
  Prefactor  = 39.7784
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100003
  Normalizat = 1.05304
  Prefactor  = 0.968188
 **********
 **   18 **HESSE 
 **********

 FCN=   3961.738     FROM HESSE     STATUS=OK           203 CALLS     1696 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.808        9.2429        .12185E-03   -1.5050    
   2  Prefactor     1.3075        4.0959        .21426E-03   -1.5479    
   3  Prefactor     21.051        19.327        .43648E-03   -1.4790    
   4  norm          2.3854        1.4731        .57704E-04   -1.5399    
   5  Prefactor     .10000E-03    42.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4093        .92868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.1689        10.935        .13237E-03   -1.5102    
   9  norm          .10000E-03    12.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.964        12.742        .11577E-03   -1.5016    
  11  Prefactor     39.778        80.242        .63511E-04   -1.4446    
  12  Prefactor     .10000E-03    34.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    93.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0530        .25557        .24280E-03   -.91274    
  16  Prefactor     .96819        .22167        .22435E-03   -.93798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34814e-09
Minuit parameter uncertainties:
  1  9.24413
  2  4.09683
  3  19.3329
  4  1.47316
  5  4.63602e-05
  6  3.48807e-05
  7  4.7903e-05
  8  10.9374
  9  0.000448936
  10  12.7447
  11  80.4612
  12  2.56822e-06
  13  0.00284771
  14  0.000472326
  15  0.255864
  16  0.221882
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.385e+00  1.473e+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.682e-01  2.219e-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.053e+00  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.70
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.14e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.41e-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) = 3961.55894037
delta logL = 0.179194543752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3961.55010778
delta logL = 0.188027126294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5640       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0102       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95571       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=   3961.550     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5650        1.9818        .63735E-02    .67745E-04
   2  alpha         2.0092        .58948        .29166       -.15931E-04
   3  Normalizat    1.0714        .21317        .39276E-01   -.17011E-04
   4  Prefactor     .95606        .19013        .45711E-01   -.74483E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56497
  alpha      = 2.00919
  Normalizat = 1.07144
  Prefactor  = 0.956062
 **********
 **   18 **HESSE 
 **********

 FCN=   3961.550     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5650        1.5890        .60303E-04   -1.5388    
   2  alpha         2.0092        .51522        .11859E-01   -.19761    
   3  Normalizat    1.0714        .24745        .24095E-03   -.90674    
   4  Prefactor     .95606        .22009        .22553E-03   -.94209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23169e-12
Minuit parameter uncertainties:
  1  1.58906
  2  0.519092
  3  0.247716
  4  0.220293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499297': 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) = 3961.55010284
delta logL = 0.188032065236

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.565e+00  1.589e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.009e+00  5.191e-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.561e-01  2.203e-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.071e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 146.661 10.277
Photon Index (Free Index): 2.01 +/- 0.52
Photon Flux (Free Index): 5.95e-08 +/- 4.24e-08
Energy Flux (Free Index): 2.94e-05 +/- 2.30e-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/499297/cmap_HighResolution_438393601_438652801_4FGL_J0946.6+1016_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.14e-08', energy_flux2='2.94e-05', photon_flux_error='4.41e-08', dlogl='1.88e-01', energy_flux='2.29e-05', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-09-01 02:12:38.775202', photon_index_error2='0.52', photon_index2='2.01', ts='5.70', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.05', time_epoch_completed='1630487558.78', return_code='0', job_id='499297', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.24e-08', ts2='6.07', photon_index='2.34' WHERE bin_id='768' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 499297: <4FGL_J0946.6+1016_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin768 146.661 10.277 438393601 438652801 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 :                                   432.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             195.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            682 sec.

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

