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


Performing analysis on: 4FGL_J1016.0+0512_daily_bin594
RA = 154.009, Dec = 5.2089
tmin = 393292801, tmax = 393552001
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='774052', job_status='RUN', time_executed='2021-09-01 15:59:43.716783', time_epoch_executed='1630537183.72' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774052/ft1_4FGL_J1016.0+0512_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774052/ft2_4FGL_J1016.0+0512_daily_bin594.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774052/ft1_filtered_4FGL_J1016.0+0512_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/774052/ft2_4FGL_J1016.0+0512_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/774052/ltcube_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.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/774052/ft2_4FGL_J1016.0+0512_daily_bin594.fits
.....................!
real 15.39
user 14.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774052/ft1_filtered_4FGL_J1016.0+0512_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/774052/ft2_4FGL_J1016.0+0512_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/774052/ltcube_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.fits outfile=/scratch/kocevski/774052/expmap_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.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/774052/ltcube_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.fits
.....................!
real 193.24
user 187.86
sys 4.42

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/774052/ft1_filtered_4FGL_J1016.0+0512_daily_bin594.fits scfile=/scratch/kocevski/774052/ft2_4FGL_J1016.0+0512_daily_bin594.fits outfile=/scratch/kocevski/774052/cmap_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774052/ft1_filtered_4FGL_J1016.0+0512_daily_bin594.fits scfile=/scratch/kocevski/774052/ft2_4FGL_J1016.0+0512_daily_bin594.fits outfile=/scratch/kocevski/774052/cmap_HighResolution_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.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.60
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4652       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.898       1.0000         .10000E-03   10000.    
     6 'norm      '    14.844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.019       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10541E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7247       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9094       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1432       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90291       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=   5984.679     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2214 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4648        1.4901        .59762E-04   -.17692E-04
   2  norm          1.3543        .69594        .45054E-04   -.19430E-04
   3  Prefactor     15.333        18.488        .10230E-03   -.17781E-04
   4  Prefactor     .10000E-03    24.162        .18142E-02** at limit **
   5  Prefactor     32.971        48.496        .69862E-04    .34174E-05
   6  norm          14.848        23.387        .10396E-03   -.43743E-05
   7  Prefactor     .37250        9468.9        .44879E-02    .47089E-04
   8  Prefactor     .10000E-03    24.162        .18142E-02** at limit **
   9  Prefactor     59.234        1915.7        .26112E-03    .50505E-05
  10  Prefactor     .10000E-03    15.010        .18142E-02** at limit **
  11  norm          .10000E-03    .33626        .44183E-03** at limit **
  12  Prefactor     .10000E-03    4.6110        .16315E-02** at limit **
  13  Prefactor     2.7234        2.5515        .11505E-03   -.39526E-06
  14  Prefactor     1.9137        6.2780        .15043E-02    .53892E-04
  15  norm          .10000E-03    .20764        .18142E-03** at limit **
  16  Prefactor     .10000E-03    5.7442        .18142E-02** at limit **
  17  Normalizat    1.1436        .21270        .25353E-03    .64035E-04
  18  Prefactor     .90255        .16638        .23561E-03   -.52015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46484
  norm       = 1.35428
  Prefactor  = 15.3327
  Prefactor  = 0.0001
  Prefactor  = 32.9713
  norm       = 14.8484
  Prefactor  = 0.372504
  Prefactor  = 0.0001
  Prefactor  = 59.2344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72341
  Prefactor  = 1.91368
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14358
  Prefactor  = 0.902548
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.679     FROM HESSE     STATUS=OK           230 CALLS     2444 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4648        1.5118        .23905E-05   -1.5336    
   2  norm          1.3543        .70715        .18022E-05   -1.5475    
   3  Prefactor     15.333        13.466        .40919E-05   -1.4925    
   4  Prefactor     .10000E-03    24.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.971        49.239        .27945E-05   -1.4559    
   6  norm          14.848        17.280        .41583E-05   -1.4937    
   7  Prefactor     .37250        407.25        .17952E-03   -1.5586    
   8  Prefactor     .10000E-03    24.860        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.234        114.56        .10445E-04   -1.4167    
  10  Prefactor     .10000E-03    15.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .34599        .88367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7467        .32631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7234        2.5701        .46020E-05   -1.5378    
  14  Prefactor     1.9137        6.3516        .60172E-04   -1.5431    
  15  norm          .10000E-03    .21365        .36285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1436        .22715        .10141E-04   -.88364    
  18  Prefactor     .90255        .18263        .94246E-05   -.96052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88993e-11
Minuit parameter uncertainties:
  1  1.51178
  2  0.707151
  3  13.4684
  4  4.76729e-05
  5  49.3001
  6  17.2857
  7  24.8011
  8  3.93717e-06
  9  114.991
  10  1.19291e-06
  11  3.77586e-07
  12  1.19891e-05
  13  2.5702
  14  6.35388
  15  5.46993e-08
  16  8.55478e-06
  17  0.227349
  18  0.182757
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  3.725e-01  2.480e+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:  9.025e-01  1.828e-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.144e+00  2.273e-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: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/774052/likelihoodResults_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.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) = 5984.40610445
delta logL = 0.272733470853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5984.3989525
delta logL = 0.279885416257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60248       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6074       1.0000          .0000       10.000    
     3 'Normalizat'    1.1025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92285       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=   5984.399     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      341 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60183        15.951        .11682E-01    .13704E-02
   2  Index         3.6078        2.9498        .12394        .14144E-03
   3  Normalizat    1.1025        .37277E-01    .58181E-01    .81672E-05
   4  Prefactor     .92285        .31317E-01    .45296E-01    .68336E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.601829
  Index      = 3.60779
  Normalizat = 1.10249
  Prefactor  = 0.922849
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.399     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      374 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60183        60.303        .82053E-04   -1.5553    
   2  Index         3.6078        6.4623        .67921E-02   -.28217    
   3  Normalizat    1.1025        .18467        .25730E-03   -.89672    
   4  Prefactor     .92285        .15331        .23318E-03   -.95347    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06663e-06
Minuit parameter uncertainties:
  1  12.0601
  2  8.72812
  3  0.184781
  4  0.153387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774052': 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) = 5984.39895247
delta logL = 0.279885451938

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.018e-01  1.206e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        Index:  3.608e+00  8.728e+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:  9.228e-01  1.534e-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.102e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/774052/cmap_HighResolution_393292801_393552001_4FGL_J1016.0+0512_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-01 16:09:17.574916', job_id='774052', GAL2='0.92', fit_tolerance='1e-08', EG2='1.10', EG='1.14', time_epoch_completed='1630537757.58', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.80e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='594' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:09:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 774052: <4FGL_J1016.0+0512_daily_bin594> in cluster <slac> Done

Job <4FGL_J1016.0+0512_daily_bin594> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 15:55:30 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 15:55:43 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:55:43 2021
Terminated at Wed Sep  1 16:09:18 2021
Results reported at Wed Sep  1 16:09:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_daily_bin594 154.009 5.2089 393292801 393552001 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 :                                   572.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            828 sec.

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

