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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin1048
RA = 152.704, Dec = -1.9817
tmin = 510969601, tmax = 511228801
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='706588', job_status='RUN', time_executed='2021-09-01 12:34:00.586213', time_epoch_executed='1630524840.59' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706588/ft1_4FGL_J1010.8-0158_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706588/ft1_4FGL_J1010.8-0158_daily_bin1048.fits outfile=/scratch/kocevski/706588/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1048.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=510969601.0 tmax=511228801.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.50
user 3.23
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706588/ft1_filtered_4FGL_J1010.8-0158_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/706588/ltcube_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.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/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits
.....................!
real 11.88
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706588/ft1_filtered_4FGL_J1010.8-0158_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/706588/ltcube_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.fits outfile=/scratch/kocevski/706588/expmap_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.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/706588/ltcube_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.fits
.....................!
real 190.65
user 185.74
sys 4.48

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/706588/ft1_filtered_4FGL_J1010.8-0158_daily_bin1048.fits scfile=/scratch/kocevski/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits outfile=/scratch/kocevski/706588/cmap_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706588/ft1_filtered_4FGL_J1010.8-0158_daily_bin1048.fits scfile=/scratch/kocevski/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits outfile=/scratch/kocevski/706588/cmap_HighResolution_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706588/ft1_filtered_4FGL_J1010.8-0158_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/706588/ft2_4FGL_J1010.8-0158_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706588/Model_4FGL_J1010.8-0158_daily_bin1048.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/706588/ft1_filtered_4FGL_J1010.8-0158_daily_bin1048.fits.....................!
real 51.54
user 50.10
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.437       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .63692       1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9840       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6026       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8538       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7608       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93877       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90825       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=   4720.331     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1925 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    127.74        .90712E-02** at limit **
   2  Prefactor     11.436        16.188        .29614E-02   -.10631E-03
   3  norm          .10000E-03    1.4358        .90712E-02** at limit **
   4  norm          .63660        .67535        .11745E-01    .90802E-03
   5  norm          .10000E-03    1.5003        .45683E-01** at limit **
   6  Prefactor     .10000E-03    3.4105        .90712E-02** at limit **
   7  Prefactor     .10003E-03    32.528        .90712E-02** at limit **
   8  Prefactor     8.9805        44.353        .33430E-02    .59860E-03
   9  norm          .10000E-03    4.7386        .90712E-02** at limit **
  10  Prefactor     8.3082        10.840        .34768E-02   -.10611E-02
  11  Prefactor     .10000E-03    31.025        .90712E-02** at limit **
  12  Prefactor     .10001E-03    34.529        .90712E-02** at limit **
  13  Prefactor     .10000E-03    10.143        .90712E-02** at limit **
  14  norm          2.6026        1.5027        .63220E-02    .11128E-04
  15  Prefactor     1.0146        4.7740        .13038E-01    .84022E-03
  16  Prefactor     6.8540        4.3618        .38313E-02    .13606E-03
  17  Prefactor     2.7603        17.380        .61243E-02    .16003E-03
  18  Normalizat    .93881        .21318        .45395E-01    .91844E-04
  19  Prefactor     .90822        .15375        .45110E-01    .73029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.4361
  norm       = 0.0001
  norm       = 0.636598
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 8.98046
  norm       = 0.0001
  Prefactor  = 8.30816
  Prefactor  = 0.000100005
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 2.60257
  Prefactor  = 1.01464
  Prefactor  = 6.85397
  Prefactor  = 2.76026
  Normalizat = 0.938815
  Prefactor  = 0.908225
 **********
 **   18 **HESSE 
 **********

 FCN=   4720.331     FROM HESSE     STATUS=OK           270 CALLS     2195 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    129.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.436        16.157        .11846E-03   -1.5031    
   3  norm          .10000E-03    1.4417        .80379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .63660        .64163        .53889E-03   -1.5548    
   5  norm          .10000E-03    5.7138        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4121        .12391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    32.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.9805        44.691        .13372E-03   -1.5109    
   9  norm          .10000E-03    4.7397        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3082        10.834        .13907E-03   -1.5131    
  11  Prefactor     .10000E-03    31.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    34.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6026        1.4991        .61501E-04   -1.5385    
  15  Prefactor     1.0146        4.6656        .28710E-03   -1.5507    
  16  Prefactor     6.8540        4.3272        .10417E-03   -1.5184    
  17  Prefactor     2.7603        17.149        .24497E-03   -1.5376    
  18  Normalizat    .93881        .24769        .26362E-03   -.95109    
  19  Prefactor     .90822        .17893        .20529E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0191e-09
Minuit parameter uncertainties:
  1  0.000124801
  2  16.1629
  3  3.93119e-06
  4  0.641637
  5  9.05896e-06
  6  1.51463e-06
  7  0.00194752
  8  40.115
  9  1.11475e-06
  10  10.8364
  11  0.000786661
  12  0.00134223
  13  6.66249e-06
  14  1.49912
  15  4.35185
  16  4.32737
  17  13.7657
  18  0.247995
  19  0.179049
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.948e-03  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.082e-01  1.790e-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.388e-01  2.480e-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: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706588/likelihoodResults_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.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) = 4720.33102802
delta logL = -0.000146224865603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4720.330882
delta logL = -2.02683622774e-07

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     '    2.4608       1.0000          .0000       10.000    
     3 'Normalizat'    .93882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90823       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=   4720.331     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2163.1        .90712E-02** at limit **
   2  Index         2.4969        6.0522        .50000       -.11680E-04
   3  Normalizat    .93881        .49458E-01    .45396E-01   -.41572E-06
   4  Prefactor     .90823        .38133E-01    .45110E-01   -.28682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.49686
  Normalizat = 0.938814
  Prefactor  = 0.908225
 **********
 **   18 **HESSE 
 **********

 FCN=   4720.331     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7696.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4969        5.8547        .50000       -.52432    
   3  Normalizat    .93881        .14663        .26362E-03   -.95109    
   4  Prefactor     .90823        .11312        .20529E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.5657e-08
Minuit parameter uncertainties:
  1  0.00369155
  2  65.0295
  3  0.146689
  4  0.113147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706588': 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) = 4720.33088191
delta logL = -1.05686922325e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  9.082e-01  1.131e-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.388e-01  1.467e-01  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/706588/cmap_HighResolution_510969601_511228801_4FGL_J1010.8-0158_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-01 12:42:16.790583', job_id='706588', GAL2='0.91', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630525336.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1048' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:42:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 706588: <4FGL_J1010.8-0158_daily_bin1048> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin1048> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 12:30:47 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:30:49 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:30:49 2021
Terminated at Wed Sep  1 12:42:17 2021
Results reported at Wed Sep  1 12:42:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin1048 152.704 -1.9817 510969601 511228801 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 :                                   493.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

