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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin166
RA = 154.009, Dec = 5.2089
tmin = 282355201, tmax = 282614401
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='769612', job_status='RUN', time_executed='2021-09-01 15:45:15.740718', time_epoch_executed='1630536315.74' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769612/ft1_4FGL_J1016.0+0512_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769612/ft1_4FGL_J1016.0+0512_daily_bin166.fits outfile=/scratch/kocevski/769612/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin166.fits ra=154.009 dec=5.2089 rad=12.0 tmin=282355201.0 tmax=282614401.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.13
user 2.86
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769612/ft1_filtered_4FGL_J1016.0+0512_daily_bin166.fits" evtable="EVENTS" scfile=/scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits sctable="SC_DATA" outfile=/scratch/kocevski/769612/ltcube_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.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/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits
.....................!
real 11.79
user 11.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769612/ft1_filtered_4FGL_J1016.0+0512_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/769612/ltcube_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.fits outfile=/scratch/kocevski/769612/expmap_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.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/769612/ltcube_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.fits
.....................!
real 154.72
user 151.17
sys 3.20

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/769612/ft1_filtered_4FGL_J1016.0+0512_daily_bin166.fits scfile=/scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits outfile=/scratch/kocevski/769612/cmap_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769612/ft1_filtered_4FGL_J1016.0+0512_daily_bin166.fits scfile=/scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits outfile=/scratch/kocevski/769612/cmap_HighResolution_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.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.49
user 0.33
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/769612/ft1_filtered_4FGL_J1016.0+0512_daily_bin166.fits', '/scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits', expMap='/scratch/kocevski/769612/expmap_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.fits', expCube='/scratch/kocevski/769612/ltcube_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/769612/Model_4FGL_J1016.0+0512_daily_bin166.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/769612/ft1_filtered_4FGL_J1016.0+0512_daily_bin166.fits
Spacecraft file(s): /scratch/kocevski/769612/ft2_4FGL_J1016.0+0512_daily_bin166.fits
Exposure map: /scratch/kocevski/769612/expmap_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.fits
Exposure cube: /scratch/kocevski/769612/ltcube_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/769612/Model_4FGL_J1016.0+0512_daily_bin166.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) = 5194.52839757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2863       1.0000         .10000E-03   10000.    
     2 'norm      '    .34339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    55.240       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5602       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50960E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.926       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4532       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7081       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0266       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2951       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .74962       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.

 FCN=   5194.505     FROM MIGRAD    STATUS=CONVERGED    345 CALLS     1762 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2865        1.3198        .37297E-07    .13702E-04
   2  norm          .34360        .56500        .24654E-06    .40569E-03
   3  Prefactor     .10000E-03    22.201       -.11926E-05** at limit **
   4  Prefactor     .10000E-03    17.175       -.24535E-07** at limit **
   5  Prefactor     .10000E-03    28.667       -.13945E-07** at limit **
   6  norm          55.225        27.094       -.10956E-05    .36121E-04
   7  Prefactor     9.5554        11.278       -.43023E-06    .51781E-04
   8  Prefactor     .10000E-03    772.41       -.25617E-04** at limit **
   9  Prefactor     51.918        50.478       -.15121E-05    .43972E-05
  10  Prefactor     .10000E-03    8.5657       -.79546E-07** at limit **
  11  norm          3.0396        1.9643        .54914E-07    .14502E-04
  12  Prefactor     .10000E-03    3.5618        .81453E-07** at limit **
  13  Prefactor     3.4542        4.2554        .99679E-07   -.54263E-05
  14  Prefactor     6.7104        9.7865        .84086E-07   -.95063E-05
  15  norm          1.0266        .59938        .66358E-08   -.28042E-04
  16  Prefactor     .10000E-03    2.6953        .65111E-09** at limit **
  17  Normalizat    1.2947        .20737       -.51909E-06   -.39332E-05
  18  Prefactor     .74987        .16781       -.66181E-06   -.19586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28653
  norm       = 0.343604
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 55.2255
  Prefactor  = 9.55537
  Prefactor  = 0.000100004
  Prefactor  = 51.918
  Prefactor  = 0.0001
  norm       = 3.03956
  Prefactor  = 0.0001
  Prefactor  = 3.45425
  Prefactor  = 6.71045
  norm       = 1.02657
  Prefactor  = 0.0001
  Normalizat = 1.29469
  Prefactor  = 0.74987
 **********
 **   18 **HESSE 
 **********

 FCN=   5194.505     FROM HESSE     STATUS=OK           248 CALLS     2010 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2865        1.3183        .60250E-04   -1.5406    
   2  norm          .34360        .55203        .66817E-03   -1.5591    
   3  Prefactor     .10000E-03    22.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          55.225        26.632        .53970E-04   -1.4220    
   7  Prefactor     9.5554        11.270        .12961E-03   -1.5090    
   8  Prefactor     .10000E-03    736.33        .42296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.918        50.410        .27828E-03   -1.4266    
  10  Prefactor     .10000E-03    8.5674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0396        1.9608        .77000E-04   -1.5359    
  12  Prefactor     .10000E-03    3.5887        .13282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4542        4.2386        .14742E-03   -1.5336    
  14  Prefactor     6.7104        9.7207        .15493E-03   -1.5190    
  15  norm          1.0266        .59570        .41113E-04   -1.5505    
  16  Prefactor     .10000E-03    2.6969        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2947        .24314        .24190E-03   -.83725    
  18  Prefactor     .74987        .19591        .25665E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17605e-11
