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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin216
RA = 146.661, Dec = 10.277
tmin = 295315201, tmax = 295574401
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='496172', job_status='RUN', time_executed='2021-09-01 01:52:34.039968', time_epoch_executed='1630486354.04' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496172/ft1_4FGL_J0946.6+1016_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496172/ft2_4FGL_J0946.6+1016_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496172/ft1_4FGL_J0946.6+1016_daily_bin216.fits outfile=/scratch/kocevski/496172/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin216.fits ra=146.661 dec=10.277 rad=12.0 tmin=295315201.0 tmax=295574401.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 2.37
user 2.15
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496172/ft1_filtered_4FGL_J0946.6+1016_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/496172/ft2_4FGL_J0946.6+1016_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/496172/ltcube_295315201_295574401_4FGL_J0946.6+1016_daily_bin216.fits outfile=/scratch/kocevski/496172/expmap_295315201_295574401_4FGL_J0946.6+1016_daily_bin216.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/496172/ltcube_295315201_295574401_4FGL_J0946.6+1016_daily_bin216.fits
.....................!
real 193.26
user 187.39
sys 4.94

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496172/ft1_filtered_4FGL_J0946.6+1016_daily_bin216.fits scfile=/scratch/kocevski/496172/ft2_4FGL_J0946.6+1016_daily_bin216.fits outfile=/scratch/kocevski/496172/cmap_HighResolution_295315201_295574401_4FGL_J0946.6+1016_daily_bin216.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.178       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .36581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12165E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9752       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.081       1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.747       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1509       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99096       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=   5926.293     FROM MIGRAD    STATUS=CONVERGED    305 CALLS     1460 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94726        8.0072        .88280E-06   -.10070E-03
   2  Prefactor     2.3745        2.7071        .97762E-07    .92677E-05
   3  Prefactor     22.175        16.589       -.29494E-06   -.42358E-04
   4  norm          2.3332        1.3174       -.34803E-07   -.40677E-04
   5  Prefactor     .10000E-03    168.00        .12827E-05** at limit **
   6  norm          .36590        .54353        .32688E-06    .70742E-03
   7  Prefactor     14.855        35.803       -.23873E-06   -.30467E-05
   8  Prefactor     .10000E-03    3.3925       -.73116E-06** at limit **
   9  norm          .10000E-03    9.6000       -.39406E-05** at limit **
  10  Prefactor     .10000E-03    9.7568        .85305E-06** at limit **
  11  Prefactor     5.7995        116.68       -.83026E-06   -.16877E-04
  12  Prefactor     58.077        41.434       -.55789E-07   -.29186E-05
  13  Prefactor     50.774        52.827       -.23988E-05   -.55324E-04
  14  Prefactor     .10000E-03    14.480        .95114E-07** at limit **
  15  Normalizat    1.1512        .20707        .28830E-05   -.27837E-03
  16  Prefactor     .99068        .17850       -.36070E-05   -.21001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.947262
  Prefactor  = 2.37454
  Prefactor  = 22.1746
  norm       = 2.33319
  Prefactor  = 0.0001
  norm       = 0.3659
  Prefactor  = 14.8553
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79951
  Prefactor  = 58.077
  Prefactor  = 50.7738
  Prefactor  = 0.0001
  Normalizat = 1.15124
  Prefactor  = 0.990676
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.293     FROM HESSE     STATUS=OK           205 CALLS     1665 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94726        19.029        .41373E-02   -1.5513    
   2  Prefactor     2.3745        2.7007        .13043E-03   -1.5400    
   3  Prefactor     22.175        16.568        .85053E-04   -1.4766    
   4  norm          2.3332        1.3184        .63203E-04   -1.5402    
   5  Prefactor     .10000E-03    168.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .36590        .52739        .66807E-03   -1.5587    
   7  Prefactor     14.855        35.980        .10383E-03   -1.4937    
   8  Prefactor     .10000E-03    3.3983        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.7159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7995        118.42        .16427E-03   -1.5226    
  12  Prefactor     58.077        41.445        .52641E-04   -1.4182    
  13  Prefactor     50.774        52.620        .56296E-04   -1.4282    
  14  Prefactor     .10000E-03    14.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1512        .22917        .24766E-03   -.88123    
  16  Prefactor     .99068        .19446        .23163E-03   -.93041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27449e-08
Minuit parameter uncertainties:
  1  8.49403
  2  2.70081
  3  16.5715
  4  1.31846
  5  0.000406355
  6  0.527398
  7  36.0327
  8  1.07785e-05
  9  9.70049e-05
  10  9.99981e-05
  11  52.5315
  12  41.4653
  13  52.6684
  14  6.18479e-05
  15  0.229366
  16  0.194598
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  2.333e+00  1.318e+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.907e-01  1.946e-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.151e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.03
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 6.99e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.27e-05

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) = 5922.76310205
delta logL = 3.52966141526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5922.58506641
delta logL = 3.70769705811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16429E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .29825E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.2039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98560       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=   5922.585     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      292 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16462E-01    .31049E-01    .20952E-02   -.24226E-02
   2  alpha         .87092E-10    1.1361        .46268    ** at limit **
   3  Normalizat    1.2041        .18220        .54947E-01    .53248E-05
   4  Prefactor     .98539        .16047        .46087E-01    .10057E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0164621
  alpha      = 8.7092e-11
  Normalizat = 1.20409
  Prefactor  = 0.985394
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.585     FROM HESSE     STATUS=OK            39 CALLS      331 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16462E-01    .21794E-01    .83696E-04   -1.5682    
   2  alpha         .87092E-10    .42796        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2041        .21720        .24297E-03   -.86477    
   4  Prefactor     .98539        .19132        .23265E-03   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08349e-12
Minuit parameter uncertainties:
  1  0.0217938
  2  1.23914e-05
  3  0.217359
  4  0.191453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496172': 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) = 5922.58505817
delta logL = 3.70770529325

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.646e-02  2.179e-02  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  8.709e-11  1.239e-05  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.854e-01  1.915e-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.204e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.38
Ra Dec: 146.661 10.277
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.14e-09 +/- 5.48e-09
Energy Flux (Free Index): 1.38e-04 +/- 1.83e-04

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/496172/cmap_HighResolution_295315201_295574401_4FGL_J0946.6+1016_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.99e-08', energy_flux2='1.38e-04', photon_flux_error='3.95e-08', dlogl='3.71e+00', energy_flux='2.24e-05', photon_flux2='4.14e-09', job_status='DONE', time_completed='2021-09-01 02:00:30.603715', photon_index_error2='0.00', photon_index2='0.00', ts='9.03', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.83e-04', EG='1.15', time_epoch_completed='1630486830.6', return_code='0', job_id='496172', GAL2='0.99', EG2='1.20', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.48e-09', ts2='16.38', photon_index='2.34' WHERE bin_id='216' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 496172: <4FGL_J0946.6+1016_daily_bin216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin216 146.661 10.277 295315201 295574401 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 :                                   473.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            604 sec.

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

