/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 239 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin99
RA = 152.704, Dec = -1.9817
tmin = 264988801, tmax = 265248001
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='702253', job_status='RUN', time_executed='2021-09-01 12:19:37.564892', time_epoch_executed='1630523977.56' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702253/ft1_4FGL_J1010.8-0158_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702253/ft1_4FGL_J1010.8-0158_daily_bin99.fits outfile=/scratch/kocevski/702253/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin99.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=264988801.0 tmax=265248001.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 1.47
user 1.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702253/ft1_filtered_4FGL_J1010.8-0158_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/702253/ltcube_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.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/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits
.....................!
real 15.15
user 14.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702253/ft1_filtered_4FGL_J1010.8-0158_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/702253/ltcube_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.fits outfile=/scratch/kocevski/702253/expmap_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.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/702253/ltcube_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.fits
.....................!
real 195.36
user 187.50
sys 6.04

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/702253/ft1_filtered_4FGL_J1010.8-0158_daily_bin99.fits scfile=/scratch/kocevski/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits outfile=/scratch/kocevski/702253/cmap_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.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.59
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702253/ft1_filtered_4FGL_J1010.8-0158_daily_bin99.fits scfile=/scratch/kocevski/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits outfile=/scratch/kocevski/702253/cmap_HighResolution_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702253/ft1_filtered_4FGL_J1010.8-0158_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/702253/ft2_4FGL_J1010.8-0158_daily_bin99.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702253/Model_4FGL_J1010.8-0158_daily_bin99.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/702253/ft1_filtered_4FGL_J1010.8-0158_daily_bin99.fits....................!
real 82.01
user 80.48
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .50742E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8968       1.0000         .10000E-03   10000.    
     5 'norm      '    .53971       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5077       1.0000         .10000E-03   10000.    
    14 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4780       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1496       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82851       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=   8526.723     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1934 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.198        24.268        .42578E-07    .12882E-04
   2  Prefactor     .10000E-03    2.7999        .27567E-07** at limit **
   3  norm          .10000E-03    1.3453       -.47119E-07** at limit **
   4  norm          1.8969        .58127       -.94541E-08    .19098E-04
   5  norm          .54012        1.3493        .71638E-06    .62199E-04
   6  Prefactor     4.0665        11.243        .16635E-05    .39089E-04
   7  Prefactor     8.9330        28.351       -.46975E-06    .28753E-06
   8  Prefactor     .10000E-03    16.196       -.73404E-06** at limit **
   9  norm          .10000E-03    31.428        .25605E-06** at limit **
  10  Prefactor     .10000E-03    12.802       -.22885E-05** at limit **
  11  Prefactor     63.594        47.715       -.21520E-05   -.96713E-04
  12  Prefactor     .10000E-03    41.259       -.41325E-05** at limit **
  13  Prefactor     1.5024        9.5496        .15313E-05    .38557E-04
  14  norm          .10000E-03    .62953       -.10092E-07** at limit **
  15  Prefactor     .10000E-03    1.7064        .29077E-07** at limit **
  16  Prefactor     .10000E-03    .95473       -.39156E-07** at limit **
  17  Prefactor     6.4779        7.5685        .12771E-06    .19906E-04
  18  Normalizat    1.1495        .16400        .13807E-05   -.83835E-04
  19  Prefactor     .82867        .12190       -.12964E-05    .13947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1982
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.89691
  norm       = 0.540119
  Prefactor  = 4.06646
  Prefactor  = 8.93298
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.5942
  Prefactor  = 0.0001
  Prefactor  = 1.50238
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.47793
  Normalizat = 1.14952
  Prefactor  = 0.828666
 **********
 **   18 **HESSE 
 **********

 FCN=   8526.723     FROM HESSE     STATUS=OK           272 CALLS     2206 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.198        24.272        .71737E-04   -1.4590    
   2  Prefactor     .10000E-03    2.8034        .15089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2841        .20665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8969        .57940        .36892E-04   -1.5433    
   5  norm          .54012        1.3238        .16281E-03   -1.5561    
   6  Prefactor     4.0665        11.253        .19935E-03   -1.5305    
   7  Prefactor     8.9330        28.335        .13409E-03   -1.5110    
   8  Prefactor     .10000E-03    16.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    32.665        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.594        48.258        .50310E-04   -1.4111    
  12  Prefactor     .10000E-03    41.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5024        9.9221        .34845E-03   -1.5463    
  14  norm          .10000E-03    1.2677        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7303        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .97210        .88052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4779        7.5724        .15768E-03   -1.5199    
  18  Normalizat    1.1495        .18791        .24705E-03   -.88177    
  19  Prefactor     .82867        .13921        .22026E-03   -.98680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05069e-10
Minuit parameter uncertainties:
  1  24.2799
  2  5.27515e-07
  3  5.82711e-05
  4  0.579398
  5  1.32385
  6  11.2587
  7  28.3778
  8  7.19528e-05
  9  0.000107023
  10  4.70878e-06
  11  48.2878
  12  0.000266994
  13  7.72346
  14  9.77659e-07
  15  5.20623e-08
  16  3.05229e-07
  17  7.5735
  18  0.188022
  19  0.139272
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  8.933e+00  2.838e+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:  8.287e-01  1.393e-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.150e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 8.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702253/likelihoodResults_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.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): 0
logL (Free Index) = 8526.68757248
delta logL = 0.0351505877479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8526.68609695
delta logL = 0.0366261181534

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9649       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9468       1.0000          .0000       10.000    
     3 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8526.686     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      264 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9203        319.48        .35518E-02    .15567E-03
   2  Index         2.9585        2.1718        .41168        .61317E-04
   3  Normalizat    1.1426        .21700E-01    .56017E-01   -.66885E-04
   4  Prefactor     .83157        .16744E-01    .44132E-01   -.10794E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.9203
  Index      = 2.95855
  Normalizat = 1.14259
  Prefactor  = 0.831575
 **********
 **   18 **HESSE 
 **********

 FCN=   8526.686     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9203        25.434        .14207E-03   -1.5145    
   2  Index         2.9585        1.7028        .82967E-02   -.42058    
   3  Normalizat    1.1426        .18074        .24771E-03   -.88396    
   4  Prefactor     .83157        .13746        .21992E-03   -.98575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13848e-10
Minuit parameter uncertainties:
  1  25.4684
  2  1.74504
  3  0.180843
  4  0.137521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702253': 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) = 8526.68606108
delta logL = 0.0366619802571

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  7.920e+00  2.547e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.959e+00  1.745e+00  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:  8.316e-01  1.375e-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.143e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/702253/cmap_HighResolution_264988801_265248001_4FGL_J1010.8-0158_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-01 12:30:43.074058', job_id='702253', GAL2='0.83', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1630524643.07', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.67e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='99' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 702253: <4FGL_J1010.8-0158_daily_bin99> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin99 152.704 -1.9817 264988801 265248001 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 :                                   653.02 sec.
    Max Memory :                                 1197 MB
    Average Memory :                             239.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

