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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin663
RA = 146.661, Dec = 10.277
tmin = 411177601, tmax = 411436801
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='499099', job_status='RUN', time_executed='2021-09-01 02:03:52.498029', time_epoch_executed='1630487032.5' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499099/ft1_4FGL_J0946.6+1016_daily_bin663.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499099/ft2_4FGL_J0946.6+1016_daily_bin663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499099/ft1_4FGL_J0946.6+1016_daily_bin663.fits outfile=/scratch/kocevski/499099/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin663.fits ra=146.661 dec=10.277 rad=12.0 tmin=411177601.0 tmax=411436801.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 6.69
user 6.30
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499099/ft1_filtered_4FGL_J0946.6+1016_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/499099/ft2_4FGL_J0946.6+1016_daily_bin663.fits sctable="SC_DATA" expcube=/scratch/kocevski/499099/ltcube_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.fits outfile=/scratch/kocevski/499099/expmap_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.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/499099/ltcube_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.fits
.....................!
real 192.00
user 186.10
sys 5.36

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/499099/ft1_filtered_4FGL_J0946.6+1016_daily_bin663.fits scfile=/scratch/kocevski/499099/ft2_4FGL_J0946.6+1016_daily_bin663.fits outfile=/scratch/kocevski/499099/cmap_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499099/ft1_filtered_4FGL_J0946.6+1016_daily_bin663.fits scfile=/scratch/kocevski/499099/ft2_4FGL_J0946.6+1016_daily_bin663.fits outfile=/scratch/kocevski/499099/cmap_HighResolution_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.0753       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1984       1.0000         .10000E-03   10000.    
     4 'norm      '    .15334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .50978       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.224       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.110       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91082       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3147.114     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1281 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0185       -.10649E-05** at limit **
   2  Prefactor     5.0753        5.0290        .43388E-05   -.76353E-04
   3  Prefactor     1.1971        1.1410       -.17683E-06   -.29379E-04
   4  norm          .15317        1.7591       -.10097E-05   -.44190E-03
   5  Prefactor     .10000E-03    36.910        .74687E-04** at limit **
   6  norm          .50976        .56646        .34423E-07    .34884E-03
   7  Prefactor     5.5300        1.0091       -.31960E-06    .50866E-04
   8  Prefactor     15.225        1.0112       -.23253E-06   -.35727E-04
   9  norm          .10000E-03    7.3504        .18937E-05** at limit **
  10  Prefactor     .10000E-03    9.6451        .33336E-06** at limit **
  11  Prefactor     .10000E-03    26.802       -.51556E-04** at limit **
  12  Prefactor     .10000E-03    18.119        .12170E-04** at limit **
  13  Prefactor     30.104        1.3628       -.12442E-05    .18301E-02
  14  Prefactor     .10000E-03    86.817       -.59661E-04** at limit **
  15  Normalizat    1.0147        .26526       -.15155E-05   -.34096E-03
  16  Prefactor     .91105        .23617        .12826E-06   -.33166E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.0753
  Prefactor  = 1.19712
  norm       = 0.153174
  Prefactor  = 0.0001
  norm       = 0.509759
  Prefactor  = 5.52999
  Prefactor  = 15.2247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1044
  Prefactor  = 0.000100004
  Normalizat = 1.01466
  Prefactor  = 0.911046
 **********
 **   18 **HESSE 
 **********

 FCN=   3147.114     FROM HESSE     STATUS=OK           235 CALLS     1516 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0753        5.0459        .44619E-02   -1.5257    
   3  Prefactor     1.1971        24.524        .10374E-01   -1.5489    
   4  norm          .15317        1.0781        .21752E-01   -1.5630    
   5  Prefactor     .10000E-03    36.906        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .50976        .59579        .97618E-02   -1.5565    
   7  Prefactor     5.5300        45.927        .42711E-02   -1.5238    
   8  Prefactor     15.225        13.333        .25663E-02   -1.4927    
   9  norm          .10000E-03    7.3512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.104        69.600        .18254E-02   -1.4610    
  14  Prefactor     .10000E-03    86.727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0147        .22893        .44241E-01   -.92541    
  16  Prefactor     .91105        .19947        .45143E-01   -.95756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53396e-07
Minuit parameter uncertainties:
  1  2.12127e-05
  2  5.04635
  3  10.8412
  4  0.8125
  5  5.58631e-06
  6  0.595793
  7  31.9064
  8  13.3352
  9  6.09353e-06
  10  9.66599e-05
  11  5.52749e-05
  12  3.78746e-05
  13  69.7881
  14  0.00110843
  15  0.229156
  16  0.199626
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.532e-01  8.125e-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:  9.110e-01  1.996e-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.015e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/499099/likelihoodResults_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.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) = 3147.11155694
delta logL = 0.0021482407451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3147.11117509
delta logL = 0.00253008733534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17672       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91033       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=   3147.111     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      260 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17552        1.7773        .11201E-02   -.19455E-03
   2  alpha         2.1627        2.0812        .46434E-01   -.40219E-05
   3  Normalizat    1.0153        .26394        .23073E-03   -.37152E-04
   4  Prefactor     .91038        .23589        .21530E-03   -.12699E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.17552
  alpha      = 2.1627
  Normalizat = 1.01528
  Prefactor  = 0.910376
 **********
 **   18 **HESSE 
 **********

 FCN=   3147.111     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17552        1.6758        .44804E-04   -1.5624    
   2  alpha         2.1627        2.0445        .18573E-02   -.13533    
   3  Normalizat    1.0153        .26422        .92290E-05   -.92520    
   4  Prefactor     .91038        .23604        .86122E-05   -.95779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06652e-11
Minuit parameter uncertainties:
  1  1.08442
  2  2.40484
  3  0.264558
  4  0.236303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499099': 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) = 3147.11117447
delta logL = 0.00253071678571

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.755e-01  1.084e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.163e+00  2.405e+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:  9.104e-01  2.363e-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.015e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 146.661 10.277

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/499099/cmap_HighResolution_411177601_411436801_4FGL_J0946.6+1016_daily_bin663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2021-09-01 02:10:58.946599', job_id='499099', GAL2='0.91', fit_tolerance='1e-08', EG2='1.02', EG='1.01', time_epoch_completed='1630487458.95', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.53e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='663' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:10:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 499099: <4FGL_J0946.6+1016_daily_bin663> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin663 146.661 10.277 411177601 411436801 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 :                                   422.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            605 sec.

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

