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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin897
RA = 146.661, Dec = 10.277
tmin = 471830401, tmax = 472089601
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='500613', job_status='RUN', time_executed='2021-09-01 02:09:23.032856', time_epoch_executed='1630487363.03' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500613/ft1_4FGL_J0946.6+1016_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500613/ft2_4FGL_J0946.6+1016_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500613/ft1_4FGL_J0946.6+1016_daily_bin897.fits outfile=/scratch/kocevski/500613/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin897.fits ra=146.661 dec=10.277 rad=12.0 tmin=471830401.0 tmax=472089601.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.59
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500613/ft2_4FGL_J0946.6+1016_daily_bin897.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/500613/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/500613/ft1_filtered_4FGL_J0946.6+1016_daily_bin897.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.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500613/ft1_filtered_4FGL_J0946.6+1016_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/500613/ft2_4FGL_J0946.6+1016_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/500613/ltcube_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.fits outfile=/scratch/kocevski/500613/expmap_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.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/500613/ltcube_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.fits
.....................!
real 191.95
user 185.98
sys 4.44

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/500613/ft1_filtered_4FGL_J0946.6+1016_daily_bin897.fits scfile=/scratch/kocevski/500613/ft2_4FGL_J0946.6+1016_daily_bin897.fits outfile=/scratch/kocevski/500613/cmap_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.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.70
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500613/ft1_filtered_4FGL_J0946.6+1016_daily_bin897.fits scfile=/scratch/kocevski/500613/ft2_4FGL_J0946.6+1016_daily_bin897.fits outfile=/scratch/kocevski/500613/cmap_HighResolution_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.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.68
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.0774       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .91429       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .39543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.6426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.670       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9569       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3786       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .72404       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=   6189.898     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1467 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1188       -.11131E-08** at limit **
   2  Prefactor     1.0777        3.4514       -.94917E-06   -.10555E-02
   3  Prefactor     .10000E-03    15.937       -.14289E-04** at limit **
   4  norm          .91428        1.0221       -.12623E-06   -.76904E-03
   5  Prefactor     .10000E-03    42.849       -.23691E-05** at limit **
   6  norm          .39545        .50331       -.34204E-07   -.88285E-03
   7  Prefactor     5.5385        62.555        .84371E-05   -.11897E-04
   8  Prefactor     .10000E-03    2.3482       -.70471E-07** at limit **
   9  norm          6.6422        7.6433        .58502E-06   -.91787E-05
  10  Prefactor     .10000E-03    2.5993       -.81153E-07** at limit **
  11  Prefactor     .10000E-03    14.359        .77437E-05** at limit **
  12  Prefactor     12.670        46.184        .13658E-05   -.55674E-05
  13  Prefactor     .10000E-03    18.453        .90266E-05** at limit **
  14  Prefactor     5.9549        8.6266        .20588E-06   -.13899E-03
  15  Normalizat    1.3785        .18068       -.10794E-06    .17253E-03
  16  Prefactor     .72409        .14658       -.28892E-07    .88191E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.07769
  Prefactor  = 0.0001
  norm       = 0.914278
  Prefactor  = 0.0001
  norm       = 0.395446
  Prefactor  = 5.53854
  Prefactor  = 0.0001
  norm       = 6.64215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6704
  Prefactor  = 0.0001
  Prefactor  = 5.95485
  Normalizat = 1.37851
  Prefactor  = 0.724087
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.898     FROM HESSE     STATUS=OK           205 CALLS     1672 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1246        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0777        3.5616        .25283E-03   -1.5500    
   3  Prefactor     .10000E-03    15.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .91428        .98505        .80480E-03   -1.5517    
   5  Prefactor     .10000E-03    42.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .39545        .47617        .60095E-03   -1.5582    
   7  Prefactor     5.5385        62.347        .17076E-03   -1.5237    
   8  Prefactor     .10000E-03    2.3493        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6422        7.6391        .15570E-03   -1.5192    
  10  Prefactor     .10000E-03    2.6031        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.670        46.204        .11254E-03   -1.4996    
  13  Prefactor     .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9549        8.6119        .16452E-03   -1.5220    
  15  Normalizat    1.3785        .21449        .21964E-03   -.81252    
  16  Prefactor     .72409        .17399        .24642E-03   -1.0259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64838e-09
Minuit parameter uncertainties:
  1  2.10477e-07
  2  3.56229
  3  9.08827e-05
  4  0.985069
  5  1.5861e-05
  6  0.476175
  7  37.2138
  8  6.29178e-07
  9  7.64017
  10  2.20967e-06
  11  4.04421e-06
  12  46.3351
  13  1.43438e-05
  14  8.61372
  15  0.214629
  16  0.174124
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  9.143e-01  9.851e-01  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:  7.241e-01  1.741e-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.379e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.74e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 8.77e-06 +/- 9.45e-06

TS (Fixed Index): 1.34
Ra Dec: 146.661 10.277
Photon Flux Upper Limit: 9.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500613/likelihoodResults_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.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) = 6189.85467808
delta logL = 0.0428245249304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6189.85405708
delta logL = 0.0434455233744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91362       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1063       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72052       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=   6189.854     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      246 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91453        .99628        .81112E-03    .22886E-02
   2  alpha         2.1066        .77170        .20336E-01   -.65207E-04
   3  Normalizat    1.3848        .20568        .21922E-03    .20744E-07
   4  Prefactor     .72053        .17326        .24695E-03    .41432E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.914533
  alpha      = 2.10655
  Normalizat = 1.3848
  Prefactor  = 0.720534
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.854     FROM HESSE     STATUS=OK            27 CALLS      273 TOTAL
                     EDM=   .47E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91453        1.0012        .16222E-03   -1.5517    
   2  alpha         2.1066        .77579        .40672E-02   -.15804    
   3  Normalizat    1.3848        .20585        .43844E-04   -.81069    
   4  Prefactor     .72053        .17340        .98781E-05   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74882e-14
Minuit parameter uncertainties:
  1  1.00127
  2  0.789156
  3  0.205977
  4  0.173534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500613': 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) = 6189.85405665
delta logL = 0.0434459514981

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  9.145e-01  1.001e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.107e+00  7.892e-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:  7.205e-01  1.735e-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.385e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 146.661 10.277
Photon Index (Free Index): 2.11 +/- 0.79
Photon Flux (Free Index): 2.27e-08 +/- 3.00e-08
Energy Flux (Free Index): 9.70e-06 +/- 1.10e-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/500613/cmap_HighResolution_471830401_472089601_4FGL_J0946.6+1016_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', photon_flux='2.74e-08', energy_flux2='9.70e-06', photon_flux_error='2.95e-08', dlogl='4.34e-02', energy_flux='8.77e-06', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-01 02:18:02.843324', photon_index_error2='0.79', photon_index2='2.11', ts='1.34', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='9.74e-08', energy_flux_error2='1.10e-05', EG='1.38', time_epoch_completed='1630487882.84', return_code='0', job_id='500613', GAL2='0.72', EG2='1.38', return_code2='0', energy_flux_error='9.45e-06', photon_flux_error2='3.00e-08', ts2='1.43', photon_index='2.34' WHERE bin_id='897' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:18:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 500613: <4FGL_J0946.6+1016_daily_bin897> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin897 146.661 10.277 471830401 472089601 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 :                                   507.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             245.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

