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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin913
RA = 146.661, Dec = 10.277
tmin = 475977601, tmax = 476236801
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='500649', job_status='RUN', time_executed='2021-09-01 02:09:40.198572', time_epoch_executed='1630487380.2' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500649/ft1_4FGL_J0946.6+1016_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500649/ft2_4FGL_J0946.6+1016_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500649/ft1_4FGL_J0946.6+1016_daily_bin913.fits outfile=/scratch/kocevski/500649/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin913.fits ra=146.661 dec=10.277 rad=12.0 tmin=475977601.0 tmax=476236801.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.51
user 3.28
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500649/ft1_filtered_4FGL_J0946.6+1016_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/500649/ft2_4FGL_J0946.6+1016_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/500649/ltcube_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.fits outfile=/scratch/kocevski/500649/expmap_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.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/500649/ltcube_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.fits
.....................!
real 190.27
user 184.96
sys 4.93

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/500649/ft1_filtered_4FGL_J0946.6+1016_daily_bin913.fits scfile=/scratch/kocevski/500649/ft2_4FGL_J0946.6+1016_daily_bin913.fits outfile=/scratch/kocevski/500649/cmap_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.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.85
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500649/ft1_filtered_4FGL_J0946.6+1016_daily_bin913.fits scfile=/scratch/kocevski/500649/ft2_4FGL_J0946.6+1016_daily_bin913.fits outfile=/scratch/kocevski/500649/cmap_HighResolution_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.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.68
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0121       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13081E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .54420       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34946E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .50637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10868E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    152.50       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26989E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0600       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2678       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .88826       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=   5287.649     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1530 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0219        6.5695       -.39520E-06   -.58471E-03
   2  Prefactor     .10000E-03    3.1675        .17251E-07** at limit **
   3  Prefactor     .10000E-03    15.406        .19511E-06** at limit **
   4  norm          .54412        .67269        .15937E-07   -.88258E-05
   5  Prefactor     .10167E-03    83.597        .30040E-06** at limit **
   6  norm          .50621        .73447       -.11967E-06   -.14431E-02
   7  Prefactor     27.273        29.073       -.65332E-05   -.56318E-05
   8  Prefactor     .10000E-03    4.8941       -.97767E-07** at limit **
   9  norm          .10000E-03    6.1311       -.14449E-06** at limit **
  10  Prefactor     .10000E-03    4.6097       -.13223E-06** at limit **
  11  Prefactor     152.48        70.174        .97468E-05    .12368E-05
  12  Prefactor     .10000E-03    56.041        .71783E-06** at limit **
  13  Prefactor     .10000E-03    23.933       -.24626E-06** at limit **
  14  Prefactor     4.0834        12.671       -.17232E-05   -.97830E-04
  15  Normalizat    1.2678        .19712       -.33442E-06   -.12842E-04
  16  Prefactor     .88826        .16788       -.97673E-07   -.36419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02191
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.544122
  Prefactor  = 0.000101666
  norm       = 0.50621
  Prefactor  = 27.2733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 152.482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.08335
  Normalizat = 1.26783
  Prefactor  = 0.888264
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.649     FROM HESSE     STATUS=OK           215 CALLS     1745 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0219        6.6202        .81878E-03   -1.5217    
   2  Prefactor     .10000E-03    3.2241        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    114.54        .54252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .54412        .64229        .64366E-03   -1.5560    
   5  Prefactor     .10167E-03    75.460        .20920       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .50621        .71952        .70743E-04   -1.5566    
   7  Prefactor     27.273        29.070        .76713E-04   -1.4663    
   8  Prefactor     .10000E-03    4.9106        .15712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.1368        .17587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6241        .15246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     152.48        69.722        .16321E-03   -1.3232    
  12  Prefactor     .10000E-03    56.273        .21434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0834        12.690        .20011E-03   -1.5304    
  15  Normalizat    1.2678        .23342        .23835E-03   -.84532    
  16  Prefactor     .88826        .19896        .23941E-03   -.96552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61702e-10
Minuit parameter uncertainties:
  1  6.62099
  2  2.97134e-06
  3  0.000881352
  4  0.642301
  5  0.0224525
  6  0.719534
  7  29.0848
  8  2.24706e-05
  9  2.8632e-05
  10  2.81784e-05
  11  69.7593
  12  3.23874e-05
  13  7.81941e-05
  14  12.6986
  15  0.233614
  16  0.199121
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  5.441e-01  6.423e-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:  8.883e-01  1.991e-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.268e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.63e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 5.22e-06 +/- 6.16e-06

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

Saving results to:
/scratch/kocevski/500649/likelihoodResults_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.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) = 5285.16459449
delta logL = 2.4843558878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5285.13138368
delta logL = 2.51756670073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34210       1.0000         .10000E-03   10000.    
     2 'alpha     '    .89762       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87721       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=   5285.131     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34155        .31016        .74341E-02   -.61654E-03
   2  alpha         .89721        .35818        .26707       -.33047E-04
   3  Normalizat    1.2812        .19322        .53610E-01    .25400E-05
   4  Prefactor     .87724        .16648        .44714E-01    .10087E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.341549
  alpha      = 0.897206
  Normalizat = 1.28118
  Prefactor  = 0.877235
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.131     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34155        .41468        .32328E-04   -1.5591    
   2  alpha         .89721        .48473        .11438E-01   -.69595    
   3  Normalizat    1.2812        .22929        .23704E-03   -.84130    
   4  Prefactor     .87724        .19756        .24034E-03   -.96941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52824e-09
Minuit parameter uncertainties:
  1  0.414679
  2  0.490036
  3  0.229475
  4  0.197726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500649': 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) = 5285.13138281
delta logL = 2.51756756526

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  3.415e-01  4.147e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  8.972e-01  4.900e-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:  8.772e-01  1.977e-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.281e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.76
Ra Dec: 146.661 10.277
Photon Index (Free Index): 0.90 +/- 0.49
Photon Flux (Free Index): 8.78e-09 +/- 7.44e-09
Energy Flux (Free Index): 6.35e-05 +/- 7.78e-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/500649/cmap_HighResolution_475977601_476236801_4FGL_J0946.6+1016_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', comment='SUCCESS', photon_flux='1.63e-08', energy_flux2='6.35e-05', photon_flux_error='1.92e-08', dlogl='2.52e+00', energy_flux='5.22e-06', photon_flux2='8.78e-09', job_status='DONE', time_completed='2021-09-01 02:17:54.703004', photon_index_error2='0.49', photon_index2='0.90', ts='1.72', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.73e-08', energy_flux_error2='7.78e-05', EG='1.27', time_epoch_completed='1630487874.7', return_code='0', job_id='500649', GAL2='0.88', EG2='1.28', return_code2='0', energy_flux_error='6.16e-06', photon_flux_error2='7.44e-09', ts2='6.76', photon_index='2.34' WHERE bin_id='913' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 500649: <4FGL_J0946.6+1016_daily_bin913> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin913> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 02:05:36 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:05:38 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:05:38 2021
Terminated at Wed Sep  1 02:17:55 2021
Results reported at Wed Sep  1 02:17:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin913 146.661 10.277 475977601 476236801 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 :                                   481.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

