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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin392
RA = 154.009, Dec = 5.2089
tmin = 340934401, tmax = 341193601
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='772508', job_status='RUN', time_executed='2021-09-01 15:55:32.046309', time_epoch_executed='1630536932.05' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772508/ft1_4FGL_J1016.0+0512_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772508/ft1_4FGL_J1016.0+0512_daily_bin392.fits outfile=/scratch/kocevski/772508/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin392.fits ra=154.009 dec=5.2089 rad=12.0 tmin=340934401.0 tmax=341193601.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.36
user 3.14
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.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/772508/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/772508/ltcube_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.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/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits
.....................!
real 14.75
user 14.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/772508/ltcube_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.fits outfile=/scratch/kocevski/772508/expmap_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.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/772508/ltcube_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.fits
.....................!
real 193.18
user 186.54
sys 5.01

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits scfile=/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits outfile=/scratch/kocevski/772508/cmap_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.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=154.009 yref=5.2089 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits scfile=/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits outfile=/scratch/kocevski/772508/cmap_HighResolution_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.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=154.009 yref=5.2089 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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772508/Model_4FGL_J1016.0+0512_daily_bin392.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/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits.....................!
real 69.56
user 67.53
sys 1.78

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits', '/scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits', expMap='/scratch/kocevski/772508/expmap_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.fits', expCube='/scratch/kocevski/772508/ltcube_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/772508/Model_4FGL_J1016.0+0512_daily_bin392.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/772508/ft1_filtered_4FGL_J1016.0+0512_daily_bin392.fits
Spacecraft file(s): /scratch/kocevski/772508/ft2_4FGL_J1016.0+0512_daily_bin392.fits
Exposure map: /scratch/kocevski/772508/expmap_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.fits
Exposure cube: /scratch/kocevski/772508/ltcube_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/772508/Model_4FGL_J1016.0+0512_daily_bin392.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) = 6706.88171749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14976E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.970       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    143.87       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16552E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1649       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.021       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37489       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.8577       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .40033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6706.768     FROM MIGRAD    STATUS=FAILED       656 CALLS     2386 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81103        .11251E-02** at limit **
   2  norm          1.1609        .69262        .50532E-04   -.15569E-03
   3  Prefactor     .10020E-03    27.133        .76717E-01** at limit **
   4  Prefactor     .10000E-03    17.283        .18142E-02** at limit **
   5  Prefactor     52.971        36.958        .55108E-04    .15266E-04
   6  norm          .10000E-03    6.5687        .18142E-02** at limit **
   7  Prefactor     .45574        7475.6        .44404E-02    .66641E-03
   8  Prefactor     33.797        42.741        .68897E-04   -.25015E-04
   9  Prefactor     144.11        522.30        .16796E-03   -.15094E-04
  10  Prefactor     .10000E-03    35.408        .18142E-02** at limit **
  11  norm          .10000E-03    .57482        .11906E-03** at limit **
  12  Prefactor     .10000E-03    8.8236        .36285E-02** at limit **
  13  Prefactor     4.1650        3.7735        .14037E-03   -.75320E-04
  14  Prefactor     13.023        9.3321        .11101E-03   -.13386E-03
  15  norm          2.8995        .99032        .38268E-04   -.14206E-02
  16  Prefactor     .36890        73.511        .42435E-02   -.17633E-03
  17  Normalizat    1.8574        .23683        .22531E-03    .26137E-04
  18  Prefactor     .40073        .17415        .34948E-03    .10898E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6706.768     FROM SIMPLEX   STATUS=UNCHANGED    899 CALLS     3285 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81103        .16346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1609        .69262        .20985E-06   -1.5492    
   3  Prefactor     .10020E-03    27.133        .98032E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.283        .74660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.971        36.958        .19298E-06   -1.4251    
   6  norm          .10000E-03    6.5687        .31914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .45574        7475.6        .24686E-05   -1.5573    
   8  Prefactor     33.797        42.741        .19952E-06   -1.4545    
   9  Prefactor     144.11        522.30        .20003E-06   -1.3301    
  10  Prefactor     .10000E-03    35.408        .10001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .57482        .94121E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8236        .10788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1650        3.7735        .20717E-06   -1.5300    
  14  Prefactor     13.023        9.3321        .20294E-06   -1.4986    
  15  norm          2.8995        .99032        .20812E-06   -1.5367    
  16  Prefactor     .36890        73.511        .22005E-06   -1.5587    
  17  Normalizat    1.8574        .23683        .92324E-07   -.68175    
  18  Prefactor     .40073        .17415        .15813E-06   -1.1677    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6706.768     FROM MIGRAD    STATUS=CONVERGED    244 CALLS     3529 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81172        .22502E-03** at limit **
   2  norm          1.1609        .69259        .20213E-05   -.13161E-03
   3  Prefactor     .10018E-03    14.152        .80510E-01** at limit **
   4  Prefactor     .10000E-03    17.284        .36285E-03** at limit **
   5  Prefactor     52.971        36.956        .22043E-05    .12378E-04
   6  norm          .10000E-03    6.5687        .36285E-03** at limit **
   7  Prefactor     .45621        515.82        .88808E-03    .16066E-04
   8  Prefactor     33.797        41.514        .13779E-04   -.27722E-04
   9  Prefactor     144.11        159.53        .67183E-05   -.64304E-04
  10  Prefactor     .10000E-03    35.409        .36285E-03** at limit **
  11  norm          .10000E-03    .57482        .23812E-04** at limit **
  12  Prefactor     .10000E-03    8.8914        .72569E-03** at limit **
  13  Prefactor     4.1650        3.7436        .56149E-05   -.77344E-04
  14  Prefactor     13.023        9.3114        .44402E-05   -.12443E-03
  15  norm          2.8995        .94377        .76536E-05   -.13244E-02
  16  Prefactor     .36895        67.664        .16974E-03   -.19865E-03
  17  Normalizat    1.8574        .23678        .90125E-05    .13876E-04
  18  Prefactor     .40073        .17410        .13979E-04    .34157E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.1609
  Prefactor  = 0.000100177
  Prefactor  = 0.0001
  Prefactor  = 52.9708
  norm       = 0.0001
  Prefactor  = 0.456214
  Prefactor  = 33.7971
  Prefactor  = 144.106
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.16503
  Prefactor  = 13.0227
  norm       = 2.89946
  Prefactor  = 0.36895
  Normalizat = 1.85738
  Prefactor  = 0.400725
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.768     FROM HESSE     STATUS=OK           236 CALLS     3765 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81175        .45004E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1609        .69237        .40426E-06   -1.5492    
   3  Prefactor     .10018E-03    14.257        .79378E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.284        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.971        36.868        .44087E-06   -1.4251    
   6  norm          .10000E-03    6.5687        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .45621        419.16        .35523E-04   -1.5573    
   8  Prefactor     33.797        41.503        .27559E-05   -1.4545    
   9  Prefactor     144.11        144.42        .13437E-05   -1.3301    
  10  Prefactor     .10000E-03    35.409        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .57481        .47623E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8941        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1650        3.7430        .11230E-05   -1.5300    
  14  Prefactor     13.023        9.3144        .88805E-06   -1.4986    
  15  norm          2.8995        .94206        .15307E-05   -1.5367    
  16  Prefactor     .36895        67.407        .67896E-05   -1.5586    
  17  Normalizat    1.8574        .23607        .18025E-05   -.68175    
  18  Prefactor     .40073        .17378        .27959E-05   -1.1677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16013e-09
