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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin674
RA = 152.704, Dec = -1.9817
tmin = 414028801, tmax = 414288001
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='705196', job_status='RUN', time_executed='2021-09-01 12:25:43.783148', time_epoch_executed='1630524343.78' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705196/ft1_4FGL_J1010.8-0158_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705196/ft2_4FGL_J1010.8-0158_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705196/ft1_4FGL_J1010.8-0158_daily_bin674.fits outfile=/scratch/kocevski/705196/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin674.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.23
user 4.95
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705196/ft1_filtered_4FGL_J1010.8-0158_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/705196/ft2_4FGL_J1010.8-0158_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/705196/ltcube_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.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/705196/ft2_4FGL_J1010.8-0158_daily_bin674.fits
.....................!
real 12.75
user 12.32
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705196/ft1_filtered_4FGL_J1010.8-0158_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/705196/ft2_4FGL_J1010.8-0158_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/705196/ltcube_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.fits outfile=/scratch/kocevski/705196/expmap_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.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/705196/ltcube_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.fits
.....................!
real 191.35
user 185.76
sys 5.27

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/705196/ft1_filtered_4FGL_J1010.8-0158_daily_bin674.fits scfile=/scratch/kocevski/705196/ft2_4FGL_J1010.8-0158_daily_bin674.fits outfile=/scratch/kocevski/705196/cmap_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705196/ft1_filtered_4FGL_J1010.8-0158_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/705196/ft2_4FGL_J1010.8-0158_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705196/Model_4FGL_J1010.8-0158_daily_bin674.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/705196/ft1_filtered_4FGL_J1010.8-0158_daily_bin674.fits.....................!
real 65.09
user 63.81
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.212       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7667       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5666       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10648E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    268.62       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1968       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36237       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93629E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83943       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2121       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=   6098.274     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1952 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.003       -.37904E-06** at limit **
   2  Prefactor     16.206        19.243        .36351E-05   -.17399E-04
   3  norm          .10000E-03    1.8633       -.17636E-07** at limit **
   4  norm          4.7664        1.0603       -.10810E-06   -.82085E-03
   5  norm          4.5661        2.2352       -.22259E-07    .29620E-04
   6  Prefactor     .10000E-03    18.352        .56127E-06** at limit **
   7  Prefactor     .10000E-03    12.369       -.23600E-07** at limit **
   8  Prefactor     .10000E-03    77.917       -.24300E-06** at limit **
   9  norm          .10000E-03    15.511        .44480E-06** at limit **
  10  Prefactor     .10000E-03    7.5574        .34033E-06** at limit **
  11  Prefactor     268.60        98.306       -.10003E-04   -.15411E-04
  12  Prefactor     .10000E-03    37.905        .68190E-06** at limit **
  13  Prefactor     .10000E-03    8.0653        .14919E-06** at limit **
  14  norm          2.1967        1.5302        .11181E-07   -.21204E-03
  15  Prefactor     .10000E-03    3.4248       -.27164E-07** at limit **
  16  Prefactor     .36682        2.4947       -.63986E-07   -.18904E-03
  17  Prefactor     .10001E-03    13.429        .29999E-06** at limit **
  18  Normalizat    .83949        .23324        .24351E-05   -.85146E-04
  19  Prefactor     1.2122        .16941       -.63088E-06    .63478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.2064
  norm       = 0.0001
  norm       = 4.76641
  norm       = 4.56613
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 268.596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19672
  Prefactor  = 0.0001
  Prefactor  = 0.366822
  Prefactor  = 0.000100014
  Normalizat = 0.83949
  Prefactor  = 1.21222
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.274     FROM HESSE     STATUS=OK           274 CALLS     2226 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.206        19.282        .99473E-04   -1.4903    
   3  norm          .10000E-03    1.9029        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7664        1.0631        .92142E-04   -1.5271    
   5  norm          4.5661        2.2375        .79163E-04   -1.5281    
   6  Prefactor     .10000E-03    18.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    79.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     268.60        98.061        .12370E-03   -1.2415    
  12  Prefactor     .10000E-03    37.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1967        1.5241        .77266E-04   -1.5412    
  15  Prefactor     .10000E-03    3.4503        .14109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36682        8.7961        .22654E-02   -1.5587    
  17  Prefactor     .10001E-03    18.731        .76059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .83949        .27577        .33639E-03   -.98620    
  19  Prefactor     1.2122        .20211        .22097E-03   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0266e-10
Minuit parameter uncertainties:
  1  5.94373e-05
  2  19.2889
  3  2.46238e-06
  4  1.06308
  5  2.23754
  6  0.000228434
  7  2.05073e-06
  8  0.000132902
  9  0.000177043
  10  9.03062e-05
  11  98.121
  12  0.000241677
  13  4.35986e-05
  14  1.52409
  15  2.7834e-06
  16  3.59266
  17  0.00101538
  18  0.276234
  19  0.202244
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  2.051e-06  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.212e+00  2.022e-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:  8.395e-01  2.762e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705196/likelihoodResults_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.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) = 6098.27402369
delta logL = -0.000383953170967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6098.27363978
delta logL = -3.81969584851e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5211       1.0000          .0000       10.000    
     3 'Normalizat'    .83954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2122       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=   6098.274     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10214E-03    239.95        .18142E-02** at limit **
   2  Index         2.4218        5.1502        .50000        .76681E-05
   3  Normalizat    .83949        .23717E-01    .33639E-03    .18588E-05
   4  Prefactor     1.2122        .18478E-01    .22097E-03    .20065E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102141
  Index      = 2.42183
  Normalizat = 0.839493
  Prefactor  = 1.21222
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.274     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10214E-03    925.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4218        6.1878        .50000       -.54175    
   3  Normalizat    .83949        .50560E-01    .13455E-04   -.98620    
   4  Prefactor     1.2122        .39394E-01    .88389E-05   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.11751e-08
Minuit parameter uncertainties:
  1  0.0904342
  2  1835.38
  3  0.0505627
  4  0.0393946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705196': 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) = 6098.27363959
delta logL = 1.51045242092e-07

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.021e-04  9.043e-02  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.422e+00  1.835e+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.212e+00  3.939e-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:  8.395e-01  5.056e-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/705196/cmap_HighResolution_414028801_414288001_4FGL_J1010.8-0158_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-01 12:35:12.322300', job_id='705196', GAL2='1.21', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630524912.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='674' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:35:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 705196: <4FGL_J1010.8-0158_daily_bin674> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin674> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 12:25:32 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:25:34 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:34 2021
Terminated at Wed Sep  1 12:35:13 2021
Results reported at Wed Sep  1 12:35:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin674 152.704 -1.9817 414028801 414288001 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 :                                   567.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            581 sec.

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

