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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin572
RA = 152.704, Dec = -1.9817
tmin = 387590401, tmax = 387849601
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='704005', job_status='RUN', time_executed='2021-09-01 12:24:18.187150', time_epoch_executed='1630524258.19' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/704005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/704005/ft1_4FGL_J1010.8-0158_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/704005/ft1_4FGL_J1010.8-0158_daily_bin572.fits outfile=/scratch/kocevski/704005/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin572.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=387590401.0 tmax=387849601.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.31
user 3.10
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/704005/ft1_filtered_4FGL_J1010.8-0158_daily_bin572.fits" evtable="EVENTS" scfile=/scratch/kocevski/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits sctable="SC_DATA" outfile=/scratch/kocevski/704005/ltcube_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.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/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits
.....................!
real 14.84
user 14.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/704005/ft1_filtered_4FGL_J1010.8-0158_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/704005/ltcube_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.fits outfile=/scratch/kocevski/704005/expmap_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.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/704005/ltcube_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.fits
.....................!
real 191.54
user 186.01
sys 5.14

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/704005/ft1_filtered_4FGL_J1010.8-0158_daily_bin572.fits scfile=/scratch/kocevski/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits outfile=/scratch/kocevski/704005/cmap_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/704005/ft1_filtered_4FGL_J1010.8-0158_daily_bin572.fits scfile=/scratch/kocevski/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits outfile=/scratch/kocevski/704005/cmap_HighResolution_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/704005/ft1_filtered_4FGL_J1010.8-0158_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/704005/ft2_4FGL_J1010.8-0158_daily_bin572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/704005/Model_4FGL_J1010.8-0158_daily_bin572.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/704005/ft1_filtered_4FGL_J1010.8-0158_daily_bin572.fits.....................!
real 65.94
user 64.48
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.0259       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8649       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7814       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.563       1.0000         .10000E-03   10000.    
     9 'norm      '    21.286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2172       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7866       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98675       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97622       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=   6700.382     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1879 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.788        47.152       -.27716E-05   -.18154E-03
   2  Prefactor     .10000E-03    11.766        .71885E-06** at limit **
   3  norm          4.0262        3.6096       -.46184E-07   -.51154E-04
   4  norm          1.8652        .73868        .83006E-08   -.49285E-04
   5  norm          4.7816        2.3027        .91168E-08    .14766E-04
   6  Prefactor     14.095        11.307        .69093E-07   -.61142E-04
   7  Prefactor     .10000E-03    20.570        .39204E-06** at limit **
   8  Prefactor     12.549        29.490       -.24981E-05   -.90393E-04
   9  norm          21.285        16.147       -.79577E-06   -.10542E-04
  10  Prefactor     6.2148        8.5286        .30338E-05   -.27207E-03
  11  Prefactor     .10000E-03    12.519       -.10179E-05** at limit **
  12  Prefactor     .10000E-03    26.547       -.78426E-06** at limit **
  13  Prefactor     .10000E-03    5.8714       -.20527E-06** at limit **
  14  norm          .10000E-03    .32212        .18811E-07** at limit **
  15  Prefactor     .10000E-03    1.8668        .28522E-07** at limit **
  16  Prefactor     6.0739        3.0980       -.62137E-07   -.26166E-04
  17  Prefactor     5.7873        7.4216        .27524E-07   -.20242E-04
  18  Normalizat    .98653        .19313        .64552E-06   -.43014E-04
  19  Prefactor     .97638        .14595       -.44780E-06    .25821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.7877
  Prefactor  = 0.0001
  norm       = 4.0262
  norm       = 1.86516
  norm       = 4.78156
  Prefactor  = 14.0955
  Prefactor  = 0.0001
  Prefactor  = 12.5493
  norm       = 21.2849
  Prefactor  = 6.21477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07388
  Prefactor  = 5.78729
  Normalizat = 0.986535
  Prefactor  = 0.976385
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.382     FROM HESSE     STATUS=OK           270 CALLS     2149 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.788        48.884        .51452E-04   -1.4147    
   2  Prefactor     .10000E-03    11.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0262        3.6116        .14247E-03   -1.5307    
   4  norm          1.8652        .73429        .41380E-04   -1.5435    
   5  norm          4.7816        2.3029        .83346E-04   -1.5271    
   6  Prefactor     14.095        11.320        .53345E-03   -1.4957    
   7  Prefactor     .10000E-03    20.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.549        30.023        .11301E-03   -1.4999    
   9  norm          21.285        16.156        .86816E-04   -1.4785    
  10  Prefactor     6.2148        8.7776        .80499E-03   -1.5209    
  11  Prefactor     .10000E-03    12.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .32911        .45340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8805        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0739        3.0977        .98580E-04   -1.5215    
  17  Prefactor     5.7873        7.4206        .16696E-03   -1.5227    
  18  Normalizat    .98653        .22494        .27906E-03   -.93483    
  19  Prefactor     .97638        .16996        .22049E-03   -.93521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36581e-10
Minuit parameter uncertainties:
  1  48.9165
  2  7.47458e-05
  3  3.61181
  4  0.734296
  5  2.30293
  6  11.3214
  7  8.06417e-05
  8  30.059
  9  16.159
  10  8.77942
  11  0.000100405
  12  0.000162198
  13  2.61322e-05
  14  5.34976e-07
  15  1.89723e-07
  16  3.09777
  17  7.42178
  18  0.225157
  19  0.170052
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  8.064e-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.764e-01  1.701e-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:  9.865e-01  2.252e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/704005/likelihoodResults_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.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) = 6700.3824943
delta logL = -0.000230814236602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6700.38226342
delta logL = 6.63030732539e-08

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 'Index     '    3.4889       1.0000          .0000       10.000    
     3 'Normalizat'    .98653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97638       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=   6700.382     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      230 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.634        .90712E-02** at limit **
   2  Index         3.4885        6.2260        .50000        .11576E-06
   3  Normalizat    .98654        .36384E-02    .45998E-01    .39467E-04
   4  Prefactor     .97638        .28763E-02    .45971E-01    .24520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.48851
  Normalizat = 0.986535
  Prefactor  = 0.976384
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.382     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    959.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4885        6.5237        .50000       -.30710    
   3  Normalizat    .98654        .33321E-01    .27905E-03   -.93483    
   4  Prefactor     .97638        .26338E-01    .22049E-03   -.93521    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72743e-11
Minuit parameter uncertainties:
  1  0.00117405
  2  1381.53
  3  0.0333217
  4  0.0263384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/704005': 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) = 6700.38226342
delta logL = 6.82957761455e-08

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.174e-03  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  3.489e+00  1.382e+03  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.764e-01  2.634e-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:  9.865e-01  3.332e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/704005/cmap_HighResolution_387590401_387849601_4FGL_J1010.8-0158_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-01 12:33:50.250050', job_id='704005', GAL2='0.98', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630524830.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='572' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:33:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 704005: <4FGL_J1010.8-0158_daily_bin572> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin572> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:20:49 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:20:56 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:20:56 2021
Terminated at Wed Sep  1 12:33:51 2021
Results reported at Wed Sep  1 12:33:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin572 152.704 -1.9817 387590401 387849601 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 :                                   571.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            782 sec.

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

