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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin212
RA = 146.661, Dec = 10.277
tmin = 294278401, tmax = 294537601
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='496166', job_status='RUN', time_executed='2021-09-01 01:53:16.574808', time_epoch_executed='1630486396.57' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496166/ft1_4FGL_J0946.6+1016_daily_bin212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496166/ft2_4FGL_J0946.6+1016_daily_bin212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496166/ft1_4FGL_J0946.6+1016_daily_bin212.fits outfile=/scratch/kocevski/496166/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin212.fits ra=146.661 dec=10.277 rad=12.0 tmin=294278401.0 tmax=294537601.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.43
user 2.20
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496166/ft1_filtered_4FGL_J0946.6+1016_daily_bin212.fits evtable="EVENTS" scfile=/scratch/kocevski/496166/ft2_4FGL_J0946.6+1016_daily_bin212.fits sctable="SC_DATA" expcube=/scratch/kocevski/496166/ltcube_294278401_294537601_4FGL_J0946.6+1016_daily_bin212.fits outfile=/scratch/kocevski/496166/expmap_294278401_294537601_4FGL_J0946.6+1016_daily_bin212.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/496166/ltcube_294278401_294537601_4FGL_J0946.6+1016_daily_bin212.fits
.....................!
real 191.48
user 186.14
sys 4.81

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/496166/ft1_filtered_4FGL_J0946.6+1016_daily_bin212.fits scfile=/scratch/kocevski/496166/ft2_4FGL_J0946.6+1016_daily_bin212.fits outfile=/scratch/kocevski/496166/cmap_294278401_294537601_4FGL_J0946.6+1016_daily_bin212.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496166/ft1_filtered_4FGL_J0946.6+1016_daily_bin212.fits scfile=/scratch/kocevski/496166/ft2_4FGL_J0946.6+1016_daily_bin212.fits outfile=/scratch/kocevski/496166/cmap_HighResolution_294278401_294537601_4FGL_J0946.6+1016_daily_bin212.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.60
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3800       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .22985       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6332       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.578       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10980E-02   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .93126       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.2196       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=   7637.759     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1482 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7221        6.8622       -.43587E-05   -.99291E-03
   2  Prefactor     4.3802        3.1498       -.45466E-07   -.54655E-04
   3  Prefactor     .10000E-03    13.123       -.72568E-06** at limit **
   4  norm          1.7060        .90918       -.26947E-07   -.14533E-04
   5  Prefactor     .10000E-03    99.472       -.53091E-05** at limit **
   6  norm          .22981        .35402        .30263E-07   -.35656E-03
   7  Prefactor     46.066        35.428       -.17269E-05   -.11719E-03
   8  Prefactor     2.6336        5.8017       -.29172E-06   -.12832E-03
   9  norm          3.1255        5.8497        .31046E-05   -.14270E-02
  10  Prefactor     3.2473        5.5489       -.23074E-06   -.63926E-04
  11  Prefactor     20.565        34.503       -.54463E-05   -.17743E-03
  12  Prefactor     .10000E-03    69.624        .49171E-05** at limit **
  13  Prefactor     .10000E-03    15.099        .67778E-06** at limit **
  14  Prefactor     .10003E-03    7.4872       -.71016E-06** at limit **
  15  Normalizat    .93128        .16894        .37665E-06    .99891E-04
  16  Prefactor     1.2196        .14715        .58006E-06    .67625E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.72213
  Prefactor  = 4.38024
  Prefactor  = 0.0001
  norm       = 1.70597
  Prefactor  = 0.000100004
  norm       = 0.229807
  Prefactor  = 46.0665
  Prefactor  = 2.63364
  norm       = 3.12549
  Prefactor  = 3.24729
  Prefactor  = 20.565
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Normalizat = 0.931282
  Prefactor  = 1.21957
 **********
 **   18 **HESSE 
 **********

 FCN=   7637.759     FROM HESSE     STATUS=OK           205 CALLS     1687 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7221        7.1314        .18518E-03   -1.5273    
   2  Prefactor     4.3802        3.1484        .12602E-03   -1.5289    
   3  Prefactor     .10000E-03    13.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7060        .91000        .58672E-04   -1.5447    
   5  Prefactor     .10000E-03    99.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .22981        .31743        .62203E-03   -1.5612    
   7  Prefactor     46.066        35.638        .59070E-04   -1.4349    
   8  Prefactor     2.6336        5.7838        .25129E-03   -1.5383    
   9  norm          3.1255        8.2518        .11465E-02   -1.5354    
  10  Prefactor     3.2473        5.4093        .22454E-03   -1.5348    
  11  Prefactor     20.565        34.530        .88295E-04   -1.4801    
  12  Prefactor     .10000E-03    70.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    39.258        .45150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93128        .19929        .27522E-03   -.95369    
  16  Prefactor     1.2196        .17407        .21639E-03   -.85731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83744e-09
