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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin234
RA = 152.704, Dec = -1.9817
tmin = 299980801, tmax = 300240001
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='702450', job_status='RUN', time_executed='2021-09-01 12:18:34.046098', time_epoch_executed='1630523914.05' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702450/ft1_4FGL_J1010.8-0158_daily_bin234.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702450/ft1_4FGL_J1010.8-0158_daily_bin234.fits outfile=/scratch/kocevski/702450/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin234.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=299980801.0 tmax=300240001.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.41
user 3.18
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702450/ft1_filtered_4FGL_J1010.8-0158_daily_bin234.fits" evtable="EVENTS" scfile=/scratch/kocevski/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits sctable="SC_DATA" outfile=/scratch/kocevski/702450/ltcube_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.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/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits
.....................!
real 15.42
user 15.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702450/ft1_filtered_4FGL_J1010.8-0158_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits sctable="SC_DATA" expcube=/scratch/kocevski/702450/ltcube_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.fits outfile=/scratch/kocevski/702450/expmap_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.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/702450/ltcube_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.fits
.....................!
real 191.10
user 185.89
sys 4.78

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/702450/ft1_filtered_4FGL_J1010.8-0158_daily_bin234.fits scfile=/scratch/kocevski/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits outfile=/scratch/kocevski/702450/cmap_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702450/ft1_filtered_4FGL_J1010.8-0158_daily_bin234.fits scfile=/scratch/kocevski/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits outfile=/scratch/kocevski/702450/cmap_HighResolution_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702450/ft1_filtered_4FGL_J1010.8-0158_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/702450/ft2_4FGL_J1010.8-0158_daily_bin234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702450/Model_4FGL_J1010.8-0158_daily_bin234.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/702450/ft1_filtered_4FGL_J1010.8-0158_daily_bin234.fits.....................!
real 57.99
user 56.77
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.684       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6669       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2205       1.0000         .10000E-03   10000.    
     5 'norm      '    .43695E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .78418E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8555       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47543E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9409       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.061       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0962       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0123       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5733.570     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1954 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.860         .0000    ** at limit **
   2  Prefactor     11.685        17.208         .0000        .14958E-03
   3  norm          5.6656        4.5606         .0000        .32414E-03
   4  norm          5.2204        1.0856         .0000        .13842E-03
   5  norm          .10000E-03    1.1613         .0000    ** at limit **
   6  Prefactor     1.3093        27.741         .0000        .80738E-02
   7  Prefactor     31.997        50.097         .0000        .13557E-02
   8  Prefactor     .10000E-03    28.789         .0000    ** at limit **
   9  norm          .10574E-03    12.717         .0000    ** at limit **
  10  Prefactor     .10000E-03    6.9926         .0000    ** at limit **
  11  Prefactor     .10012E-03    174.62         .0000    ** at limit **
  12  Prefactor     .10000E-03    21.443         .0000    ** at limit **
  13  Prefactor     7.8535        10.943         .0000       -.31731E-03
  14  norm          1.9747        1.5570         .0000        .32516E-03
  15  Prefactor     .10001E-03    6.4872         .0000    ** at limit **
  16  Prefactor     4.9404        3.8107         .0000        .16898E-03
  17  Prefactor     28.067        14.488         .0000       -.11890E-03
  18  Normalizat    1.0962        .22820         .0000        .12607E-03
  19  Prefactor     1.0124        .16829         .0000        .18172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 11.6848
  norm       = 5.66558
  norm       = 5.22039
  norm       = 0.0001
  Prefactor  = 1.30933
  Prefactor  = 31.9969
  Prefactor  = 0.0001
  norm       = 0.000105736
  Prefactor  = 0.0001
  Prefactor  = 0.000100117
  Prefactor  = 0.0001
  Prefactor  = 7.85347
  norm       = 1.97471
  Prefactor  = 0.00010001
  Prefactor  = 4.94037
  Prefactor  = 28.0666
  Normalizat = 1.09616
  Prefactor  = 1.0124
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.570     FROM HESSE     STATUS=OK           282 CALLS     2236 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.685        17.196        .11720E-03   -1.5024    
   3  norm          5.6656        4.5390        .13947E-03   -1.5232    
   4  norm          5.2204        1.0877        .33963E-04   -1.5251    
   5  norm          .10000E-03    20.775        .15648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3093        27.312        .19625E-02   -1.5479    
   7  Prefactor     31.997        49.994        .70829E-04   -1.4576    
   8  Prefactor     .10000E-03    28.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10574E-03    15.440        .85939E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    177.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8535        10.933        .14306E-03   -1.5147    
  14  norm          1.9747        1.5406        .79873E-04   -1.5427    
  15  Prefactor     .10001E-03    48.877        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9404        3.8077        .12341E-03   -1.5263    
  17  Prefactor     28.067        14.510        .75629E-04   -1.4648    
  18  Normalizat    1.0962        .26713        .29560E-03   -.89875    
  19  Prefactor     1.0124        .19730        .23487E-03   -.92317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67304e-08
Minuit parameter uncertainties:
  1  0.000567667
  2  17.2036
  3  4.53931
  4  1.08769
  5  9.48951e-05
  6  11.9659
  7  50.0595
  8  0.000175985
  9  0.0188275
  10  6.63131e-07
  11  0.00911965
  12  2.69565e-05
  13  10.9359
  14  1.54059
  15  0.00136675
  16  3.80787
  17  14.5115
  18  0.267458
  19  0.197441
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.012e+00  1.974e-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.096e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702450/likelihoodResults_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.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) = 5733.51145676
delta logL = 0.0589914983702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5733.46994889
delta logL = 0.100499376394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.477       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3385       1.0000          .0000       10.000    
     3 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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=   5733.470     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      261 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.513        147.69        .98669E-04    .27307E-04
   2  Index         3.3372        3.5356        .77604E-02    .24292E-04
   3  Normalizat    1.0640        .27246        .29941E-03   -.34338E-03
   4  Prefactor     1.0300        .20566        .23307E-03    .42752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5134
  Index      = 3.33716
  Normalizat = 1.06397
  Prefactor  = 1.03004
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.470     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.513        47.819        .39467E-05   -1.4895    
   2  Index         3.3372        1.8756        .31041E-03   -.33903    
   3  Normalizat    1.0640        .26592        .59883E-04   -.90917    
   4  Prefactor     1.0300        .19949        .46615E-04   -.91735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21806e-09
Minuit parameter uncertainties:
  1  47.9301
  2  1.92895
  3  0.266254
  4  0.199631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702450': 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) = 5733.46994839
delta logL = 0.100499869577

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.030e+00  1.996e-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.064e+00  2.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
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/702450/cmap_HighResolution_299980801_300240001_4FGL_J1010.8-0158_daily_bin234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-01 12:27:44.390076', job_id='702450', GAL2='1.03', fit_tolerance='1e-08', EG2='1.06', EG='1.10', time_epoch_completed='1630524464.39', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.00e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='234' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 702450: <4FGL_J1010.8-0158_daily_bin234> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin234> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:15:40 2021
Job was executed on host(s) <bullet0186>, 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:27:45 2021
Results reported at Wed Sep  1 12:27:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin234 152.704 -1.9817 299980801 300240001 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 :                                   550.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            725 sec.

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

