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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin256
RA = 154.009, Dec = 5.2089
tmin = 305683201, tmax = 305942401
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='771115', job_status='RUN', time_executed='2021-09-01 15:47:46.250875', time_epoch_executed='1630536466.25' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771115

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771115/ft1_4FGL_J1016.0+0512_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771115/ft2_4FGL_J1016.0+0512_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771115/ft1_4FGL_J1016.0+0512_daily_bin256.fits outfile=/scratch/kocevski/771115/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin256.fits ra=154.009 dec=5.2089 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.73
user 4.45
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771115/ft1_filtered_4FGL_J1016.0+0512_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/771115/ft2_4FGL_J1016.0+0512_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/771115/ltcube_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.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/771115/ft2_4FGL_J1016.0+0512_daily_bin256.fits
.....................!
real 13.09
user 12.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771115/ft1_filtered_4FGL_J1016.0+0512_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/771115/ft2_4FGL_J1016.0+0512_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/771115/ltcube_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.fits outfile=/scratch/kocevski/771115/expmap_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.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/771115/ltcube_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.fits
.....................!
real 193.41
user 186.53
sys 6.23

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/771115/ft1_filtered_4FGL_J1016.0+0512_daily_bin256.fits scfile=/scratch/kocevski/771115/ft2_4FGL_J1016.0+0512_daily_bin256.fits outfile=/scratch/kocevski/771115/cmap_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771115/ft1_filtered_4FGL_J1016.0+0512_daily_bin256.fits scfile=/scratch/kocevski/771115/ft2_4FGL_J1016.0+0512_daily_bin256.fits outfile=/scratch/kocevski/771115/cmap_HighResolution_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    98.604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3047       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21674E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.915       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3041       1.0000         .10000E-03   10000.    
    15 'norm      '    .67811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17667E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0258       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2413       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=   5727.631     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2341 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11716E-02    1.9470        .19063E-01** at limit **
   2  norm          4.3828        1.0930        .37687E-04   -.41328E-04
   3  Prefactor     46.253        20.383        .58949E-04    .26036E-04
   4  Prefactor     98.594        53.426        .40483E-04    .25331E-04
   5  Prefactor     .10000E-03    14.232        .18142E-02** at limit **
   6  norm          .10000E-03    8.6668        .18142E-02** at limit **
   7  Prefactor     2.3094        12.360        .27030E-03    .24815E-05
   8  Prefactor     .10000E-03    56.032        .18142E-02** at limit **
   9  Prefactor     .10000E-03    104.54        .18142E-02** at limit **
  10  Prefactor     26.906        23.945        .77219E-04   -.41371E-04
  11  norm          .10000E-03    .39190        .46105E-03** at limit **
  12  Prefactor     .10000E-03    5.1518        .16694E-02** at limit **
  13  Prefactor     .10000E-03    1.4823        .89607E-03** at limit **
  14  Prefactor     6.3020        7.9070        .15987E-03    .75521E-04
  15  norm          .67627        .72301        .55669E-03    .28562E-03
  16  Prefactor     .10000E-03    23.187        .62392E-01** at limit **
  17  Normalizat    1.0252        .25679        .30326E-03   -.76664E-04
  18  Prefactor     1.2417        .21269        .23964E-03    .13287E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00117157
  norm       = 4.38285
  Prefactor  = 46.2535
  Prefactor  = 98.5936
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.30938
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 26.9059
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.30197
  norm       = 0.676273
  Prefactor  = 0.0001
  Normalizat = 1.02519
  Prefactor  = 1.24175
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.631     FROM HESSE     STATUS=OK           248 CALLS     2589 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11716E-02    1.2567        .24928E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3828        1.0929        .15075E-05   -1.5289    
   3  Prefactor     46.253        20.380        .23580E-05   -1.4347    
   4  Prefactor     98.594        53.423        .80966E-05   -1.3719    
   5  Prefactor     .10000E-03    14.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.6669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3094        12.344        .10812E-04   -1.5404    
   8  Prefactor     .10000E-03    56.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    104.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.906        23.932        .30887E-05   -1.4670    
  11  norm          .10000E-03    .39190        .92209E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1534        .33388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4824        .17921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3020        7.9057        .63948E-05   -1.5206    
  15  norm          .67627        .71301        .22267E-04   -1.5544    
  16  Prefactor     .10000E-03    17.481        .73330E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0252        .25670        .12130E-04   -.92191    
  18  Prefactor     1.2417        .21287        .47927E-04   -.85056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8502e-10
Minuit parameter uncertainties:
  1  0.073394
  2  1.09292
  3  20.3831
  4  53.4486
  5  3.20406e-05
  6  2.38753e-05
  7  10.6816
  8  0.000209525
  9  0.000959828
  10  23.9401
  11  2.05268e-06
  12  1.84187e-05
  13  5.42739e-06
  14  7.90698
  15  0.713023
  16  0.000144579
  17  0.257006
  18  0.213014
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.309e+00  1.068e+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:  1.242e+00  2.130e-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.025e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/771115/likelihoodResults_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.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) = 5727.60050592
delta logL = 0.0303372533645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5727.59948244
delta logL = 0.0313607248636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0002       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6754       1.0000          .0000       10.000    
     3 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2449       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=   5727.599     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0018        216.34        .73210E-02    .65645E-03
   2  Index         2.6720        6.3316        .22963        .54101E-04
   3  Normalizat    1.0176        .43179E-01    .68760E-01    .27265E-04
   4  Prefactor     1.2446        .35599E-01    .54136E-01    .15140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00181
  Index      = 2.67197
  Normalizat = 1.0176
  Prefactor  = 1.24464
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.599     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0018        10.087        .29284E-03   -1.5425    
   2  Index         2.6720        1.9933        .12095E-01   -.48432    
   3  Normalizat    1.0176        .24896        .30419E-03   -.92443    
   4  Prefactor     1.2446        .21251        .23935E-03   -.84968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28052e-11
Minuit parameter uncertainties:
  1  8.98927
  2  2.06776
  3  0.249245
  4  0.212657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771115': 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) = 5727.59947809
delta logL = 0.0313650771195

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.002e+00  8.989e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  2.672e+00  2.068e+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:  1.245e+00  2.127e-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.018e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 154.009 5.209

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/771115/cmap_HighResolution_305683201_305942401_4FGL_J1016.0+0512_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 15:57:11.189399', job_id='771115', GAL2='1.24', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1630537031.19', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.14e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='256' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 15:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 771115: <4FGL_J1016.0+0512_daily_bin256> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin256> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 15:45:29 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:45:47 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:45:47 2021
Terminated at Wed Sep  1 15:57:11 2021
Results reported at Wed Sep  1 15:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin256 154.009 5.2089 305683201 305942401 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 :                                   562.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            702 sec.

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

