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


Performing analysis on: 4FGL_J1011.3-0427_daily_bin248
RA = 152.825, Dec = -4.4577
tmin = 303609601, tmax = 303868801
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='709830', job_status='RUN', time_executed='2021-09-01 12:44:13.481061', time_epoch_executed='1630525453.48' WHERE source_name='4FGL J1011.3-0427' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/709830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/709830/ft1_4FGL_J1011.3-0427_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/709830/ft1_4FGL_J1011.3-0427_daily_bin248.fits outfile=/scratch/kocevski/709830/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin248.fits ra=152.825 dec=-4.4577 rad=12.0 tmin=303609601.0 tmax=303868801.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.53
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.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/709830/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin248.fits evtable="EVENTS" outfile="/scratch/kocevski/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.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/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/709830/ltcube_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.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/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits
.....................!
real 12.09
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/709830/ltcube_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.fits outfile=/scratch/kocevski/709830/expmap_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.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/709830/ltcube_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.fits
.....................!
real 191.81
user 186.46
sys 4.98

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

Setting source of interest to:
4FGL J1011.3-0427 @ 152.825 -4.4577

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits scfile=/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits outfile=/scratch/kocevski/709830/cmap_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.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=152.825 yref=-4.4577 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/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits scfile=/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits outfile=/scratch/kocevski/709830/cmap_HighResolution_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.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=152.825 yref=-4.4577 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/709830/Model_4FGL_J1011.3-0427_daily_bin248.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/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits.....................!
real 66.57
user 65.08
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits', '/scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits', expMap='/scratch/kocevski/709830/expmap_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.fits', expCube='/scratch/kocevski/709830/ltcube_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/709830/Model_4FGL_J1011.3-0427_daily_bin248.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1011.3-0427'

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  3.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  2.558e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
232        Scale:  7.806e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/709830/ft1_filtered_4FGL_J1011.3-0427_daily_bin248.fits
Spacecraft file(s): /scratch/kocevski/709830/ft2_4FGL_J1011.3-0427_daily_bin248.fits
Exposure map: /scratch/kocevski/709830/expmap_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.fits
Exposure cube: /scratch/kocevski/709830/ltcube_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/709830/Model_4FGL_J1011.3-0427_daily_bin248.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) = 6583.41386808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.720       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.646       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2159       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6928       1.0000         .10000E-03   10000.    
     7 'norm      '    .43867E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    13.166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16962E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.746       1.0000         .10000E-03   10000.    
    12 'norm      '    8.6086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6333       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79725       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6583.412     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2060 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.686        36.380        .69740E-05    .13831E-05
   2  Prefactor     11.900        19.282        .28025E-06   -.21657E-04
   3  Prefactor     .10000E-03    15.741        .11959E-06** at limit **
   4  norm          15.648        9.8298       -.36817E-05    .11010E-06
   5  norm          3.2159        3.1352       -.10070E-06   -.56880E-04
   6  norm          2.6927        .85816       -.41671E-07   -.91580E-04
   7  norm          .48058E-01    .98992       -.63214E-06   -.28126E-03
   8  norm          13.171        12.091        .25140E-05   -.58995E-05
   9  Prefactor     .10002E-03    49.855       -.15843E-06** at limit **
  10  Prefactor     .10000E-03    92.176        .65104E-05** at limit **
  11  Prefactor     31.764        27.551       -.54929E-05   -.59885E-05
  12  norm          8.5611        17.883       -.94027E-05   -.16896E-05
  13  Prefactor     19.288        13.955       -.24548E-05    .44198E-04
  14  Prefactor     .10003E-03    346.61       -.18721E-04** at limit **
  15  Prefactor     .10000E-03    33.465        .57660E-05** at limit **
  16  Prefactor     .10000E-03    8.3056        .28760E-06** at limit **
  17  norm          .10000E-03    .77882        .36858E-07** at limit **
  18  Prefactor     6.6337        7.7748       -.55990E-06   -.18128E-03
  19  Normalizat    .79718        .22589        .21690E-05    .94386E-06
  20  Prefactor     1.2496        .16012        .38351E-08    .12160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6855
  Prefactor  = 11.9004
  Prefactor  = 0.0001
  norm       = 15.6485
  norm       = 3.2159
  norm       = 2.69274
  norm       = 0.0480584
  norm       = 13.1714
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 31.7636
  norm       = 8.56112
  Prefactor  = 19.2879
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.63368
  Normalizat = 0.797175
  Prefactor  = 1.24958
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.412     FROM HESSE     STATUS=OK           295 CALLS     2355 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.686        36.377        .82246E-04   -1.4734    
   2  Prefactor     11.900        19.292        .11617E-03   -1.5018    
   3  Prefactor     .10000E-03    15.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.648        9.8236        .10126E-03   -1.4917    
   5  norm          3.2159        3.1307        .13741E-03   -1.5349    
   6  norm          2.6927        .85838        .39618E-04   -1.5380    
   7  norm          .48058E-01    4.4433        .15692E-02   -1.5664    
   8  norm          13.171        12.082        .11039E-03   -1.4982    
   9  Prefactor     .10002E-03    51.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    93.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.764        27.566        .71115E-04   -1.4580    
  12  norm          8.5611        17.855        .13662E-03   -1.5123    
  13  Prefactor     19.288        13.945        .91162E-04   -1.4829    
  14  Prefactor     .10003E-03    348.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .80603        .13952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6337        7.7832        .15581E-03   -1.5193    
  19  Normalizat    .79718        .25757        .34116E-03   -1.0017    
  20  Prefactor     1.2496        .18378        .20866E-03   -.84819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61348e-08
