/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 234 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin974
RA = 154.009, Dec = 5.2089
tmin = 491788801, tmax = 492048001
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='775829', job_status='RUN', time_executed='2021-09-01 16:05:44.666982', time_epoch_executed='1630537544.67' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775829/ft1_4FGL_J1016.0+0512_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775829/ft2_4FGL_J1016.0+0512_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775829/ft1_4FGL_J1016.0+0512_daily_bin974.fits outfile=/scratch/kocevski/775829/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin974.fits ra=154.009 dec=5.2089 rad=12.0 tmin=491788801.0 tmax=492048001.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.30
user 4.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775829/ft2_4FGL_J1016.0+0512_daily_bin974.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/775829/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/775829/ft1_filtered_4FGL_J1016.0+0512_daily_bin974.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775829/ft1_filtered_4FGL_J1016.0+0512_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/775829/ft2_4FGL_J1016.0+0512_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/775829/ltcube_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.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/775829/ft2_4FGL_J1016.0+0512_daily_bin974.fits
.....................!
real 14.43
user 14.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775829/ft1_filtered_4FGL_J1016.0+0512_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/775829/ft2_4FGL_J1016.0+0512_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/775829/ltcube_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.fits outfile=/scratch/kocevski/775829/expmap_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.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/775829/ltcube_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.fits
.....................!
real 190.43
user 185.07
sys 4.90

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/775829/ft1_filtered_4FGL_J1016.0+0512_daily_bin974.fits scfile=/scratch/kocevski/775829/ft2_4FGL_J1016.0+0512_daily_bin974.fits outfile=/scratch/kocevski/775829/cmap_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775829/ft1_filtered_4FGL_J1016.0+0512_daily_bin974.fits scfile=/scratch/kocevski/775829/ft2_4FGL_J1016.0+0512_daily_bin974.fits outfile=/scratch/kocevski/775829/cmap_HighResolution_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.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.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8265       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3539       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6841       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15247E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4043       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24149E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4410       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.298       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.7049       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79261       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=   9461.294     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1762 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8281        1.8017       -.11706E-06    .13869E-03
   2  norm          1.3541        .50025       -.20725E-07    .94253E-04
   3  Prefactor     8.8156        10.139       -.30917E-06    .37290E-04
   4  Prefactor     33.403        31.156       -.72190E-06    .23741E-04
   5  Prefactor     .10000E-03    22.952        .78676E-06** at limit **
   6  norm          .10000E-03    5.3137       -.71559E-06** at limit **
   7  Prefactor     3.6918        8.0509       -.35212E-06    .75561E-04
   8  Prefactor     28.534        63.932       -.14098E-05    .21766E-04
   9  Prefactor     .10000E-03    53.299       -.36366E-05** at limit **
  10  Prefactor     .10000E-03    6.0909       -.77642E-06** at limit **
  11  norm          1.4050        1.2200        .10090E-06    .51745E-03
  12  Prefactor     4.6877        5.5794        .87120E-07    .22479E-03
  13  Prefactor     .10029E-03    1.8001       -.93705E-06** at limit **
  14  Prefactor     4.4464        7.2267        .52040E-06    .43413E-03
  15  norm          1.2489        .68163       -.20650E-08    .50537E-03
  16  Prefactor     13.299        9.8358       -.12513E-06    .11445E-03
  17  Normalizat    1.7038        .23616        .54912E-05    .40625E-03
  18  Prefactor     .79342        .17598       -.51268E-05    .41994E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.82812
  norm       = 1.3541
  Prefactor  = 8.81561
  Prefactor  = 33.4028
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.69178
  Prefactor  = 28.5345
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.405
  Prefactor  = 4.6877
  Prefactor  = 0.000100288
  Prefactor  = 4.44642
  norm       = 1.24888
  Prefactor  = 13.2989
  Normalizat = 1.70377
  Prefactor  = 0.793417
 **********
 **   18 **HESSE 
 **********

 FCN=   9461.294     FROM HESSE     STATUS=OK           254 CALLS     2016 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8281        1.8016        .68352E-04   -1.5225    
   2  norm          1.3541        .49711        .39756E-04   -1.5475    
   3  Prefactor     8.8156        10.120        .13506E-03   -1.5114    
   4  Prefactor     33.403        31.158        .69343E-04   -1.4551    
   5  Prefactor     .10000E-03    23.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6918        7.9764        .21042E-03   -1.5324    
   8  Prefactor     28.534        63.982        .74892E-04   -1.4639    
   9  Prefactor     .10000E-03    54.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4050        1.2027        .94337E-04   -1.5471    
  12  Prefactor     4.6877        5.5713        .18591E-03   -1.5275    
  13  Prefactor     .10029E-03    41.750        .22900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4464        7.1821        .19109E-03   -1.5286    
  15  norm          1.2489        .67826        .52236E-04   -1.5484    
  16  Prefactor     13.299        9.9191        .10984E-03   -1.4978    
  17  Normalizat    1.7038        .23841        .26401E-03   -.72203    
  18  Prefactor     .79342        .17636        .29225E-03   -.99971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60566e-09
