/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 205 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 = 7655
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0946.6+1016_daily_bin272
RA = 146.661, Dec = 10.277
tmin = 309830401, tmax = 310089601
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='496252', job_status='RUN', time_executed='2021-09-01 01:54:09.350994', time_epoch_executed='1630486449.35' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496252/ft1_4FGL_J0946.6+1016_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496252/ft2_4FGL_J0946.6+1016_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496252/ft1_4FGL_J0946.6+1016_daily_bin272.fits outfile=/scratch/kocevski/496252/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin272.fits ra=146.661 dec=10.277 rad=12.0 tmin=309830401.0 tmax=310089601.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.45
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496252/ft2_4FGL_J0946.6+1016_daily_bin272.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/496252/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin272.fits evtable="EVENTS" outfile="/scratch/kocevski/496252/ft1_filtered_4FGL_J0946.6+1016_daily_bin272.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496252/ft1_filtered_4FGL_J0946.6+1016_daily_bin272.fits" evtable="EVENTS" scfile=/scratch/kocevski/496252/ft2_4FGL_J0946.6+1016_daily_bin272.fits sctable="SC_DATA" outfile=/scratch/kocevski/496252/ltcube_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.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/496252/ft2_4FGL_J0946.6+1016_daily_bin272.fits
.....................!
real 12.23
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496252/ft1_filtered_4FGL_J0946.6+1016_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/496252/ft2_4FGL_J0946.6+1016_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/496252/ltcube_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.fits outfile=/scratch/kocevski/496252/expmap_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.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/496252/ltcube_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.fits
.....................!
real 189.92
user 185.64
sys 3.89

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/496252/ft1_filtered_4FGL_J0946.6+1016_daily_bin272.fits scfile=/scratch/kocevski/496252/ft2_4FGL_J0946.6+1016_daily_bin272.fits outfile=/scratch/kocevski/496252/cmap_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.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.61
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.9295       1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.688       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0870       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.806       1.0000         .10000E-03   10000.    
    11 'Prefactor '    103.34       1.0000         .10000E-03   10000.    
    12 'Prefactor '    68.593       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3792       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0218       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=   5413.894     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1426 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5580       -.12208E-07** at limit **
   2  Prefactor     1.9293        4.0125       -.56476E-06   -.71680E-03
   3  Prefactor     71.691        27.244        .18919E-05    .69473E-05
   4  norm          1.4336        1.2241       -.17065E-07   -.37961E-03
   5  Prefactor     .10000E-03    34.963       -.11200E-04** at limit **
   6  norm          1.0870        .72211       -.44489E-07   -.52846E-03
   7  Prefactor     .10000E-03    40.316        .23289E-04** at limit **
   8  Prefactor     .10000E-03    8.5103        .37909E-07** at limit **
   9  norm          .10000E-03    6.2798        .52127E-07** at limit **
  10  Prefactor     10.804        12.148       -.23301E-05    .43004E-04
  11  Prefactor     103.35        64.964        .63458E-05    .32510E-04
  12  Prefactor     68.595        47.515        .21382E-05   -.92799E-05
  13  Prefactor     .10000E-03    50.718       -.14219E-04** at limit **
  14  Prefactor     4.3781        13.035       -.23572E-05   -.14388E-04
  15  Normalizat    1.1287        .20394       -.11664E-05   -.37430E-04
  16  Prefactor     1.0220        .17765        .43344E-06   -.99119E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.92932
  Prefactor  = 71.6912
  norm       = 1.4336
  Prefactor  = 0.0001
  norm       = 1.08702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8043
  Prefactor  = 103.346
  Prefactor  = 68.5951
  Prefactor  = 0.0001
  Prefactor  = 4.37811
  Normalizat = 1.1287
  Prefactor  = 1.022
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.894     FROM HESSE     STATUS=OK           203 CALLS     1629 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5617        .11493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9293        4.0251        .20343E-03   -1.5430    
   3  Prefactor     71.691        27.243        .47414E-04   -1.4013    
   4  norm          1.4336        1.2157        .71860E-04   -1.5469    
   5  Prefactor     .10000E-03    34.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0870        .70467        .48807E-04   -1.5499    
   7  Prefactor     .10000E-03    40.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.2812        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.804        12.097        .12188E-03   -1.5050    
  11  Prefactor     103.35        65.174        .39554E-04   -1.3671    
  12  Prefactor     68.595        47.509        .24232E-03   -1.4050    
  13  Prefactor     .10000E-03    50.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3781        12.992        .19247E-03   -1.5289    
  15  Normalizat    1.1287        .24148        .25709E-03   -.88836    
  16  Prefactor     1.0220        .21057        .23824E-03   -.92000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75695e-10
Minuit parameter uncertainties:
  1  2.88636e-07
  2  4.02571
  3  27.2475
  4  1.21568
  5  1.21503e-06
  6  0.704677
  7  3.38264e-05
  8  4.4562e-06
  9  4.83252e-07
  10  12.0992
  11  65.2195
  12  47.5354
  13  0.000175398
  14  13.0002
  15  0.241714
  16  0.210743
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.434e+00  1.216e+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.022e+00  2.107e-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.129e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/496252/likelihoodResults_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.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) = 5413.81621709
delta logL = 0.0779878513358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5413.80045004
delta logL = 0.0937549089012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1519       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8027       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0103       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=   5413.800     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1492        1.1346        .10774E-01    .10930E-03
   2  alpha         1.8000        .64503        .43384       -.18138E-04
   3  Normalizat    1.1536        .19910        .57591E-01    .32522E-04
   4  Prefactor     1.0102        .17653        .43281E-01    .25027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14918
  alpha      = 1.79996
  Normalizat = 1.15364
  Prefactor  = 1.01019
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.800     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1492        1.6515        .73204E-04   -1.5494    
   2  alpha         1.8000        1.2791        .18866E-01   -.28381    
   3  Normalizat    1.1536        .23947        .25468E-03   -.88048    
   4  Prefactor     1.0102        .20974        .23947E-03   -.92391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70386e-09
Minuit parameter uncertainties:
  1  1.6516
  2  1.34897
  3  0.2397
  4  0.209909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496252': 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) = 5413.80044803
delta logL = 0.0937569148828

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.149e+00  1.652e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  1.800e+00  1.349e+00  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.010e+00  2.099e-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.154e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 146.661 10.277
Photon Index (Free Index): 1.80 +/- 1.35
Photon Flux (Free Index): 2.37e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.71e-05 +/- 2.39e-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/496252/cmap_HighResolution_309830401_310089601_4FGL_J0946.6+1016_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='1.71e-05', photon_flux_error='3.64e-08', dlogl='9.38e-02', energy_flux='1.38e-05', photon_flux2='2.37e-08', job_status='DONE', time_completed='2021-09-01 02:02:09.730271', photon_index_error2='1.35', photon_index2='1.80', ts='2.66', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.39e-05', EG='1.13', time_epoch_completed='1630486929.73', return_code='0', job_id='496252', GAL2='1.01', EG2='1.15', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.63e-08', ts2='2.84', photon_index='2.34' WHERE bin_id='272' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 496252: <4FGL_J0946.6+1016_daily_bin272> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin272> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 01:50:32 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 01:50:34 2021
Terminated at Wed Sep  1 02:02:10 2021
Results reported at Wed Sep  1 02:02:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin272 146.661 10.277 309830401 310089601 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 :                                   478.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            698 sec.

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

