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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin554
RA = 152.704, Dec = -1.9817
tmin = 382924801, tmax = 383184001
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='703980', job_status='RUN', time_executed='2021-09-01 12:21:01.772804', time_epoch_executed='1630524061.77' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703980/ft1_4FGL_J1010.8-0158_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703980/ft1_4FGL_J1010.8-0158_daily_bin554.fits outfile=/scratch/kocevski/703980/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin554.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=382924801.0 tmax=383184001.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.54
user 4.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703980/ft1_filtered_4FGL_J1010.8-0158_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/703980/ltcube_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.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/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits
.....................!
real 14.20
user 13.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703980/ft1_filtered_4FGL_J1010.8-0158_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/703980/ltcube_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.fits outfile=/scratch/kocevski/703980/expmap_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.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/703980/ltcube_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.fits
.....................!
real 191.31
user 187.10
sys 3.83

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/703980/ft1_filtered_4FGL_J1010.8-0158_daily_bin554.fits scfile=/scratch/kocevski/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits outfile=/scratch/kocevski/703980/cmap_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703980/ft1_filtered_4FGL_J1010.8-0158_daily_bin554.fits scfile=/scratch/kocevski/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits outfile=/scratch/kocevski/703980/cmap_HighResolution_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.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.63
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703980/ft1_filtered_4FGL_J1010.8-0158_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/703980/ft2_4FGL_J1010.8-0158_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703980/Model_4FGL_J1010.8-0158_daily_bin554.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/703980/ft1_filtered_4FGL_J1010.8-0158_daily_bin554.fits.....................!
real 54.61
user 53.33
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.6456       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2784       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9224       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5612       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0014       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93367       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5039.694     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1846 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.295       -.11075E-04** at limit **
   2  Prefactor     .10000E-03    6.0742       -.99728E-07** at limit **
   3  norm          4.6452        4.2625       -.35798E-07    .59731E-05
   4  norm          1.2783        .76196        .44563E-07    .13590E-03
   5  norm          .10000E-03    1.9444       -.14237E-07** at limit **
   6  Prefactor     4.1153        12.632        .52799E-06   -.76807E-03
   7  Prefactor     .10000E-03    18.731        .41044E-05** at limit **
   8  Prefactor     .10000E-03    34.213        .13409E-04** at limit **
   9  norm          1.9228        9.1232        .28477E-05   -.11878E-02
  10  Prefactor     .10000E-03    3.1806        .15941E-06** at limit **
  11  Prefactor     52.019        58.826       -.11004E-04   -.10601E-03
  12  Prefactor     .10000E-03    21.125       -.77906E-05** at limit **
  13  Prefactor     11.745        11.887        .54354E-06    .39122E-04
  14  norm          1.5611        1.2125        .17676E-08    .45656E-06
  15  Prefactor     6.6850        8.6565       -.31530E-06   -.98516E-03
  16  Prefactor     5.0016        3.1094       -.17100E-06   -.65297E-04
  17  Prefactor     .10000E-03    2.3469       -.96050E-07** at limit **
  18  Normalizat    .93371        .24140        .20310E-05   -.14214E-04
  19  Prefactor     1.2144        .18250       -.10921E-06    .91519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 4.64517
  norm       = 1.27833
  norm       = 0.0001
  Prefactor  = 4.11531
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.92277
  Prefactor  = 0.0001
  Prefactor  = 52.0186
  Prefactor  = 0.000100001
  Prefactor  = 11.7451
  norm       = 1.56112
  Prefactor  = 6.68499
  Prefactor  = 5.00163
  Prefactor  = 0.0001
  Normalizat = 0.933706
  Prefactor  = 1.21437
 **********
 **   18 **HESSE 
 **********

 FCN=   5039.694     FROM HESSE     STATUS=OK           266 CALLS     2112 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0857        .17088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6452        4.2622        .13620E-03   -1.5277    
   4  norm          1.2783        .74952        .45106E-04   -1.5482    
   5  norm          .10000E-03    2.0207        .19315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1153        12.666        .99302E-03   -1.5302    
   7  Prefactor     .10000E-03    18.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9228        21.785        .14983E-02   -1.5431    
  10  Prefactor     .10000E-03    3.1847        .12366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.019        59.586        .55602E-04   -1.4264    
  12  Prefactor     .10000E-03    21.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.745        11.893        .11689E-03   -1.5022    
  14  norm          1.5611        1.2063        .66372E-04   -1.5458    
  15  Prefactor     6.6850        9.0222        .77596E-03   -1.5191    
  16  Prefactor     5.0016        3.1083        .95918E-04   -1.5261    
  17  Prefactor     .10000E-03    2.3482        .10621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .93371        .28142        .30517E-03   -.95286    
  19  Prefactor     1.2144        .21338        .21468E-03   -.85890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31154e-08
Minuit parameter uncertainties:
  1  0.000575063
  2  7.66506e-06
  3  4.26246
  4  0.74953
  5  5.91095e-06
  6  12.6743
  7  0.000123028
  8  0.000547831
  9  12.9499
  10  1.65973e-05
  11  59.6547
  12  0.000207844
  13  11.8952
  14  1.20631
  15  9.02405
  16  3.10836
  17  1.32298e-06
  18  0.281867
  19  0.21353
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.230e-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.214e+00  2.135e-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.337e-01  2.819e-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: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703980/likelihoodResults_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.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) = 5039.69420366
delta logL = -0.000253801933468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5039.69395113
delta logL = -1.27163730212e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2600       1.0000          .0000       10.000    
     3 'Normalizat'    .93370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2144       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=   5039.694     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10448E-03    9.8127        .18142E-01** at limit **
   2  Index         3.1245        5.8730        .50000        .12184E-04
   3  Normalizat    .93371        .47330E-02    .30517E-03   -.11511E-04
   4  Prefactor     1.2144        .37640E-02    .21468E-03   -.20653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104478
  Index      = 3.1245
  Normalizat = 0.933708
  Prefactor  = 1.21437
 **********
 **   18 **HESSE 
 **********

 FCN=   5039.694     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10448E-03    131.75        .26094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1245        6.1862        .50000       -.38451    
   3  Normalizat    .93371        .17389E-01    .12207E-04   -.95286    
   4  Prefactor     1.2144        .13829E-01    .85874E-05   -.85890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.82297e-09
Minuit parameter uncertainties:
  1  0.0486845
  2  643.608
  3  0.0173896
  4  0.0138294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703980': 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) = 5039.69395082
delta logL = -9.63829734246e-07

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.045e-04  4.868e-02  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  3.124e+00  6.436e+02  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.214e+00  1.383e-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:  9.337e-01  1.739e-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/703980/cmap_HighResolution_382924801_383184001_4FGL_J1010.8-0158_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-01 12:29:36.915214', job_id='703980', GAL2='1.21', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630524576.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-9.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='554' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:29:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 703980: <4FGL_J1010.8-0158_daily_bin554> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin554> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:20:47 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:20:52 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:20:52 2021
Terminated at Wed Sep  1 12:29:39 2021
Results reported at Wed Sep  1 12:29:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin554 152.704 -1.9817 382924801 383184001 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 :                                   514.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            532 sec.

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

