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


Performing analysis on: 4FGL_J1011.3-0427_daily_bin1025
RA = 152.825, Dec = -4.4577
tmin = 505008001, tmax = 505267201
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='712891', job_status='RUN', time_executed='2021-09-01 12:53:26.494462', time_epoch_executed='1630526006.49' WHERE source_name='4FGL J1011.3-0427' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712891/ft1_4FGL_J1011.3-0427_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712891/ft1_4FGL_J1011.3-0427_daily_bin1025.fits outfile=/scratch/kocevski/712891/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1025.fits ra=152.825 dec=-4.4577 rad=12.0 tmin=505008001.0 tmax=505267201.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.57
user 4.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.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/712891/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.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/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/712891/ltcube_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.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/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits
.....................!
real 12.12
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/712891/ltcube_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.fits outfile=/scratch/kocevski/712891/expmap_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.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/712891/ltcube_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.fits
.....................!
real 192.61
user 185.96
sys 5.43

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/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.fits scfile=/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits outfile=/scratch/kocevski/712891/cmap_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.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.90
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.fits scfile=/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits outfile=/scratch/kocevski/712891/cmap_HighResolution_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.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.68
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/712891/ft2_4FGL_J1011.3-0427_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712891/Model_4FGL_J1011.3-0427_daily_bin1025.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/712891/ft1_filtered_4FGL_J1011.3-0427_daily_bin1025.fits.....................!
real 83.14
user 74.40
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7116       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .30378       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3304       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11394E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8203       1.0000         .10000E-03   10000.    
    12 'norm      '    30.000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3630       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83820       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=   7433.982     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1810 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.552       -.16703E-07** at limit **
   2  Prefactor     12.979        13.628        .25085E-06   -.25386E-03
   3  Prefactor     9.7130        17.803       -.39347E-06   -.28309E-04
   4  norm          .10000E-03    4.2621        .57239E-08** at limit **
   5  norm          .30425        2.1071        .51242E-06   -.87643E-03
   6  norm          1.3302        .61838        .33019E-08   -.14705E-03
   7  norm          .10000E-03    .92130       -.19689E-07** at limit **
   8  norm          6.8241        6.5133       -.27149E-06   -.11895E-03
   9  Prefactor     .10000E-03    7.7931       -.12345E-07** at limit **
  10  Prefactor     .10001E-03    158.86       -.11829E-04** at limit **
  11  Prefactor     1.7646        76.916        .91788E-05    .38702E-04
  12  norm          30.004        17.340       -.58217E-06   -.87371E-04
  13  Prefactor     8.4528        8.7243        .45608E-06   -.63795E-03
  14  Prefactor     .10000E-03    21.524        .41676E-07** at limit **
  15  Prefactor     .10000E-03    39.257       -.29840E-06** at limit **
  16  Prefactor     .10000E-03    11.508       -.79343E-07** at limit **
  17  norm          5.4136        1.8143        .18462E-08    .26606E-04
  18  Prefactor     .10000E-03    5.7191        .10917E-07** at limit **
  19  Normalizat    1.3630        .18497       -.47800E-06    .53846E-04
  20  Prefactor     .83810        .13259        .87498E-07   -.45334E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.9788
  Prefactor  = 9.71295
  norm       = 0.0001
  norm       = 0.304254
  norm       = 1.3302
  norm       = 0.0001
  norm       = 6.82406
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 1.76464
  norm       = 30.004
  Prefactor  = 8.45283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.41361
  Prefactor  = 0.0001
  Normalizat = 1.36295
  Prefactor  = 0.838104
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.982     FROM HESSE     STATUS=OK           293 CALLS     2103 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.979        13.919        .55594E-03   -1.4987    
   3  Prefactor     9.7130        17.802        .12859E-03   -1.5085    
   4  norm          .10000E-03    4.3153        .17382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30425        3.7784        .31736E-03   -1.5598    
   6  norm          1.3302        .60827        .44042E-04   -1.5477    
   7  norm          .10000E-03    1.7502        .16029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8241        6.5292        .15360E-03   -1.5185    
   9  Prefactor     .10000E-03    7.8361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    169.69        .41349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7646        79.890        .30950E-03   -1.5442    
  12  norm          30.004        17.331        .73149E-04   -1.4612    
  13  Prefactor     8.4528        9.5445        .68923E-03   -1.5126    
  14  Prefactor     .10000E-03    21.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4136        1.8142        .64306E-04   -1.5243    
  18  Prefactor     .10000E-03    5.8856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3630        .21850        .25520E-03   -.81706    
  20  Prefactor     .83810        .15639        .23252E-03   -.98339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8307e-09
