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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin1589
RA = 146.661, Dec = 10.277
tmin = 651196801, tmax = 651456001
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='504398', job_status='RUN', time_executed='2021-09-01 02:16:25.074880', time_epoch_executed='1630487785.07' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504398/ft1_4FGL_J0946.6+1016_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504398/ft2_4FGL_J0946.6+1016_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504398/ft1_4FGL_J0946.6+1016_daily_bin1589.fits outfile=/scratch/kocevski/504398/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin1589.fits ra=146.661 dec=10.277 rad=12.0 tmin=651196801.0 tmax=651456001.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.70
user 3.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504398/ft1_filtered_4FGL_J0946.6+1016_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/504398/ft2_4FGL_J0946.6+1016_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/504398/ltcube_651196801_651456001_4FGL_J0946.6+1016_daily_bin1589.fits outfile=/scratch/kocevski/504398/expmap_651196801_651456001_4FGL_J0946.6+1016_daily_bin1589.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/504398/ltcube_651196801_651456001_4FGL_J0946.6+1016_daily_bin1589.fits
.....................!
real 192.03
user 185.87
sys 3.97

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/504398/ft1_filtered_4FGL_J0946.6+1016_daily_bin1589.fits scfile=/scratch/kocevski/504398/ft2_4FGL_J0946.6+1016_daily_bin1589.fits outfile=/scratch/kocevski/504398/cmap_651196801_651456001_4FGL_J0946.6+1016_daily_bin1589.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.62
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .56344       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2550       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6639       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.884       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.4178       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.3387       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=   7734.070     FROM MIGRAD    STATUS=CONVERGED    305 CALLS     1496 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3157       -.12264E-07** at limit **
   2  Prefactor     .55488        6.9386       -.49510E-05    .34957E-03
   3  Prefactor     .10000E-03    8.9420        .53509E-06** at limit **
   4  norm          1.2551        1.2762        .25746E-06    .12701E-02
   5  Prefactor     6.2519        195.39        .25073E-05    .13730E-04
   6  norm          .10000E-03    .36535        .23660E-07** at limit **
   7  Prefactor     .10000E-03    15.460        .70230E-06** at limit **
   8  Prefactor     .10000E-03    5.1970        .24516E-06** at limit **
   9  norm          4.9988        10.342        .85973E-06    .25468E-03
  10  Prefactor     .10001E-03    10.772        .22191E-05** at limit **
  11  Prefactor     9.6659        43.983        .63411E-06    .35150E-04
  12  Prefactor     16.020        35.931       -.35122E-06   -.16625E-04
  13  Prefactor     35.652        61.730       -.19490E-05   -.80409E-05
  14  Prefactor     29.886        24.686        .44430E-06    .10980E-03
  15  Normalizat    1.4177        .19915       -.79058E-06   -.21191E-03
  16  Prefactor     1.3388        .16899        .55412E-06   -.12893E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.554878
  Prefactor  = 0.0001
  norm       = 1.25506
  Prefactor  = 6.25188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.99881
  Prefactor  = 0.000100008
  Prefactor  = 9.66586
  Prefactor  = 16.0204
  Prefactor  = 35.6519
  Prefactor  = 29.8856
  Normalizat = 1.41771
  Prefactor  = 1.33876
 **********
 **   18 **HESSE 
 **********

 FCN=   7734.070     FROM HESSE     STATUS=OK           203 CALLS     1699 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3169        .13070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55488        7.3169        .23398E-02   -1.5559    
   3  Prefactor     .10000E-03    9.0119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2551        1.2791        .96772E-04   -1.5484    
   5  Prefactor     6.2519        196.53        .16050E-03   -1.5208    
   6  norm          .10000E-03    1.1448        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9988        10.407        .17989E-03   -1.5261    
  10  Prefactor     .10001E-03    11.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6659        43.962        .12891E-03   -1.5086    
  12  Prefactor     16.020        35.917        .10007E-03   -1.4907    
  13  Prefactor     35.652        61.924        .67131E-04   -1.4513    
  14  Prefactor     29.886        24.752        .73291E-04   -1.4614    
  15  Normalizat    1.4177        .23933        .28345E-03   -.80118    
  16  Prefactor     1.3388        .20248        .25059E-03   -.82162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1004e-09
Minuit parameter uncertainties:
  1  7.67478e-07
  2  4.03012
  3  6.33941e-05
  4  1.27917
  5  70.3588
  6  9.60701e-06
  7  0.000103382
  8  4.45055e-05
  9  10.4108
  10  0.000611912
  11  41.2777
  12  35.9657
  13  62.0355
  14  24.7602
  15  0.239524
  16  0.202601
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.255e+00  1.279e+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.339e+00  2.026e-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.418e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/504398/likelihoodResults_651196801_651456001_4FGL_J0946.6+1016_daily_bin1589.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) = 7733.83274642
delta logL = 0.237076860807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7733.82235706
delta logL = 0.247466218394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1570       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9747       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3572       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=   7733.822     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1570        1.2708        .76005E-04    .33775E-03
   2  alpha         2.9748        .97359        .22041E-01    .12801E-04
   3  Normalizat    1.3834        .24153        .28631E-03   -.71115E-04
   4  Prefactor     1.3572        .20480        .24914E-03   -.94221E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15697
  alpha      = 2.97484
  Normalizat = 1.38343
  Prefactor  = 1.35719
 **********
 **   18 **HESSE 
 **********

 FCN=   7733.822     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1570        1.1912        .30402E-05   -1.5493    
   2  alpha         2.9748        .91450        .88163E-03    .19110    
   3  Normalizat    1.3834        .24168        .11453E-04   -.81109    
   4  Prefactor     1.3572        .20481        .49828E-04   -.81622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04112e-11
Minuit parameter uncertainties:
  1  1.19126
  2  0.937106
  3  0.241875
  4  0.204936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504398': 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) = 7733.82235704
delta logL = 0.247466235789

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.157e+00  1.191e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  2.975e+00  9.371e-01  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.357e+00  2.049e-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.383e+00  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 146.661 10.277
Photon Index (Free Index): 2.97 +/- 0.94
Photon Flux (Free Index): 6.45e-08 +/- 6.08e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/504398/cmap_HighResolution_651196801_651456001_4FGL_J0946.6+1016_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-05', comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.33e-05', photon_flux_error='3.83e-08', dlogl='2.47e-01', energy_flux='1.20e-05', photon_flux2='6.45e-08', job_status='DONE', time_completed='2021-09-01 02:26:11.442932', photon_index_error2='0.94', photon_index2='2.97', ts='1.64', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.12e-05', EG='1.42', time_epoch_completed='1630488371.44', return_code='0', job_id='504398', GAL2='1.36', EG2='1.38', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='6.08e-08', ts2='2.17', photon_index='2.34' WHERE bin_id='1589' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:26:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 504398: <4FGL_J0946.6+1016_daily_bin1589> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin1589> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:15:45 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:15:48 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:15:48 2021
Terminated at Wed Sep  1 02:26:12 2021
Results reported at Wed Sep  1 02:26:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin1589 146.661 10.277 651196801 651456001 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 :                                   561.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            627 sec.

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

