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


Performing analysis on: 4FGL_J0946.6+1016_daily_bin27
RA = 146.661, Dec = 10.277
tmin = 246326401, tmax = 246585601
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='494882', job_status='RUN', time_executed='2021-09-01 01:46:33.703147', time_epoch_executed='1630485993.7' WHERE source_name='4FGL J0946.6+1016' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494882/ft1_4FGL_J0946.6+1016_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494882/ft2_4FGL_J0946.6+1016_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494882/ft1_4FGL_J0946.6+1016_daily_bin27.fits outfile=/scratch/kocevski/494882/ft1_filteredMKT_4FGL_J0946.6+1016_daily_bin27.fits ra=146.661 dec=10.277 rad=12.0 tmin=246326401.0 tmax=246585601.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.07
user 1.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494882/ft1_filtered_4FGL_J0946.6+1016_daily_bin27.fits" evtable="EVENTS" scfile=/scratch/kocevski/494882/ft2_4FGL_J0946.6+1016_daily_bin27.fits sctable="SC_DATA" outfile=/scratch/kocevski/494882/ltcube_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.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/494882/ft2_4FGL_J0946.6+1016_daily_bin27.fits
.....................!
real 12.45
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494882/ft1_filtered_4FGL_J0946.6+1016_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/494882/ft2_4FGL_J0946.6+1016_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/494882/ltcube_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.fits outfile=/scratch/kocevski/494882/expmap_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.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/494882/ltcube_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.fits
.....................!
real 191.15
user 186.48
sys 4.07

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/494882/ft1_filtered_4FGL_J0946.6+1016_daily_bin27.fits scfile=/scratch/kocevski/494882/ft2_4FGL_J0946.6+1016_daily_bin27.fits outfile=/scratch/kocevski/494882/cmap_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.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.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494882/ft1_filtered_4FGL_J0946.6+1016_daily_bin27.fits scfile=/scratch/kocevski/494882/ft2_4FGL_J0946.6+1016_daily_bin27.fits outfile=/scratch/kocevski/494882/cmap_HighResolution_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4144       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.057       1.0000         .10000E-03   10000.    
     9 'norm      '    .11546E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    110.78       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3770       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.7332       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .84911       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=   10068.99     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1578 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2091        5.2897       -.32263E-07    .13762E-04
   2  Prefactor     .10000E-03    1.3257       -.45600E-07** at limit **
   3  Prefactor     1.4113        24.666        .24807E-05   -.30926E-04
   4  norm          .10000E-03    .39987       -.28819E-07** at limit **
   5  Prefactor     .10000E-03    16.922       -.10870E-07** at limit **
   6  norm          2.1418        .60947        .56909E-08   -.24430E-03
   7  Prefactor     .10000E-03    10.577       -.49890E-07** at limit **
   8  Prefactor     24.081        13.943       -.13789E-05   -.37904E-03
   9  norm          .10150E-03    13.877        .26969E-05** at limit **
  10  Prefactor     46.528        15.466       -.42930E-06   -.33118E-03
  11  Prefactor     110.85        69.581       -.12514E-05   -.18781E-04
  12  Prefactor     .10000E-03    7.7958       -.75060E-08** at limit **
  13  Prefactor     7.3763        55.433        .72698E-06   -.28300E-04
  14  Prefactor     .10000E-03    5.1073        .97638E-07** at limit **
  15  Normalizat    1.7336        .17658       -.94298E-06   -.40019E-04
  16  Prefactor     .84879        .14576        .95958E-06   -.22413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.20912
  Prefactor  = 0.0001
  Prefactor  = 1.41133
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14179
  Prefactor  = 0.0001
  Prefactor  = 24.0807
  norm       = 0.000101499
  Prefactor  = 46.528
  Prefactor  = 110.85
  Prefactor  = 0.0001
  Prefactor  = 7.37625
  Prefactor  = 0.0001
  Normalizat = 1.73358
  Prefactor  = 0.848793
 **********
 **   18 **HESSE 
 **********

 FCN=   10068.99     FROM HESSE     STATUS=OK           207 CALLS     1785 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2091        5.2920        .17613E-03   -1.5251    
   2  Prefactor     .10000E-03    1.3684        .22554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4113        24.336        .36408E-03   -1.5470    
   4  norm          .10000E-03    .41684        .12369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1418        .60789        .40170E-04   -1.5415    
   7  Prefactor     .10000E-03    10.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.081        14.889        .81669E-04   -1.4726    
   9  norm          .10150E-03    16.413        .99129E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.528        15.527        .58779E-04   -1.4343    
  11  Prefactor     110.85        70.512        .19108E-03   -1.3598    
  12  Prefactor     .10000E-03    7.7966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3763        54.851        .14767E-03   -1.5165    
  14  Prefactor     .10000E-03    5.1110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.7336        .20659        .25330E-03   -.71410    
  16  Prefactor     .84879        .17074        .29037E-03   -.97954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35413e-10