Minuit parameter uncertainties:
  1  7.13268
  2  3.14851
  3  7.79308e-05
  4  0.910011
  5  0.0012011
  6  0.317434
  7  35.6541
  8  5.78503
  9  8.25481
  10  5.4101
  11  34.5631
  12  0.000857298
  13  7.37979e-05
  14  0.00222433
  15  0.199451
  16  0.174147
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.706e+00  9.100e-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.220e+00  1.741e-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.313e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.15
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.11e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 8.73e-06

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) = 7636.79920874
delta logL = 0.960133587396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7636.75978284
delta logL = 0.999559490812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3311       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6381       1.0000          .0000       5.0000    
     3 'Normalizat'    .95867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2076       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=   7636.760     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3308        .77407        .95149E-02   -.15545E-03
   2  alpha         1.6381        .35414        .31736       -.43162E-04
   3  Normalizat    .95869        .16806        .45647E-01    .17946E-04
   4  Prefactor     1.2076        .14929        .34454E-01    .26392E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33079
  alpha      = 1.63809
  Normalizat = 0.958686
  Prefactor  = 1.20759
 **********
 **   18 **HESSE 
 **********

 FCN=   7636.760     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3308        .95139        .56029E-04   -1.5477    
   2  alpha         1.6381        .47772        .12672E-01   -.35199    
   3  Normalizat    .95869        .19306        .27170E-03   -.94428    
   4  Prefactor     1.2076        .17150        .21728E-03   -.86098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26015e-09
Minuit parameter uncertainties:
  1  0.951401
  2  0.481087
  3  0.1932
  4  0.171584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496166': 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) = 7636.75978275
delta logL = 0.999559583356

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.331e+00  9.514e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  1.638e+00  4.811e-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.208e+00  1.716e-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.587e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.15
Ra Dec: 146.661 10.277
Photon Index (Free Index): 1.64 +/- 0.48
Photon Flux (Free Index): 2.58e-08 +/- 2.07e-08
Energy Flux (Free Index): 2.65e-05 +/- 2.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/496166/cmap_HighResolution_294278401_294537601_4FGL_J0946.6+1016_daily_bin212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.11e-08', energy_flux2='2.65e-05', photon_flux_error='2.72e-08', dlogl='1.00e+00', energy_flux='1.64e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-01 02:01:46.712829', photon_index_error2='0.48', photon_index2='1.64', ts='12.15', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.93', time_epoch_completed='1630486906.71', return_code='0', job_id='496166', GAL2='1.21', EG2='0.96', return_code2='0', energy_flux_error='8.73e-06', photon_flux_error2='2.07e-08', ts2='14.15', photon_index='2.34' WHERE bin_id='212' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 496166: <4FGL_J0946.6+1016_daily_bin212> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin212> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 01:50:26 2021
Job was executed on host(s) <bullet0133>, 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:01:47 2021
Results reported at Wed Sep  1 02:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin212 146.661 10.277 294278401 294537601 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 :                                   507.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            681 sec.

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

