/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 180 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin18
RA = 152.704, Dec = -1.9817
tmin = 243993601, tmax = 244252801
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='700949', job_status='RUN', time_executed='2021-09-01 12:15:31.388850', time_epoch_executed='1630523731.39' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700949/ft1_4FGL_J1010.8-0158_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700949/ft1_4FGL_J1010.8-0158_daily_bin18.fits outfile=/scratch/kocevski/700949/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin18.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.48
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.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/700949/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.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.52
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/700949/ltcube_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.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/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits
.....................!
real 19.55
user 19.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/700949/ltcube_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.fits outfile=/scratch/kocevski/700949/expmap_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.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/700949/ltcube_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.fits
.....................!
real 193.64
user 187.19
sys 5.65

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/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits scfile=/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits outfile=/scratch/kocevski/700949/cmap_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits scfile=/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits outfile=/scratch/kocevski/700949/cmap_HighResolution_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.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.82
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700949/Model_4FGL_J1010.8-0158_daily_bin18.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/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits.....................!
real 87.86
user 85.49
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits', '/scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits', expMap='/scratch/kocevski/700949/expmap_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.fits', expCube='/scratch/kocevski/700949/ltcube_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700949/Model_4FGL_J1010.8-0158_daily_bin18.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/700949/ft1_filtered_4FGL_J1010.8-0158_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/700949/ft2_4FGL_J1010.8-0158_daily_bin18.fits
Exposure map: /scratch/kocevski/700949/expmap_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.fits
Exposure cube: /scratch/kocevski/700949/ltcube_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700949/Model_4FGL_J1010.8-0158_daily_bin18.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) = 8939.28806493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.6162       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4433       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .38029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    121.15       1.0000         .10000E-03   10000.    
    12 'Prefactor '    162.51       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .45324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7655       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2063       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98071       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.

 FCN=   8939.233     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1964 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.504        .14376E-06** at limit **
   2  Prefactor     .10000E-03    11.040        .11108E-06** at limit **
   3  norm          .10000E-03    .84195       -.22301E-08** at limit **
   4  norm          4.6164        .84406        .20656E-07   -.10101E-03
   5  norm          1.4431        1.2638        .98719E-08    .38092E-05
   6  Prefactor     .10000E-03    7.2527        .65174E-07** at limit **
   7  Prefactor     .10000E-03    15.549       -.15420E-06** at limit **
   8  Prefactor     .10000E-03    11.761       -.10493E-06** at limit **
   9  norm          .28943        8.1413        .68857E-06   -.15643E-03
  10  Prefactor     .10000E-03    12.638       -.34226E-05** at limit **
  11  Prefactor     121.34        75.061       -.26555E-07    .27949E-04
  12  Prefactor     162.54        65.480       -.30996E-06    .85292E-05
  13  Prefactor     .10000E-03    8.2953       -.99517E-06** at limit **
  14  norm          .45314        1.1557        .61181E-06    .32145E-05
  15  Prefactor     .10000E-03    1.9949       -.56926E-07** at limit **
  16  Prefactor     8.7653        4.3012        .85094E-07   -.16655E-04
  17  Prefactor     .10000E-03    5.1304       -.28377E-07** at limit **
  18  Normalizat    1.2060        .18218       -.66404E-06   -.23616E-04
  19  Prefactor     .98096        .13315        .23558E-06   -.96060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.61637
  norm       = 1.44314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.289433
  Prefactor  = 0.0001
  Prefactor  = 121.344
  Prefactor  = 162.544
  Prefactor  = 0.0001
  norm       = 0.453137
  Prefactor  = 0.0001
  Prefactor  = 8.7653
  Prefactor  = 0.0001
  Normalizat = 1.20599
  Prefactor  = 0.980964
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.233     FROM HESSE     STATUS=OK           268 CALLS     2232 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .84548        .84714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6164        .84717        .34908E-04   -1.5278    
   5  norm          1.4431        1.2715        .96486E-04   -1.5468    
   6  Prefactor     .10000E-03    7.3091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .28943        74.041        .49526E-02   -1.5600    
  10  Prefactor     .10000E-03    12.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     121.34        75.219        .18282E-03   -1.3500    
  12  Prefactor     162.54        65.147        .15818E-03   -1.3151    
  13  Prefactor     .10000E-03    8.2973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .45314        1.1615        .15419E-03   -1.5573    
  15  Prefactor     .10000E-03    2.0102        .13039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7653        4.3050        .13117E-03   -1.5116    
  17  Prefactor     .10000E-03    5.1674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2060        .21444        .28592E-03   -.86418    
  19  Prefactor     .98096        .15671        .23818E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00354e-10
Minuit parameter uncertainties:
  1  4.34694e-05
  2  2.02353e-05
  3  2.11515e-07
  4  0.847177
  5  1.27151
  6  1.35985e-06
  7  3.05574e-05
  8  1.63962e-05
  9  9.2685
  10  2.06964e-05
  11  75.2785
  12  65.1755
  13  5.87709e-06
  14  1.16151
  15  1.87602e-06
  16  4.30514
  17  3.3009e-08
  18  0.214597
  19  0.156785
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.056e-05  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:  9.810e-01  1.568e-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:  1.206e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700949/likelihoodResults_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.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) = 8939.23304429
delta logL = -0.00030584270462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8939.23273781
delta logL = 6.37277480564e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.9129       1.0000          .0000       10.000    
     3 'Normalizat'    1.2060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98096       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=   8939.233     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      253 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4628        .56753E-01** at limit **
   2  Index         3.9332        3.7103        .50000       -.11585E-04
   3  Normalizat    1.2060        .38724E-02    .64636E-01    .16760E-04
   4  Prefactor     .98096        .29589E-02    .46029E-01    .13701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.93323
  Normalizat = 1.20599
  Prefactor  = 0.980965
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.233     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1465.8        .33620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.9332        5.2392        .50000       -.21501    
   3  Normalizat    1.2060        .44488E-01    .28592E-03   -.86418    
   4  Prefactor     .98096        .33738E-01    .23818E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.03785e-09
Minuit parameter uncertainties:
  1  0.000770244
  2  43.4538
  3  0.0444896
  4  0.0337386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700949': 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) = 8939.23273772
delta logL = 7.21964170225e-07

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  7.702e-04  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  3.933e+00  4.345e+01  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:  9.810e-01  3.374e-02  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:  1.206e+00  4.449e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/700949/cmap_HighResolution_243993601_244252801_4FGL_J1010.8-0158_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-01 12:27:02.095409', job_id='700949', GAL2='0.98', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630524422.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='18' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 700949: <4FGL_J1010.8-0158_daily_bin18> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin18> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 12:10:59 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:12:06 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:12:06 2021
Terminated at Wed Sep  1 12:27:02 2021
Results reported at Wed Sep  1 12:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin18 152.704 -1.9817 243993601 244252801 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 :                                   689.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            963 sec.

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