Minuit parameter uncertainties:
  1  1.80162
  2  0.497116
  3  10.1223
  4  31.1728
  5  9.39697e-05
  6  4.81852e-05
  7  7.9787
  8  64.1366
  9  0.000704141
  10  5.56291e-05
  11  1.20273
  12  5.57196
  13  0.00693513
  14  7.18354
  15  0.678264
  16  9.92037
  17  0.238571
  18  0.176488
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  3.692e+00  7.979e+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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.934e-01  1.765e-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.704e+00  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 7.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775829/likelihoodResults_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.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) = 9460.43930887
delta logL = 0.854599151084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9460.42126177
delta logL = 0.872646250202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4220       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5193       1.0000          .0000       10.000    
     3 'Normalizat'    1.6197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83572       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=   9460.421     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      302 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4190        40.478        .36271E-04    .12537E-03
   2  Index         3.5202        6.6918        .55381E-02    .61161E-04
   3  Normalizat    1.6199        .24613        .26922E-03    .15118E-04
   4  Prefactor     .83549        .18874        .28549E-03   -.40539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41899
  Index      = 3.52019
  Normalizat = 1.6199
  Prefactor  = 0.835488
 **********
 **   18 **HESSE 
 **********

 FCN=   9460.421     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4190        2.9328        .14509E-05   -1.5470    
   2  Index         3.5202        .94838        .22152E-03   -.30046    
   3  Normalizat    1.6199        .23140        .10769E-04   -.74463    
   4  Prefactor     .83549        .17882        .11420E-04   -.98433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16861e-11
Minuit parameter uncertainties:
  1  2.93312
  2  0.954723
  3  0.231556
  4  0.17894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775829': 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) = 9460.42126024
delta logL = 0.872647785634

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  1.419e+00  2.933e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  3.520e+00  9.547e-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:  8.355e-01  1.789e-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.620e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 154.009 5.209
Photon Index (Free Index): 3.52 +/- 0.95
Photon Flux (Free Index): 7.35e-08 +/- 6.21e-08
Energy Flux (Free Index): 1.22e-05 +/- 9.71e-06

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/775829/cmap_HighResolution_491788801_492048001_4FGL_J1016.0+0512_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='8.73e-01', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-01 16:17:04.773065', photon_index_error2='0.95', photon_index2='3.52', ts='0.30', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='7.82e-08', energy_flux_error2='9.71e-06', EG='1.70', time_epoch_completed='1630538224.77', return_code='0', job_id='775829', GAL2='0.84', EG2='1.62', return_code2='0', photon_flux_error2='6.21e-08', ts2='2.17', photon_index='2.22' WHERE bin_id='974' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 775829: <4FGL_J1016.0+0512_daily_bin974> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin974> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 16:00:31 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:01:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:01:41 2021
Terminated at Wed Sep  1 16:17:05 2021
Results reported at Wed Sep  1 16:17:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin974 154.009 5.2089 491788801 492048001 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 :                                   674.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            994 sec.

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

