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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin184
RA = 152.704, Dec = -1.9817
tmin = 287020801, tmax = 287280001
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='702377', job_status='RUN', time_executed='2021-09-01 12:18:54.504381', time_epoch_executed='1630523934.5' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702377/ft1_4FGL_J1010.8-0158_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702377/ft1_4FGL_J1010.8-0158_daily_bin184.fits outfile=/scratch/kocevski/702377/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin184.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=287020801.0 tmax=287280001.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.73
user 4.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.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/702377/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin184.fits evtable="EVENTS" outfile="/scratch/kocevski/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/702377/ltcube_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.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/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits
.....................!
real 18.77
user 18.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/702377/ltcube_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.fits outfile=/scratch/kocevski/702377/expmap_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.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/702377/ltcube_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.fits
.....................!
real 191.36
user 186.63
sys 4.16

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/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits scfile=/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits outfile=/scratch/kocevski/702377/cmap_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits scfile=/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits outfile=/scratch/kocevski/702377/cmap_HighResolution_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/702377/ft2_4FGL_J1010.8-0158_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702377/Model_4FGL_J1010.8-0158_daily_bin184.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/702377/ft1_filtered_4FGL_J1010.8-0158_daily_bin184.fits.....................!
real 45.74
user 43.88
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8000       1.0000         .10000E-03   10000.    
     3 'norm      '    .17348       1.0000         .10000E-03   10000.    
     4 'norm      '    .37476       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.963       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13724E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .91454       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0087       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0253       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90276       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=   4197.366     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1930 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.528       -.83691E-07** at limit **
   2  Prefactor     4.8025        17.088       -.14340E-06    .96450E-04
   3  norm          .16451        25.455       -.10388E-04    .14173E-03
   4  norm          .37459        .49089       -.52132E-06   -.19963E-02
   5  norm          .10000E-03    .56458        .76270E-08** at limit **
   6  Prefactor     .10000E-03    8.6916        .13488E-06** at limit **
   7  Prefactor     20.688        60.798       -.98224E-06   -.17268E-05
   8  Prefactor     12.948        60.792       -.15531E-05    .73622E-04
   9  norm          .10000E-03    8.2190        .20942E-06** at limit **
  10  Prefactor     8.5712        13.286       -.56862E-06    .15346E-04
  11  Prefactor     27.816        65.900       -.46294E-06    .73811E-05
  12  Prefactor     .10000E-03    152.69        .24674E-05** at limit **
  13  Prefactor     .10000E-03    10.690        .30926E-06** at limit **
  14  norm          .91437        1.2548       -.10545E-06    .36178E-03
  15  Prefactor     .10000E-03    16.917       -.16470E-05** at limit **
  16  Prefactor     3.9734        3.6564       -.37717E-07    .17104E-03
  17  Prefactor     3.0068        11.553       -.15141E-05    .67129E-04
  18  Normalizat    1.0250        .24143        .48735E-06    .92562E-04
  19  Prefactor     .90300        .17018        .14834E-05    .51851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.80249
  norm       = 0.16451
  norm       = 0.374592
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6879
  Prefactor  = 12.9485
  norm       = 0.0001
  Prefactor  = 8.57122
  Prefactor  = 27.8163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.914372
  Prefactor  = 0.0001
  Prefactor  = 3.97342
  Prefactor  = 3.00678
  Normalizat = 1.02504
  Prefactor  = 0.902997
 **********
 **   18 **HESSE 
 **********

 FCN=   4197.366     FROM HESSE     STATUS=OK           274 CALLS     2204 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8025        17.040        .18363E-03   -1.5270    
   3  norm          .16451        25.899        .21132E-02   -1.5627    
   4  norm          .37459        .48917        .53067E-03   -1.5586    
   5  norm          .10000E-03    .56525        .47534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.688        60.759        .88181E-04   -1.4798    
   8  Prefactor     12.948        60.366        .11125E-03   -1.4988    
   9  norm          .10000E-03    8.2253        .18135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5712        13.227        .13688E-03   -1.5122    
  11  Prefactor     27.816        65.964        .75957E-04   -1.4653    
  12  Prefactor     .10000E-03    153.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .91437        1.2524        .51441E-04   -1.5517    
  15  Prefactor     .10000E-03    17.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9734        3.6395        .11184E-03   -1.5309    
  17  Prefactor     3.0068        11.476        .23399E-03   -1.5361    
  18  Normalizat    1.0250        .27655        .25750E-03   -.92196    
  19  Prefactor     .90300        .19718        .20998E-03   -.96036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67848e-09
Minuit parameter uncertainties:
  1  6.74807e-05
  2  17.0571
  3  4.12885
  4  0.489178
  5  9.43331e-07
  6  2.71951e-05
  7  60.9415
  8  56.0087
  9  4.02246e-06
  10  13.2316
  11  66.1373
  12  4.86899e-05
  13  1.79068e-06
  14  1.25245
  15  0.000167364
  16  3.63966
  17  11.4845
  18  0.276943
  19  0.197339
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  2.069e+01  6.094e+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:  9.030e-01  1.973e-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.025e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702377/likelihoodResults_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.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) = 4196.70903948
delta logL = 0.656898342417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4196.68590624
delta logL = 0.680031581808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59951       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5224       1.0000          .0000       10.000    
     3 'Normalizat'    .93886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95067       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=   4196.686     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      305 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59100        9.1358        .95628E-02    .75362E-03
   2  Index         5.5312        3.1914        .13717        .93941E-04
   3  Normalizat    .93937        .53217E-01    .45396E-01    .93730E-05
   4  Prefactor     .95051        .41255E-01    .45648E-01    .23045E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.590995
  Index      = 5.53115
  Normalizat = 0.939374
  Prefactor  = 0.950514
 **********
 **   18 **HESSE 
 **********

 FCN=   4196.686     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      340 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59100        23.178        .43545E-03   -1.5554    
   2  Index         5.5312        7.6603        .50196E-02    .10643    
   3  Normalizat    .93937        .19896        .26738E-03   -.95090    
   4  Prefactor     .95051        .15116        .20522E-03   -.94398    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16372e-08
Minuit parameter uncertainties:
  1  7.4046
  2  6.89073
  3  0.199113
  4  0.151231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702377': 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) = 4196.68589557
delta logL = 0.680042256777

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  5.910e-01  7.405e+00  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  5.531e+00  6.891e+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:  9.505e-01  1.512e-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.394e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 152.704 -1.982
Photon Index (Free Index): 5.53 +/- 6.89
Photon Flux (Free Index): 8.63e-08 +/- 7.56e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.17e-05

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/702377/cmap_HighResolution_287020801_287280001_4FGL_J1010.8-0158_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='6.80e-01', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-01 12:27:08.751193', photon_index_error2='6.89', photon_index2='5.53', ts='0.15', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.17e-05', EG='1.03', time_epoch_completed='1630524428.75', return_code='0', job_id='702377', GAL2='0.95', EG2='0.94', return_code2='102', photon_flux_error2='7.56e-08', ts2='1.64', photon_index='2.54' WHERE bin_id='184' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 702377: <4FGL_J1010.8-0158_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin184 152.704 -1.9817 287020801 287280001 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 :                                   492.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             229.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            695 sec.

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

