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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin1037
RA = 152.704, Dec = -1.9817
tmin = 508118401, tmax = 508377601
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='706572', job_status='RUN', time_executed='2021-09-01 12:32:55.490887', time_epoch_executed='1630524775.49' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706572/ft1_4FGL_J1010.8-0158_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706572/ft2_4FGL_J1010.8-0158_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706572/ft1_4FGL_J1010.8-0158_daily_bin1037.fits outfile=/scratch/kocevski/706572/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1037.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=508118401.0 tmax=508377601.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.72
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706572/ft1_filtered_4FGL_J1010.8-0158_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/706572/ft2_4FGL_J1010.8-0158_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/706572/ltcube_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.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/706572/ft2_4FGL_J1010.8-0158_daily_bin1037.fits
.....................!
real 12.01
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706572/ft1_filtered_4FGL_J1010.8-0158_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/706572/ft2_4FGL_J1010.8-0158_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/706572/ltcube_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.fits outfile=/scratch/kocevski/706572/expmap_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.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/706572/ltcube_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.fits
.....................!
real 192.33
user 186.97
sys 4.63

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/706572/ft1_filtered_4FGL_J1010.8-0158_daily_bin1037.fits scfile=/scratch/kocevski/706572/ft2_4FGL_J1010.8-0158_daily_bin1037.fits outfile=/scratch/kocevski/706572/cmap_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.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.55
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706572/ft1_filtered_4FGL_J1010.8-0158_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/706572/ft2_4FGL_J1010.8-0158_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706572/Model_4FGL_J1010.8-0158_daily_bin1037.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/706572/ft1_filtered_4FGL_J1010.8-0158_daily_bin1037.fits.....................!
real 58.18
user 56.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31174E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47815E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2067       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12362E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44808E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4875       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13942E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20483E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2979       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25079E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1145       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0264       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=   5628.522     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1855 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.036        .10687E-01** at limit **
   2  Prefactor     .10000E-03    13.041        .10590E-01** at limit **
   3  norm          .10000E-03    1.8719        .90712E-02** at limit **
   4  norm          1.2065        .80931        .10309E-01   -.23825E-03
   5  norm          2.4671        2.1123        .65018E-02   -.30485E-03
   6  Prefactor     .10000E-03    8.2315        .90712E-02** at limit **
   7  Prefactor     .10000E-03    13.062        .90712E-02** at limit **
   8  Prefactor     .10000E-03    28.138        .10605E-01** at limit **
   9  norm          3.4525        11.939        .54129E-02   -.20021E-03
  10  Prefactor     .10000E-03    2.7215        .90712E-02** at limit **
  11  Prefactor     41.058        56.855        .15586E-02    .93141E-04
  12  Prefactor     .10002E-03    16.808        .90712E-02** at limit **
  13  Prefactor     .10000E-03    5.4128        .90712E-02** at limit **
  14  norm          3.2973        1.6273        .55735E-02   -.10454E-02
  15  Prefactor     .10005E-03    5.8163        .56189E-01** at limit **
  16  Prefactor     3.1475        3.5156        .57044E-02    .24705E-03
  17  Prefactor     5.1590        10.301        .44444E-02   -.27806E-03
  18  Normalizat    1.0419        .21501        .64270E-01   -.19167E-03
  19  Prefactor     1.0263        .15856        .41556E-01   -.28355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.20651
  norm       = 2.46709
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.4525
  Prefactor  = 0.0001
  Prefactor  = 41.058
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 3.29726
  Prefactor  = 0.000100048
  Prefactor  = 3.14749
  Prefactor  = 5.15898
  Normalizat = 1.04188
  Prefactor  = 1.02629
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.522     FROM HESSE     STATUS=OK           264 CALLS     2119 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.064        .21374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.166        .21179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8817        .10022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2065        .79475        .51365E-04   -1.5488    
   5  norm          2.4671        2.1185        .97431E-04   -1.5394    
   6  Prefactor     .10000E-03    8.2472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.247        .21211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4525        11.891        .21652E-03   -1.5336    
  10  Prefactor     .10000E-03    2.7225        .12086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.058        57.113        .62343E-04   -1.4426    
  12  Prefactor     .10002E-03    16.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4149        .17046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2973        1.6222        .64411E-04   -1.5345    
  15  Prefactor     .10005E-03    19.134        .34445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1475        3.5023        .14173E-03   -1.5353    
  17  Prefactor     5.1590        10.279        .17778E-03   -1.5254    
  18  Normalizat    1.0419        .25338        .28429E-03   -.91640    
  19  Prefactor     1.0263        .18768        .21867E-03   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88687e-09
Minuit parameter uncertainties:
  1  0.000613856
  2  3.22276e-05
  3  8.32098e-06
  4  0.794752
  5  2.11861
  6  8.67561e-05
  7  0.000184874
  8  0.000119218
  9  11.8995
  10  3.65841e-05
  11  57.1894
  12  0.00113055
  13  7.38329e-05
  14  1.62218
  15  0.0019143
  16  3.50255
  17  10.2825
  18  0.253679
  19  0.187795
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.849e-04  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.026e+00  1.878e-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.042e+00  2.537e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706572/likelihoodResults_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.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) = 5628.52224763
delta logL = -0.000363693343388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5628.52188393
delta logL = -2.5638655643e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5238       1.0000          .0000       10.000    
     3 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0263       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=   5628.522     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      258 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    116.27        .18142E-01** at limit **
   2  Index         1.9825        5.8957        .50000        .12813E-06
   3  Normalizat    1.0419        .14671E-01    .28429E-03    .15036E-04
   4  Prefactor     1.0263        .11275E-01    .21867E-03    .22252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 1.98248
  Normalizat = 1.04188
  Prefactor  = 1.02629
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.522     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    814.37        .28623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9825        7.7492        .50000       -.64789    
   3  Normalizat    1.0419        .41540E-01    .11371E-04   -.91640    
   4  Prefactor     1.0263        .31923E-01    .87467E-05   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37262e-08
Minuit parameter uncertainties:
  1  0.00543278
  2  1890.75
  3  0.041541
  4  0.031924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706572': 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) = 5628.52188338
delta logL = 5.50848199055e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.026e+00  3.192e-02  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.042e+00  4.154e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.704 -1.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/706572/cmap_HighResolution_508118401_508377601_4FGL_J1010.8-0158_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-09-01 12:41:48.618241', job_id='706572', GAL2='1.03', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630525308.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1037' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:41:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 706572: <4FGL_J1010.8-0158_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin1037 152.704 -1.9817 508118401 508377601 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 :                                   528.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

