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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin932
RA = 146.661, Dec = 10.277
tmin = 480902401, tmax = 481161601
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='500689', job_status='RUN', time_executed='2021-09-01 02:06:37.110866', time_epoch_executed='1630487197.11' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500689/ft1_4FGL_J0946.6+1016_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500689/ft2_4FGL_J0946.6+1016_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500689/ft1_4FGL_J0946.6+1016_daily_bin932.fits outfile=/scratch/kocevski/500689/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin932.fits ra=146.661 dec=10.277 rad=12.0 tmin=480902401.0 tmax=481161601.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.77
user 3.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500689/ft1_filtered_4FGL_J0946.6+1016_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/500689/ft2_4FGL_J0946.6+1016_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/500689/ltcube_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.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/500689/ft2_4FGL_J0946.6+1016_daily_bin932.fits
.....................!
real 12.16
user 11.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500689/ft1_filtered_4FGL_J0946.6+1016_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/500689/ft2_4FGL_J0946.6+1016_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/500689/ltcube_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.fits outfile=/scratch/kocevski/500689/expmap_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.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/500689/ltcube_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.fits
.....................!
real 195.38
user 186.14
sys 5.85

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/500689/ft1_filtered_4FGL_J0946.6+1016_daily_bin932.fits scfile=/scratch/kocevski/500689/ft2_4FGL_J0946.6+1016_daily_bin932.fits outfile=/scratch/kocevski/500689/cmap_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.817       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    91.131       1.0000         .10000E-03   10000.    
     6 'norm      '    .44857       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.931       1.0000         .10000E-03   10000.    
     9 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15470E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0377       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .90781       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0187       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=   5333.480     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     1451 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.656        .90712E-02** at limit **
   2  Prefactor     .10000E-03    1.4469        .90712E-02** at limit **
   3  Prefactor     18.819        18.402        .23083E-02    .36323E-04
   4  norm          2.1982        1.3894        .69386E-02    .31976E-03
   5  Prefactor     91.132        85.233        .10524E-02   -.75450E-03
   6  norm          .44855        .53046        .11059E-01    .83929E-03
   7  Prefactor     74.174        42.901        .11655E-02   -.11173E-02
   8  Prefactor     13.932        9.0076        .26828E-02    .16806E-03
   9  norm          .10000E-03    4.6213        .90712E-02** at limit **
  10  Prefactor     .10000E-03    3.7603        .90712E-02** at limit **
  11  Prefactor     .10000E-03    18.685        .90712E-02** at limit **
  12  Prefactor     11.100        32.959        .30063E-02    .18543E-03
  13  Prefactor     .10001E-03    53.885        .90712E-02** at limit **
  14  Prefactor     4.0197        14.519        .50169E-02   -.13997E-02
  15  Normalizat    .90741        .19822        .45001E-01    .36486E-03
  16  Prefactor     1.0190        .16651        .42275E-01    .26916E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8193
  norm       = 2.19822
  Prefactor  = 91.1317
  norm       = 0.448553
  Prefactor  = 74.1739
  Prefactor  = 13.9316
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.0998
  Prefactor  = 0.000100006
  Prefactor  = 4.01967
  Normalizat = 0.907414
  Prefactor  = 1.019
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.480     FROM HESSE     STATUS=OK           193 CALLS     1644 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4569        .85760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.819        18.359        .92331E-04   -1.4840    
   4  norm          2.1982        1.3821        .65233E-04   -1.5411    
   5  Prefactor     91.132        85.248        .42094E-04   -1.3796    
   6  norm          .44855        .49993        .55082E-03   -1.5574    
   7  Prefactor     74.174        43.034        .46619E-04   -1.3983    
   8  Prefactor     13.932        9.0068        .10731E-03   -1.4961    
   9  norm          .10000E-03    4.6269        .15332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7633        .13822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.100        32.958        .12025E-03   -1.5042    
  13  Prefactor     .10001E-03    53.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0197        14.470        .20068E-03   -1.5307    
  15  Normalizat    .90741        .23408        .26419E-03   -.96200    
  16  Prefactor     1.0190        .19698        .21567E-03   -.92099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08091e-08
Minuit parameter uncertainties:
  1  2.59731e-05
  2  1.42462e-05
  3  18.3641
  4  1.38214
  5  85.3627
  6  0.499933
  7  43.0517
  8  9.00772
  9  1.36696e-05
  10  1.71905e-05
  11  0.000219201
  12  33.0119
  13  0.00110411
  14  14.4825
  15  0.234341
  16  0.19712
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.198e+00  1.382e+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.019e+00  1.971e-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:  9.074e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.33e-05

TS (Fixed Index): 3.79
Ra Dec: 146.661 10.277
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500689/likelihoodResults_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.txt

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) = 5333.47866173
delta logL = 0.0011261705331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5333.47849406
delta logL = 0.00129384535012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1738       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3725       1.0000          .0000       5.0000    
     3 'Normalizat'    .90599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0200       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5333.478     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      230 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1737        1.4754        .64808E-04    .15532E-02
   2  alpha         2.3725        .56332        .13440E-01    .82421E-04
   3  Normalizat    .90599        .22945        .26438E-03   -.30359E-04
   4  Prefactor     1.0200        .19730        .21558E-03   -.26210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17372
  alpha      = 2.37252
  Normalizat = 0.905986
  Prefactor  = 1.02004
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.478     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1737        1.4564        .25923E-05   -1.5413    
   2  alpha         2.3725        .55612        .53761E-03   -.51016E-01
   3  Normalizat    .90599        .22969        .10575E-04   -.96250    
   4  Prefactor     1.0200        .19747        .86232E-05   -.92065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79015e-10
Minuit parameter uncertainties:
  1  1.45645
  2  0.560827
  3  0.22994
  4  0.197608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500689': 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) = 5333.47849406
delta logL = 0.00129384582578

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.174e+00  1.456e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.373e+00  5.608e-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.020e+00  1.976e-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:  9.060e-01  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 146.661 10.277
Photon Index (Free Index): 2.37 +/- 0.56
Photon Flux (Free Index): 6.67e-08 +/- 4.51e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.45e-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/500689/cmap_HighResolution_480902401_481161601_4FGL_J0946.6+1016_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-05', comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='2.08e-05', photon_flux_error='4.14e-08', dlogl='1.29e-03', energy_flux='2.11e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-01 02:14:52.250756', photon_index_error2='0.56', photon_index2='2.37', ts='3.79', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.45e-05', EG='0.91', time_epoch_completed='1630487692.25', return_code='0', job_id='500689', GAL2='1.02', EG2='0.91', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.51e-08', ts2='3.77', photon_index='2.34' WHERE bin_id='932' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:14:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 500689: <4FGL_J0946.6+1016_daily_bin932> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin932 146.661 10.277 480902401 481161601 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 :                                   473.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            554 sec.

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

