/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7452
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin1397
RA = 152.704, Dec = -1.9817
tmin = 601430401, tmax = 601689601
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='707093', job_status='RUN', time_executed='2021-09-01 12:32:35.675291', time_epoch_executed='1630524755.68' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707093/ft1_4FGL_J1010.8-0158_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707093/ft1_4FGL_J1010.8-0158_daily_bin1397.fits outfile=/scratch/kocevski/707093/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1397.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=601430401.0 tmax=601689601.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.60
user 3.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.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/707093/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/707093/ltcube_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.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/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits
.....................!
real 11.91
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/707093/ltcube_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.fits outfile=/scratch/kocevski/707093/expmap_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.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/707093/ltcube_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.fits
.....................!
real 193.03
user 186.71
sys 5.70

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1010.8-0158 @ 152.704 -1.9817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits scfile=/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits outfile=/scratch/kocevski/707093/cmap_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.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.704 yref=-1.9817 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits scfile=/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits outfile=/scratch/kocevski/707093/cmap_HighResolution_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.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.704 yref=-1.9817 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707093/Model_4FGL_J1010.8-0158_daily_bin1397.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/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits.....................!
real 63.04
user 61.57
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits', '/scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits', expMap='/scratch/kocevski/707093/expmap_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.fits', expCube='/scratch/kocevski/707093/ltcube_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707093/Model_4FGL_J1010.8-0158_daily_bin1397.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1010.8-0158'

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  9.399e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  7.428e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/707093/ft1_filtered_4FGL_J1010.8-0158_daily_bin1397.fits
Spacecraft file(s): /scratch/kocevski/707093/ft2_4FGL_J1010.8-0158_daily_bin1397.fits
Exposure map: /scratch/kocevski/707093/expmap_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.fits
Exposure cube: /scratch/kocevski/707093/ltcube_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707093/Model_4FGL_J1010.8-0158_daily_bin1397.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) = 6488.4635028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.526       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .71641       1.0000         .10000E-03   10000.    
     5 'norm      '    .83267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.118       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28521E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5150       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5940       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .68085       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+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=   6488.384     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     2219 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8377        36.729        .16620E-03    .68405E-07
   2  Prefactor     11.530        13.653        .11800E-03    .10598E-05
   3  norm          .10000E-03    3.9474        .30559E-02** at limit **
   4  norm          .71641        .47886        .44878E-03    .41788E-03
   5  norm          .83272        1.4021        .13218E-02    .44147E-03
   6  Prefactor     9.8717        8.6503        .12754E-03   -.18719E-04
   7  Prefactor     25.766        38.452        .78889E-04    .22769E-04
   8  Prefactor     .10000E-03    56.956        .18142E-02** at limit **
   9  norm          12.121        11.476        .11507E-03    .96819E-05
  10  Prefactor     7.1045        8.2662        .15041E-03   -.42327E-05
  11  Prefactor     .10000E-03    17.949        .18142E-02** at limit **
  12  Prefactor     .10000E-03    49.933        .14344    ** at limit **
  13  Prefactor     .10000E-03    10.745        .18142E-02** at limit **
  14  norm          5.3358        1.9236        .63055E-04    .17128E-04
  15  Prefactor     .10000E-03    2.0891        .11333E-02** at limit **
  16  Prefactor     1.5150        3.7830        .22506E-03   -.59100E-04
  17  Prefactor     4.5957        11.526        .18780E-03    .29058E-04
  18  Normalizat    .68080        .22083        .31119E-03    .21555E-04
  19  Prefactor     1.1248        .16548        .19470E-03   -.11119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83771
  Prefactor  = 11.5295
  norm       = 0.0001
  norm       = 0.716408
  norm       = 0.832722
  Prefactor  = 9.87167
  Prefactor  = 25.7657
  Prefactor  = 0.0001
  norm       = 12.1211
  Prefactor  = 7.10455
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.33577
  Prefactor  = 0.0001
  Prefactor  = 1.51496
  Prefactor  = 4.59574
  Normalizat = 0.680799
  Prefactor  = 1.12478
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.384     FROM HESSE     STATUS=OK           262 CALLS     2481 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8377        36.708        .66479E-05   -1.5225    
   2  Prefactor     11.530        13.652        .47201E-05   -1.5029    
   3  norm          .10000E-03    3.9688        .61118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .71641        .47872        .17951E-04   -1.5539    
   5  norm          .83272        1.4011        .52870E-04   -1.5525    
   6  Prefactor     9.8717        8.6501        .25508E-04   -1.5079    
   7  Prefactor     25.766        38.447        .31556E-05   -1.4692    
   8  Prefactor     .10000E-03    57.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.121        11.476        .46030E-05   -1.5012    
  10  Prefactor     7.1045        8.2576        .60165E-05   -1.5175    
  11  Prefactor     .10000E-03    17.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.110        .14507       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3358        1.9235        .25222E-05   -1.5246    
  15  Prefactor     .10000E-03    2.0892        .22666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5150        3.7807        .90026E-05   -1.5462    
  17  Prefactor     4.5957        11.520        .75118E-05   -1.5279    
  18  Normalizat    .68080        .22094        .12447E-04   -1.0466    
  19  Prefactor     1.1248        .16561        .38940E-04   -.88678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82251e-11