Minuit parameter uncertainties:
  1  3.82603e-06
  2  0.692377
  3  0.00318049
  4  3.91373e-06
  5  36.8839
  6  6.42844e-06
  7  27.8514
  8  41.5387
  9  144.776
  10  0.000126785
  11  9.39806e-07
  12  2.98765e-05
  13  3.74318
  14  9.31546
  15  0.942061
  16  9.98399
  17  0.236216
  18  0.174006
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  4.562e-01  2.785e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  4.007e-01  1.740e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.857e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772508/likelihoodResults_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.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) = 6705.88669036
delta logL = 0.881464897917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6705.82290727
delta logL = 0.945247990426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4058       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6580       1.0000          .0000       10.000    
     3 'Normalizat'    1.7538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6705.823     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      243 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4065        17.963        .91414E-02    .96722E-03
   2  Index         3.6579        2.4429        .89404E-01    .21371E-03
   3  Normalizat    1.7539        .53695E-01    .51952E-01   -.62193E-05
   4  Prefactor     .44932        .41851E-01    .74690E-01    .40158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40646
  Index      = 3.65787
  Normalizat = 1.7539
  Prefactor  = 0.449322
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.823     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4065        39.895        .70668E-04   -1.5471    
   2  Index         3.6579        3.9260        .44305E-02   -.27176    
   3  Normalizat    1.7539        .22527        .22966E-03   -.70873    
   4  Prefactor     .44932        .17273        .33078E-03   -1.1436    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.14399e-10
Minuit parameter uncertainties:
  1  14.992
  2  4.58972
  3  0.225405
  4  0.172929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772508': 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): 102
logL (Free Index) = 6705.82290703
delta logL = 0.945248223536

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.406e+00  1.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  3.658e+00  4.590e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  4.493e-01  1.729e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.754e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 154.009 5.209
Photon Index (Free Index): 3.66 +/- 4.59
Photon Flux (Free Index): 1.00e-07 +/- 7.85e-08
Energy Flux (Free Index): 1.60e-05 +/- 2.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/772508/cmap_HighResolution_340934401_341193601_4FGL_J1016.0+0512_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='9.45e-01', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-01 16:07:06.123920', photon_index_error2='4.59', photon_index2='3.66', ts='0.00', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='2.09e-05', EG='1.86', time_epoch_completed='1630537626.12', return_code='0', job_id='772508', GAL2='0.45', EG2='1.75', return_code2='102', photon_flux_error2='7.85e-08', ts2='2.01', photon_index='2.22' WHERE bin_id='392' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 772508: <4FGL_J1016.0+0512_daily_bin392> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin392> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 15:50:30 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:51: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 15:51:31 2021
Terminated at Wed Sep  1 16:07:06 2021
Results reported at Wed Sep  1 16:07:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin392 154.009 5.2089 340934401 341193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1016.0+0512 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            996 sec.

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

