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


Performing analysis on: 4FGL_J1011.3-0427_daily_bin1432
RA = 152.825, Dec = -4.4577
tmin = 610502401, tmax = 610761601
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='714548', job_status='RUN', time_executed='2021-09-01 12:55:54.623230', time_epoch_executed='1630526154.62' WHERE source_name='4FGL J1011.3-0427' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714548

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714548/ft1_4FGL_J1011.3-0427_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714548/ft1_4FGL_J1011.3-0427_daily_bin1432.fits outfile=/scratch/kocevski/714548/ft1_filteredMKT_4FGL_J1011.3-0427_daily_bin1432.fits ra=152.825 dec=-4.4577 rad=12.0 tmin=610502401.0 tmax=610761601.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.67
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714548/ft1_filtered_4FGL_J1011.3-0427_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/714548/ltcube_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.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/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits
.....................!
real 12.46
user 12.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714548/ft1_filtered_4FGL_J1011.3-0427_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/714548/ltcube_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.fits outfile=/scratch/kocevski/714548/expmap_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.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/714548/ltcube_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.fits
.....................!
real 191.26
user 186.04
sys 4.73

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/714548/ft1_filtered_4FGL_J1011.3-0427_daily_bin1432.fits scfile=/scratch/kocevski/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits outfile=/scratch/kocevski/714548/cmap_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714548/ft1_filtered_4FGL_J1011.3-0427_daily_bin1432.fits scfile=/scratch/kocevski/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits outfile=/scratch/kocevski/714548/cmap_HighResolution_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/714548/ft1_filtered_4FGL_J1011.3-0427_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/714548/ft2_4FGL_J1011.3-0427_daily_bin1432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/714548/Model_4FGL_J1011.3-0427_daily_bin1432.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/714548/ft1_filtered_4FGL_J1011.3-0427_daily_bin1432.fits.....................!
real 70.59
user 69.14
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .82161       1.0000         .10000E-03   10000.    
     6 'norm      '    .66821       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9592       1.0000         .10000E-03   10000.    
     8 'norm      '    9.4085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.405       1.0000         .10000E-03   10000.    
    12 'norm      '    .37038       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16471E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14090E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0485       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0112       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=   6961.499     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2161 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.677        43.363        .11465E-04   -.28552E-04
   2  Prefactor     .10000E-03    8.5005        .10313E-06** at limit **
   3  Prefactor     .10000E-03    19.577        .24070E-06** at limit **
   4  norm          .10000E-03    3.3383        .76029E-07** at limit **
   5  norm          .82073        2.8888       -.78741E-06   -.13292E-02
   6  norm          .66795        .64446        .71481E-08   -.21066E-02
   7  norm          1.9590        1.3289        .96668E-07    .24835E-03
   8  norm          9.4051        9.2241        .45728E-05   -.10035E-03
   9  Prefactor     .10000E-03    8.9313       -.37595E-07** at limit **
  10  Prefactor     2.4617        81.031        .58414E-04   -.59563E-04
  11  Prefactor     66.385        40.408        .15159E-04   -.16443E-03
  12  norm          .77846E-01    14.110       -.15087E-05   -.11657E-03
  13  Prefactor     .10000E-03    6.7486       -.57111E-06** at limit **
  14  Prefactor     .10000E-03    166.51       -.29282E-04** at limit **
  15  Prefactor     32.143        48.136        .15605E-04    .12142E-03
  16  Prefactor     .10000E-03    24.619       -.18891E-05** at limit **
  17  norm          3.9056        1.8537       -.16754E-06   -.81026E-03
  18  Prefactor     .10000E-03    2.9210       -.37829E-07** at limit **
  19  Normalizat    1.0485        .19662       -.74639E-05    .16142E-03
  20  Prefactor     1.0114        .13819       -.17005E-06   -.31466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.820726
  norm       = 0.667951
  norm       = 1.95897
  norm       = 9.40509
  Prefactor  = 0.0001
  Prefactor  = 2.46174
  Prefactor  = 66.3852
  norm       = 0.0778461
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 32.143
  Prefactor  = 0.000100004
  norm       = 3.90563
  Prefactor  = 0.0001
  Normalizat = 1.04851
  Prefactor  = 1.01136
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.499     FROM HESSE     STATUS=OK           299 CALLS     2460 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.677        43.454        .65287E-04   -1.4480    
   2  Prefactor     .10000E-03    8.5460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.3539        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .82073        2.8419        .25544E-03   -1.5527    
   6  norm          .66795        .62326        .61397E-03   -1.5545    
   7  norm          1.9590        1.3375        .76859E-04   -1.5428    
   8  norm          9.4051        9.1978        .13065E-03   -1.5095    
   9  Prefactor     .10000E-03    8.9838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4617        78.732        .26058E-03   -1.5394    
  11  Prefactor     66.385        40.101        .49251E-04   -1.4077    
  12  norm          .77846E-01    17.521        .92161E-01   -1.5652    
  13  Prefactor     .10000E-03    6.7613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    167.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.143        48.446        .70960E-04   -1.4573    
  16  Prefactor     .10000E-03    24.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9056        1.8515        .74086E-04   -1.5313    
  18  Prefactor     .10000E-03    2.9459        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0485        .22994        .28162E-03   -.91422    
  20  Prefactor     1.0114        .16344        .21303E-03   -.92352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49042e-09
