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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin774
RA = 152.704, Dec = -1.9817
tmin = 439948801, tmax = 440208001
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='705356', job_status='RUN', time_executed='2021-09-01 12:29:18.732557', time_epoch_executed='1630524558.73' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705356

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705356/ft1_4FGL_J1010.8-0158_daily_bin774.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705356/ft1_4FGL_J1010.8-0158_daily_bin774.fits outfile=/scratch/kocevski/705356/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin774.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=439948801.0 tmax=440208001.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 4.66
user 3.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705356/ft1_filtered_4FGL_J1010.8-0158_daily_bin774.fits" evtable="EVENTS" scfile=/scratch/kocevski/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits sctable="SC_DATA" outfile=/scratch/kocevski/705356/ltcube_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.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/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits
.....................!
real 12.03
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705356/ft1_filtered_4FGL_J1010.8-0158_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/705356/ltcube_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.fits outfile=/scratch/kocevski/705356/expmap_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.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/705356/ltcube_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.fits
.....................!
real 191.29
user 185.82
sys 5.05

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/705356/ft1_filtered_4FGL_J1010.8-0158_daily_bin774.fits scfile=/scratch/kocevski/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits outfile=/scratch/kocevski/705356/cmap_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.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/705356/ft1_filtered_4FGL_J1010.8-0158_daily_bin774.fits scfile=/scratch/kocevski/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits outfile=/scratch/kocevski/705356/cmap_HighResolution_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.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.59
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705356/ft1_filtered_4FGL_J1010.8-0158_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/705356/ft2_4FGL_J1010.8-0158_daily_bin774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705356/Model_4FGL_J1010.8-0158_daily_bin774.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/705356/ft1_filtered_4FGL_J1010.8-0158_daily_bin774.fits.....................!
real 77.48
user 75.83
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59964E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62449E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7071       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0995       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.561       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13510E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.927       1.0000         .10000E-03   10000.    
     9 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7955       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45333E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2760       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91662       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8040.127     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1738 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60524        549.87        .11440E-04   -.33272E-04
   2  Prefactor     .10031E-03    30.871        .29722E-06** at limit **
   3  norm          1.7066        3.2806        .62742E-07   -.16538E-04
   4  norm          2.0981        .75874        .66596E-07    .13272E-03
   5  norm          .10000E-03    .53652        .20929E-06** at limit **
   6  Prefactor     18.564        10.770       -.35067E-06    .47295E-02
   7  Prefactor     .10000E-03    11.121        .97051E-07** at limit **
   8  Prefactor     30.946        31.956        .21941E-05    .25779E-02
   9  norm          .10000E-03    6.4865       -.84757E-06** at limit **
  10  Prefactor     .10000E-03    5.3445       -.10012E-05** at limit **
  11  Prefactor     22.842        17.053        .13048E-05   -.64546E-02
  12  Prefactor     .10000E-03    37.485       -.12977E-05** at limit **
  13  Prefactor     7.8093        5.8105       -.65815E-06   -.74431E-02
  14  norm          5.3245        1.6087       -.70043E-08    .34862E-04
  15  Prefactor     .53560E-01    96.530        .15439E-04   -.14044E-04
  16  Prefactor     13.548        4.6403        .14423E-06    .17410E-03
  17  Prefactor     .10000E-03    4.7525       -.75010E-06** at limit **
  18  Normalizat    1.2764        .23154       -.21584E-05   -.59122E-04
  19  Prefactor     .91600        .16698        .64553E-06   -.35618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.605241
  Prefactor  = 0.00010031
  norm       = 1.70664
  norm       = 2.09805
  norm       = 0.0001
  Prefactor  = 18.5636
  Prefactor  = 0.0001
  Prefactor  = 30.9459
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8425
  Prefactor  = 0.000100003
  Prefactor  = 7.80933
  norm       = 5.32451
  Prefactor  = 0.0535602
  Prefactor  = 13.5481
  Prefactor  = 0.0001
  Normalizat = 1.2764
  Prefactor  = 0.916002
 **********
 **   18 **HESSE 
 **********

 FCN=   8040.127     FROM HESSE     STATUS=OK           322 CALLS     2060 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60524        35.647        .14186       -1.5552    
   2  Prefactor     .10031E-03    7.1548        .10521       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7066        3.3098        .80451E-02   -1.5447    
   4  norm          2.0981        .76404        .71205E-02   -1.5418    
   5  norm          .10000E-03    .53317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.564        11.973        .23241E-02   -1.4846    
   7  Prefactor     .10000E-03    11.119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.946        33.840        .18012E-02   -1.4595    
   9  norm          .10000E-03    6.4788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.842        54.134        .20944E-02   -1.4752    
  12  Prefactor     .10000E-03    37.473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8093        11.062        .35904E-02   -1.5149    
  14  norm          5.3245        1.6123        .43545E-02   -1.5246    
  15  Prefactor     .53560E-01    3.9833        .56696E-01   -1.5662    
  16  Prefactor     13.548        4.6286        .27207E-02   -1.4972    
  17  Prefactor     .10000E-03    4.7381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2764        .19627        .62430E-01   -.84274    
  19  Prefactor     .91600        .14056        .45216E-01   -.95584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29117e-07
Minuit parameter uncertainties:
  1  9.29484
  2  0.00297934
  3  3.31015
  4  0.764046
  5  2.0543e-06
  6  11.9749
  7  3.12884e-05
  8  33.8609
  9  2.73645e-05
  10  2.7632e-05
  11  54.251
  12  0.000646411
  13  11.0645
  14  1.61235
  15  0.922985
  16  4.62869
  17  1.95054e-05
  18  0.19638
  19  0.14062
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  3.129e-05  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.160e-01  1.406e-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.276e+00  1.964e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705356/likelihoodResults_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.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) = 8040.12722073
delta logL = -0.00042786789254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8040.1267929
delta logL = -3.1683157431e-08

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 'Index     '    2.5267       1.0000          .0000       10.000    
     3 'Normalizat'    1.2764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91598       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=   8040.127     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    378.97        .18142E-02** at limit **
   2  Index         2.4306        8.7459        .50000        .51176E-05
   3  Normalizat    1.2764        .28030E-01    .27614E-03   -.82341E-06
   4  Prefactor     .91600        .21394E-01    .24275E-03   -.70250E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101182
  Index      = 2.43057
  Normalizat = 1.2764
  Prefactor  = 0.916002
 **********
 **   18 **HESSE 
 **********

 FCN=   8040.127     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    1356.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4306        5.5193        .50000       -.53971    
   3  Normalizat    1.2764        .62601E-01    .11045E-04   -.84274    
   4  Prefactor     .91600        .47779E-01    .97099E-05   -.95584    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37614e-08
Minuit parameter uncertainties:
  1  0.0820108
  2  2990.52
  3  0.0626049
  4  0.0477808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705356': 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) = 8040.12679277
delta logL = 9.452469385e-08

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.012e-04  8.201e-02  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.431e+00  2.991e+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:  9.160e-01  4.778e-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.276e+00  6.260e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/705356/cmap_HighResolution_439948801_440208001_4FGL_J1010.8-0158_daily_bin774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-01 12:39:46.178203', job_id='705356', GAL2='0.92', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630525186.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='9.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='774' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 705356: <4FGL_J1010.8-0158_daily_bin774> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin774 152.704 -1.9817 439948801 440208001 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 :                                   623.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