Minuit parameter uncertainties:
  1  29.3037
  2  13.656
  3  1.12604e-06
  4  0.478726
  5  1.40115
  6  8.65122
  7  38.4835
  8  0.000113056
  9  11.4776
  10  8.25887
  11  3.91199e-06
  12  0.000103848
  13  1.74986e-06
  14  1.92357
  15  2.811e-06
  16  3.78133
  17  11.5251
  18  0.221233
  19  0.165685
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  2.577e+01  3.848e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  7.428e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.125e+00  1.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  6.808e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707093/likelihoodResults_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6488.34165314
delta logL = 0.0419095988227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6488.28029653
delta logL = 0.10326621088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2599       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1802       1.0000          .0000       10.000    
     3 'Normalizat'    .64646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6488.280     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      250 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1025        79.110        .56076E-02    .54590E-03
   2  Index         4.2112        3.3695        .20428        .84329E-04
   3  Normalizat    .64619        .41019E-01    .72038E-01    .33195E-04
   4  Prefactor     1.1480        .32297E-01    .35997E-01    .29214E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10248
  Index      = 4.21116
  Normalizat = 0.646193
  Prefactor  = 1.14804
 **********
 **   18 **HESSE 
 **********

 FCN=   6488.280     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1025        224.61        .16616E-03   -1.5356    
   2  Index         4.2112        6.6551        .70031E-02   -.15843    
   3  Normalizat    .64619        .16824        .31886E-03   -1.0606    
   4  Prefactor     1.1480        .13345        .19302E-03   -.87946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.53522e-07
Minuit parameter uncertainties:
  1  53.0035
  2  9.98392
  3  0.168373
  4  0.133488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707093': 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) = 6488.28028817
delta logL = 0.103274568317

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  3.102e+00  5.300e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  4.211e+00  9.984e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  7.428e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.148e+00  1.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  6.462e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
Ra Dec: 152.704 -1.982

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/707093/cmap_HighResolution_601430401_601689601_4FGL_J1010.8-0158_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-01 12:42:23.363143', job_id='707093', GAL2='1.15', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1630525343.36', return_code2='102', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.03e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1397' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:42:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 707093: <4FGL_J1010.8-0158_daily_bin1397> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin1397> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 12:31:30 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:31:31 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:31:31 2021
Terminated at Wed Sep  1 12:42:24 2021
Results reported at Wed Sep  1 12:42:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin1397 152.704 -1.9817 601430401 601689601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1010.8-0158 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