Minuit parameter uncertainties:
  1  43.491
  2  1.61432e-05
  3  5.05069e-05
  4  9.1081e-06
  5  2.84239
  6  0.623264
  7  1.33751
  8  9.19922
  9  6.36986e-06
  10  27.8831
  11  40.117
  12  2.33493
  13  0.000140573
  14  0.000863945
  15  48.5051
  16  0.000611504
  17  1.85156
  18  1.49887e-05
  19  0.230154
  20  0.163524
Done.

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

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  6.639e+01  4.012e+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.011e+00  1.635e-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.049e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.08
Ra Dec: 152.825 -4.458
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 8.18e-08 +/- 4.94e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.35e-05

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) = 6960.63071979
delta logL = 0.868053357744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6960.62755437
delta logL = 0.871218771316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.539       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3866       1.0000          .0000       10.000    
     3 'Normalizat'    .99487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0398       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=   6960.628     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      306 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.528        42.472        .76341E-04   -.99032E-04
   2  Index         3.3870        .94913        .45326E-02    .56841E-03
   3  Normalizat    .99482        .22534        .28779E-03    .76004E-04
   4  Prefactor     1.0398        .16523        .21039E-03   -.30314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5277
  Index      = 3.38698
  Normalizat = 0.99482
  Prefactor  = 1.0398
 **********
 **   18 **HESSE 
 **********

 FCN=   6960.628     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.528        33.761        .30536E-05   -1.4658    
   2  Index         3.3870        .75548        .90652E-03   -.32848    
   3  Normalizat    .99482        .22520        .11512E-04   -.93204    
   4  Prefactor     1.0398        .16496        .84156E-05   -.91414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93997e-11
Minuit parameter uncertainties:
  1  33.784
  2  0.758721
  3  0.225415
  4  0.165041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714548': 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) = 6960.62755411
delta logL = 0.871219031884

Extracting fit parameters...

4FGL J1011.3-0427
   Spectrum: PowerLaw
230    Prefactor:  2.753e+01  3.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
231        Index:  3.387e+00  7.587e-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.040e+00  1.650e-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:  9.948e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 152.825 -4.458
Photon Index (Free Index): 3.39 +/- 0.76
Photon Flux (Free Index): 1.22e-07 +/- 6.31e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.08e-05

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/714548/cmap_HighResolution_610502401_610761601_4FGL_J1011.3-0427_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.18e-08', energy_flux2='2.09e-05', photon_flux_error='4.94e-08', dlogl='8.71e-01', energy_flux='2.23e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-01 13:05:38.874692', photon_index_error2='0.76', photon_index2='3.39', ts='4.08', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='1.05', time_epoch_completed='1630526738.87', return_code='0', job_id='714548', GAL2='1.04', EG2='0.99', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='6.31e-08', ts2='5.99', photon_index='2.56' WHERE bin_id='1432' AND source_name='4FGL J1011.3-0427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 13:05:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 714548: <4FGL_J1011.3-0427_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1011.3-0427_daily_bin1432> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 12:55:31 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:55:44 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:55:44 2021
Terminated at Wed Sep  1 13:05:39 2021
Results reported at Wed Sep  1 13:05:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1011.3-0427_daily_bin1432 152.825 -4.4577 610502401 610761601 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 :                                   581.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             403.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            608 sec.

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

