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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin534
RA = 146.661, Dec = 10.277
tmin = 377740801, tmax = 378000001
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='498876', job_status='RUN', time_executed='2021-09-01 02:04:09.485430', time_epoch_executed='1630487049.49' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498876/ft1_4FGL_J0946.6+1016_daily_bin534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498876/ft2_4FGL_J0946.6+1016_daily_bin534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498876/ft1_4FGL_J0946.6+1016_daily_bin534.fits outfile=/scratch/kocevski/498876/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin534.fits ra=146.661 dec=10.277 rad=12.0 tmin=377740801.0 tmax=378000001.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 4.60
user 4.22
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498876/ft1_filtered_4FGL_J0946.6+1016_daily_bin534.fits evtable="EVENTS" scfile=/scratch/kocevski/498876/ft2_4FGL_J0946.6+1016_daily_bin534.fits sctable="SC_DATA" expcube=/scratch/kocevski/498876/ltcube_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.fits outfile=/scratch/kocevski/498876/expmap_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.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/498876/ltcube_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.fits
.....................!
real 190.30
user 184.76
sys 5.02

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/498876/ft1_filtered_4FGL_J0946.6+1016_daily_bin534.fits scfile=/scratch/kocevski/498876/ft2_4FGL_J0946.6+1016_daily_bin534.fits outfile=/scratch/kocevski/498876/cmap_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498876/ft1_filtered_4FGL_J0946.6+1016_daily_bin534.fits scfile=/scratch/kocevski/498876/ft2_4FGL_J0946.6+1016_daily_bin534.fits outfile=/scratch/kocevski/498876/cmap_HighResolution_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .63710       1.0000         .10000E-03   10000.    
     5 'Prefactor '    103.26       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3607       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12532E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3784       1.0000         .10000E-03   10000.    
     9 'norm      '    25.602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2193       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.560       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1415       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .96208       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=   5930.186     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     1520 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9721       -.18696E-07** at limit **
   2  Prefactor     .10000E-03    2.5284       -.38863E-06** at limit **
   3  Prefactor     .10000E-03    12.558       -.27634E-06** at limit **
   4  norm          .63674        1.2055       -.14167E-05   -.29333E-02
   5  Prefactor     102.99        101.38       -.23054E-03    .86186E-05
   6  norm          3.3612        .88616       -.26823E-06    .70032E-03
   7  Prefactor     .10006E-03    159.48        .32907E-04** at limit **
   8  Prefactor     5.3796        11.048        .26994E-06   -.47714E-04
   9  norm          25.603        17.104       -.98192E-06    .57401E-04
  10  Prefactor     2.2214        6.1892       -.26520E-05   -.46531E-03
  11  Prefactor     .10000E-03    34.803       -.61682E-06** at limit **
  12  Prefactor     42.561        33.972       -.23034E-06    .11763E-04
  13  Prefactor     .10000E-03    16.301        .16222E-06** at limit **
  14  Prefactor     .10000E-03    6.7960       -.40239E-07** at limit **
  15  Normalizat    1.1411        .18902        .92839E-05   -.14638E-03
  16  Prefactor     .96222        .15860        .21186E-05    .37533E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.636736
  Prefactor  = 102.994
  norm       = 3.36118
  Prefactor  = 0.000100059
  Prefactor  = 5.37964
  norm       = 25.603
  Prefactor  = 2.22138
  Prefactor  = 0.0001
  Prefactor  = 42.5607
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14115
  Prefactor  = 0.962221
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.186     FROM HESSE     STATUS=OK           197 CALLS     1717 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9723        .10562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5904        .23900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .63674        1.1291        .10865E-02   -1.5548    
   5  Prefactor     102.99        101.42        .19785E-03   -1.3675    
   6  norm          3.3612        .88603        .35734E-04   -1.5341    
   7  Prefactor     .10006E-03    163.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3796        11.019        .17328E-03   -1.5244    
   9  norm          25.603        17.070        .79171E-04   -1.4696    
  10  Prefactor     2.2214        6.1640        .27605E-03   -1.5410    
  11  Prefactor     .10000E-03    34.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.561        33.976        .61449E-04   -1.4402    
  13  Prefactor     .10000E-03    16.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1411        .22333        .25236E-03   -.88441    
  16  Prefactor     .96222        .18903        .23355E-03   -.94000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29668e-09
Minuit parameter uncertainties:
  1  2.99542e-06
  2  5.84275e-05
  3  0.00012143
  4  1.12914
  5  101.589
  6  0.886029
  7  0.00624596
  8  11.0228
  9  17.073
  10  6.16575
  11  0.000140985
  12  33.9918
  13  1.75075e-05
  14  1.60294e-05
  15  0.223516
  16  0.189164
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  6.367e-01  1.129e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.344e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  8.006e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.052e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  9.622e-01  1.892e-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.141e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/498876/likelihoodResults_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.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): 102
logL (Free Index) = 5929.76014333
delta logL = 0.425792771026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5929.69963171
delta logL = 0.486304390529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20469       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5370       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0127       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=   5929.700     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20435        4.1490        .66384E-02    .42770E-02
   2  alpha         4.5397        2.6486        .50000        .29467E-04
   3  Normalizat    1.0569        .58027E-01    .59021E-01   -.31335E-03
   4  Prefactor     1.0127        .49578E-01    .42959E-01   -.44175E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.204349
  alpha      = 4.53967
  Normalizat = 1.05692
  Prefactor  = 1.0127
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.700     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20435        7.4691        .30086E-03   -1.5618    
   2  alpha         4.5397        2.7995        .44602E-01    .95423    
   3  Normalizat    1.0569        .17275        .26101E-03   -.91147    
   4  Prefactor     1.0127        .14823        .22839E-03   -.92307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.65952e-10
Minuit parameter uncertainties:
  1  2.4706
  2  9.57464
  3  0.172841
  4  0.148292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498876': 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): 102
logL (Free Index) = 5929.69962989
delta logL = 0.486306208712

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.043e-01  2.471e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  4.540e+00  9.575e+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.013e+00  1.483e-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.057e+00  1.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 146.661 10.277
Photon Index (Free Index): 4.54 +/- 9.57
Photon Flux (Free Index): 7.80e-08 +/- 8.19e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.11e-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/498876/cmap_HighResolution_377740801_378000001_4FGL_J0946.6+1016_daily_bin534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='4.86e-01', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-01 02:12:36.554420', photon_index_error2='9.57', photon_index2='4.54', ts='0.41', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.11e-05', EG='1.14', time_epoch_completed='1630487556.55', return_code='0', job_id='498876', GAL2='1.01', EG2='1.06', return_code2='102', photon_flux_error2='8.19e-08', ts2='1.53', photon_index='2.34' WHERE bin_id='534' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:12:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 498876: <4FGL_J0946.6+1016_daily_bin534> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin534 146.661 10.277 377740801 378000001 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 :                                   501.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

