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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin496
RA = 146.661, Dec = 10.277
tmin = 367891201, tmax = 368150401
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='498811', job_status='RUN', time_executed='2021-09-01 02:05:06.873098', time_epoch_executed='1630487106.87' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498811/ft1_4FGL_J0946.6+1016_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498811/ft2_4FGL_J0946.6+1016_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498811/ft1_4FGL_J0946.6+1016_daily_bin496.fits outfile=/scratch/kocevski/498811/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin496.fits ra=146.661 dec=10.277 rad=12.0 tmin=367891201.0 tmax=368150401.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.37
user 3.13
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498811/ft1_filtered_4FGL_J0946.6+1016_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/498811/ft2_4FGL_J0946.6+1016_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/498811/ltcube_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.fits outfile=/scratch/kocevski/498811/expmap_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.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/498811/ltcube_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.fits
.....................!
real 195.36
user 185.94
sys 4.05

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/498811/ft1_filtered_4FGL_J0946.6+1016_daily_bin496.fits scfile=/scratch/kocevski/498811/ft2_4FGL_J0946.6+1016_daily_bin496.fits outfile=/scratch/kocevski/498811/cmap_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498811/ft1_filtered_4FGL_J0946.6+1016_daily_bin496.fits scfile=/scratch/kocevski/498811/ft2_4FGL_J0946.6+1016_daily_bin496.fits outfile=/scratch/kocevski/498811/cmap_HighResolution_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .96344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.413       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13178E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.899       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27209E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0149       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.3951       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=   7256.564     FROM MIGRAD    STATUS=CONVERGED    312 CALLS     1453 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9988       -.19753E-07** at limit **
   2  Prefactor     5.3896        4.0235       -.18949E-06   -.33086E-03
   3  Prefactor     .10000E-03    4.5681       -.51556E-08** at limit **
   4  norm          1.7167        1.4042       -.14316E-06   -.75073E-03
   5  Prefactor     .10000E-03    76.595        .19831E-05** at limit **
   6  norm          .96340        .61557       -.45795E-07   -.72696E-03
   7  Prefactor     32.410        35.752       -.27978E-05    .88311E-06
   8  Prefactor     .10000E-03    13.588        .21611E-06** at limit **
   9  norm          .10000E-03    12.409        .24504E-06** at limit **
  10  Prefactor     .10000E-03    6.8301        .11732E-05** at limit **
  11  Prefactor     82.517        76.148        .12866E-04   -.36221E-05
  12  Prefactor     .10000E-03    53.835       -.91432E-06** at limit **
  13  Prefactor     21.873        51.484       -.38590E-04   -.51790E-04
  14  Prefactor     .10002E-03    16.779        .21143E-05** at limit **
  15  Normalizat    1.0148        .20122        .60229E-06   -.16803E-04
  16  Prefactor     1.3952        .16778        .41889E-06   -.95088E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.38959
  Prefactor  = 0.0001
  norm       = 1.71669
  Prefactor  = 0.0001
  norm       = 0.963403
  Prefactor  = 32.4102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 82.5175
  Prefactor  = 0.0001
  Prefactor  = 21.8734
  Prefactor  = 0.000100021
  Normalizat = 1.01481
  Prefactor  = 1.39517
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.564     FROM HESSE     STATUS=OK           197 CALLS     1650 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3896        4.0242        .14092E-03   -1.5244    
   3  Prefactor     .10000E-03    4.5752        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7167        1.3941        .86443E-04   -1.5446    
   5  Prefactor     .10000E-03    76.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .96340        .59802        .51245E-03   -1.5512    
   7  Prefactor     32.410        35.867        .70381E-04   -1.4569    
   8  Prefactor     .10000E-03    13.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.9195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.517        76.284        .44221E-04   -1.3889    
  12  Prefactor     .10000E-03    53.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.873        51.540        .85592E-04   -1.4772    
  14  Prefactor     .10002E-03    17.192        .21430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0148        .24237        .30550E-03   -.92536    
  16  Prefactor     1.3952        .20246        .23098E-03   -.80520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88345e-09
Minuit parameter uncertainties:
  1  4.65268e-06
  2  4.02441
  3  1.27789e-06
  4  1.39415
  5  1.27096e-06
  6  0.598019
  7  35.8905
  8  6.58448e-05
  9  6.94471e-05
  10  0.000308291
  11  76.3749
  12  1.99944e-05
  13  51.6446
  14  0.00119998
  15  0.242635
  16  0.20258
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.717e+00  1.394e+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.395e+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.015e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 146.661 10.277
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/498811/likelihoodResults_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.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) = 7256.02096954
delta logL = 0.543357166454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7256.01977127
delta logL = 0.544555431103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2684       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1871       1.0000          .0000       5.0000    
     3 'Normalizat'    .96049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4280       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=   7256.020     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      243 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2683        13.652        .98819E-02    .18441E-02
   2  alpha         3.1871        4.0436        .43312        .22868E-04
   3  Normalizat    .96047        .59509E-01    .70752E-01    .21700E-04
   4  Prefactor     1.4280        .51984E-01    .51737E-01   -.23023E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26833
  alpha      = 3.18705
  Normalizat = 0.960473
  Prefactor  = 1.42804
 **********
 **   18 **HESSE 
 **********

 FCN=   7256.020     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2683        1.4654        .60181E-04   -1.5483    
   2  alpha         3.1871        1.0002        .17360E-01    .27840    
   3  Normalizat    .96047        .24038        .31302E-03   -.94367    
   4  Prefactor     1.4280        .20522        .22873E-03   -.79576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70825e-10
Minuit parameter uncertainties:
  1  1.46546
  2  1.03157
  3  0.240647
  4  0.205341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498811': 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) = 7256.01977126
delta logL = 0.544555448146

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.268e+00  1.465e+00  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  3.187e+00  1.032e+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.428e+00  2.053e-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.605e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 146.661 10.277
Photon Index (Free Index): 3.19 +/- 1.03
Photon Flux (Free Index): 8.96e-08 +/- 6.28e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.15e-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/498811/cmap_HighResolution_367891201_368150401_4FGL_J0946.6+1016_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-05', comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='1.69e-05', photon_flux_error='4.17e-08', dlogl='5.45e-01', energy_flux='1.65e-05', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-01 02:14:09.936254', photon_index_error2='1.03', photon_index2='3.19', ts='2.04', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.15e-05', EG='1.01', time_epoch_completed='1630487649.94', return_code='0', job_id='498811', GAL2='1.43', EG2='0.96', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.28e-08', ts2='3.23', photon_index='2.34' WHERE bin_id='496' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:14:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 498811: <4FGL_J0946.6+1016_daily_bin496> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin496> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:00:30 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:00:31 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:00:31 2021
Terminated at Wed Sep  1 02:14:10 2021
Results reported at Wed Sep  1 02:14:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin496 146.661 10.277 367891201 368150401 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 :                                   533.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

