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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin697
RA = 146.661, Dec = 10.277
tmin = 419990401, tmax = 420249601
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='499156', job_status='RUN', time_executed='2021-09-01 02:04:20.721433', time_epoch_executed='1630487060.72' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499156/ft1_4FGL_J0946.6+1016_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499156/ft2_4FGL_J0946.6+1016_daily_bin697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499156/ft1_4FGL_J0946.6+1016_daily_bin697.fits outfile=/scratch/kocevski/499156/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin697.fits ra=146.661 dec=10.277 rad=12.0 tmin=419990401.0 tmax=420249601.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.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/499156/ft2_4FGL_J0946.6+1016_daily_bin697.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/499156/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin697.fits evtable="EVENTS" outfile="/scratch/kocevski/499156/ft1_filtered_4FGL_J0946.6+1016_daily_bin697.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/499156/ft1_filtered_4FGL_J0946.6+1016_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/499156/ft2_4FGL_J0946.6+1016_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/499156/ltcube_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.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/499156/ft2_4FGL_J0946.6+1016_daily_bin697.fits
.....................!
real 11.87
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499156/ft1_filtered_4FGL_J0946.6+1016_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/499156/ft2_4FGL_J0946.6+1016_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/499156/ltcube_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.fits outfile=/scratch/kocevski/499156/expmap_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.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/499156/ltcube_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.fits
.....................!
real 191.20
user 186.20
sys 4.56

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/499156/ft1_filtered_4FGL_J0946.6+1016_daily_bin697.fits scfile=/scratch/kocevski/499156/ft2_4FGL_J0946.6+1016_daily_bin697.fits outfile=/scratch/kocevski/499156/cmap_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499156/ft1_filtered_4FGL_J0946.6+1016_daily_bin697.fits scfile=/scratch/kocevski/499156/ft2_4FGL_J0946.6+1016_daily_bin697.fits outfile=/scratch/kocevski/499156/cmap_HighResolution_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.002       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43178E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.289       1.0000         .10000E-03   10000.    
     4 'norm      '    .48528       1.0000         .10000E-03   10000.    
     5 'Prefactor '    72.744       1.0000         .10000E-03   10000.    
     6 'norm      '    4.6692       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3958       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.053       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2893       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17959E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.044       1.0000         .10000E-03   10000.    
    15 'Normalizat'    .77636       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2461       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=   5572.554     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1623 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.002        8.0403         .0000        .14665E-04
   2  Prefactor     .10000E-03    1.9246         .0000    ** at limit **
   3  Prefactor     19.292        16.801         .0000        .70814E-04
   4  norm          .48589        1.0034         .0000        .12143E-02
   5  Prefactor     72.630        84.162         .0000       -.90908E-05
   6  norm          4.6692        1.0178         .0000       -.12426E-03
   7  Prefactor     8.3939        14.342         .0000        .51469E-04
   8  Prefactor     19.043        14.869         .0000        .52126E-04
   9  norm          .10000E-03    8.0039         .0000    ** at limit **
  10  Prefactor     5.1820        13.186         .0000        .26042E-02
  11  Prefactor     .10000E-03    22.179         .0000    ** at limit **
  12  Prefactor     .10000E-03    12.366         .0000    ** at limit **
  13  Prefactor     1.6043        1043.1         .0000        .27173E-04
  14  Prefactor     20.634        30.415         .0000        .13882E-03
  15  Normalizat    .77645        .18972         .0000        .98707E-05
  16  Prefactor     1.2460        .17115         .0000       -.27624E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0022
  Prefactor  = 0.0001
  Prefactor  = 19.2916
  norm       = 0.485887
  Prefactor  = 72.6305
  norm       = 4.66919
  Prefactor  = 8.39391
  Prefactor  = 19.0429
  norm       = 0.0001
  Prefactor  = 5.18197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60434
  Prefactor  = 20.6335
  Normalizat = 0.776455
  Prefactor  = 1.24598
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.554     FROM HESSE     STATUS=OK           209 CALLS     1832 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.002        8.0441        .12670E-03   -1.5075    
   2  Prefactor     .10000E-03    7.9262        .19927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.292        16.782        .91195E-04   -1.4829    
   4  norm          .48589        .90036        .10152E-02   -1.5569    
   5  Prefactor     72.630        84.159        .47071E-04   -1.4001    
   6  norm          4.6692        1.0176        .18624E-04   -1.5276    
   7  Prefactor     8.3939        14.338        .13835E-03   -1.5128    
   8  Prefactor     19.043        14.845        .91759E-04   -1.4835    
   9  norm          .10000E-03    8.0062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1820        12.127        .87381E-03   -1.5253    
  11  Prefactor     .10000E-03    22.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6043        675.47        .36450E-03   -1.5455    
  14  Prefactor     20.634        25.379        .87313E-04   -1.4799    
  15  Normalizat    .77645        .22303        .28969E-03   -1.0095    
  16  Prefactor     1.2460        .20412        .21516E-03   -.84928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50888e-09
Minuit parameter uncertainties:
  1  8.045
  2  5.76621e-05
  3  16.7863
  4  0.900382
  5  84.2975
  6  1.01758
  7  14.3441
  8  14.8478
  9  6.8448e-05
  10  12.1324
  11  0.000183705
  12  4.72911e-05
  13  66.6069
  14  25.3922
  15  0.223295
  16  0.204246
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  4.859e-01  9.004e-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:  1.246e+00  2.042e-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.765e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/499156/likelihoodResults_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.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) = 5572.55429842
delta logL = 0.000111327860395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5572.5542963
delta logL = 0.000113444371891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48589       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3222       1.0000          .0000       5.0000    
     3 'Normalizat'    .77687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2457       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=   5572.554     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48581        45.921        .21959E-01   -.41791E-03
   2  alpha         2.3220        3.8266        .41284        .61783E-05
   3  Normalizat    .77687        .53298E-01    .65464E-01   -.24284E-04
   4  Prefactor     1.2457        .51482E-01    .48676E-01    .55853E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.485814
  alpha      = 2.32196
  Normalizat = 0.776874
  Prefactor  = 1.24575
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.554     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48581        .90205        .10192E-02   -1.5569    
   2  alpha         2.3220        1.3876        .35977E-01   -.71278E-01
   3  Normalizat    .77687        .22202        .28962E-03   -1.0093    
   4  Prefactor     1.2457        .20365        .21518E-03   -.84935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79974e-10
Minuit parameter uncertainties:
  1  0.90207
  2  1.47154
  3  0.222283
  4  0.203781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499156': 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) = 5572.55429629
delta logL = 0.000113458350825

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  4.858e-01  9.021e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.322e+00  1.472e+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.246e+00  2.038e-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.769e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/499156/cmap_HighResolution_419990401_420249601_4FGL_J0946.6+1016_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-01 02:12:31.662304', job_id='499156', GAL2='1.25', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630487551.66', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.13e-04', ts2='0.38', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='697' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:12:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 499156: <4FGL_J0946.6+1016_daily_bin697> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin697 146.661 10.277 419990401 420249601 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 :                                   488.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

