/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0946.6+1016_daily_bin22
RA = 146.661, Dec = 10.277
tmin = 245030401, tmax = 245289601
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='494874', job_status='RUN', time_executed='2021-09-01 01:47:32.717720', time_epoch_executed='1630486052.72' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494874/ft1_4FGL_J0946.6+1016_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494874/ft2_4FGL_J0946.6+1016_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494874/ft1_4FGL_J0946.6+1016_daily_bin22.fits outfile=/scratch/kocevski/494874/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin22.fits ra=146.661 dec=10.277 rad=12.0 tmin=245030401.0 tmax=245289601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.46
user 1.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494874/ft2_4FGL_J0946.6+1016_daily_bin22.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/494874/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin22.fits evtable="EVENTS" outfile="/scratch/kocevski/494874/ft1_filtered_4FGL_J0946.6+1016_daily_bin22.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494874/ft1_filtered_4FGL_J0946.6+1016_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/494874/ft2_4FGL_J0946.6+1016_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/494874/ltcube_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.fits outfile=/scratch/kocevski/494874/expmap_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.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/494874/ltcube_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.fits
.....................!
real 191.58
user 186.84
sys 4.09

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/494874/ft1_filtered_4FGL_J0946.6+1016_daily_bin22.fits scfile=/scratch/kocevski/494874/ft2_4FGL_J0946.6+1016_daily_bin22.fits outfile=/scratch/kocevski/494874/cmap_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=146.661 yref=10.277 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494874/ft1_filtered_4FGL_J0946.6+1016_daily_bin22.fits scfile=/scratch/kocevski/494874/ft2_4FGL_J0946.6+1016_daily_bin22.fits outfile=/scratch/kocevski/494874/cmap_HighResolution_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=146.661 yref=10.277 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2984       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38758E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2714       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    250.15       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3660       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6540       1.0000         .10000E-03   10000.    
     9 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    106.14       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3228       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .66303       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=   5204.341     FROM MIGRAD    STATUS=CONVERGED    295 CALLS     1459 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2987        5.4234        .98977E-06    .12879E-03
   2  Prefactor     .10000E-03    1.9887        .98554E-06** at limit **
   3  Prefactor     5.2695        10.520        .49942E-05   -.17825E-03
   4  norm          .10000E-03    .51122        .95131E-07** at limit **
   5  Prefactor     250.13        138.93       -.16768E-04   -.34301E-04
   6  norm          1.3660        .67845        .19098E-06   -.10331E-02
   7  Prefactor     12.059        36.691        .96319E-04   -.10576E-04
   8  Prefactor     6.6541        8.3456       -.15761E-05   -.78695E-04
   9  norm          .10000E-03    9.7485       -.17371E-06** at limit **
  10  Prefactor     26.360        13.679       -.15815E-05   -.95769E-04
  11  Prefactor     106.16        71.257        .18417E-04   -.40267E-04
  12  Prefactor     27.369        27.607       -.48940E-05   -.12819E-04
  13  Prefactor     .10000E-03    69.802        .56064E-05** at limit **
  14  Prefactor     .10000E-03    11.960       -.48888E-06** at limit **
  15  Normalizat    1.3230        .19538       -.79799E-05    .21787E-04
  16  Prefactor     .66282        .16190       -.41264E-06   -.58370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.29873
  Prefactor  = 0.000100003
  Prefactor  = 5.26952
  norm       = 0.0001
  Prefactor  = 250.126
  norm       = 1.36601
  Prefactor  = 12.0589
  Prefactor  = 6.65405
  norm       = 0.0001
  Prefactor  = 26.3602
  Prefactor  = 106.16
  Prefactor  = 27.3685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.323
  Prefactor  = 0.662816
 **********
 **   18 **HESSE 
 **********

 FCN=   5204.341     FROM HESSE     STATUS=OK           203 CALLS     1662 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2987        5.4286        .16593E-03   -1.5248    
   2  Prefactor     .10000E-03    9.1583        .19419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2695        10.486        .17506E-03   -1.5249    
   4  norm          .10000E-03    .53109        .10060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     250.13        138.98        .12806E-03   -1.2532    
   6  norm          1.3660        .66952        .40042E-04   -1.5474    
   7  Prefactor     12.059        36.654        .11560E-03   -1.5013    
   8  Prefactor     6.6541        8.3384        .15556E-03   -1.5192    
   9  norm          .10000E-03    9.7598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.360        13.669        .78025E-04   -1.4681    
  11  Prefactor     106.16        71.308        .39034E-04   -1.3644    
  12  Prefactor     27.369        27.612        .76570E-04   -1.4661    
  13  Prefactor     .10000E-03    69.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3230        .22957        .22287E-03   -.82883    
  16  Prefactor     .66282        .19035        .25736E-03   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61272e-09
Minuit parameter uncertainties:
  1  5.42907
  2  0.000328295
  3  10.4894
  4  6.96134e-06
  5  139.165
  6  0.669523
  7  36.7225
  8  8.3399
  9  0.000108201
  10  13.6709
  11  71.3655
  12  27.6249
  13  0.000350308
  14  3.37949e-05
  15  0.22975
  16  0.190536
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  6.961e-06  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:  6.628e-01  1.905e-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.323e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/494874/likelihoodResults_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.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) = 5204.34962497
delta logL = -0.00874847833347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5204.34087761
delta logL = -1.11502140498e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3563       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66285       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=   5204.341     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      220 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60939        .15473E-01** at limit **
   2  alpha         3.3945        2.7581        .41238       -.12003E-06
   3  Normalizat    1.3230        .64685E-02    .50413E-01    .51484E-04
   4  Prefactor     .66283        .55048E-02    .41905E-01    .26706E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.39455
  Normalizat = 1.32298
  Prefactor  = 0.662829
 **********
 **   18 **HESSE 
 **********

 FCN=   5204.341     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0577        .81300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3945        3.7965        .16495        .36593    
   3  Normalizat    1.3230        .22226        .22288E-03   -.82883    
   4  Prefactor     .66283        .18905        .25736E-03   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18457e-10
Minuit parameter uncertainties:
  1  1.74081e-05
  2  167.792
  3  0.222421
  4  0.189235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494874': 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) = 5204.34085256
delta logL = 2.39341534325e-05

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  1.741e-05  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  3.395e+00  1.678e+02  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:  6.628e-01  1.892e-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.323e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.661 10.277

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/494874/cmap_HighResolution_245030401_245289601_4FGL_J0946.6+1016_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-01 01:55:23.562898', job_id='494874', GAL2='0.66', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630486523.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.39e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='22' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:55:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 494874: <4FGL_J0946.6+1016_daily_bin22> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin22> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 01:45:49 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 01:45:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 01:45:50 2021
Terminated at Wed Sep  1 01:55:24 2021
Results reported at Wed Sep  1 01:55:24 2021

Your job looked like:

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

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

