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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin1014
RA = 152.704, Dec = -1.9817
tmin = 502156801, tmax = 502416001
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='706538', job_status='RUN', time_executed='2021-09-01 12:33:51.049421', time_epoch_executed='1630524831.05' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='1014'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706538

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706538/ft1_4FGL_J1010.8-0158_daily_bin1014.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706538/ft1_4FGL_J1010.8-0158_daily_bin1014.fits outfile=/scratch/kocevski/706538/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1014.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=502156801.0 tmax=502416001.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.04
user 3.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.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/706538/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin1014.fits evtable="EVENTS" outfile="/scratch/kocevski/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.fits" evtable="EVENTS" scfile=/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits sctable="SC_DATA" outfile=/scratch/kocevski/706538/ltcube_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.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/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits
.....................!
real 12.25
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits sctable="SC_DATA" expcube=/scratch/kocevski/706538/ltcube_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.fits outfile=/scratch/kocevski/706538/expmap_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.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/706538/ltcube_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.fits
.....................!
real 189.89
user 184.96
sys 4.39

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/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.fits scfile=/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits outfile=/scratch/kocevski/706538/cmap_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.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/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.fits scfile=/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits outfile=/scratch/kocevski/706538/cmap_HighResolution_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=152.704 yref=-1.9817 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.fits evtable="EVENTS" scfile=/scratch/kocevski/706538/ft2_4FGL_J1010.8-0158_daily_bin1014.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706538/Model_4FGL_J1010.8-0158_daily_bin1014.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/706538/ft1_filtered_4FGL_J1010.8-0158_daily_bin1014.fits.....................!
real 57.70
user 56.16
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99197E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9079       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3983       1.0000         .10000E-03   10000.    
     5 'norm      '    .15784E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4048       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94398       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93908       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=   5743.890     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1948 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    42.464        .12767    ** at limit **
   2  Prefactor     .10000E-03    24.204        .90712E-02** at limit **
   3  norm          1.9079        3.2097        .75252E-02    .44265E-03
   4  norm          1.3984        .62562        .85692E-02   -.66494E-03
   5  norm          .10000E-03    .92265        .44038E-01** at limit **
   6  Prefactor     .10000E-03    18.390        .90712E-02** at limit **
   7  Prefactor     .10000E-03    11.890        .90712E-02** at limit **
   8  Prefactor     .10000E-03    13.072        .90712E-02** at limit **
   9  norm          15.627        15.372        .25352E-02   -.15225E-03
  10  Prefactor     .10000E-03    5.2002        .90712E-02** at limit **
  11  Prefactor     44.837        50.228        .14955E-02    .17750E-04
  12  Prefactor     .10000E-03    26.072        .90712E-02** at limit **
  13  Prefactor     .10000E-03    5.9053        .90712E-02** at limit **
  14  norm          4.8372        1.7167        .45725E-02   -.64413E-04
  15  Prefactor     11.961        7.0591        .28956E-02   -.95519E-04
  16  Prefactor     3.7479        3.0700        .52142E-02    .21164E-03
  17  Prefactor     9.4014        10.019        .32670E-02   -.63031E-03
  18  Normalizat    .94402        .19779        .45461E-01   -.52240E-03
  19  Prefactor     .93922        .14746        .45501E-01   -.42750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  norm       = 1.90789
  norm       = 1.39836
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6272
  Prefactor  = 0.0001
  Prefactor  = 44.8367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.83719
  Prefactor  = 11.9614
  Prefactor  = 3.74792
  Prefactor  = 9.40144
  Normalizat = 0.944022
  Prefactor  = 0.939222
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.890     FROM HESSE     STATUS=OK           276 CALLS     2224 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    43.029        .12719       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9079        3.1792        .16989E-03   -1.5432    
   4  norm          1.3984        .62224        .38067E-04   -1.5471    
   5  norm          .10000E-03    18.808        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.627        15.348        .10141E-03   -1.4917    
  10  Prefactor     .10000E-03    5.2189        .16865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.837        50.347        .59820E-04   -1.4368    
  12  Prefactor     .10000E-03    26.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9115        .17986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8372        1.7164        .56493E-04   -1.5268    
  15  Prefactor     11.961        7.0618        .11583E-03   -1.5016    
  16  Prefactor     3.7479        3.0646        .11542E-03   -1.5321    
  17  Prefactor     9.4014        10.013        .13068E-03   -1.5095    
  18  Normalizat    .94402        .22894        .27398E-03   -.94930    
  19  Prefactor     .93922        .17072        .21478E-03   -.94784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8436e-10
Minuit parameter uncertainties:
  1  0.00342427
  2  1.36044e-06
  3  3.17944
  4  0.622247
  5  1.06749e-05
  6  6.9687e-05
  7  1.96548e-05
  8  8.04677e-06
  9  15.3521
  10  4.04327e-07
  11  50.3953
  12  3.8336e-05
  13  1.73431e-06
  14  1.71645
  15  7.06229
  16  3.06472
  17  10.0145
  18  0.229172
  19  0.170816
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.965e-05  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.392e-01  1.708e-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.440e-01  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/706538/likelihoodResults_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.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) = 5743.89035223
delta logL = -0.000399497307626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5743.88995283
delta logL = -1.04188984551e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5141       1.0000          .0000       10.000    
     3 'Normalizat'    .94408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93918       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=   5743.890     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      249 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.030        .18142E-01** at limit **
   2  Index         1.9789        5.7762        .50000        .15766E-06
   3  Normalizat    .94403        .84871E-02    .27398E-03    .33367E-03
   4  Prefactor     .93922        .66742E-02    .21478E-03    .42770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97895
  Normalizat = 0.944027
  Prefactor  = 0.939221
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.35        .29168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9789        8.2717        .50000       -.64877    
   3  Normalizat    .94403        .21522E-01    .54797E-04   -.94930    
   4  Prefactor     .93922        .16925E-01    .42956E-04   -.94784    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2585e-09
Minuit parameter uncertainties:
  1  4.0958e-06
  2  895.488
  3  0.0215224
  4  0.0169253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706538': 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) = 5743.88995174
delta logL = 9.85788574326e-07

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  4.096e-06  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  1.979e+00  8.955e+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:  9.392e-01  1.693e-02  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  9.440e-01  2.152e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.704 -1.982

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/706538/cmap_HighResolution_502156801_502416001_4FGL_J1010.8-0158_daily_bin1014.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-01 12:42:55.149980', job_id='706538', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630525375.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1014' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:42:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 706538: <4FGL_J1010.8-0158_daily_bin1014> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin1014> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 12:30:44 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:30:45 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:30:45 2021
Terminated at Wed Sep  1 12:42:58 2021
Results reported at Wed Sep  1 12:42:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin1014 152.704 -1.9817 502156801 502416001 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 :                                   541.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            734 sec.

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

