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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin748
RA = 152.704, Dec = -1.9817
tmin = 433209601, tmax = 433468801
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='705315', job_status='RUN', time_executed='2021-09-01 12:29:27.814519', time_epoch_executed='1630524567.81' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705315

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705315/ft1_4FGL_J1010.8-0158_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705315/ft1_4FGL_J1010.8-0158_daily_bin748.fits outfile=/scratch/kocevski/705315/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin748.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=433209601.0 tmax=433468801.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 5.99
user 5.71
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.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/705315/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/705315/ltcube_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.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/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits
.....................!
real 12.50
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/705315/ltcube_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.fits outfile=/scratch/kocevski/705315/expmap_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.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/705315/ltcube_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.fits
.....................!
real 190.17
user 185.28
sys 4.51

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/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.fits scfile=/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits outfile=/scratch/kocevski/705315/cmap_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.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.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.fits scfile=/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits outfile=/scratch/kocevski/705315/cmap_HighResolution_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/705315/ft2_4FGL_J1010.8-0158_daily_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705315/Model_4FGL_J1010.8-0158_daily_bin748.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/705315/ft1_filtered_4FGL_J1010.8-0158_daily_bin748.fits.....................!
real 46.89
user 44.92
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8532       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.29       1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.329       1.0000         .10000E-03   10000.    
     9 'norm      '    15.738       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92794       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4957       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .53953       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=   3908.746     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1863 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.741        .10080E-06** at limit **
   2  Prefactor     .10000E-03    5.9510        .70116E-07** at limit **
   3  norm          .10000E-03    5.2852        .21792E-06** at limit **
   4  norm          2.8533        .97823       -.51010E-07    .84525E-04
   5  norm          3.0394        2.4920        .35841E-07    .32684E-04
   6  Prefactor     .10000E-03    5.7761       -.74075E-06** at limit **
   7  Prefactor     100.30        64.648       -.35841E-06    .37740E-04
   8  Prefactor     71.335        64.553       -.10642E-05    .21743E-04
   9  norm          15.734        18.083        .68838E-06    .23072E-03
  10  Prefactor     .10000E-03    10.926       -.22867E-05** at limit **
  11  Prefactor     30.207        54.560        .63598E-06    .65147E-04
  12  Prefactor     .10001E-03    54.974       -.28163E-05** at limit **
  13  Prefactor     1.1595        31.049        .76098E-05   -.42187E-03
  14  norm          2.9251        2.1454        .10841E-06    .59245E-03
  15  Prefactor     .10000E-03    5.5483        .41034E-06** at limit **
  16  Prefactor     .10000E-03    1.2717       -.14999E-06** at limit **
  17  Prefactor     .10000E-03    7.9438       -.98787E-08** at limit **
  18  Normalizat    1.4957        .26390        .60823E-05    .41597E-03
  19  Prefactor     .53944        .18735       -.58166E-05    .11189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.85335
  norm       = 3.03941
  Prefactor  = 0.0001
  Prefactor  = 100.298
  Prefactor  = 71.3345
  norm       = 15.7337
  Prefactor  = 0.000100005
  Prefactor  = 30.2071
  Prefactor  = 0.000100007
  Prefactor  = 1.15953
  norm       = 2.9251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49571
  Prefactor  = 0.539442
 **********
 **   18 **HESSE 
 **********

 FCN=   3908.746     FROM HESSE     STATUS=OK           260 CALLS     2123 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9596        .14895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.5381        .28050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8533        .97897        .34440E-04   -1.5370    
   5  norm          3.0394        2.4876        .86294E-04   -1.5359    
   6  Prefactor     .10000E-03    5.8289        .14734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.30        64.691        .40144E-04   -1.3702    
   8  Prefactor     71.335        64.819        .47533E-04   -1.4017    
   9  norm          15.734        18.165        .10096E-03   -1.4914    
  10  Prefactor     .10000E-03    11.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.207        54.763        .72796E-04   -1.4608    
  12  Prefactor     .10001E-03    55.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1595        64.284        .43924E-02   -1.5493    
  14  norm          2.9251        2.1427        .74659E-04   -1.5366    
  15  Prefactor     .10000E-03    5.5796        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2779        .68917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9724        .17210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4957        .29343        .23997E-03   -.77899    
  19  Prefactor     .53944        .20247        .27429E-03   -1.1020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94327e-09
Minuit parameter uncertainties:
  1  2.07731e-05
  2  5.15545e-06
  3  2.55008e-05
  4  0.978972
  5  2.48773
  6  9.87268e-05
  7  64.7369
  8  64.8835
  9  18.1709
  10  0.00047928
  11  54.854
  12  0.0012393
  13  17.2861
  14  2.14275
  15  4.17466e-05
  16  1.00729e-05
  17  1.02463e-05
  18  0.293766
  19  0.20274
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.003e+02  6.474e+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:  5.394e-01  2.027e-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.496e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.33
Ra Dec: 152.704 -1.982
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 6.81e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.90e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3908.49908489
delta logL = 0.247184763127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3908.48173645
delta logL = 0.264533201284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.271       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0877       1.0000          .0000       10.000    
     3 'Normalizat'    1.4342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56721       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=   3908.482     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.214        70.655        .47552E-04   -.19071E-03
   2  Index         3.0873        .84869        .47743E-02   -.12536E-03
   3  Normalizat    1.4336        .29620        .24369E-03    .10522E-03
   4  Prefactor     .56833        .20686        .26772E-03   -.10856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.2139
  Index      = 3.08727
  Normalizat = 1.43357
  Prefactor  = 0.568328
 **********
 **   18 **HESSE 
 **********

 FCN=   3908.482     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.214        64.347        .95104E-05   -1.4018    
   2  Index         3.0873        .77213        .19097E-03   -.39255    
   3  Normalizat    1.4336        .29475        .48738E-04   -.79663    
   4  Prefactor     .56833        .20630        .10709E-04   -1.0894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81206e-10
Minuit parameter uncertainties:
  1  64.41
  2  0.77577
  3  0.295104
  4  0.206574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705315': 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) = 3908.48170569
delta logL = 0.264563966633

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  7.121e+01  6.441e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  3.087e+00  7.758e-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:  5.683e-01  2.066e-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.434e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.95
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 3.09 +/- 0.78
Photon Flux (Free Index): 1.67e-07 +/- 1.18e-07
Energy Flux (Free Index): 3.20e-05 +/- 1.76e-05

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/705315/cmap_HighResolution_433209601_433468801_4FGL_J1010.8-0158_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='3.20e-05', photon_flux_error='6.81e-08', dlogl='2.65e-01', energy_flux='2.95e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-01 12:37:04.049739', photon_index_error2='0.78', photon_index2='3.09', ts='6.33', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.50', time_epoch_completed='1630525024.05', return_code='0', job_id='705315', GAL2='0.57', EG2='1.43', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='1.18e-07', ts2='6.95', photon_index='2.54' WHERE bin_id='748' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:37:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 705315: <4FGL_J1010.8-0158_daily_bin748> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin748> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 12:25:44 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:25:45 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:25:45 2021
Terminated at Wed Sep  1 12:37:04 2021
Results reported at Wed Sep  1 12:37:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin748 152.704 -1.9817 433209601 433468801 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 :                                   453.07 sec.
    Max Memory :                                 1000 MB
    Average Memory :                             254.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

