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


Performing analysis on: 4FGL_J1011.3-0427_daily_bin1020
RA = 152.825, Dec = -4.4577
tmin = 503712001, tmax = 503971201
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='712883', job_status='RUN', time_executed='2021-09-01 12:52:53.884029', time_epoch_executed='1630525973.88' WHERE source_name='4FGL J1011.3-0427' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712883/ft1_4FGL_J1011.3-0427_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712883/ft1_4FGL_J1011.3-0427_daily_bin1020.fits outfile=/scratch/kocevski/712883/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1020.fits ra=152.825 dec=-4.4577 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.53
user 5.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.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/712883/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.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/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/712883/ltcube_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.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/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits
.....................!
real 13.45
user 13.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/712883/ltcube_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.fits outfile=/scratch/kocevski/712883/expmap_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.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/712883/ltcube_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.fits
.....................!
real 193.73
user 186.23
sys 5.49

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/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits scfile=/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits outfile=/scratch/kocevski/712883/cmap_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.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.78
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits scfile=/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits outfile=/scratch/kocevski/712883/cmap_HighResolution_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.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.98
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712883/Model_4FGL_J1011.3-0427_daily_bin1020.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/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits.....................!
real 59.95
user 54.52
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits', '/scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits', expMap='/scratch/kocevski/712883/expmap_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.fits', expCube='/scratch/kocevski/712883/ltcube_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/712883/Model_4FGL_J1011.3-0427_daily_bin1020.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/712883/ft1_filtered_4FGL_J1011.3-0427_daily_bin1020.fits
Spacecraft file(s): /scratch/kocevski/712883/ft2_4FGL_J1011.3-0427_daily_bin1020.fits
Exposure map: /scratch/kocevski/712883/expmap_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.fits
Exposure cube: /scratch/kocevski/712883/ltcube_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/712883/Model_4FGL_J1011.3-0427_daily_bin1020.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) = 5216.43416519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    153.75       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    102.64       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9510       1.0000         .10000E-03   10000.    
     6 'norm      '    .21926       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.070       1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.094       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.327       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90057       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=   5216.432     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2698 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     153.75        72.741        .47691E-05   -.14280E-05
   2  Prefactor     .10000E-03    9.5845       -.11519E-06** at limit **
   3  Prefactor     102.65        58.352        .55819E-05   -.26051E-05
   4  norm          .10000E-03    2.8852       -.92186E-08** at limit **
   5  norm          6.9509        5.3076       -.35665E-06   -.19404E-03
   6  norm          .21947        .56388       -.11261E-06   -.18065E-02
   7  norm          .10000E-03    .86939       -.25292E-08** at limit **
   8  norm          .10000E-03    4.6052       -.23950E-07** at limit **
   9  Prefactor     .10000E-03    4.8460       -.49196E-07** at limit **
  10  Prefactor     30.058        73.078       -.21026E-04   -.12416E-04
  11  Prefactor     75.110        61.229        .17642E-04    .10416E-05
  12  norm          8.3857        10.415        .13095E-06    .22587E-05
  13  Prefactor     3.3807        9.0349        .52618E-06   -.17764E-03
  14  Prefactor     .10000E-03    31.986        .10606E-06** at limit **
  15  Prefactor     57.325        56.602       -.23795E-05   -.39240E-05
  16  Prefactor     .10000E-03    13.790       -.22051E-07** at limit **
  17  norm          4.0073        2.1981        .30275E-06   -.14413E-03
  18  Prefactor     .10000E-03    3.1686       -.16592E-07** at limit **
  19  Normalizat    1.0544        .23366       -.21873E-05    .36729E-04
  20  Prefactor     .90076        .15850       -.83662E-07   -.63446E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 153.754
  Prefactor  = 0.0001
  Prefactor  = 102.651
  norm       = 0.0001
  norm       = 6.95087
  norm       = 0.219467
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.058
  Prefactor  = 75.1105
  norm       = 8.38566
  Prefactor  = 3.38071
  Prefactor  = 0.0001
  Prefactor  = 57.325
  Prefactor  = 0.0001
  norm       = 4.0073
  Prefactor  = 0.0001
  Normalizat = 1.05441
  Prefactor  = 0.900758
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.432     FROM HESSE     STATUS=OK           287 CALLS     2985 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     153.75        72.836        .32510E-04   -1.3222    
   2  Prefactor     .10000E-03    9.6076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     102.65        58.309        .39686E-04   -1.3678    
   4  norm          .10000E-03    2.8878        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9509        5.3095        .13965E-03   -1.5181    
   6  norm          .21947        .54490        .82068E-04   -1.5614    
   7  norm          .10000E-03    .87786        .65720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.6115        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8540        .15527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.058        73.144        .73065E-04   -1.4611    
  11  Prefactor     75.110        60.858        .46335E-04   -1.3972    
  12  norm          8.3857        10.411        .13844E-03   -1.5129    
  13  Prefactor     3.3807        8.9877        .22005E-03   -1.5340    
  14  Prefactor     .10000E-03    31.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.325        56.453        .52984E-04   -1.4192    
  16  Prefactor     .10000E-03    13.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0073        2.1912        .73861E-04   -1.5308    
  18  Prefactor     .10000E-03    3.1804        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0544        .27758        .28765E-03   -.91229    
  20  Prefactor     .90076        .18918        .22190E-03   -.96115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20152e-10
