/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 210 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 = 7469
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0946.6+1016_daily_bin21
RA = 146.661, Dec = 10.277
tmin = 244771201, tmax = 245030401
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='494873', job_status='RUN', time_executed='2021-09-01 01:49:36.104330', time_epoch_executed='1630486176.1' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494873/ft1_4FGL_J0946.6+1016_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494873/ft2_4FGL_J0946.6+1016_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494873/ft1_4FGL_J0946.6+1016_daily_bin21.fits outfile=/scratch/kocevski/494873/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin21.fits ra=146.661 dec=10.277 rad=12.0 tmin=244771201.0 tmax=245030401.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 1.42
user 1.26
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494873/ft2_4FGL_J0946.6+1016_daily_bin21.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/494873/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/494873/ft1_filtered_4FGL_J0946.6+1016_daily_bin21.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.48
user 0.34
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494873/ft1_filtered_4FGL_J0946.6+1016_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/494873/ft2_4FGL_J0946.6+1016_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/494873/ltcube_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.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/494873/ft2_4FGL_J0946.6+1016_daily_bin21.fits
.....................!
real 12.34
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494873/ft1_filtered_4FGL_J0946.6+1016_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/494873/ft2_4FGL_J0946.6+1016_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/494873/ltcube_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.fits outfile=/scratch/kocevski/494873/expmap_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.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/494873/ltcube_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.fits
.....................!
real 190.13
user 185.66
sys 4.14

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/494873/ft1_filtered_4FGL_J0946.6+1016_daily_bin21.fits scfile=/scratch/kocevski/494873/ft2_4FGL_J0946.6+1016_daily_bin21.fits outfile=/scratch/kocevski/494873/cmap_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494873/ft1_filtered_4FGL_J0946.6+1016_daily_bin21.fits scfile=/scratch/kocevski/494873/ft2_4FGL_J0946.6+1016_daily_bin21.fits outfile=/scratch/kocevski/494873/cmap_HighResolution_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.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.52
user 0.34
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2510       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .33927       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.591       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1267       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.385       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8578       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1422       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=   5951.489     FROM MIGRAD    STATUS=CONVERGED     77 CALLS     1530 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5170        4.8358        .95462E-05    .53268E-03
   2  Prefactor     3.3522        4.9478       -.46882E-05   -.57617E-03
   3  Prefactor     .10000E-03    7.1026        .14643E-06** at limit **
   4  norm          1.2510        1.3599        .86183E-07   -.63620E-04
   5  Prefactor     .11154E-03    689.78       -.75206E-04** at limit **
   6  norm          .33927        .53452        .56183E-06    .33869E-03
   7  Prefactor     26.577        4.9605        .26786E-05   -.20976E-02
   8  Prefactor     .10000E-03    3.9757       -.30344E-06** at limit **
   9  norm          3.1267        8.5773       -.11100E-04   -.17265E-02
  10  Prefactor     13.727        11.467       -.17111E-04   -.13326E-01
  11  Prefactor     11.408        6.5693        .42601E-05   -.74886E-03
  12  Prefactor     .10000E-03    19.646       -.14187E-05** at limit **
  13  Prefactor     55.763        5.5385        .43904E-05   -.55931E-02
  14  Prefactor     6.8391        18.008        .38687E-04   -.53011E-02
  15  Normalizat    1.0396        .21991        .13281E-04    .20673E-04
  16  Prefactor     1.1422        .19190       -.32516E-05    .37128E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51698
  Prefactor  = 3.3522
  Prefactor  = 0.0001
  norm       = 1.25105
  Prefactor  = 0.00011154
  norm       = 0.339269
  Prefactor  = 26.577
  Prefactor  = 0.0001
  norm       = 3.12668
  Prefactor  = 13.7269
  Prefactor  = 11.4079
  Prefactor  = 0.000100001
  Prefactor  = 55.7635
  Prefactor  = 6.83909
  Normalizat = 1.03959
  Prefactor  = 1.14223
 **********
 **   18 **HESSE 
 **********

 FCN=   5951.489     FROM HESSE     STATUS=OK           239 CALLS     1769 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5170        4.8849        .86779E-02   -1.5462    
   2  Prefactor     3.3522        5.0036        .55260E-02   -1.5342    
   3  Prefactor     .10000E-03    7.0732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2510        1.3839        .99942E-02   -1.5484    
   5  Prefactor     .11154E-03    727.56        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .33927        .54919        .10596E-01   -1.5591    
   7  Prefactor     26.577        38.386        .19422E-02   -1.4676    
   8  Prefactor     .10000E-03    3.9735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1267        8.6623        .57321E-02   -1.5354    
  10  Prefactor     13.727        12.600        .27029E-02   -1.4967    
  11  Prefactor     11.408        82.353        .29682E-02   -1.5032    
  12  Prefactor     .10000E-03    19.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     55.763        136.48        .13429E-02   -1.4213    
  14  Prefactor     6.8391        92.930        .38302E-02   -1.5185    
  15  Normalizat    1.0396        .19814        .59806E-01   -.91716    
  16  Prefactor     1.1422        .16558        .36166E-01   -.88128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25279e-07
