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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin400
RA = 152.704, Dec = -1.9817
tmin = 343008001, tmax = 343267201
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='703758', job_status='RUN', time_executed='2021-09-01 12:23:33.470279', time_epoch_executed='1630524213.47' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703758/ft1_4FGL_J1010.8-0158_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703758/ft1_4FGL_J1010.8-0158_daily_bin400.fits outfile=/scratch/kocevski/703758/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin400.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=343008001.0 tmax=343267201.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.83
user 3.62
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703758/ft1_filtered_4FGL_J1010.8-0158_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/703758/ltcube_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.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/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits
.....................!
real 13.55
user 13.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703758/ft1_filtered_4FGL_J1010.8-0158_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/703758/ltcube_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.fits outfile=/scratch/kocevski/703758/expmap_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.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/703758/ltcube_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.fits
.....................!
real 189.98
user 184.79
sys 4.68

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/703758/ft1_filtered_4FGL_J1010.8-0158_daily_bin400.fits scfile=/scratch/kocevski/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits outfile=/scratch/kocevski/703758/cmap_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703758/ft1_filtered_4FGL_J1010.8-0158_daily_bin400.fits scfile=/scratch/kocevski/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits outfile=/scratch/kocevski/703758/cmap_HighResolution_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703758/ft1_filtered_4FGL_J1010.8-0158_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/703758/ft2_4FGL_J1010.8-0158_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703758/Model_4FGL_J1010.8-0158_daily_bin400.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/703758/ft1_filtered_4FGL_J1010.8-0158_daily_bin400.fits.....................!
real 58.37
user 57.08
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41292E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13311E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4639       1.0000         .10000E-03   10000.    
     5 'norm      '    .62855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.377       1.0000         .10000E-03   10000.    
     9 'norm      '    14.853       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .95938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88841       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .50383E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .65390       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1119       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=   5865.105     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1932 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.836       -.23578E-05** at limit **
   2  Prefactor     .10011E-03    10.357        .23691E-05** at limit **
   3  norm          .10000E-03    3.5562       -.12671E-06** at limit **
   4  norm          1.4637        .66524        .10584E-07   -.12867E-03
   5  norm          .62936        1.7558       -.81691E-06    .26742E-03
   6  Prefactor     27.954        15.965       -.84398E-08    .97870E-05
   7  Prefactor     .10000E-03    45.643        .28851E-05** at limit **
   8  Prefactor     22.365        35.200        .38739E-05    .14379E-03
   9  norm          14.852        15.728       -.38595E-06   -.16309E-04
  10  Prefactor     .10000E-03    4.1786       -.60320E-07** at limit **
  11  Prefactor     45.588        45.631        .23408E-05    .97698E-04
  12  Prefactor     41.077        37.066       -.35731E-06   -.16285E-04
  13  Prefactor     .10000E-03    7.2395       -.92510E-07** at limit **
  14  norm          .95794        1.6941       -.46235E-06    .10718E-03
  15  Prefactor     6.2059        7.8951       -.13559E-06    .55524E-04
  16  Prefactor     .88814        3.8771       -.29012E-05   -.10781E-04
  17  Prefactor     .10000E-03    22.959       -.38845E-05** at limit **
  18  Normalizat    .65413        .20357       -.30400E-06    .13378E-04
  19  Prefactor     1.1118        .14841        .11442E-05   -.12068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.00010011
  norm       = 0.0001
  norm       = 1.46366
  norm       = 0.629363
  Prefactor  = 27.954
  Prefactor  = 0.0001
  Prefactor  = 22.3654
  norm       = 14.8521
  Prefactor  = 0.0001
  Prefactor  = 45.5882
  Prefactor  = 41.0768
  Prefactor  = 0.0001
  norm       = 0.957936
  Prefactor  = 6.20593
  Prefactor  = 0.888137
  Prefactor  = 0.000100001
  Normalizat = 0.654133
  Prefactor  = 1.11177
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.105     FROM HESSE     STATUS=OK           268 CALLS     2200 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10011E-03    49.810        .40106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.7123        .28178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4637        .65587        .39678E-04   -1.5466    
   5  norm          .62936        1.7590        .16360E-03   -1.5549    
   6  Prefactor     27.954        15.986        .75769E-04   -1.4650    
   7  Prefactor     .10000E-03    45.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.365        35.825        .84675E-04   -1.4762    
   9  norm          14.852        15.733        .10393E-03   -1.4937    
  10  Prefactor     .10000E-03    4.1876        .15282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.588        45.981        .59377E-04   -1.4357    
  12  Prefactor     41.077        37.079        .62546E-04   -1.4425    
  13  Prefactor     .10000E-03    7.2498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .95794        1.6729        .12073E-03   -1.5512    
  15  Prefactor     6.2059        7.8258        .16115E-03   -1.5210    
  16  Prefactor     .88814        3.8781        .27667E-03   -1.5519    
  17  Prefactor     .10000E-03    23.883        .39116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .65413        .22932        .31235E-03   -1.0573    
  19  Prefactor     1.1118        .16939        .19362E-03   -.89091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45773e-09
Minuit parameter uncertainties:
  1  0.000215584
  2  0.00468723
  3  9.98168e-07
  4  0.655871
  5  1.75916
  6  15.9887
  7  0.000148543
  8  35.8596
  9  15.7371
  10  3.15317e-08
  11  46.0168
  12  37.0997
  13  6.83264e-07
  14  1.67302
  15  7.82713
  16  3.71193
  17  0.000254462
  18  0.229659
  19  0.169476
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.112e+00  1.695e-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:  6.541e-01  2.297e-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: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703758/likelihoodResults_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.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) = 5865.10468817
delta logL = -0.000104169754195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5865.10458445
delta logL = -4.52396307082e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1848       1.0000          .0000       10.000    
     3 'Normalizat'    .65413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1118       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=   5865.105     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      276 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1034.7        .18142E-01** at limit **
   2  Index         2.5540        6.0570        .86858E-01    .16361E-07
   3  Normalizat    .65413        .22878E-01    .31235E-03   -.17361E-04
   4  Prefactor     1.1118        .18200E-01    .19362E-03   -.30404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.554
  Normalizat = 0.654131
  Prefactor  = 1.11177
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.105     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.255        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5540        8.2384        .34743E-02   -.51117    
   3  Normalizat    .65413        .20977        .12494E-04   -1.0573    
   4  Prefactor     1.1118        .16704        .38723E-04   -.89091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88173e-12
Minuit parameter uncertainties:
  1  0.000190428
  2  673.162
  3  0.210025
  4  0.167122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703758': 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) = 5865.104584
delta logL = 3.51064954884e-10

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.112e+00  1.671e-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:  6.541e-01  2.100e-01  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/703758/cmap_HighResolution_343008001_343267201_4FGL_J1010.8-0158_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-01 12:32:33.406241', job_id='703758', GAL2='1.11', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630524753.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.51e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='400' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:32:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 703758: <4FGL_J1010.8-0158_daily_bin400> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin400> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:20:32 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:20:35 2021
Terminated at Wed Sep  1 12:32:34 2021
Results reported at Wed Sep  1 12:32:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin400 152.704 -1.9817 343008001 343267201 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 :                                   539.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             259.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            722 sec.

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

