/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 126 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin245
RA = 152.704, Dec = -1.9817
tmin = 302832001, tmax = 303091201
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='702467', job_status='RUN', time_executed='2021-09-01 12:18:06.081582', time_epoch_executed='1630523886.08' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702467/ft1_4FGL_J1010.8-0158_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702467/ft1_4FGL_J1010.8-0158_daily_bin245.fits outfile=/scratch/kocevski/702467/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin245.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=302832001.0 tmax=303091201.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.59
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.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/702467/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/702467/ltcube_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.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/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits
.....................!
real 19.09
user 18.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/702467/ltcube_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.fits outfile=/scratch/kocevski/702467/expmap_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.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/702467/ltcube_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.fits
.....................!
real 191.29
user 185.89
sys 3.86

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/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.fits scfile=/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits outfile=/scratch/kocevski/702467/cmap_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.fits scfile=/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits outfile=/scratch/kocevski/702467/cmap_HighResolution_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.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.60
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/702467/ft2_4FGL_J1010.8-0158_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702467/Model_4FGL_J1010.8-0158_daily_bin245.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/702467/ft1_filtered_4FGL_J1010.8-0158_daily_bin245.fits.....................!
real 75.01
user 72.73
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.209       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6164       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3697       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2360       1.0000         .10000E-03   10000.    
     9 'norm      '    20.495       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.877       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0575       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91347       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0880       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=   7720.645     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1890 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.904       -.58131E-06** at limit **
   2  Prefactor     42.208        16.716       -.72930E-07    .98771E-04
   3  norm          2.6164        2.3974        .16261E-07   -.11063E-03
   4  norm          2.3697        .72294       -.44233E-08    .56554E-03
   5  norm          .10000E-03    .39978        .12964E-07** at limit **
   6  Prefactor     .78172        11.237       -.65679E-05   -.40644E-04
   7  Prefactor     82.300        41.651        .86801E-05   -.51820E-03
   8  Prefactor     2.2325        47.945       -.12223E-04   -.13653E-04
   9  norm          20.485        21.433        .84412E-05    .54820E-03
  10  Prefactor     .10000E-03    3.9545       -.23090E-06** at limit **
  11  Prefactor     11.252        35.402        .13305E-04   -.73859E-04
  12  Prefactor     .10000E-03    20.038       -.12130E-05** at limit **
  13  Prefactor     12.875        13.058       -.88125E-06    .21809E-03
  14  norm          .10000E-03    .34367       -.56086E-07** at limit **
  15  Prefactor     .10000E-03    1.6609       -.63147E-07** at limit **
  16  Prefactor     .10000E-03    .86870       -.22783E-07** at limit **
  17  Prefactor     9.0569        7.2362        .17277E-06   -.36947E-06
  18  Normalizat    .91341        .18113       -.18491E-05    .62779E-03
  19  Prefactor     1.0880        .13841        .34297E-06    .51388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.208
  norm       = 2.61642
  norm       = 2.36974
  norm       = 0.0001
  Prefactor  = 0.781724
  Prefactor  = 82.3002
  Prefactor  = 2.23248
  norm       = 20.4854
  Prefactor  = 0.0001
  Prefactor  = 11.2516
  Prefactor  = 0.0001
  Prefactor  = 12.8752
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.05686
  Normalizat = 0.913405
  Prefactor  = 1.08805
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.645     FROM HESSE     STATUS=OK           266 CALLS     2156 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.208        16.724        .61703E-04   -1.4408    
   3  norm          2.6164        2.3921        .12648E-03   -1.5384    
   4  norm          2.3697        .72048        .39003E-04   -1.5400    
   5  norm          .10000E-03    .40204        .54246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .78172        271.69        .44675E-02   -1.5531    
   7  Prefactor     82.300        40.773        .44278E-04   -1.3891    
   8  Prefactor     2.2325        48.411        .27489E-03   -1.5409    
   9  norm          20.485        37.660        .88474E-04   -1.4802    
  10  Prefactor     .10000E-03    3.9672        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.252        35.232        .11946E-03   -1.5037    
  12  Prefactor     .10000E-03    20.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.875        13.040        .11163E-03   -1.4990    
  14  norm          .10000E-03    .45256        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6693        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .87437        .79959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0569        7.2373        .13317E-03   -1.5106    
  18  Normalizat    .91341        .21315        .29349E-03   -.95991    
  19  Prefactor     1.0880        .16220        .21453E-03   -.89849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40952e-08
Minuit parameter uncertainties:
  1  0.000149023
  2  16.7254
  3  2.39218
  4  0.720485
  5  4.26612e-07
  6  29.2799
  7  40.7867
  8  20.8107
  9  37.7033
  10  4.5466e-05
  11  35.2975
  12  2.62038e-06
  13  13.0427
  14  4.97227e-06
  15  1.92917e-06
  16  3.01589e-07
  17  7.23798
  18  0.213344
  19  0.162273
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  8.230e+01  4.079e+01  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.088e+00  1.623e-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.134e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.94
Ra Dec: 152.704 -1.982
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 8.66e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.20e-05

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): 0
logL (Free Index) = 7719.91902414
delta logL = 0.725600896572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7719.90742618
delta logL = 0.73719885442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.564       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3178       1.0000          .0000       10.000    
     3 'Normalizat'    .85688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1214       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=   7719.907     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      302 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.570        58.644        .66278E-04    .15901E-03
   2  Index         3.3181        1.0784        .45577E-02    .12019E-03
   3  Normalizat    .85626        .21350        .30190E-03    .34607E-04
   4  Prefactor     1.1218        .16632        .21170E-03    .20355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.5697
  Index      = 3.31806
  Normalizat = 0.856264
  Prefactor  = 1.12185
 **********
 **   18 **HESSE 
 **********

 FCN=   7719.907     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.570        42.035        .26511E-05   -1.4498    
   2  Index         3.3181        .77500        .18231E-03   -.34308    
   3  Normalizat    .85626        .21121        .12076E-04   -.98014    
   4  Prefactor     1.1218        .16459        .42340E-04   -.88771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33666e-10
Minuit parameter uncertainties:
  1  42.0689
  2  0.77854
  3  0.211417
  4  0.164662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702467': 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): 0
logL (Free Index) = 7719.90742176
delta logL = 0.737203274313

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.122e+00  1.647e-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.563e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.62
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 3.32 +/- 0.78
Photon Flux (Free Index): 1.23e-07 +/- 5.69e-08
Energy Flux (Free Index): 2.15e-05 +/- 9.60e-06

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/702467/cmap_HighResolution_302832001_303091201_4FGL_J1010.8-0158_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.66e-08', energy_flux2='2.15e-05', photon_flux_error='4.29e-08', dlogl='7.37e-01', energy_flux='2.42e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-01 12:27:47.816524', photon_index_error2='0.78', photon_index2='3.32', ts='6.94', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='9.60e-06', EG='0.91', time_epoch_completed='1630524467.82', return_code='0', job_id='702467', GAL2='1.12', EG2='0.86', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.69e-08', ts2='8.62', photon_index='2.54' WHERE bin_id='245' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:27:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 702467: <4FGL_J1010.8-0158_daily_bin245> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin245> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:15:42 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:15:48 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:15:48 2021
Terminated at Wed Sep  1 12:27:48 2021
Results reported at Wed Sep  1 12:27:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin245 152.704 -1.9817 302832001 303091201 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 :                                   577.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            726 sec.

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