Minuit parameter uncertainties:
  1  1.39517e-06
  2  13.9223
  3  17.8117
  4  2.11381e-06
  5  2.14421
  6  0.608268
  7  2.66178e-06
  8  6.52991
  9  9.23014e-06
  10  0.00265804
  11  23.78
  12  17.3336
  13  9.54626
  14  7.40019e-06
  15  1.75302e-05
  16  1.53258e-07
  17  1.81423
  18  4.77919e-06
  19  0.218653
  20  0.156476
Done.

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

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  1.765e+00  2.378e+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:  8.381e-01  1.565e-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.363e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 152.825 -4.458
Photon Flux Upper Limit: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712891/likelihoodResults_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.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) = 7433.51911277
delta logL = 0.462494399608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7433.45166288
delta logL = 0.529944285052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1526       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7608       1.0000          .0000       10.000    
     3 'Normalizat'    1.2922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87011       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=   7433.452     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1518        30.810        .10767E-02    .29177E-03
   2  Index         4.7611        3.9849        .13529        .16706E-03
   3  Normalizat    1.2923        .59332E-01    .59008E-01    .45028E-05
   4  Prefactor     .87011        .41864E-01    .44623E-01    .50734E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1518
  Index      = 4.76106
  Normalizat = 1.29225
  Prefactor  = 0.870112
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.452     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1518        58.365        .43068E-04   -1.5493    
   2  Index         4.7611        7.3679        .74765E-02   -.47807E-01
   3  Normalizat    1.2923        .18599        .26097E-03   -.83798    
   4  Prefactor     .87011        .13352        .22865E-03   -.97193    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69443e-09
Minuit parameter uncertainties:
  1  16.4144
  2  8.10892
  3  0.186085
  4  0.13357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712891': 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) = 7433.4516628
delta logL = 0.529944366479

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  1.152e+00  1.641e+01  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  4.761e+00  8.109e+00  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:  8.701e-01  1.336e-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.292e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 152.825 -4.458
Photon Index (Free Index): 4.76 +/- 8.11
Photon Flux (Free Index): 5.46e-08 +/- 5.73e-08
Energy Flux (Free Index): 7.42e-06 +/- 8.33e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/712891/cmap_HighResolution_505008001_505267201_4FGL_J1011.3-0427_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', comment='SUCCESS', energy_flux2='7.42e-06', dlogl='5.30e-01', photon_flux2='5.46e-08', job_status='DONE', time_completed='2021-09-01 13:04:19.446394', photon_index_error2='8.11', photon_index2='4.76', ts='0.01', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.06e-08', energy_flux_error2='8.33e-06', EG='1.36', time_epoch_completed='1630526659.45', return_code='0', job_id='712891', GAL2='0.87', EG2='1.29', return_code2='102', photon_flux_error2='5.73e-08', ts2='1.15', photon_index='2.56' WHERE bin_id='1025' AND source_name='4FGL J1011.3-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:04:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 712891: <4FGL_J1011.3-0427_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1011.3-0427_daily_bin1025> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 12:50:25 2021
Job was executed on host(s) <bullet0052>, 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:04:20 2021
Results reported at Wed Sep  1 13:04:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1011.3-0427_daily_bin1025 152.825 -4.4577 505008001 505267201 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 :                                   641.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