Minuit parameter uncertainties:
  1  36.4115
  2  19.302
  3  2.82674e-06
  4  9.8246
  5  3.13088
  6  0.85838
  7  0.92331
  8  12.084
  9  0.00218468
  10  0.000347786
  11  27.5775
  12  17.8659
  13  13.9478
  14  0.00693055
  15  0.000239468
  16  5.37658e-05
  17  2.76995e-06
  18  7.78434
  19  0.257966
  20  0.183872
Done.

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

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  3.176e+01  2.758e+01  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  2.558e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
232        Scale:  7.806e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.250e+00  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  7.972e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 152.825 -4.458
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.91e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 9.28e-06

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) = 6581.95217155
delta logL = 1.46015378164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6581.82617561
delta logL = 1.5861497272

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6581.826     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.507        16.118        .25428E-02   -.20492E-02
   2  Index         1.2521        .38735        .22329       -.61945E-04
   3  Normalizat    .83057        .21048        .75612E-01    .33780E-04
   4  Prefactor     1.2391        .15829        .33770E-01    .34822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5066
  Index      = 1.25212
  Normalizat = 0.830571
  Prefactor  = 1.23915
 **********
 **   18 **HESSE 
 **********

 FCN=   6581.826     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.507        24.317        .10171E-03   -1.4920    
   2  Index         1.2521        .65090        .88470E-02   -.84742    
   3  Normalizat    .83057        .24041        .33466E-03   -.98945    
   4  Prefactor     1.2391        .18121        .20940E-03   -.85135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86127e-08
Minuit parameter uncertainties:
  1  24.3321
  2  0.655172
  3  0.24072
  4  0.181297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/709830': 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) = 6581.82617135
delta logL = 1.58615398879

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  1.551e+01  2.433e+01  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  1.252e+00  6.552e-01  0.000e+00  1.000e+01 (-1.000e+00)
232        Scale:  7.806e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.239e+00  1.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  8.306e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.84
Ra Dec: 152.825 -4.458
Photon Index (Free Index): 1.25 +/- 0.66
Photon Flux (Free Index): 6.65e-09 +/- 9.01e-09
Energy Flux (Free Index): 4.74e-05 +/- 7.05e-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/709830/cmap_HighResolution_303609601_303868801_4FGL_J1011.3-0427_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.91e-08', energy_flux2='4.74e-05', photon_flux_error='3.39e-08', dlogl='1.59e+00', energy_flux='1.07e-05', photon_flux2='6.65e-09', job_status='DONE', time_completed='2021-09-01 12:53:25.524043', photon_index_error2='0.66', photon_index2='1.25', ts='4.69', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='7.05e-05', EG='0.80', time_epoch_completed='1630526005.52', return_code='0', job_id='709830', GAL2='1.24', EG2='0.83', return_code2='0', energy_flux_error='9.28e-06', photon_flux_error2='9.01e-09', ts2='7.84', photon_index='2.56' WHERE bin_id='248' AND source_name='4FGL J1011.3-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:53:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 709830: <4FGL_J1011.3-0427_daily_bin248> in cluster <slac> Done

Job <4FGL_J1011.3-0427_daily_bin248> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 12:40:33 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:40:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:40:34 2021
Terminated at Wed Sep  1 12:53:26 2021
Results reported at Wed Sep  1 12:53:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1011.3-0427_daily_bin248 152.825 -4.4577 303609601 303868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1011.3-0427 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