Minuit parameter uncertainties:
  1  4.88613
  2  5.00422
  3  1.99823e-05
  4  1.38396
  5  0.185556
  6  0.549198
  7  38.4215
  8  1.97873e-05
  9  8.66581
  10  12.602
  11  61.4213
  12  0.000290571
  13  137.252
  14  50.5158
  15  0.198277
  16  0.165654
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.251e+00  1.384e+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:  1.142e+00  1.657e-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.040e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/494873/likelihoodResults_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.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) = 5950.29697349
delta logL = 1.19235351383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5950.27254242
delta logL = 1.2167845857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53673       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0386       1.0000          .0000       5.0000    
     3 'Normalizat'    .94093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2002       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=   5950.273     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53520        5.1850        .72820E-02    .11722E-03
   2  alpha         4.0407        4.4686        .39723        .18179E-04
   3  Normalizat    .94099        .58866E-01    .45423E-01   -.27411E-04
   4  Prefactor     1.2001        .52722E-01    .49614E-01   -.36103E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.535197
  alpha      = 4.04069
  Normalizat = 0.940988
  Prefactor  = 1.20008
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.273     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53520        9.3105        .32797E-04   -1.5562    
   2  alpha         4.0407        3.8313        .18177E-01    .66400    
   3  Normalizat    .94099        .23459        .27604E-03   -.95034    
   4  Prefactor     1.2001        .21302        .21933E-03   -.86329    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16173e-11
Minuit parameter uncertainties:
  1  4.4649
  2  6.57632
  3  0.234842
  4  0.213174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494873': 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) = 5950.27254118
delta logL = 1.21678582446

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  5.352e-01  4.465e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  4.041e+00  6.576e+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.200e+00  2.132e-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:  9.410e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 146.661 10.277
Photon Index (Free Index): 4.04 +/- 6.58
Photon Flux (Free Index): 1.07e-07 +/- 6.61e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.98e-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/494873/cmap_HighResolution_244771201_245030401_4FGL_J0946.6+1016_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-05', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.62e-05', photon_flux_error='4.14e-08', dlogl='1.22e+00', energy_flux='1.20e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-01 01:57:47.780888', photon_index_error2='6.58', photon_index2='4.04', ts='1.18', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.98e-05', EG='1.04', time_epoch_completed='1630486667.78', return_code='0', job_id='494873', GAL2='1.20', EG2='0.94', return_code2='102', energy_flux_error='1.33e-05', photon_flux_error2='6.61e-08', ts2='3.88', photon_index='2.34' WHERE bin_id='21' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:57:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 494873: <4FGL_J0946.6+1016_daily_bin21> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin21> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 01:45:49 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:45:50 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:45:50 2021
Terminated at Wed Sep  1 01:57:48 2021
Results reported at Wed Sep  1 01:57:48 2021

Your job looked like:

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

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