Minuit parameter uncertainties:
  1  5.2925
  2  1.53162e-07
  3  11.7264
  4  1.4248e-06
  5  7.44985e-07
  6  0.607894
  7  5.25979e-06
  8  14.8915
  9  0.00992218
  10  15.5281
  11  70.5651
  12  7.17932e-07
  13  40.2805
  14  4.36181e-06
  15  0.206697
  16  0.170842
Done.

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

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  1.000e-04  1.425e-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:  8.488e-01  1.708e-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.734e+00  2.067e-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: 5.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494882/likelihoodResults_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.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): 102
logL (Free Index) = 10068.9995139
delta logL = -0.0111924982248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10068.8806506
delta logL = 0.107670766984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73980E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4177       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86572       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10068.88     FROM MIGRAD    STATUS=FAILED        96 CALLS      354 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74042E-01    12.530        .50653E-03    .15809E-02
   2  alpha         4.4178        2.5438        .49584        .89731E-03
   3  Normalizat    1.7009        .78138E-01    .25526E-03    .18706E-05
   4  Prefactor     .86565        .63781E-01    .28785E-03   -.21328E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10068.88     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      438 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74042E-01    12.530        .49939E-04    .15809E-02
   2  alpha         4.4178        2.5438        .61483E-02    .89731E-03
   3  Normalizat    1.7009        .78138E-01    .12017E-03    .18706E-05
   4  Prefactor     .86565        .63781E-01    .51585E-04   -.21328E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10068.88     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      510 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74033E-01    17.128        .81044E-06    .12428E-03
   2  alpha         4.4178        2.7087        .98767E-01    .66186E-05
   3  Normalizat    1.7009        .22127        .20421E-05    .31176E-04
   4  Prefactor     .86565        .16228        .23028E-05    .15798E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0740335
  alpha      = 4.41784
  Normalizat = 1.70091
  Prefactor  = 0.865649
 **********
 **   18 **HESSE 
 **********

 FCN=   10068.88     FROM HESSE     STATUS=OK            25 CALLS      535 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74033E-01    .26723        .37321E-06   -1.5654    
   2  alpha         4.4178        4.1213        .39507E-02    .87437    
   3  Normalizat    1.7009        .21286        .40842E-06   -.72279    
   4  Prefactor     .86565        .17394        .46055E-06   -.97352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10433e-12
Minuit parameter uncertainties:
  1  0.267232
  2  2.29788
  3  0.212972
  4  0.174047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494882': 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) = 10068.8806504
delta logL = 0.107670985204

Extracting fit parameters...

4FGL J0946.6+1016
   Spectrum: LogParabola
200         norm:  7.403e-02  2.672e-01  1.000e-04  1.000e+04 ( 1.000e-11)
201        alpha:  4.418e+00  2.298e+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:  8.656e-01  1.740e-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.701e+00  2.130e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/494882/cmap_HighResolution_246326401_246585601_4FGL_J0946.6+1016_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-05', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-01 01:57:37.460951', job_id='494882', GAL2='0.87', fit_tolerance='1e-08', EG2='1.70', EG='1.73', time_epoch_completed='1630486657.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.08e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='27' AND source_name='4FGL J0946.6+1016' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 01:57:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 494882: <4FGL_J0946.6+1016_daily_bin27> in cluster <slac> Done

Job <4FGL_J0946.6+1016_daily_bin27> 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) <bullet0294>, 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:57:38 2021
Results reported at Wed Sep  1 01:57:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0946.6+1016_daily_bin27 146.661 10.277 246326401 246585601 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

