/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 8 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin214
RA = 152.704, Dec = -1.9817
tmin = 294796801, tmax = 295056001
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='702419', job_status='RUN', time_executed='2021-09-01 12:16:05.035946', time_epoch_executed='1630523765.04' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702419/ft1_4FGL_J1010.8-0158_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702419/ft1_4FGL_J1010.8-0158_daily_bin214.fits outfile=/scratch/kocevski/702419/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin214.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=294796801.0 tmax=295056001.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 2.38
user 2.16
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702419/ft1_filtered_4FGL_J1010.8-0158_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/702419/ltcube_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.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/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits
.....................!
real 13.45
user 13.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702419/ft1_filtered_4FGL_J1010.8-0158_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/702419/ltcube_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.fits outfile=/scratch/kocevski/702419/expmap_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.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/702419/ltcube_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.fits
.....................!
real 189.75
user 184.88
sys 4.45

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/702419/ft1_filtered_4FGL_J1010.8-0158_daily_bin214.fits scfile=/scratch/kocevski/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits outfile=/scratch/kocevski/702419/cmap_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702419/ft1_filtered_4FGL_J1010.8-0158_daily_bin214.fits scfile=/scratch/kocevski/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits outfile=/scratch/kocevski/702419/cmap_HighResolution_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702419/ft1_filtered_4FGL_J1010.8-0158_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/702419/ft2_4FGL_J1010.8-0158_daily_bin214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702419/Model_4FGL_J1010.8-0158_daily_bin214.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/702419/ft1_filtered_4FGL_J1010.8-0158_daily_bin214.fits.....................!
real 70.93
user 69.61
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.545       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3985       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.062       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2880       1.0000         .10000E-03   10000.    
     9 'norm      '    37.455       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.187       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1689       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99334       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4997       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71341       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=   7129.001     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1861 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.340       -.15931E-06** at limit **
   2  Prefactor     13.534        15.126        .11702E-05    .17143E-03
   3  norm          4.3985        2.9035        .45030E-07    .51940E-04
   4  norm          .10000E-03    .20558       -.12724E-08** at limit **
   5  norm          .10000E-03    .42412       -.14985E-06** at limit **
   6  Prefactor     14.564        11.314        .21038E-06    .21376E-04
   7  Prefactor     22.055        31.574        .22206E-05    .29413E-03
   8  Prefactor     5.2738        37.498        .42100E-05    .16869E-03
   9  norm          37.455        18.825       -.25884E-06   -.91737E-04
  10  Prefactor     .10000E-03    5.0526        .19468E-05** at limit **
  11  Prefactor     25.375        53.100        .59329E-05    .25551E-03
  12  Prefactor     .10000E-03    23.600        .26043E-05** at limit **
  13  Prefactor     .10000E-03    6.8260        .14414E-05** at limit **
  14  norm          .10000E-03    .64921       -.12449E-06** at limit **
  15  Prefactor     33.184        9.1779        .27453E-06    .45182E-03
  16  Prefactor     1.1687        1.5862        .18949E-06    .73887E-03
  17  Prefactor     .99372        9.0765        .91163E-05   -.29331E-03
  18  Normalizat    1.5002        .22986       -.43169E-05    .60537E-03
  19  Prefactor     .71302        .16187        .34063E-05    .46746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.5341
  norm       = 4.39847
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.564
  Prefactor  = 22.0549
  Prefactor  = 5.27381
  norm       = 37.4546
  Prefactor  = 0.000100003
  Prefactor  = 25.3748
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 33.1842
  Prefactor  = 1.16873
  Prefactor  = 0.993717
  Normalizat = 1.50023
  Prefactor  = 0.713017
 **********
 **   18 **HESSE 
 **********

 FCN=   7129.001     FROM HESSE     STATUS=OK           264 CALLS     2125 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.534        15.125        .10883E-03   -1.4972    
   3  norm          4.3985        2.9049        .11366E-03   -1.5288    
   4  norm          .10000E-03    .20572        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .42656        .53748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.564        11.310        .10494E-03   -1.4945    
   7  Prefactor     22.055        31.640        .85276E-04   -1.4768    
   8  Prefactor     5.2738        37.744        .17478E-03   -1.5249    
   9  norm          37.455        18.841        .65488E-04   -1.4483    
  10  Prefactor     .10000E-03    5.2004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.375        53.723        .79460E-04   -1.4700    
  12  Prefactor     .10000E-03    23.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.9016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0427        .13133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.184        9.1635        .69558E-04   -1.4555    
  16  Prefactor     1.1687        1.5593        .12092E-03   -1.5492    
  17  Prefactor     .99372        9.2400        .24638E-02   -1.5509    
  18  Normalizat    1.5002        .23290        .24989E-03   -.77772    
  19  Prefactor     .71302        .16443        .25790E-03   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39343e-09
Minuit parameter uncertainties:
  1  1.56383e-05
  2  15.1297
  3  2.90496
  4  1.12631e-07
  5  5.55875e-06
  6  11.3112
  7  31.6645
  8  28.2425
  9  18.8438
  10  0.000228638
  11  53.8255
  12  0.000643672
  13  0.000194841
  14  3.98526e-06
  15  9.1639
  16  1.55939
  17  6.06127
  18  0.233063
  19  0.164542
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  2.205e+01  3.166e+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:  7.130e-01  1.645e-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.500e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/702419/likelihoodResults_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.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) = 7128.71258754
delta logL = 0.288736260237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7128.70373035
delta logL = 0.297593455663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.841       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7863       1.0000          .0000       10.000    
     3 'Normalizat'    1.5166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70468       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=   7128.704     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      224 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.841        32.192        .20509E-02    .45044E-03
   2  Index         1.7862        .62037        .27185       -.55991E-04
   3  Normalizat    1.5170        .18773        .56257E-01    .62723E-05
   4  Prefactor     .70465        .13984        .42463E-01    .27109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8414
  Index      = 1.78619
  Normalizat = 1.51702
  Prefactor  = 0.70465
 **********
 **   18 **HESSE 
 **********

 FCN=   7128.704     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.841        34.087        .82037E-04   -1.4731    
   2  Index         1.7862        .84804        .12502E-01   -.69810    
   3  Normalizat    1.5170        .21839        .24875E-03   -.77301    
   4  Prefactor     .70465        .16265        .25921E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02291e-09
Minuit parameter uncertainties:
  1  34.1147
  2  0.855125
  3  0.218524
  4  0.162763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702419': 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) = 7128.7037255
delta logL = 0.297598304561

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  2.384e+01  3.411e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  1.786e+00  8.551e-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:  7.046e-01  1.628e-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.517e+00  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 1.79 +/- 0.86
Photon Flux (Free Index): 1.09e-08 +/- 1.99e-08
Energy Flux (Free Index): 1.35e-05 +/- 2.43e-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/702419/cmap_HighResolution_294796801_295056001_4FGL_J1010.8-0158_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='2.98e-01', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-01 12:25:58.851824', photon_index_error2='0.86', photon_index2='1.79', ts='0.72', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.43e-05', EG='1.50', time_epoch_completed='1630524358.85', return_code='0', job_id='702419', GAL2='0.70', EG2='1.52', return_code2='0', photon_flux_error2='1.99e-08', ts2='1.32', photon_index='2.54' WHERE bin_id='214' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:25:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 702419: <4FGL_J1010.8-0158_daily_bin214> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin214> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:15:37 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:15:46 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:15:46 2021
Terminated at Wed Sep  1 12:25:59 2021
Results reported at Wed Sep  1 12:25:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin214 152.704 -1.9817 294796801 295056001 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 :                                   592.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            622 sec.

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

