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


Performing analysis on: 4FGL_J1011.3-0427_daily_bin1090
RA = 152.825, Dec = -4.4577
tmin = 521856001, tmax = 522115201
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='712986', job_status='RUN', time_executed='2021-09-01 12:54:01.020879', time_epoch_executed='1630526041.02' WHERE source_name='4FGL J1011.3-0427' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712986/ft1_4FGL_J1011.3-0427_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712986/ft1_4FGL_J1011.3-0427_daily_bin1090.fits outfile=/scratch/kocevski/712986/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1090.fits ra=152.825 dec=-4.4577 rad=12.0 tmin=521856001.0 tmax=522115201.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.75
user 3.53
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.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/712986/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/712986/ltcube_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.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/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits
.....................!
real 12.33
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/712986/ltcube_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.fits outfile=/scratch/kocevski/712986/expmap_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.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/712986/ltcube_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.fits
.....................!
real 191.91
user 186.46
sys 5.04

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/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.fits scfile=/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits outfile=/scratch/kocevski/712986/cmap_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.fits scfile=/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits outfile=/scratch/kocevski/712986/cmap_HighResolution_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/712986/ft2_4FGL_J1011.3-0427_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712986/Model_4FGL_J1011.3-0427_daily_bin1090.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/712986/ft1_filtered_4FGL_J1011.3-0427_daily_bin1090.fits.....................!
real 61.59
user 59.50
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12848E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7671       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.768       1.0000         .10000E-03   10000.    
    12 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60841E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.302       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.389       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0293       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1122       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=   5961.134     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2083 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32446        63.279       -.82701E-05    .39604E-03
   2  Prefactor     25.891        18.399       -.17623E-06    .37620E-06
   3  Prefactor     .10000E-03    86.737        .29356E-06** at limit **
   4  norm          .10000E-03    3.1311        .21960E-07** at limit **
   5  norm          .10000E-03    1.5536        .26751E-07** at limit **
   6  norm          .10000E-03    .30779        .16398E-07** at limit **
   7  norm          2.7670        2.0216        .25078E-09    .16957E-04
   8  norm          3.1389        7.5159        .56509E-06    .89633E-04
   9  Prefactor     8.6035        13.275       -.10715E-06    .58700E-04
  10  Prefactor     21.107        65.058       -.61363E-06    .45031E-05
  11  Prefactor     15.741        64.122       -.50181E-06   -.25855E-04
  12  norm          .10000E-03    30.668       -.20326E-05** at limit **
  13  Prefactor     2.6738        20.594        .55277E-05    .37758E-03
  14  Prefactor     66.473        82.203        .78892E-06    .11005E-03
  15  Prefactor     .10001E-03    303.24        .24560E-05** at limit **
  16  Prefactor     36.308        28.165        .15168E-05    .53723E-03
  17  norm          3.1375        1.9763        .32074E-07    .23070E-03
  18  Prefactor     17.385        10.691       -.54812E-07   -.20952E-04
  19  Normalizat    1.0296        .23065        .10621E-05    .23733E-03
  20  Prefactor     1.1121        .15833       -.77156E-06    .26806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.324464
  Prefactor  = 25.8908
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.76702
  norm       = 3.13895
  Prefactor  = 8.60348
  Prefactor  = 21.1072
  Prefactor  = 15.7408
  norm       = 0.000100002
  Prefactor  = 2.6738
  Prefactor  = 66.4727
  Prefactor  = 0.000100006
  Prefactor  = 36.3081
  norm       = 3.13747
  Prefactor  = 17.3846
  Normalizat = 1.02957
  Prefactor  = 1.11207
 **********
 **   18 **HESSE 
 **********

 FCN=   5961.134     FROM HESSE     STATUS=OK           305 CALLS     2388 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32446        39.109        .13860       -1.5594    
   2  Prefactor     25.891        18.386        .78725E-04   -1.4690    
   3  Prefactor     .10000E-03    87.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1341        .13342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5644        .93970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.4173        .81572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7670        2.0228        .90916E-04   -1.5375    
   8  norm          3.1389        7.4972        .22875E-03   -1.5354    
   9  Prefactor     8.6035        13.194        .13662E-03   -1.5121    
  10  Prefactor     21.107        64.676        .87215E-04   -1.4789    
  11  Prefactor     15.741        63.909        .10087E-03   -1.4914    
  12  norm          .10000E-03    31.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6738        19.858        .24987E-03   -1.5381    
  14  Prefactor     66.473        82.103        .49229E-04   -1.4076    
  15  Prefactor     .10001E-03    303.94        .21057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.308        27.546        .66516E-04   -1.4502    
  17  norm          3.1375        1.9675        .80476E-04   -1.5354    
  18  Prefactor     17.385        10.689        .96047E-04   -1.4874    
  19  Normalizat    1.0296        .26546        .30946E-03   -.92046    
  20  Prefactor     1.1121        .18236        .21860E-03   -.89082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76613e-09
