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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin1161
RA = 146.661, Dec = 10.277
tmin = 540259201, tmax = 540518401
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='501074', job_status='RUN', time_executed='2021-09-01 02:06:41.498967', time_epoch_executed='1630487201.5' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501074

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501074/ft1_4FGL_J0946.6+1016_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501074/ft2_4FGL_J0946.6+1016_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501074/ft1_4FGL_J0946.6+1016_daily_bin1161.fits outfile=/scratch/kocevski/501074/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin1161.fits ra=146.661 dec=10.277 rad=12.0 tmin=540259201.0 tmax=540518401.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.62
user 3.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501074/ft1_filtered_4FGL_J0946.6+1016_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/501074/ft2_4FGL_J0946.6+1016_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/501074/ltcube_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.fits outfile=/scratch/kocevski/501074/expmap_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.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/501074/ltcube_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.fits
.....................!
real 190.15
user 185.22
sys 4.48

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/501074/ft1_filtered_4FGL_J0946.6+1016_daily_bin1161.fits scfile=/scratch/kocevski/501074/ft2_4FGL_J0946.6+1016_daily_bin1161.fits outfile=/scratch/kocevski/501074/cmap_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501074/ft1_filtered_4FGL_J0946.6+1016_daily_bin1161.fits scfile=/scratch/kocevski/501074/ft2_4FGL_J0946.6+1016_daily_bin1161.fits outfile=/scratch/kocevski/501074/cmap_HighResolution_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.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/501074/ft1_filtered_4FGL_J0946.6+1016_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/501074/ft2_4FGL_J0946.6+1016_daily_bin1161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/501074/Model_4FGL_J0946.6+1016_daily_bin1161.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/501074/ft1_filtered_4FGL_J0946.6+1016_daily_bin1161.fits.....................!
real 55.96
user 54.43
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9886       1.0000         .10000E-03   10000.    
     4 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    157.61       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12674E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3916       1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .85297       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2875       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=   5530.117     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     1452 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8516        5.4700        .28137E-05   -.20869E-03
   2  Prefactor     7.0678        5.5781        .15004E-06   -.36058E-04
   3  Prefactor     3.9910        18.535        .42885E-06   -.14516E-04
   4  norm          .10000E-03    1.0856        .19104E-06** at limit **
   5  Prefactor     157.54        124.06       -.11455E-05   -.10710E-03
   6  norm          .10000E-03    .38850        .13191E-06** at limit **
   7  Prefactor     .10000E-03    44.852       -.13870E-05** at limit **
   8  Prefactor     .10000E-03    4.5599       -.29927E-07** at limit **
   9  norm          .10000E-03    5.8428       -.68890E-07** at limit **
  10  Prefactor     7.3947        10.430        .43873E-06   -.39206E-04
  11  Prefactor     74.917        61.097        .73421E-07   -.45869E-04
  12  Prefactor     .10000E-03    15.227       -.31755E-07** at limit **
  13  Prefactor     .10000E-03    39.279        .63530E-06** at limit **
  14  Prefactor     .10000E-03    9.6588       -.60522E-07** at limit **
  15  Normalizat    .85296        .19950        .18451E-06   -.12360E-03
  16  Prefactor     1.2874        .17147       -.80689E-06   -.67147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85158
  Prefactor  = 7.0678
  Prefactor  = 3.99096
  norm       = 0.0001
  Prefactor  = 157.544
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.39474
  Prefactor  = 74.9166
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.852959
  Prefactor  = 1.28743
 **********
 **   18 **HESSE 
 **********

 FCN=   5530.117     FROM HESSE     STATUS=OK           199 CALLS     1651 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8516        5.4704        .10123E-02   -1.5315    
   2  Prefactor     7.0678        5.5670        .14583E-03   -1.5176    
   3  Prefactor     3.9910        18.333        .20195E-03   -1.5308    
   4  norm          .10000E-03    2.4996        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     157.54        124.07        .16058E-03   -1.3191    
   6  norm          .10000E-03    .64005        .88936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5633        .15507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8450        .17554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3947        10.406        .14752E-03   -1.5164    
  11  Prefactor     74.917        61.177        .46386E-04   -1.3975    
  12  Prefactor     .10000E-03    15.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .85296        .23411        .28976E-03   -.98133    
  16  Prefactor     1.2874        .20343        .21258E-03   -.83682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97063e-10
Minuit parameter uncertainties:
  1  5.47107
  2  5.56745
  3  17.1159
  4  2.25964e-05
  5  124.276
  6  4.41537e-06
  7  0.000573182
  8  7.16058e-07
  9  2.56694e-07
  10  10.4082
  11  61.2284
  12  1.39505e-05
  13  0.000517518
  14  2.00807e-06
  15  0.234384
  16  0.203556
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  2.260e-05  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.287e+00  2.036e-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:  8.530e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/501074/likelihoodResults_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.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) = 5529.33723576
delta logL = 0.779532905196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5529.3365207
delta logL = 0.780247972516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12654       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9491       1.0000          .0000       5.0000    
     3 'Normalizat'    .74171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3481       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=   5529.337     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      289 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12570        .13255        .48849E-02    .47141E-02
   2  alpha         4.9540        3.4882        .47529       -.85206E-04
   3  Normalizat    .74171        .20706        .69834E-01    .75655E-04
   4  Prefactor     1.3481        .17496        .47155E-01    .37238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.125703
  alpha      = 4.95398
  Normalizat = 0.741713
  Prefactor  = 1.34807
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.337     FROM HESSE     STATUS=OK            33 CALLS      322 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12570        .21530        .22245E-03   -1.5637    
   2  alpha         4.9540        4.8100        .75883E-01    1.3786    
   3  Normalizat    .74171        .24485        .30903E-03   -1.0227    
   4  Prefactor     1.3481        .20893        .20845E-03   -.81889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27193e-07
Minuit parameter uncertainties:
  1  0.215299
  2  1.15871
  3  0.245214
  4  0.209056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501074': 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) = 5529.33651873
delta logL = 0.780249943265

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.257e-01  2.153e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  4.954e+00  1.159e+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.348e+00  2.091e-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:  7.417e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 146.661 10.277
Photon Index (Free Index): 4.95 +/- 1.16
Photon Flux (Free Index): 8.37e-08 +/- 7.60e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.02e-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/501074/cmap_HighResolution_540259201_540518401_4FGL_J0946.6+1016_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='7.80e-01', photon_flux2='8.37e-08', job_status='DONE', time_completed='2021-09-01 02:15:13.142740', photon_index_error2='1.16', photon_index2='4.95', ts='-0.00', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='9.58e-08', energy_flux_error2='1.02e-05', EG='0.85', time_epoch_completed='1630487713.14', return_code='0', job_id='501074', GAL2='1.35', EG2='0.74', return_code2='0', photon_flux_error2='7.60e-08', ts2='1.75', photon_index='2.34' WHERE bin_id='1161' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 501074: <4FGL_J0946.6+1016_daily_bin1161> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin1161> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 02:06:12 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:06:13 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:06:13 2021
Terminated at Wed Sep  1 02:15:15 2021
Results reported at Wed Sep  1 02:15:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin1161 146.661 10.277 540259201 540518401 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 :                                   480.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             301.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            543 sec.

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

