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


Performing analysis on: 4FGL_J1011.3-0427_daily_bin1064
RA = 152.825, Dec = -4.4577
tmin = 515116801, tmax = 515376001
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='712949', job_status='RUN', time_executed='2021-09-01 12:50:46.289955', time_epoch_executed='1630525846.29' WHERE source_name='4FGL J1011.3-0427' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/712949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/712949/ft1_4FGL_J1011.3-0427_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/712949/ft1_4FGL_J1011.3-0427_daily_bin1064.fits outfile=/scratch/kocevski/712949/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1064.fits ra=152.825 dec=-4.4577 rad=12.0 tmin=515116801.0 tmax=515376001.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.58
user 3.30
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.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/712949/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/712949/ltcube_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.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/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits
.....................!
real 12.05
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/712949/ltcube_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.fits outfile=/scratch/kocevski/712949/expmap_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.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/712949/ltcube_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.fits
.....................!
real 190.24
user 184.94
sys 4.74

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/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.fits scfile=/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits outfile=/scratch/kocevski/712949/cmap_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.fits scfile=/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits outfile=/scratch/kocevski/712949/cmap_HighResolution_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/712949/ft2_4FGL_J1011.3-0427_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/712949/Model_4FGL_J1011.3-0427_daily_bin1064.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/712949/ft1_filtered_4FGL_J1011.3-0427_daily_bin1064.fits.....................!
real 56.45
user 55.18
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.648       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-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      '    .22709       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8020       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.441       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15480E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.874       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53005E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .55301       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3077       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=   5676.761     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     2418 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.228        .18142E-02** at limit **
   2  Prefactor     14.650        14.754        .10465E-03    .76044E-04
   3  Prefactor     .10000E-03    16.838        .18142E-02** at limit **
   4  norm          .10000E-03    2.6097        .11883E-02** at limit **
   5  norm          .10000E-03    1.1568        .79028E-03** at limit **
   6  norm          .22723        .69832        .84257E-03    .12896E-02
   7  norm          3.8023        2.0437        .76525E-04    .87503E-04
   8  norm          6.2039        11.677        .16114E-03   -.57427E-04
   9  Prefactor     8.2368        14.907        .13964E-03   -.86625E-04
  10  Prefactor     .10000E-03    27.165        .18142E-02** at limit **
  11  Prefactor     13.432        39.537        .10926E-03    .33922E-04
  12  norm          .10000E-03    9.8199        .18142E-02** at limit **
  13  Prefactor     .65071        124.35        .46899E-02    .30084E-03
  14  Prefactor     .10000E-03    43.670        .18142E-02** at limit **
  15  Prefactor     .10003E-03    164.36        .18142E-02** at limit **
  16  Prefactor     27.840        31.697        .75882E-04    .58880E-04
  17  norm          6.0071        2.2339        .64253E-04   -.57151E-04
  18  Prefactor     .87141E-01    7.8891        .53407E-01    .38850E-03
  19  Normalizat    .55288        .24417        .36847E-03    .61863E-04
  20  Prefactor     1.3077        .17825        .19019E-03    .47341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 14.6497
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.227231
  norm       = 3.80229
  norm       = 6.20386
  Prefactor  = 8.23678
  Prefactor  = 0.0001
  Prefactor  = 13.4322
  norm       = 0.0001
  Prefactor  = 0.650712
  Prefactor  = 0.000100001
  Prefactor  = 0.000100028
  Prefactor  = 27.8402
  norm       = 6.00712
  Prefactor  = 0.0871409
  Normalizat = 0.552881
  Prefactor  = 1.30765
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.761     FROM HESSE     STATUS=OK           285 CALLS     2703 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.650        14.751        .41860E-05   -1.4942    
   3  Prefactor     .10000E-03    16.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6098        .23766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1568        .15806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .22723        .69559        .33703E-04   -1.5613    
   7  norm          3.8023        2.0436        .30610E-05   -1.5318    
   8  norm          6.2039        11.674        .64458E-05   -1.5210    
   9  Prefactor     8.2368        14.711        .55856E-05   -1.5134    
  10  Prefactor     .10000E-03    27.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.432        39.535        .43702E-05   -1.4975    
  12  norm          .10000E-03    9.8204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .65071        102.75        .18760E-03   -1.5547    
  14  Prefactor     .10000E-03    43.671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    164.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.840        29.017        .30353E-05   -1.4652    
  17  norm          6.0071        2.2333        .25701E-05   -1.5218    
  18  Prefactor     .87141E-01    7.4389        .55586E-01   -1.5649    
  19  Normalizat    .55288        .24341        .14739E-04   -1.1002    
  20  Prefactor     1.3077        .17828        .76078E-05   -.83080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53132e-09
Minuit parameter uncertainties:
  1  0.000552399
  2  14.7548
  3  9.30835e-06
  4  4.77796e-07
  5  9.14198e-07
  6  0.695617
  7  2.04364
  8  11.6787
  9  14.7176
  10  0.0002001
  11  39.6118
  12  4.93849e-05
  13  16.3814
  14  0.000426624
  15  0.00430468
  16  29.0314
  17  2.23333
  18  1.60954
  19  0.243879
  20  0.178365
Done.

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

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  1.343e+01  3.961e+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.308e+00  1.784e-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:  5.529e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 152.825 -4.458
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/712949/likelihoodResults_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.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) = 5676.05483936
delta logL = 0.705665009771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5675.65687917
delta logL = 1.10362519359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.8632       1.0000          .0000       10.000    
     3 'Normalizat'    .47303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3541       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=   5675.657     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      436 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .49597E-04    .31807E-03** at limit **
   2  Index         9.8637        .65526        .50000       -.58290E-04
   3  Normalizat    .47309        .22088        .89557E-01    .31073E-03
   4  Prefactor     1.3539        .16784        .31728E-01    .30543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.86373
  Normalizat = 0.473091
  Prefactor  = 1.35393
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.657     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      475 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .22998E-01    .16679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8637        6.1049        .37826E-01    1.3368    
   3  Normalizat    .47309        .12608        .39680E-03   -1.1368    
   4  Prefactor     1.3539        .96139E-01    .18736E-03   -.81717    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10643e-07
Minuit parameter uncertainties:
  1  2.04482e-07
  2  5.84079
  3  0.126153
  4  0.0961514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/712949': 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) = 5675.65687348
delta logL = 1.10363088614

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  1.000e-04  2.045e-07  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  9.864e+00  5.841e+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:  1.354e+00  9.615e-02  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:  4.731e-01  1.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 152.825 -4.458
Photon Index (Free Index): 9.86 +/- 5.84
Photon Flux (Free Index): 7.39e-08 +/- 8.13e-07
Energy Flux (Free Index): 8.28e-06 +/- 9.09e-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/712949/cmap_HighResolution_515116801_515376001_4FGL_J1011.3-0427_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.97e-03', comment='SUCCESS', energy_flux2='8.28e-06', dlogl='1.10e+00', photon_flux2='7.39e-08', job_status='DONE', time_completed='2021-09-01 13:00:33.100737', photon_index_error2='5.84', photon_index2='9.86', ts='0.13', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='9.09e-05', EG='0.55', time_epoch_completed='1630526433.1', return_code='0', job_id='712949', GAL2='1.35', EG2='0.47', return_code2='102', photon_flux_error2='8.13e-07', ts2='2.49', photon_index='2.56' WHERE bin_id='1064' AND source_name='4FGL J1011.3-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 712949: <4FGL_J1011.3-0427_daily_bin1064> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1011.3-0427_daily_bin1064 152.825 -4.4577 515116801 515376001 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 :                                   582.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            605 sec.

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