Minuit parameter uncertainties:
  1  7.12816
  2  18.39
  3  9.60555e-05
  4  1.00611e-06
  5  1.69132e-06
  6  1.68814e-05
  7  2.02287
  8  7.49947
  9  13.1989
  10  64.8921
  11  63.5525
  12  0.000497404
  13  14.5801
  14  82.2437
  15  0.00278372
  16  27.5558
  17  1.96755
  18  10.6906
  19  0.265807
  20  0.182466
Done.

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

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  1.574e+01  6.355e+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.112e+00  1.825e-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.030e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/712986/likelihoodResults_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.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) = 5957.09951936
delta logL = 4.0342302604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5956.85673835
delta logL = 4.27701127143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23600E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9343       1.0000          .0000       10.000    
     3 'Normalizat'    .82806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2160       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=   5956.857     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      577 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22357E-03    .10618E-03    .13982E-03** at limit **
   2  Index         9.9622        .18823        .49868       -.13497E-03
   3  Normalizat    .82870        .22352        .76634E-01   -.22085E-03
   4  Prefactor     1.2156        .16262        .34263E-01   -.27586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000223572
  Index      = 9.96223
  Normalizat = 0.828697
  Prefactor  = 1.21558
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.857     FROM HESSE     STATUS=OK            33 CALLS      610 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22357E-03    .23785E-03    .69655E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9622        1.7563        .20326E-01    1.4478    
   3  Normalizat    .82870        .25564        .33921E-03   -.99013    
   4  Prefactor     1.2156        .18606        .21011E-03   -.85853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86419e-10
Minuit parameter uncertainties:
  1  0.000237852
  2  0.532641
  3  0.256009
  4  0.186163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712986': 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) = 5956.8567076
delta logL = 4.27704202041

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  2.236e-04  2.379e-04  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  9.962e+00  5.326e-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.216e+00  1.862e-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.287e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 152.825 -4.458
Photon Index (Free Index): 9.96 +/- 0.53
Photon Flux (Free Index): 2.00e-07 +/- 3.97e-07
Energy Flux (Free Index): 2.24e-05 +/- 4.45e-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/712986/cmap_HighResolution_521856001_522115201_4FGL_J1011.3-0427_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='2.24e-05', dlogl='4.28e+00', photon_flux2='2.00e-07', job_status='DONE', time_completed='2021-09-01 13:04:08.674248', photon_index_error2='0.53', photon_index2='9.96', ts='0.08', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='4.45e-05', EG='1.03', time_epoch_completed='1630526648.67', return_code='0', job_id='712986', GAL2='1.22', EG2='0.83', return_code2='0', photon_flux_error2='3.97e-07', ts2='9.30', photon_index='2.56' WHERE bin_id='1090' AND source_name='4FGL J1011.3-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:04:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 712986: <4FGL_J1011.3-0427_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1011.3-0427_daily_bin1090 152.825 -4.4577 521856001 522115201 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 :                                   597.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