Minuit parameter uncertainties:
  1  72.8787
  2  3.77246e-06
  3  58.342
  4  1.91818e-06
  5  5.30982
  6  0.54491
  7  1.96444e-07
  8  1.79659e-06
  9  5.29234e-06
  10  73.3631
  11  60.9088
  12  10.4135
  13  8.99131
  14  2.79528e-05
  15  56.5056
  16  5.36832e-05
  17  2.19123
  18  1.66612e-06
  19  0.27796
  20  0.18932
Done.

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

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  7.511e+01  6.091e+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:  9.008e-01  1.893e-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:  1.054e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 152.825 -4.458
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 7.50e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 2.05e-05

TS (Fixed Index): 2.40
Ra Dec: 152.825 -4.458
Photon Flux Upper Limit: 2.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712883/likelihoodResults_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.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) = 5216.22412376
delta logL = 0.208060550714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5216.21768871
delta logL = 0.214495600418

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5216.218     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      296 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.186        78.166        .58330E-04   -.52682E-03
   2  Index         3.0706        1.0980        .52614E-02   -.15884E-03
   3  Normalizat    1.0096        .27580        .29314E-03    .40334E-03
   4  Prefactor     .92495        .19397        .21937E-03   -.11505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1863
  Index      = 3.0706
  Normalizat = 1.00957
  Prefactor  = 0.924945
 **********
 **   18 **HESSE 
 **********

 FCN=   5216.218     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.186        63.998        .11666E-04   -1.4333    
   2  Index         3.0706        .89947        .21046E-03   -.39616    
   3  Normalizat    1.0096        .27452        .58629E-04   -.92710    
   4  Prefactor     .92495        .19265        .87747E-05   -.95275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99267e-09
Minuit parameter uncertainties:
  1  64.0915
  2  0.905274
  3  0.274906
  4  0.192789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712883': 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) = 5216.21768482
delta logL = 0.214499484427

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  4.719e+01  6.409e+01  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  3.071e+00  9.053e-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:  9.249e-01  1.928e-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:  1.010e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 152.825 -4.458
Photon Index (Free Index): 3.07 +/- 0.91
Photon Flux (Free Index): 1.26e-07 +/- 9.22e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.71e-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/712883/cmap_HighResolution_503712001_503971201_4FGL_J1011.3-0427_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='2.42e-05', photon_flux_error='7.50e-08', dlogl='2.14e-01', energy_flux='2.53e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-01 13:02:53.432562', photon_index_error2='0.91', photon_index2='3.07', ts='2.40', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.27e-07', energy_flux_error2='1.71e-05', EG='1.05', time_epoch_completed='1630526573.43', return_code='0', job_id='712883', GAL2='0.92', EG2='1.01', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='9.22e-08', ts2='2.91', photon_index='2.56' WHERE bin_id='1020' AND source_name='4FGL J1011.3-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:02:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 712883: <4FGL_J1011.3-0427_daily_bin1020> in cluster <slac> Done

Job <4FGL_J1011.3-0427_daily_bin1020> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 12:50:24 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:50:26 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:50:26 2021
Terminated at Wed Sep  1 13:02:54 2021
Results reported at Wed Sep  1 13:02:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1011.3-0427_daily_bin1020 152.825 -4.4577 503712001 503971201 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