Minuit parameter uncertainties:
  1  1.31836
  2  0.552035
  3  0.000242712
  4  2.48002e-05
  5  5.09739e-05
  6  26.6381
  7  11.2725
  8  0.00339148
  9  50.4511
  10  2.05744e-05
  11  1.96088
  12  4.52516e-06
  13  4.23897
  14  9.72298
  15  0.595699
  16  8.29404e-07
  17  0.243358
  18  0.196087
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  9.555e+00  1.127e+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:  7.499e-01  1.961e-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.295e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 154.009 5.209
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/769612/likelihoodResults_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.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) = 5193.99759415
delta logL = 0.507614682095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5193.9757647
delta logL = 0.529444137651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.000       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4949       1.0000          .0000       10.000    
     3 'Normalizat'    1.3158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73919       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.

 FCN=   5193.976     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      231 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.006        13.433        .11564E-03   -.23392E-03
   2  Index         1.4950        .61211        .98001E-02   -.54093E-04
   3  Normalizat    1.3158        .23236        .24034E-03   -.14389E-02
   4  Prefactor     .73927        .19391        .25830E-03   -.10693E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.006
  Index      = 1.49503
  Normalizat = 1.3158
  Prefactor  = 0.739267
 **********
 **   18 **HESSE 
 **********

 FCN=   5193.976     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.006        13.609        .23128E-04   -1.5015    
   2  Index         1.4950        .62015        .39201E-03   -.77679    
   3  Normalizat    1.3158        .23254        .48068E-04   -.83096    
   4  Prefactor     .73927        .19405        .51659E-04   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57095e-09
Minuit parameter uncertainties:
  1  13.613
  2  0.623319
  3  0.23272
  4  0.194232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769612': 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) = 5193.97576442
delta logL = 0.529444407877

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.201e+01  1.361e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  1.495e+00  6.233e-01  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:  7.393e-01  1.942e-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.316e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 154.009 5.209
Photon Index (Free Index): 1.50 +/- 0.62
Photon Flux (Free Index): 1.31e-08 +/- 1.90e-08
Energy Flux (Free Index): 4.22e-05 +/- 6.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/769612/cmap_HighResolution_282355201_282614401_4FGL_J1016.0+0512_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='4.22e-05', photon_flux_error='3.66e-08', dlogl='5.29e-01', energy_flux='1.34e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-01 15:52:12.730850', photon_index_error2='0.62', photon_index2='1.50', ts='1.55', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='6.40e-05', EG='1.29', time_epoch_completed='1630536732.73', return_code='0', job_id='769612', GAL2='0.74', EG2='1.32', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='1.90e-08', ts2='2.62', photon_index='2.22' WHERE bin_id='166' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 769612: <4FGL_J1016.0+0512_daily_bin166> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin166> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 15:40:54 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:42:19 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:42:19 2021
Terminated at Wed Sep  1 15:52:13 2021
Results reported at Wed Sep  1 15:52:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin166 154.009 5.2089 282355201 282614401 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 :                                   414.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            679 sec.

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

